This content has been marked as final.
Show 4 replies
-
1. Re: How do a reset when switching between tabs in tabPanel
elf Aug 25, 2009 12:02 PM (in response to daxxy)you can try to use ontabchange event and in action reset values.
-
2. Re: How do a reset when switching between tabs in tabPanel
daxxy Aug 25, 2009 12:36 PM (in response to daxxy)Thanks, elf. That makes sense.
I am new enough to J2EE and javascript that given this:<rich:tab label="Advanced Search" ontabenter="do an action">
And an action like thispublic class SearchTabAction { @In Devices device; public void resetAll() { System.out.println("TDR reset all"); } }
How do I call the action from the eventhandler?
Please note that I'm sure this is a very basic question but I can't seem to find an example right now. -
3. Re: How do a reset when switching between tabs in tabPanel
elf Aug 25, 2009 12:42 PM (in response to daxxy)simple example
<rich:tabPanel ontabchange="#{tabsBean.resetAll}" switchType="ajax">
-
4. Re: How do a reset when switching between tabs in tabPanel
ilya_shaikovsky Aug 26, 2009 5:47 AM (in response to daxxy)guys.. you can't define server side methods in client side events handlers. use a4j:support for that.