Yep, I've done it using input type button a few times.
I should restate actually, I don't think using button is wrong. It is
actually neater to use button as it fits nicely in the form concept.
What I wanted to say is that cancel behaviour was not the big reason
behind the refactor effort of a few weeks ago.
Eelco
David Liebeherr wrote:
So what you want to do is:
<input type="button" wicket:id="cancel"/>
new Link("cancel",...);
???
When you use a link for a cancel button then the button action is
implemented as javascript onClick wich means that your site would not
work without JS and this is not a acceptable solution for most users.
Or do you want to simly use a <a href...> like link? this is also not
acceptable for most users bc it breaks the whole design.
I will present you a (hopfully better and more generic solution about
the beginning of next week.
Cu,
Dave
Eelco Hillenius wrote:
Agreed. Actually, for a proper cancel, I wouldn't even use a button
myself, but just a plain link. The form refactorings I recently did
were driven by requests on this list for people wanting more
flexibility in how forms were processed. In particular, this is true
for form level validation (opposed to field level validation that is
supported by IValidator).
Eelco
Igor Vaynberg wrote:
This functionality is used in a lot more cases then just the cancel
button.
Im sure having a CancelButton will help, but it wont eliminate the
problem
entirely. Besides people might start subclassing the CancelButton to
gain
this functionality and there go good semantics ;)
-Igor
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user