The easyest way is, what Thiago already suggested. Make it invisible with
css. Tapestry adds the css class "t-error-icon" to the img-Tag so you could
add the following:

.t-error-icon {
  display: none;
}

But this way you would still have the img-Tag in your markup. If you want to
get rid of that, you'll have to provide a custom implementation of
ValidationDecorator and override the method "public void afterField(Field
field)". Take a look at Tapestry's DefaultValidationDecorator to see how it
works. Then implement a Subclass of BaseValidationDecorator doing what you
want. Then you'll have to push instances of it into the environment at an
appropriate place. I myself have created a mixin for forms and use the
mixnin's @SetupRender and @CleanupRender for that. But if you want it to be
used everywhere you can also contribute it to the MarkupRenderer service.
Look at "public void contributeMarkupRenderer" in TapestryModule to see how
that works.

-----
http://www.winfonet.eu
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/remove-red-cross-from-the-field-vlidator-tp4717200p4718140.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to