Your otherDDC does not have a model, show us how you are creating it and i
will tell where the mistake is .

Josh

On Sun, Mar 11, 2012 at 7:12 PM, jhonnytunes <[email protected]> wrote:

> Hi Wicket gurus.
>
> I want the behaivor of AJAXchange the models after updatings the selecction
> of the make like the example of wicketstuff.org. Im having trouble in the
> onUpdate of the DDC, everything is fine till I update the first
> dropdownchoice. It spit me an excetption: "Attempt to set model object on
> null model of component panelname.myDDC" but im not touching "myDDC in the
> ajax request. Please help."
>
> //SAMPLE CODE:
>
> MyDDC.add(new AjaxFormComponentUpdatingBehavior("onchange"){
>
>                        @Override
>                        protected void onUpdate(AjaxRequestTarget target) {
>
>                                target.add(OtherDDC);
>
>                        }
>
>                });
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Ajax-DropDownChoice-messing-DDC-Model-S-tp4464119p4464119.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to