I want to put a dynamic string inside a p:panel header
just like using it with p:inputText
for example value="#{object.property}"
is it possible to do that ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Just use <f:facet name="header">
facet within your <p:panel>
:
<p:panel>
<f:facet name="header">
<p:inputText value=#{object.property} />
...
</f:facet>
...
</p:panel>
Or, if you want to output some text there, you can use <p:panel header="#{object.property}" ... >
.