2018-01-05 19:26 GMT+01:00 José Antonio Delgado Trujillo <jadt...@gmail.com>: > Why not key? i have the correspondan property files > personBean.levels=Cursos > > I also see the label Cursos and the options
Ok, but please be aware that the most important thing is a "name" attribute that must match the corresponding bean name and its property. > > The problem is about the XML validation. > <field name=“personBean.levels”> > <field-validator type=“fieldexpression> > > <param-name=“expression”>[!CDATA[#personBean.levels.length==0]]>></param> > <message>You must select at least one option</message> > </field-validator> > </field> Here you have an example https://github.com/apache/struts-examples/blob/master/control-tags/src/main/resources/org/apache/struts/edit/action/EditAction-validation.xml#L31 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org