Em Tue, 08 Dec 2009 09:18:59 -0200, Mite <mitemeis...@gmail.com> escreveu:

No, I just have the function:

void onSubmit() {
        System.out.println("Value changed!");
}

Try using onSuccess() instead of onSubmit().

By the way, instead of relying on onchange="", use Prototype events:


<form t:type="form" t:id="form">
<t:selectObject t:id="courses" list="courses" value="currentCourse"
labelField="literal:courseId" id="select"/>
<t:submit/>
</form>

<script type="text/javascript">
        Event.observe('select', 'change', function() { $('form').submit(); } );
</script>


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to