I wanted to share the results of an experiment I was trying out.

http://www.rabago.net/struts/html2/

It's an alternate set of tags (which extends those provided by Struts)
and provides the developer with more control over handling of invalid
form fields.  At the very least, it allows you to show the validation
message beside (or near) the invalid form field.

It works with or without the Validator plugin.  For
Validator-supported forms, I use Niall's extension at
http://niallp.pwp.blueyonder.co.uk/validatorjs.html .

Try the demo.  rabago.net isn't on a Java server, though, so you'll
have to deploy the demo war on your own server.

For most forms, I'm thinking it'll work great.  For others (type=file,
multipart, indexed fields), maybe some testing would be nice.  :)

If there's enough interest (and volunteers), we can move this thing to
struts.sf.net, otherwise I'll just let this sit there for those brave
enough to use it.

Hubert

(Yes, Michael, it allows you to come close to
http://www.themaninblue.com/writing/perspective/2005/10/05/form/form4.htm
. I included a demo to show it, with its own valid/invalid graphic
indicator.)

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

Reply via email to