Oleg,
You mentioned four additions:
- type
- global error message for missing properties
- error message for conversion error with property
- global error message for properties of some type
I understand the first one (type). There, I was just being lazy, since all
my properties are Strings. :-)
Can you help me understand what you mean by the other three?
Thanks!
--
Martin Cooper
Tumbleweed Communications
----- Original Message -----
From: "Oleg V Alexeev" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 1:31 PM
Subject: Re[2]: Properties in ActionForms
> Hello martin,
>
> Thursday, January 11, 2001, 10:50:00 PM, you wrote:
>
> mctc> Something I am working on at the moment is a very simple utility
that
> mctc> generates a form bean from an XML definition. The goal is simply to
reduce
> mctc> typing in generating beans - as Roger mentioned, it is kinda
tedious. I'm
> mctc> using something like this to specify a bean:
>
> mctc> <form-bean name="AddressForm" validate="true">
> mctc> <property name="street"/>
> mctc> <property name="city" allowEmpty="false"
> mctc> errorMessage="error.city.required"/>
> mctc> <property name="zip" allowEmpty="false"
errorMessage="error.zip.required"/>
> mctc> </form-bean>
>
> mctc> Pretty simplistic stuff, but it meets my needs right now. If this
would be
> mctc> of interest to people (and if my company allows it), I can make it
> mctc> available when I'm done.
>
> mctc> Also, if people have ideas on what it might do differently, or what
else it
> mctc> might do, I'd be interested in hearing them. And if anyone has a
copy of
> mctc> the messages from Mark Wutka mentioned in the Struts 1.1 TODO list,
I'd
> mctc> appreciate it if they could forward them to me.
>
> Good idea. I think global errorMessage for missing properties can be
> defined. And add type as attribute for property. And add errorMessage
> for convertion error with property. And add global errorMessage for
> properties of some type.... 8)
>
> --
> Best regards,
> Oleg mailto:[EMAIL PROTECTED]
>
>