Most (if not all) browsers, whether text-based or graphically, support submitting of forms, regardless of what the server does with the submitted information. On the other hand, not all browsers (fully) support javascript. So in my opinion a button that submits a form but does nothing with that data is better that a button that uses javascript to emulate a link. I did not say *anything* about using a real link, that is, <a href= etc.

So if you want a *button* that does what the original poster wants, use setDefaultFormProcessing(false), but you might want to consider using a link proper.

And yes, let's talk accessibility, it's very important for some people. When it's possible to make an app that works for both groups with a little bit of extra effort, do so. Provided, of course, there is time (and money) to do so.

Matthijs.

BTW: Do we like top-posting or bottom-posting? I really don't care, but if there is a convention (as some mailing lists have), I'll conform to that.

Igor Vaynberg wrote:
if you are going to start talking accessibility then that link should
be an anchor period, not a button. buttons are bad if you do not need
a form-submit :)

-igor


On 10/7/07, Matthijs Wensveen <[EMAIL PROTECTED]> wrote:
Al Maw wrote:
Stanczak Group wrote:
I don't want the cancel button to submit the form, is this the best
method? I'm not sure I see how to do this. Is there examples?
@Override
       protected void delegateSubmit(IFormSubmittingComponent
component) {
       }

Also have a look at Button#setDefaultFormProcessing(false);

Regards,

Al

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Button.setDefaultFormProcessing does submit the form (in the HTTP sense)
but the form's model is not updated. I think this is a better solution
because it doesn't require javascript (a Link on a <input> element
generates onclick), and thus more accessible.

Matthijs

--
Matthijs Wensveen
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Matthijs Wensveen
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to