Two directActions on one form
Two directActions on one form
- Subject: Two directActions on one form
- From: David Holt <email@hidden>
- Date: Wed, 17 Dec 2008 17:34:25 -0800
I must be missing something basic, but I am doing simple login form with two submit buttons. I used to have the form bound to a login direct action and one submit button. Now I have:
<wo:form multipleSubmit = true> <fieldset> <legend>User Login</legend> <p> <label>Username:</label> <wo:textfield value = "$^username" name = "username" id = "username" /> </p> <p> <label>Password:</label> <wo:password value = "$^password" name = "password" id = "password" /> </p> <p class = "button-bar"> <wo:submit directActionName = "loginAndDoSomethingDifferent" value = "Do something different after logging in" /> <wo:submit directActionName = "login" value="login" /> </p> </fieldset> </wo:form>
When I submit the form with either button it clears the form and returns the same page.
I found an old post (below) that I think I have replicated with inline bindings. Does anyone see anything obvious that I am doing wrong?
Form3 : WOForm { multipleSubmit = true; }
SearchButton : WOSubmitButton { directActionName = doMySearch; ?additionalBindings = thatNeedToBeAppendedForSearch; }
ResetButton : WOSubmitButton { directActionName = doMyReset; ?additionalBindings = thatNeedToBeAppendedForReset; }
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden