How to set Boolean value to an 'Yes' or 'No' h:selectOneRadio

前端 未结 2 789
有刺的猬
有刺的猬 2021-02-15 15:57

I have the following code in JSF-2 Mojarra 2.0.8 running on Tomcat 7




        
2条回答
  •  故里飘歌
    2021-02-15 16:46

    Use a simple Boolean value in your backing bean:

    private Boolean choice;
    // getter and setter
    

    And in the facelet:

    
      
      
      
    
    ..
    
      
      ..
      
      ..
    
    

提交回复
热议问题