Hi, When setting the Select to required the first Option in the drop-down list is assumed to be the non-selected (blank) value.
Put it differently, if the first Option in the drop-down is not a blank then it doesn't make sense to use the required flag because the user cannot deselect an Option. See the Gender Select in this example: http://www.avoka.com/click-examples/control/select-demo.htm Hope this helps. kind regards bob On 5/18/09, Adrian A. <[email protected]> wrote: >> I got started on click recently and building my first application. >> Iam >> trying to build a custom form for my own bean. However, when I enter the >> values and submit, I get the message >> "You must select a value for Beanname". 'beanname' is a select in my Form >> and the corresponding field in my domain object is 'beanname'. There are >> no >> validations in my form. Could someone tell me how to solve this problem. > Can you post some sample code (and also the versions you use - click, > jdk, libs, etc.) > Otherwise seems too generic to "guess" what might be the problem :). > > -- http://incubator.apache.org/click/
