Rich Faces rich:clientId in Primefaces?

情到浓时终转凉″ 提交于 2019-12-24 12:43:47

问题


Does anyone know if there is an equivalent of richfaces rich:clientId in primefaces?

Example, if I want to get the full client id of my field: username.

'#{rich:clientId('username'), how can I do this in primefaces? This is because I want to get the value of that field dynamically.

|improve this question

回答1:


You can try:

<h:form id="fm">
        <p:panel id="zzz">
            <p:outputPanel id="opa"/>
        </p:panel>
        #{p:component('zzz')}
        #{p:component('opa')}
    </h:form>

And i get output:

    fm:zzz 
    fm:opa


来源:https://stackoverflow.com/questions/16074761/rich-faces-richclientid-in-primefaces

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