You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ritesh Trivedi <ri...@gmail.com> on 2008/10/14 02:39:17 UTC

Why is DropDownChoice with wantOnSelectionChange stateful?

Hi,

This may be a stupid question - Looking at the
DropDownChoice.getStatelessHint() it returns false if wantOnSelectionChange
is set to true?

Shouldnt it depend on the enclosing form? If the enclosing form is stateless
and only cares about the value thats getting submitted as a result of the
selection? I know I can always override that method but want to see if I
understand models correctly.
-- 
View this message in context: http://www.nabble.com/Why-is-DropDownChoice-with-wantOnSelectionChange-stateful--tp19965345p19965345.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Why is DropDownChoice with wantOnSelectionChange stateful?

Posted by Jeremy Thomerson <je...@wickettraining.com>.
I suppose it's because of the stateful URL that the DDC adds to the onchange
JS event that pulls that page back out of memory to update the DDC.

-- 
Jeremy Thomerson
http://www.wickettraining.com


On Mon, Oct 13, 2008 at 7:39 PM, Ritesh Trivedi <ri...@gmail.com>wrote:

>
> Hi,
>
> This may be a stupid question - Looking at the
> DropDownChoice.getStatelessHint() it returns false if wantOnSelectionChange
> is set to true?
>
> Shouldnt it depend on the enclosing form? If the enclosing form is
> stateless
> and only cares about the value thats getting submitted as a result of the
> selection? I know I can always override that method but want to see if I
> understand models correctly.
> --
> View this message in context:
> http://www.nabble.com/Why-is-DropDownChoice-with-wantOnSelectionChange-stateful--tp19965345p19965345.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>