-
1. Re: No action/actionListener for tabs when switchtype=client?
iabughosh Dec 14, 2012 4:08 PM (in response to robinho)Hello robinho,
I faced a problem like that before, when you use switchType="client" you can't use action or actionListener, so you can use JS actions combined with a4j:jsFunction :
<rich:tabPanel>
<rich:tab onxxx="myJS()">
<h:form>
<a4j:jsFunction name="myJS" action="#{yourBean.action}" />
</h:form>
</rich:tab>
</rich:tabPanel>
regards.
-
2. Re: No action/actionListener for tabs when switchtype=client?
robinho Dec 17, 2012 4:01 AM (in response to iabughosh)It still doesn't work.
As I said even an ontabenter="alert('test')" is not called.
Absolutely nothing is happening when moving between tabs.
-
3. Re: No action/actionListener for tabs when switchtype=client?
iabughosh Dec 17, 2012 4:44 AM (in response to robinho)check your browser for javascript errors.
-
4. Re: No action/actionListener for tabs when switchtype=client?
robinho Dec 17, 2012 4:58 AM (in response to iabughosh)No JS errors, neither in IE nor Firefox.
Thanks for your help btw.
-
5. Re: No action/actionListener for tabs when switchtype=client?
iabughosh Dec 17, 2012 5:08 AM (in response to robinho)can you attach your xhtml page ?
-
6. Re: No action/actionListener for tabs when switchtype=client?
robinho Dec 17, 2012 9:03 AM (in response to iabughosh)Unfortunately I cannot provide the actual code but basically the code I posted above is about it.
I just changed some labels and method names.
Is it possible that "nested" tabpanels can cause errors?
My page contains a tabpanel. A tab inside this tabpanel contains another tabpanel.
As I said the code worked in an older version of richfaces so generally it should be ok.