jsf 2 - Rich Faces rich:clientId in Primefaces? -


does know if there equivalent of richfaces rich:clientid in primefaces?

example, if want full client id of field: username.

'#{rich:clientid('username'), how can in primefaces? because want value of field dynamically.

share|improve question
    
you can use generic jsf way: : stackoverflow.com/a/12127017/617373 – daniel apr 18 '13 @ 6:26
    
yes, want more generic approach because need pass id , component. need rich:clientid(). – czetsuya apr 18 '13 @ 15:08
up vote 2 down vote accepted

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 output:

    fm:zzz      fm:opa 
share|improve answer
    
tried did not work. – czetsuya apr 18 '13 @ 15:04
    
oh, sorry, miss # character. please try again :) – rong nguyen apr 18 '13 @ 15:09
    
yes that's i've tried no luck :-( – czetsuya apr 18 '13 @ 15:29
    
i have updated answer. – rong nguyen apr 18 '13 @ 15:38
1  
thanks @rongnk, problem i'm using update value , should update=":#{p:component('id')}", prefix ":" :-) – czetsuya apr 19 '13 @ 1:14


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -