[jboss-user] [JBoss Seam] - Re: How to impliment a Paged + Sorted DataTable (session) wi

antispart do-not-reply at jboss.com
Thu Nov 16 11:02:18 EST 2006


"petemuir" wrote : I suspect this was because although the context variable was being refereshed, the java variable in your SFSB wasn't null, so the @Factory wasn't being called.  Did you have an @Out, or did you use @Factory("list", scope=ScopeType.EVENT)?

You're right. I switched to using @Factory(value="list", scope=ScopeType.EVENT) and that worked as expected. Now I have a new issue though:

The search list page also has an area that displays the current selection. It uses an a4j:commandButton to reRender the "currentSelection" outputPanel. This worked fine with the list in session scope, now that it's in Event scope everytime I select a new item from the list to be displayed in the "currentSelection" area the @Factory for the list gets called and it makes a new call to the DB. 

I'm not sure why this should happen, b/c it's not reRendering the list outputPanel just the "currentSelection" one... so why would the list @Factory be called?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986590#3986590

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986590



More information about the jboss-user mailing list