SelectBooleanCheckbox value is not set properly inside ui: repeat

i repeats ui on the composite as follows:

- repeat ui:

<ui:repeat var="award" value="#{myBean.awards}" varStatus="status"> <mycomp:Award id="awardComp" value="#{award}" index="#{status.index}"></mycomp:Award> </ui:repeat> 

- composite

 <h:panelGroup id="cashRow" layout="block" style="height:30px"> <label id="anniversaryAwardCash" class="admin checkbox" style="float: left; clear: both; margin-top: 10px; width: 100px;"> <h:selectBooleanCheckbox value="#{cc.attrs.value.cash}" style="margin-right:2px;" id="isanniversaryAwardCash" > <f:ajax event="click" render="cashRow" /> </h:selectBooleanCheckbox> <i></i>#{msg['action.givecash']} </label> <h:panelGroup layout="block" id="anniversaryAwardCashInputDiv" rendered="#{cc.attrs.value.cash}" styleClass="field-container input-prepend" style="clear: both;"> <span class="add-on">$</span> <h:inputText id="anniversaryAwardCashCashInput" required="true" requiredMessage="#{validation['rule.positive.number.for.amount']}" placeholder="#{msg['amount']}" title="#{msg['amount']}" value="#{cc.attrs.value.awardDollars}" maxlength="19" converterMessage="#{validation['rule.positive.number.for.amount']}" styleClass="#{component.valid?'':'field-error'}"> </h:inputText> </h:panelGroup> 

when I check the box, something has canceled it, I don’t know what it is doing, please let me know why, how to fix this behavior.

+1
source share
1 answer

Apparently this is a bug and fixed in JSF version 2.2.7

+2
source

All Articles