Point is, I want to make DDC with wantonselectionchange to true, stateless -
what you did, unless I am missing something, is working for me too but its
statefull and causes the otherwise stateless bookmarkable page to be stored
in session and makes it statefull.


pixologe wrote:
> 
> You could simply extend DropDownChoice, overriding
> wantOnSelectionChangedNotifications to return true.
> Override onSelectionChanged also, and in there you can call
> setResponsePage(...) to redirect to your other pages.
> 
> Works fine for me.
> 
> Hope this helps...
> 
> 
> 
> Ritesh Trivedi wrote:
>> 
>> Well if I understand it correctly, a component embedded inside (otherwise
>> stateless) bookmarkable page checks if the page instance exists if not
>> the page is to be newly created from the params or default constructor.
>> So the page and the DDC doesnt necessarily have to be statefull.
>> 
>> As about what I want to do - I just have a plain list of drop down items
>> and depending on the one selected, I need to redirect to the bookmarkable
>> page for the item. DDC values can just be ids which will be passed as
>> bookmarkable param and will be used to look up the details of that
>> entity.
>> 
>> 
>> Johan Compagner wrote:
>>> 
>>> It is statefull then because it has a callback to that page instance
>>> and component. What do you want do do in the onchange method?
>>> 
>>> On 10/15/08, Ritesh Trivedi <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Hi,
>>>>
>>>> Is there a way to get stateless DDC with onchange notifications? Also
>>>> would
>>>> be helpful if someone could explain why the wantOnChangeNotification
>>>> makes
>>>> DDC stateful even if its enclosed within stateless form and in the
>>>> stateless
>>>> bookmarkable page?
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.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]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p20016192.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]

Reply via email to