Prime Faces中的Rich Faces rich:clientId? [英] Rich Faces rich:clientId in Primefaces?

查看:104
本文介绍了Prime Faces中的Rich Faces rich:clientId?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道素数中是否有等价的richfaces rich:clientId吗?

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

例如,如果我想获取我的字段的完整客户端ID:用户名.

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

'#{rich:clientId('username'),我该如何在素面中执行此操作?这是因为我想动态获取该字段的值.

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

推荐答案

您可以尝试:

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

我得到输出:

    fm:zzz 
    fm:opa

这篇关于Prime Faces中的Rich Faces rich:clientId?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆