-
1. Re: <rich:toggleControl> always submitting
michpetrov Jul 11, 2014 3:40 AM (in response to matinh)Hi,
the toggleControl works correctly. What makes the ajax call is the togglePanelItems being switched. If you don't want that to happen you have to change the first item's switchType to client before you switch to it. You can add onclick="#{rich:component('firstItemId')}.switchMode = 'client'; on the button, then of course you should change it back.
-
2. Re: <rich:toggleControl> always submitting
matinh Jul 11, 2014 4:07 AM (in response to michpetrov)I didn't try your suggestion yet, as I already found some other (hacky) workaround for my use-case. But I'll have a look at it soon. Thx for your suggestion.
Anyways, if the togglePanelItem triggers the submit, shouldn't it then have attributes like 'execute' or 'immediate', just like a commandButton?
-
3. Re: <rich:toggleControl> always submitting
michpetrov Jul 11, 2014 4:43 AM (in response to matinh)Martin Höller wrote:
Anyways, if the togglePanelItem triggers the submit, shouldn't it then have attributes like 'execute' or 'immediate', just like a commandButton?
No, the submit is triggered because the togglePanelItem needs to update its content, it's only executing itself.