On 11/24/06, Frank Bille <[EMAIL PROTECTED]> wrote:
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/ListChoice.html
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/ListMultipleChoice.html
>
Thanks, and just found out one cool feature of ListMultipleChoice is
that if the list I press into the constructor is not List<String>, it
will persist the type.

However, if you use this API carelessly and think the List return from
the form is always List<String>. Then you will get strangle null
pointer exception when you operate with the list instead of
ClassCastException as when I expect, as java will surpress the
ClassCastException sliencely and just return null to caller.

Not sure if the above information help anyone using this API

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to