• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: strange WOFORM multiple submit behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange WOFORM multiple submit behaviour


  • Subject: Re: strange WOFORM multiple submit behaviour
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 12 Aug 2008 12:09:41 -0700

This is browser specific.  One hack is to add a button like this:

--
public class DefaultButton extends WOComponent {

    public DefaultButton(WOContext context)  {
        super(context);
    }

    public boolean isStateless()  {
        return true;
    }

}
--
<webObject name="DefaultButton"/>
--
DefaultButton: WOImageButton {
	action = ^action;
	src = "/images/clear1x1.gif";
	tabindex = "";
	class = ^class;
	style = ^style;
	id = ^id;
}

Immediately after the form and bind the action to what you want as the default action.


Chuck


-- On Aug 12, 2008, at 11:36 AM, Amedeo Mantica wrote:

Hello all,

I'm getting a strange problem, i have forms with multiple submit that have always worked fine, but from some days (may with be latest WO 5.4.2?) when I hit the return key on my keyboard the form submits using the first submit button defined in html instead on the subit button that do the same action on the action defined in the wo:form.

Anyone know something about this?
Thanks
Amedeo
_______________________________________________
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


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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
References: 
 >strange WOFORM multiple submit behaviour (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: strange WOFORM multiple submit behaviour
  • Next by Date: [OT] 10.4 security server upgrade broke mail, WOMailDelivery
  • Previous by thread: strange WOFORM multiple submit behaviour
  • Next by thread: Re: strange WOFORM multiple submit behaviour
  • Index(es):
    • Date
    • Thread