Dynamic Id's in JSF/Seam

后端 未结 3 1860
一个人的身影
一个人的身影 2020-12-10 18:21

Got a little problem with a Seam application I\'m working on and I was wondering if anyone knows a way round it. I\'ve got a form in my application that uses AJAX to show c

3条回答
  •  悲哀的现实
    2020-12-10 19:02

    Have you tried use facelets?

    That will allow you to assing your own ids ie:

    me:labelKeyThingo can then use the id=#{labelKey} to make a unique label. Here is an example facelet called m:textPassword from my bad code:

       
       
    
       
    
        
        
        
            
    
                
                
                
            
        
    
        
            
            
                
            
        
    
        
            
    
                
                
                
            
    
            
        
    
       
    
       
    

    It is used thusly:

     
    

提交回复
热议问题