On Thu, Oct 16, 2008 at 6:16 PM, Ritesh Trivedi <[EMAIL PROTECTED]>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.


no that not the rule
its just the other way around,
a page is stateless if it doesnt have statefull components in it
and the DDC generates a statefull link to itself so its self and because of
that it is 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.


what you could do is just override:
protected boolean getStatelessHint()

and return true


>
>
>
> 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--tp19985764p20015930.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