selectBooleanCheckbox值在ui:repeat中没有正确设置

时间:2014-07-21 00:55:34

标签: jsf-2 jsf-2.2

我对复合材料的重复如下:

- ui重复:

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

- 复合

<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>

当我勾选复选框时,某些内容取消选中,我不知道该怎么做,请告知为何如何解决此问题。

1 个答案:

答案 0 :(得分:2)

显然这是一个错误,它已在JSF 2.2.7中修复