This content has been marked as final. Show 2 replies
you have to use @Factory,
if you want the list immediately available when the user needs it at startup.
Thanks for the reply.
As I seen in the sample and understand, @Factory has been used within the bean where the list is being defined. In my case I need to send a list from the calling program to the dialog which is an independent entity with its own bean / xhtml files.
I would like to know what are the changes I need to do to the dialog and the calling program so that the list can be passed on to the dialog when it needs the list to populate.
I have tried to use @In(create=true) in the calling program to define the dialog as well as define the list. In dialog I have tried to use the list without creating it. I am using richfaces in the dialog to show the list of items. The result is I get the form up, but there is no activity on the form like no action is there when I click a button on the dialog to populate the list.
However the same dialog works when I use the dialog as a call from a link or I include the source in another xhtml file.
Also the dialog is being implemented as to work with long running conversations.
Please do let me know in case you need more info. from me to provide any suggestions.
With warm regards,