在JSF中的一个outputText中使用两个渲染

时间:2016-06-28 14:19:17

标签: jsf

我想要一个标签的值,其中value将是一个基于某些代码的字符串,我将在回复时返回。 这是我的代码:

<h:outputText styleClass="outputTextWithNonBreakableSpace" 
              id="newBrandValue"
              rendered="#{varnewParty.value == '10001'}"
              value="ABC" 
              converter="com.dwl.datastewardship.web.convert.YesNoConverter"/>

<h:outputText styleClass="outputTextWithNonBreakableSpace" 
              id="newBrandValue2"
              rendered="#{varnewParty.Value == '10002'}"
              value="DEF"   
              converter="com.dwl.datastewardship.web.convert.YesNoConverter"/>

0 个答案:

没有答案