struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: validation checkboxlist
Date Fri, 05 Jan 2018 06:51:29 GMT
2018-01-04 18:53 GMT+01:00 José Antonio Delgado Trujillo <jadtmat@gmail.com>:
>           <param-name=“expression”>[!CDATA[#personBean.levels.length==0]]>></param>

"personBean.levels.isEmpty" ?

https://github.com/jkuhnert/ognl/blob/master/docs/LanguageGuide.md#pseudo-properties-for-collections

> In Person class
> private String[] levels
> private String[] levelsAvalaible={“1ESO”, “2ESO”, 3ESO”, “4ESO” }
>
> with setters and getters
>
>
> In the register-input.jsp
> <form action=“register”>
>    …
>   <s:checkboxlist key=“personBean.levels” list=“levelsAvalaible”/>

You should use "name" instead of "key"


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message