How to use EL with p:panel header?

ぃ、小莉子 提交于 2019-12-02 23:20:43

问题


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}" ... >.



来源:https://stackoverflow.com/questions/16531511/how-to-use-el-with-ppanel-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!