[jboss-user] [JBoss Seam] - Re: resetting/clearing a session scoped SFSB

asookazian do-not-reply at jboss.com
Wed Dec 26 18:56:18 EST 2007

It seems that Seam destroys the SFSB's after the JSF has been reRendered by the clicking of the continue button in the following xhtml code:
<a4j:form id="a4jChangePeer"> 
	        	    <h:outputText value="Are you sure you want to switch to a peer?  You will lose all unsaved changes."/>
	        	    <h:panelGrid columns="2">
		        	    <a4j:commandButton value="Continue" 
		        	    <a4j:commandButton value="Cancel" onclick="resetPeerMenu(); Richfaces.hideModalPanel('mpChangePeer')"/>

So the invalidateSession method is marked with @End, when exactly does the SFSB get destroyed?  It seems it happens after the reRendering of the JSF and in my case that's too late.  When the JSF reRenders, it displays the data from the original dataTable....

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

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

More information about the jboss-user mailing list