Announcement Announcement Module
Collapse
No announcement yet.
Prime faces auto complete fail when using hibernate template Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Prime faces auto complete fail when using hibernate template

    Hi,

    I'm using primes faces as a view technology with webflow.

    I'm trying to use autocomplete feature... such as
    Code:
    <p:autoComplete completeMethod="#{searchCriteria.complete}"/>
    searchCriteria is a flowScope bean and should stay this way.
    The complete() method is delegating the query to a @Service injected by Spring. This service uses an hibernate template to perform the query.

    Fortunately HibernateTemplate is not serializable as well as SessionFactory etc. hence, when displaying my search page I get NotSerializableException...

    How can I bypass webflow serialization ? When I use my searchCriteria bean in a session scope (out of webflow's serialization mechanism) it works fine of course but this is not the scope I want to use...

    Help !
    Thanks...
    Ben
Working...
X