Thanks Cail,
That solved it!
David
On 18-Dec-08, at 4:24 AM, Cail Borrell wrote:
Hi David,
It should work if you add the actionClass="DirectAction" binding
the form component.
-Cail
On 18/12/2008, at 02.34, David Holt wrote:
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/cail%
40frontbase.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/programmingosx
%40mac.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]