This content has been marked as final.
Show 1 reply
-
1. Re: Problem with P:autoComplete in seam 3 with Primefaces
komat Jun 11, 2012 12:34 PM (in response to chinna1231)Hi chinna raja,
just a guess:
1. Do you use a seam managed persistence context ? (see: http://docs.jboss.org/seam/3/persistence/3.0.0.Alpha1/reference/en-US/html_single/#persistence.seam-managed-persistence-contexts )
2. What's the scope of your bean (guestName) ? I guess ConversationScoped ?
3. If it is ConversationScoped: did you start a Conversation and is it active while you're using the autoComplete component ? You can check that if you put this somewhere in your xhtml page:
<span>#{conversation.transient ? 'transient' : 'long-running, id: '.concat(conversation.id)}</span>
If it says transient, try to call a method annotated with @Begin like this:
<f:metadata> <s:viewAction action="#{projectController.beginConversation()}"/> </f:metadata>
And in the bean (just an empty method):
@Begin public void beginConversation() { }
Hope that helps :-)
komat