更新组件而不在Primefaces中处理

时间:2013-11-02 13:22:31

标签: jsf primefaces

我想在不处理它的情况下更新组件。我使用绑定获取复选框的值,并决定是否应该呈现其他组件。不幸的是,更新?还是绑定?不会像我一样工作。

<p:selectBooleanCheckbox id="isPercentage" value="#{myBean.isDiscountInPercentage}" 
  label="Percentage" binding="#{discountInPercentage}">
  <p:ajax process="" update="outpDiscountValue" />
</p:selectBooleanCheckbox>

<p:outputPanel id="outpDiscountValue">
  <h:outputLabel value="$" rendered="#{!discountInPercentage.value}" />
  <h:outputLabel value="%" rendered="#{discountInPercentage.value}" />
</p:outputPanel>

0 个答案:

没有答案