Because it can't get an id for "Hand Tossed"
On 9/23/05, Ruud Booltink <[EMAIL PROTECTED]> wrote:
Hi
we're currently just diving into Wicket......
Does anyone have an example of a dropdownchoice that uses the
onselectionchage method?
We tried to extend an example (Ensode's pizzabuilder) so the
dropdownchoice would react as soon as the selection is changed. We
subclassed the dropdownchoice to enable
wantOnSelectionChangedNotifications() and rewritten
onSelectionChanged(java.lang.Object newSelection) into:
protected void onSelectionChanged(java.lang.Object newSelection)
{
System.out.println("test: " + newSelection);
}
this is just a simple consoleprint which shows that newselection always
equals null
the page refreshes at a selectionchange, but the dropdownchoice goes
back to the null choise.
error:
test: null
test: null
test: null
wicket.WicketRuntimeException: Error getting id value of: Hand Tossed
for property: id
at
wicket.markup.html.form.ChoiceRenderer.getIdValue (ChoiceRenderer.java:152)
...
the test: nul occurs when we try to select the first option. no
exception is thrown, but the dropdownchoise goes back to the null
selection.. the exception is trown when we try to select the secorn or
third or #th selection.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
