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
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
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.
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
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
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
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
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
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
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,
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
We have an existing database schema that's rather large. I've used
Hibernate Tools to generate the .java entity files, complete with
@Entity annotations so Hibernate picks them up automatically. That
works very well.
Next, I want to use BeanEditForm to edit the tables. I can't really
add
12 matches
Mail list logo