hmm, i don't get ur question. When u submit the form u need a method that
will process the form. For example an onSuccess would be executed after
validation. Once the onSuccess method is executed the value of the selected
data is already set in the object you specified in the Select component.



On Fri, Feb 12, 2010 at 12:48 PM, Dominik Gätjens <
dominik.gaetj...@leomedia.eu> wrote:

> Well... thx, i'm wondering if there is no built-in way, but it doesn't
> matter. Now i'm getting an AJAX Request.
> But this leads me to a new problem. How can I transfer the selected data
> (from the select Component) to the request-handling-method?
>
> -----Ursprüngliche Nachricht-----
> Von: Juan E. Maya [mailto:maya.j...@gmail.com]
> Gesendet: Freitag, 12. Februar 2010 10:09
> An: Tapestry users
> Betreff: Re: Ajax FormSubmit onChange
>
> Good Morning :)
>
> The TapestryExt.js in this page:
> http://tinybits.blogspot.com/2009/10/missing-javascript.html has a method
> that allows to submit a form using AJAX easily. U just need to call that
> method from ur Select.
>
> On Fri, Feb 12, 2010 at 10:00 AM, Dominik Gätjens <
> dominik.gaetj...@leomedia.eu> wrote:
>
> > Good Morning List,
> >
> >
> >
> > i'm trying to get an AJAX Form submit with an onChange-Event from an
> > Select-Component.
> >
> > Request.isXHR() returns false if i  make an change in the select.
> >
> > if i click the submit button it returns true.
> >
> >
> >
> > Can anyone help me to get an AJAX request on select change?
> >
> >
> >
> > thank you, Dominik
> >
> >
> >
> > Code:
> >
> > <t:zone t:id="fooZone"></t:zone>
> >
> > <t:form  t:zone="fooZone" t:id="ligaForm" id="foo2">
> >
> > <table>
> >
> > <tr>
> >
> > <td>
> >
> > <t:label for="ligen"></t:label>
> >
> > </td>
> >
> > <td>
> >
> > <select t:type="select" t:id="ligen"
> >
> > t:encoder="ligaEncoder" t:model="ligaSelectModel"
> >
> >            t:value="selectedLiga" onchange="this.form.submit()"
> >
> >            t:blankOption="never" id="foo3"/>
> >
> > <input type="submit"></input>
> >
> > </td>
> >
> > </tr>
> >
> > </table>
> >
> > </t:form>
> >
> >
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to