Just tried your code and everething works as expected. Have you any client
side errors reported by your browser?
On Fri, Oct 5, 2012 at 8:41 AM, Henrik von Schlanbusch wrote:
> Hi. I have problems understanding multiple submits. I am running T5.3.5.
>
> I have the following tml:
>
> id="singleUserRegistrationFormZone">
> zone="singleUserRegistrationFormZone">
>
> value="${signupLabel}"/>
>
>
>
>
> And javacode:
>
>
>
> @Component
> private Submit setSelectedGroup;
>
> @Component
> private Submit sendUserRegistration;
>
> public void onSelectedFromSetSelectedGroup() {
> getLog().info("SELECT GROUP: " + selectedGroup);
> }
>
> public void onSelectedFromSendUserRegistration() {
> getLog().info("SELECT Userre: " + selectedGroup);
> }
>
> public Object onSuccessFromSingleUserRegistrationForm() {
> getLog().info("SUCCESS - SINGLE USER REGISTRATION");
>
> }
>
> From what I understand of the documentation, when clicking on the
> setSelectedGroup,
> the method "onSelectedFromSetSelectedGroup" should be run first, then the
> onSuccessFromSingleUserRegistrationForm(). When observing from my debugger,
> the "onSelectedFromSetSelectedGroup" is never run. The click on the
> setSelectedGroup will consequently only run the success method of the
> form. So my question is: have I misunderstood the documentation, is it
> not possible to run different methods on the serverside from different
> buttons on the client? And if it is possible, can somebody help me in
> spotting where I have done something wrong?
>
> -Henrik
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
--
BR
Ivan