Em Thu, 18 Jun 2009 19:45:54 -0300, Norman Franke <nor...@myasd.com> escreveu:

Thanks!

You're welcome!

The ValidationConstraintGenerator may work. Being new to T5 and all, I
assume it's possible to @Inject the current page into my
ValidationConstraintGenerator? Actually, I'd want the classpath to
the .tml so I can get the .properties.

By any chance are you trying to get the validation from the app.properties?
I don't know how you would inject the page in a service. I'm trying to remeber some way to get access to the app.properties file, but I can't now.

Not tested workaround suggestion: inject the ComponentSource service. Use its getPage(Class pageClass), using any page class as parameter, to retrievee a Component instance. Then invoke component.getComponentResources().getMessages() to get a Messages instance.

If there isn't any better way to do it nor a JIRA about it, let's file one.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to