> > I use firefox, maybe you catched a browser issue?

You're right. I tried the same code with Firefox, and there it worked. With
Internet Explorer 6, "this.form.submit()" does work in onchange of
selectOneMenu and onclick of selectOneRadio. I have the problem with
"this.form.submit()" in onchange of selectOneRadio (with f:selectItems) in
Internet Explorer.


Regards,
Matthias


> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Mike Kienenberger
> Gesendet: Freitag, 25. November 2005 00:28
> An: MyFaces Discussion
> Betreff: Re: AW: selectOneRadio and valueChangeListener method with
> onchange submit - submit only after 2nd change
>
>
> Mario,
>
> Your suggestion of calling this.form.submit() may not work.   There's
> other "hidden" javascript that needs to be executed before form is
> submitted.   For myfaces, this javascript sets the autoscroll value,
> and information telling which UICommand submitted the form.   Without
> this information, you might introduce some problems.  And there may be
> future changes to the javascript which may also be adversely affected.
>
> I'd recommend putting a component on your page with and without the
> onchange value, and doing a view source of your page to verify that
> the correct javascript was generated for both components.
>
> On 11/24/05, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
> > Matthias Kahlau wrote:
> > > Thanks for your tips, but the selectOneRadio definitely doesn't work
> > > correctly with onchange="this.form.submit();", because the
> submit will take
> > > place only after the 2nd change!
> > I tried
> >
> > <h:selectOneRadio onchange="submit()">
> > <f:selectItem itemValue="abc" itemLabel="ab"/>
> > <f:selectItem itemValue="def" itemLabel="def"/>
> > </h:selectOneRadio>
> >
> > and it works like a charm.
> >
> > I use firefox, maybe you catched a browser issue?
> >
> >
> > ---
> > Mario
> >
> >

Reply via email to