Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 JSF 页面ui:include,其中我传递了两个ui:param,称为名称和强制。在包含的页面中,我以下列方式使用这两个参数。
ui:include
ui:param
<h:panelGroup> <h:outputText value="#{name}:" /> <h:outputLabel rendered="#{mandatory}" value="*" /> </h:panelGroup>
如何将两个参数组合成一个值?例如,向面板标题显示名称和强制条件。
尝试类似的东西
<p:panel header="#{name}:#{mandatory?'*':''}" />