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.
我想将动态字符串放入 ap:panel header中,就像使用它一样p:inputText,例如value="#{object.property}"可以这样做吗?
p:panel header
p:inputText
value="#{object.property}"
只需<f:facet name="header">在您的<p:panel>:
<f:facet name="header">
<p:panel>
<p:panel> <f:facet name="header"> <p:inputText value=#{object.property} /> ... </f:facet> ... </p:panel>
或者,如果你想在那里输出一些文本,你可以使用<p:panel header="#{object.property}" ... >.
<p:panel header="#{object.property}" ... >