Re: evaluating JSR-303 @Size(max=) for input fields?

2010-08-24 Thread Gerhard
hi, extval supports such features (see [1] - in this case you just have to switch to the bv-module - the rest works automatically). regards, gerhard [1] http://jsfcentral.com/articles/myfaces_extval_1.html http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in Eng

Re: evaluating JSR-303 @Size(max=) for input fields?

2010-08-24 Thread Martin Koci
Hi, I tried it for my renderkit but unfortunately there is no (or I didn't find) solution for scenario, where value="#{bean.otherBean.constrainedProperty}" and otherBean is null. In such case you can only obtain constrains from declared type, not from the real one. But for simpler cases where

evaluating JSR-303 @Size(max=) for input fields?

2010-08-24 Thread Mark Struberg
Hi! Not sure if this is covered in the spec, but wouldn't if be useful to parse for the JSR-303 Size annotation [1] and use this value for the maxlength attribute of h:inputText fields if nothing is manually specified in the xhtml? LieGrue, strub [1]http://download.oracle.com/javaee/6/api/jav