Re: T5 + Hibernate + Hibernate Tools

2009-06-22 Thread Norman Franke
Yes, that is want I want. For now, what I've done works. Just getting the page requires the use of internal classes. I can't even think about how to get the component. Once this is included, then I can eliminate my hack. Norman Franke Answering Service for Directors, Inc. www.myasd.com O

Re: T5 + Hibernate + Hibernate Tools

2009-06-20 Thread Robert Zeigler
Hm. What if you have a structure like: page component x bean edit form And you want the messages in component x (to make component x be reusable)? The way you've got it now, you'll always have to put the messages in the top level page. That said, I'm in the middle of: http

Re: T5 + Hibernate + Hibernate Tools

2009-06-19 Thread Norman Franke
On Jun 19, 2009, at 3:31 PM, Thiago H. de Paula Figueiredo wrote: Em Fri, 19 Jun 2009 15:26:44 -0300, Norman Franke escreveu: No, the pages's properties. I figure I may want different settings on each page. Nice point. :) Seems like I'd need to know the page name and/or class for that.

Re: T5 + Hibernate + Hibernate Tools

2009-06-19 Thread Thiago H. de Paula Figueiredo
Em Fri, 19 Jun 2009 15:26:44 -0300, Norman Franke escreveu: No, the pages's properties. I figure I may want different settings on each page. Nice point. :) Seems like I'd need to know the page name and/or class for that. I don't. You can inject the Request and use the ComponentEventLink

Re: T5 + Hibernate + Hibernate Tools

2009-06-19 Thread Norman Franke
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 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 Validat

Re: T5 + Hibernate + Hibernate Tools

2009-06-19 Thread Norman Franke
On Jun 18, 2009, at 8:21 PM, Thiago H. de Paula Figueiredo wrote: Em Thu, 18 Jun 2009 20:45:39 -0300, Norman Franke escreveu: I think I figured it out: @InjectService("PageRenderQueue") private PageRenderQueue pageRenderQueue; By the way, very clever way to do it. :) Two comments: You c

Re: T5 + Hibernate + Hibernate Tools

2009-06-18 Thread Thiago H. de Paula Figueiredo
Em Thu, 18 Jun 2009 20:45:39 -0300, Norman Franke escreveu: I think I figured it out: @InjectService("PageRenderQueue") private PageRenderQueue pageRenderQueue; By the way, very clever way to do it. :) Two comments: You could just @Inject private PageRenderQueue pageRenderQueue; @Inject

Re: T5 + Hibernate + Hibernate Tools

2009-06-18 Thread Thiago H. de Paula Figueiredo
Em Thu, 18 Jun 2009 19:45:54 -0300, Norman Franke 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 s

Re: T5 + Hibernate + Hibernate Tools

2009-06-18 Thread Norman Franke
I think I figured it out: @InjectService("PageRenderQueue") private PageRenderQueue pageRenderQueue; Then in buildConstraints: Page page = pageRenderQueue.getRenderingPage(); Messages msgs = page.getRootComponent().getComponentResources().getMessages(); String myValue = msgs

Re: T5 + Hibernate + Hibernate Tools

2009-06-18 Thread Norman Franke
Thanks! 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. Norman Franke Answering Service for Directors,

Re: T5 + Hibernate + Hibernate Tools

2009-06-18 Thread Thiago H. de Paula Figueiredo
Em Thu, 18 Jun 2009 18:29:37 -0300, Norman Franke escreveu: Next, I want to use BeanEditForm to edit the tables. I can't really add @Id, @NonVisual, or @Validate to the classes, since they'll be overwritten every time I re-generate the classes when I add or modify a table. Take a look at