-
1. Re: ontabenter vs action in rich:tab
evialxg Mar 18, 2010 8:38 AM (in response to nimo22)try the event onlabelclick of the tab.1 of 1 people found this helpful -
2. Re: ontabenter vs action in rich:tab
nimo22 Mar 18, 2010 9:24 AM (in response to evialxg)thanks, I changed the label text to a commandLink and wrap that within a form - this works.
-
3. Re: ontabenter vs action in rich:tab
nimo22 Mar 18, 2010 10:02 AM (in response to nimo22)Oh the thread is not answered:)
I need to fire the action when tab is changed, so onlabelclick or the following version does not help me, because I have to click the label of the tab and not the tab itself.
Why does "ontabenter" not work?
<rich:tab label="mylabel">
<h:form>
<a4j:support event="ontabenter" action="#{bean.myAction}" reRender="region"/>
</h:form><div id="region">
</div>
</rich:tab>
-
4. Re: ontabenter vs action in rich:tab
evialxg Mar 18, 2010 10:32 AM (in response to nimo22)I have no idea why the ontabenter does not work...I realized it too a few days ago.. I just did this :
<rich:tab label="mylabel" onlabelclick="someAj4Function()"> </rich:tabpanel>
and whenever the user clicks the tab the action inside the jsFunction is executed...
I haven't seen any difference between clicking the tab and clicking the label..