Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Session wide variable

scott.stark@jboss.org

2007-03-26


Hi,

what can I do to maintain a session wide variable?

I have a class Site with a variable currentSite.
At startup this currentSite should store the startpage i.e. main.xhtml
In other classes I should set this variable to the next displayed page.

to change the sites this is the section where is reRendered on an action to change the currentSite

| <h:panelGroup id="center">
|  <a4j:outputPanel id="first">
|    <a4j:include viewId="#{site.currentSite}" />
|  </a4j:outputPanel>
| </h:panelGroup>
|


I have tried some experiments with static field etc. but without success.

Please can help me someone!!!

Thanks
Andi

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031569
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.