I'm having some issues getting RadioChoice to work.  I can't find any
examples, so if there is a good one, please let me know (wicket-library
has examples of some of the other choices).

First, it doesn't seem to be keeping track of which item in a group I have
selected.  (If I select a radio button, my model gets correctly updated,
but it doesn't seem to use the model value to check something on the
next load).

Secondly, in
wicket.markup.html.form.AbstractSingleSelectChoice.updateModel(), it calls
setModelObject(getChoices().choiceForId(id).getObject()); rather than
choiceForObject().  This requires that the values all be numbers.
That would seem to eliminate the whole point of having a ChoiceList.

Ideally, we could create an enum.  However, since I think Wicket is not
targeting JDK1.5, it would be good if we can use any strings we want in
the ChoiceList (and therefore in the html value="whatever" field) while
the model is an int (or an Integer if we want to allow nulls).

Thanks,
Dan


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to