On Wed, May 26, 2010 at 3:09 AM, Michal Jedynak m.jedy...@gmail.com wrote:
Hello.
Iv'e got a TextField that uses my custom converter which throws several
ConversionException with different messages.
How can I display a message of the exception on a page? In my properties
file I've got a property 'form.component.IConverter' which shows
message that I define, but I don't know how to put there a message from the
exception. Variable ${exception} displays a full stack trace of the
exception.
Is there a way to get only message from it?
--
Michal
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Displaying-message-from-ConversionException-tp2231197p2231197.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Extend AbstractValidator, call error(final IValidatableT validatable,
final String resourceKey, MapString, Object vars) and build that map with
whatever variables you want to be able to inject into your message. See how
PatternValidator does it for an example.
--
Jeremy Thomerson
http://www.wickettraining.com