Details
-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: EE-2.0.0.GA
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Mojarra 2.1.2
Description
<f:ajax disabled="true"/> doesn't disable Ajax on commandButtons within tables. Example:
<ice:dataTable id="dataTable" var="var" value="#{myBean.list}">
<ice:column id="column1">
<h:outputText value="#{var}"/>
</ice:column>
<ice:column id="actionColumn">
<h:commandButton id="tableButton" action="#{myBean.submit}" value="Do it">
<f:ajax disabled="true"/>
</h:commandButton>
</ice:column>
</ice:dataTable>
Assumption: The hidden field holding the clientIds of the components with ajax disabled is missing the row number in the clientId for the commandButton:
<input type="hidden" value=" myForm:dataTable:tableButton " id="myForm:ajaxDisabled" disabled="true" style="">
The actual clientId of the command buttons are myForm:dataTable:0:tableButton and so on.
<ice:dataTable id="dataTable" var="var" value="#{myBean.list}">
<ice:column id="column1">
<h:outputText value="#{var}"/>
</ice:column>
<ice:column id="actionColumn">
<h:commandButton id="tableButton" action="#{myBean.submit}" value="Do it">
<f:ajax disabled="true"/>
</h:commandButton>
</ice:column>
</ice:dataTable>
Assumption: The hidden field holding the clientIds of the components with ajax disabled is missing the row number in the clientId for the commandButton:
<input type="hidden" value=" myForm:dataTable:tableButton " id="myForm:ajaxDisabled" disabled="true" style="">
The actual clientId of the command buttons are myForm:dataTable:0:tableButton and so on.
Issue Links
- depends on
-
ICE-7135 Add comprehensive support for <f:ajax> to the ICEfaces Components (compat/"ice") components
-
- Closed
-
Attached example application to reproduce the bug