> The default-message behavior would be cool, but doesn't seem to be
> working...am I misinterpreting what you said?
> 

yes.  it is a message that is shown only if the field is required and it
has not been set.  You would not use

<rule name=required value=true>...

and 

<required-message>

in the same field.  As the first line means the field is always required
and it already has an error message that would be shown if the field was
not set.

The second line would be used in the event the field is not always
required, but if it is required and the field is not set the message
will be shown.

The second form requires that you have some code like the following  in
an action 

Field fieldA = intake.getGroup(...).getField(...);
Field fieldB = ...

if (fieldA.isSet())
  fieldB.setRequired(true);

if (intake.isAllValid())
...

john mcnally




> Thanks,
> Stephen
> 
> > 
> > The first rule marks the field as always required.
> > 
> > john mcnally
> > 
> > On Wed, 2002-06-26 at 15:19, Stephen Haberman wrote:
> > > With Fulcrum 3.0-b2 intake, I can do:
> > >
> > > <rule name="required" value="true">this is required</rule>
> > >
> > > And it works great, but:
> > >
> > > <required-message>this is required</required-message>
> > >
> > > doesn't work. However, the source seems to at least try to handle
> the
> > > required-message. Is the required-message moved away from in favor
> of
> > > the first rule?
> > >
> > > If so, I think that's great, but can either the docs or the DTD be
> > > updated? How about an intake-3.0.dtd so that Turbine 2.x users will
> be
> > > okay, but the required-message, Date/DateString changes could be
> > > reflected.
> > >
> > > Thanks,
> > > Stephen
> > >
> > >
> > >
> > >
> > >
> > > --
> > > 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]>
> 



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

Reply via email to