Details
Description
There's an issue with some examples that use singleSubmit. For example, the Comp Suite Context Menu: Effects demo allows you to choose which effect to use when visually displaying the menu. The markup in question currently looks like this:
<ui:define name="example">
<h:form>
<icecore:singleSubmit/>
<h:panelGrid columns="3">
...
This doesn't work properly when running under MyFaces. Clicking a radio button does trigger a submit, but the resulting update simply resets the radio back to the default selection. Changing it to use an f:ajax tag appears to clear things up:
<ui:define name="example">
<h:form>
<f:ajax execute="@this" render="@all">
<h:panelGrid columns="3">
...
This isn't related to ACE at all. I can pare down the example to a very simply one using only stock components and the behaviour is the same.
<ui:define name="example">
<h:form>
<icecore:singleSubmit/>
<h:panelGrid columns="3">
...
This doesn't work properly when running under MyFaces. Clicking a radio button does trigger a submit, but the resulting update simply resets the radio back to the default selection. Changing it to use an f:ajax tag appears to clear things up:
<ui:define name="example">
<h:form>
<f:ajax execute="@this" render="@all">
<h:panelGrid columns="3">
...
This isn't related to ACE at all. I can pare down the example to a very simply one using only stock components and the behaviour is the same.
Assigned to Ted.
Attached test case contains 2 identical pages except that one uses singleSubmit (ss.xhtml) and one uses f:ajax (fajax.xhtml). You can build it by unzipping it to the icefaces2/samples/core directory and using the normal build mechanisms:
Mojarra:
ant clean servlet-profile
MyFaces:
ant -Dmyfaces="true" clean servlet-profile