Dynamically assigning IDs to tags using an EL variable

前端 未结 1 1098
逝去的感伤
逝去的感伤 2021-01-05 06:05

I want to loop over a number of \"guests\" and insert an id dynanimally


    

        
1条回答
  •  盖世英雄少女心
    2021-01-05 06:19

    You cannot use EL expressions in the id attribute.

    But you don't need to care for the uniqueness of your ids in ui:repeat. JSF does it for you. Just give your input field a "fixed" id and reference it in your p:message:

    
        
        
    
    

    0 讨论(0)
提交回复
热议问题