I have the following a4j:commandbutton that has been working fine when I am on /page.xhtml:
<a4j:commandButton action="#{controller.redirectPage()}"
data-theme="b" value="Review"
styleClass="ui-btn"
onclick="log('opt')"
onbegin="validate(event); $.efc.busy($.efc.messages.loading);"
oncomplete="$.efc.busy('', true);" />
However after adding a query param to the URI so its now /page.xhtml?edit=true controller.redirectPage()
is never called. Why would the query param break this and how do I fix it?
EDIT
I could not ever figure out how to get the query param to work, but it appears that it had something to do with the post back. On post back the query param was not being sent. When I ended up doing was just putting my edit switch in session and that worked for me. But I would love to know what was wrong in the first scenario.