The <required-message> tag does not make any assumptions on whether the
field is actually required.  This will be determined according to
business logic.

Stephane Bailliez wrote:
> 
> > -----Original Message-----
> > From: John McNally [mailto:[EMAIL PROTECTED]]
> >
> > <required-message> allows you to specify the message that
> > will be shown,
> > if field.setRequired(true) is set and the field is not set.  It just
> > allows you to keep your messages in the one location, instead
> > of having
> > some messages in the action or bo..  It is useful if the field is not
> > always required.
> >
> > <rule name="required" ... makes the field always required.
> >
> 
> mmm...ok, makes sense. thanks.
> 
> but then is it possible to do this (sorry did no try it yet - heading to :):
> 
> <rule name="required" value="true"/>
> <required-message>don't do this</required-message>
> 
> because I originally would have expect the required-message to set the flag
> to true as a default.
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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

Reply via email to