Wendy Smoak wrote:
From: "Derek Broughton" <[EMAIL PROTECTED]>

What happens when somebody types "ABCDE" into your Integer field on the
form, and it fails validation?  Can you re-display the incorrect user

input

so they can see what they typed and why it was wrong?

Or more concisely, because HTML only has string types.


Oh, sure, take all the fun out of it. ;)  Teach a man to fish, and all...

It begs the question though: is there a case for using Integer in an
ActionForm?  I know the reasons *not* to (and I don't) but it must be there
for a reason?


Raises not begs! (sorry, pet peeve of mine :P)

What do you mean by "must be there for a reason"? As far as I know, a form property can be any class type that you want it to be.

Unless I missed something, there is no special set of classes that they can be set to. (There is obviously a special set of classes that you should not set it to be as it is not best practices though...)

Matt

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



Reply via email to