This content has been marked as final.
Show 2 replies
-
1. Re: Switch TabPanel from Ajax to Client switch type
fmarwede Oct 17, 2007 11:06 AM (in response to rconaway)Try something like
<rich:tab switchType="#{bean.currentTabXYSwitchType}> </rich:tab>
and now you only have to get the right moment to switch that in the bean. This is a typical problem because at first glance the oncomplete attribute seems to be a solution but on second you realize that you can't communicate with you bean with a javascript call.
I hope some expert will say something to this problem, but here another you can try:
1.) Do as told above but make
2.) Set a boolean value 'myTabXYwasCalled' in getCurrentTabXYSwitchType to true.
3.) Use a poll that calls a method that checks (for all Tabs) if they were called and change in that case the switchType variable in the bean. -
2. Re: Switch TabPanel from Ajax to Client switch type
ronanker Oct 18, 2007 12:37 PM (in response to rconaway)developping a new attribute for the component named 'memory' for exemple, and when 'true' act like you said, memorizing what has been already loaded.
this can be fine...
or new value for 'mode':
-Server
-Ajax
-AjaxMemory
-ProgressiveClient
-Client
with ProgressiveClient means that it loads other tabs in backGround after the first load of the page but before the user clics on them...