You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shawn Church <sh...@boxity.com> on 2004/11/12 17:31:54 UTC

writeLabelPrefix of IValidationDelegate

For a required ValidField, I am trying to visually associate a marker
(eg - '*') with the associated FieldLabel, rather than with the
ValidField component itself.  This seems simple, but I'm overlooking it
somehow.

To clarify, I would like to put a '*' marker to the left of the label,
like this:

   *User Name: [input]

rather than

   User Name: *[input]

I'm extending ValidationDelegate, and I need to be able to get the
IValidator (.isRequired()) of the field from within writeLabelPrefix().
 This is no problem in writePrefix, writeSuffix, writeAttributes, etc.,
since the validator is passed, but it's not available in writeLabelPrefix.

Is this possible?  Since FieldLabel specifies it's associated
ValidField, it seems I should be able to get the ValidField along with
its validator.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org