Thanks for the prompt response.

The dropdown gets repainted... That works fine.  Now i have other
components that gets repainted when the dropdown value is changed. I want
them to be repainted when i change the dropdown  value from inside the code.

On Tue, Jun 26, 2012 at 10:02 AM, Martin Grigorov <[email protected]>wrote:

> Hi,
>
> If you change the model(object) then you just need to re-paint the
> dropdown and it will have the new value selected.
>
> If you want to select another value without user interaction you can
> use plain JavaScript: selectEl.selectedIndex = 3;
> See http://stackoverflow.com/a/6210445/497381
>
>
> On Tue, Jun 26, 2012 at 9:56 AM, Josh Kamau <[email protected]> wrote:
> > Hi Guys ;
> >
> > I have a dropdown choice component that has an onchange behavior that
> works
> > as expected.
> >
> > Now, somewhere along the code, i do mydropdown.setModelObject()...
> >
> > I want the onchange behavior to be triggered without the user having to
> > click the dropdown . Is it possible ?
> >
> > JOsh.
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to