On Jun 18, 2009, at 8:11 PM, Thiago H. de Paula Figueiredo wrote:
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.
No, the pages's properties. I figure I may want different settings on
each page.
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.
Seems like I'd need to know the page name and/or class for that. I
don't.
If there isn't any better way to do it nor a JIRA about it, let's
file one.
Sure, feel free. Something along the lines if an injectable Page for
the current page, or the current Component?
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com