-
1. Re: tabPanel + get parameters
ilya_shaikovsky Dec 23, 2009 4:01 AM (in response to svkap)please download richfaces-demo sources and check how it's implemented there. -
2. Re: tabPanel + get parameters
svkap Dec 23, 2009 10:45 AM (in response to ilya_shaikovsky)Hi.
Thank you for the quick reply. I downloaded the sources but I have some questions.. I see that some of this magic is done with org.richfaces.demo.common.ComponentNavigator class. However I can see that there only the url is rewritten after the tab is changed so it can be in sync. However I cannot find how the get parameters are intercepted so the correct tab to be shown (for example when the user writes the URL directly)..
-
3. Re: tabPanel + get parameters
nbelaevski Dec 23, 2009 4:36 PM (in response to svkap)Hi,
Please take a look at: getComponentUri() & getCurrentComponent() methods of ComponentNavigator.
-
4. Re: tabPanel + get parameters
svkap Dec 28, 2009 4:58 AM (in response to nbelaevski)Hi.
I have one (hopefully) last question. Tab and URL changing is working fine now... However I have one problem. The bean that is holding the logic is with request scope. However I have some get parameters that are passed to it (like user EMail). When the tabs are changed these parameters are lost. Can I preserve them (pass them between requests) without changing the scope of this bean?
-
5. Re: tabPanel + get parameters
user1234 Dec 28, 2009 8:35 AM (in response to svkap)can you set the params in session , and can access it?
FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
.put("<name>", <value>);