You could try <wo:form multipleSubmit = "$true">

On 18/12/2008, at 12:34 PM, 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/webobjects%40bisshop.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]

Reply via email to