JSF 2.0: h:inputText inside composite component fails with non-String objects when validation is set

前端 未结 1 928
南笙
南笙 2021-01-07 02:12

In a backing bean:

@Min(3)
Integer foo;

If I have form like:


    
         


        
1条回答
  •  逝去的感伤
    2021-01-07 03:09

    As per a comment on your ticket, it turns out that you could as workaround explicitly specify the type converter.

    You could do it as follows

    
        
    
    

    and

    
        
            
        
    
    

    or maybe

    
    

    and

    
        
    
    

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