Author Login
Post Reply
On Fri, 03 Sep 2010 10:52:14 -0300, Lothar Nieswandt <lothar_news@(protected)>
wrote:
> Hi there,
Hi!
> I like the layout used by the "Errors" component (red square). So my
> first thaught was: why not use this component. However, when trying to
> achieve this I found that the purpose of 'Errors' is to display
> ValidationExceptions that occur in forms.
Not just validation errors. You can get the ValidationTracker from the
Environment and use void recordError(String errorMessage) to record a
message.
@Environmental
private ValidationTracker validationTracker;
Or inject the form and use the recordError() (which just delegates to the
ValidationTracker.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)