Try

this.form.submit()

On Tue, Dec 8, 2009 at 2:47 AM, Mite <mitemeis...@gmail.com> wrote:

>
> Hi
>
> I am trying to attach an event to a select. The guys that worked before me
> used this model.
> http://wiki.apache.org/tapestry/Tapestry5SelectObject
>
> I have written this code so far:
>
> <form t:type="form">
> <t:selectObject t:id="courses" list="courses" value="currentCourse"
> labelField="literal:courseId" onChange="form.submit();"/>
> <t:submit/>
> </form>
>
> void onSubmit() {
>        System.out.println("Value changed!");
> }
>
> Whenever I change the value from the select nothing prints on the console.
> If I press the submit button, I get output in the console.
> I am stuck the whole night on this.
> Thank you
> --
> View this message in context:
> http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26687467.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to