Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.BETA
-
Fix Version/s: 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:HideICEfaces3 trunk rev# 38598
App server: tomcat6/7
Browsers: all
Test app: http://server.ice:8888/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/buttonGroup
ShowICEfaces3 trunk rev# 38598 App server: tomcat6/7 Browsers: all Test app: http://server.ice:8888/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/buttonGroup
-
Assignee Priority:P3
Description
The mutuallyExclusive attribute cannot be enabled for an ace:buttonGroup with ace:checkboxButtons, if the checkboxButton components are inside an h:panelGrid. Removing the h:panelGrid fixes the issue.
This is not an issue if using ace:radioButtons inside the h:panelGrid.
<ace:buttonGroup id="cbButtonGroup" header="Using ace:checkboxButton" mutuallyExclusive="true">
<h:panelGrid id="panelGrid" columns="3" width="60%">
<ace:checkboxButton value="#{buttonGroupBean.cb1}" label="#{buttonGroupBean.cbValueDescription1}">
<ace:ajax execute="@this" event="activate" render="@form"/>
</ace:checkboxButton>
<ace:checkboxButton value="#{buttonGroupBean.cb2}" label="#{buttonGroupBean.cbValueDescription2}">
<ace:ajax execute="@this" event="activate" render="@form"/>
</ace:checkboxButton>
<ace:checkboxButton value="#{buttonGroupBean.cb3}" label="#{buttonGroupBean.cbValueDescription3}">
<ace:ajax execute="@this" event="activate" render="@form"/>
</ace:checkboxButton>
</h:panelGrid>
</ace:buttonGroup>
This can be reproduced with the ButtonGroup / ButtonGroup Only test app from: http://server.ice:8888/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/buttonGroup
This is not an issue if using ace:radioButtons inside the h:panelGrid.
<ace:buttonGroup id="cbButtonGroup" header="Using ace:checkboxButton" mutuallyExclusive="true">
<h:panelGrid id="panelGrid" columns="3" width="60%">
<ace:checkboxButton value="#{buttonGroupBean.cb1}" label="#{buttonGroupBean.cbValueDescription1}">
<ace:ajax execute="@this" event="activate" render="@form"/>
</ace:checkboxButton>
<ace:checkboxButton value="#{buttonGroupBean.cb2}" label="#{buttonGroupBean.cbValueDescription2}">
<ace:ajax execute="@this" event="activate" render="@form"/>
</ace:checkboxButton>
<ace:checkboxButton value="#{buttonGroupBean.cb3}" label="#{buttonGroupBean.cbValueDescription3}">
<ace:ajax execute="@this" event="activate" render="@form"/>
</ace:checkboxButton>
</h:panelGrid>
</ace:buttonGroup>
This can be reproduced with the ButtonGroup / ButtonGroup Only test app from: http://server.ice:8888/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/buttonGroup
If the ace:buttonGroup w/ checkboxButtons is inside f:ajax (render/execute=@all), the mutuallyExclusive=true attribute always fails, with or without the checkboxButtons in an h:panelGrid.
This can be reproduced using the same test application for buttonGroup, on the ButtonGroup inside f:ajax test: http://localhost:8080/buttonGroup/buttonGroupFAjax.jsf