Re: Dropdown list onselectionchanged sending to a new page

2008-04-21 Thread Igor Vaynberg
pasting the stacktrace usually helps us figure out what is wrong...

-igor


On Mon, Apr 21, 2008 at 5:57 PM, Ritz123 <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  I have a usage scenario where I need to send users to a different page when
>  they select an item from the dropdownchoice.  I tried
>  wantOnSelectionChangedNotifications returning true and overriding
>  onselectionchanged(newobject) with setResponsePage(Page.class,
>  PageParameters) but got an error about incorrect model setting (or so, dont
>  remember the exact error).
>
>  Is there an example somewhere which shows how to send the user to a
>  different page based on the selection? Also is it possible to achieve this
>  behavior without embedding dropdownlist in the form? as I have only 1
>  element - which is this drop down element and seems like wasteful thing to
>  do creating a form just for 1 element.
>  --
>  View this message in context: 
> http://www.nabble.com/Dropdown-list-onselectionchanged-sending-to-a-new-page-tp16819667p16819667.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dropdown list onselectionchanged sending to a new page

2008-04-21 Thread Ritz123

Hi,

I have a usage scenario where I need to send users to a different page when
they select an item from the dropdownchoice.  I tried
wantOnSelectionChangedNotifications returning true and overriding
onselectionchanged(newobject) with setResponsePage(Page.class,
PageParameters) but got an error about incorrect model setting (or so, dont
remember the exact error).

Is there an example somewhere which shows how to send the user to a
different page based on the selection? Also is it possible to achieve this
behavior without embedding dropdownlist in the form? as I have only 1
element - which is this drop down element and seems like wasteful thing to
do creating a form just for 1 element.
-- 
View this message in context: 
http://www.nabble.com/Dropdown-list-onselectionchanged-sending-to-a-new-page-tp16819667p16819667.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]