Get id of parent naming container in template for in render / update attribute

前端 未结 5 1861
小蘑菇
小蘑菇 2020-12-12 17:48

I have a template and in its Definition I use several forms and buttons.

The problem is the definition (define) xhtml file does not know the component hierarchy.

5条回答
  •  星月不相逢
    2020-12-12 18:04

    You may use binding attribute to declare EL variable bound to JSF component. Then you may access absolute client id of this component by using javax.faces.component.UIComponent.getClientId(). See example below:

    
           
    
    
       
    
    

提交回复
热议问题