It looks kind of redundant in some way. no ?
A special role is given to <required-message> which is partly redundant with <required name="rule"> and nothing prevents from using <required name="rule"> the same way you do with <required-message"> right ? If required-message does not make any assumption whether or not the field is required then it is kind of the same of using a required-message with no value (or a special value like 'manual' ie : true|false|manual to really specify that something is done behind the hood). Otherwise these 2 entry points makes it confusing to my poor mind, but I acknowledge it might only be me :) > -----Original Message----- > From: John McNally [mailto:[EMAIL PROTECTED]] > > 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
