Re: T5: Best practice for rendering a dynamic component

2008-12-09 Thread mad7777
>> > > org.foo.pages.Start does not contain an embedded component with id >> > > 'apple'. >> > > >> > > Does it expect me to have a tag in the page even though >> I'm >> > > delegating the rend

Re: T5: Best practice for rendering a dynamic component

2007-05-25 Thread Howard Lewis Ship
In fact, BeanEditForm and Grid suffer from the same problem, and a fix will be forthcoming. Basically, there will be a configuration point for contributing page names, and matching them up to (in BeanEditForm/Grid) various property types. The same pattern can hold; define new pages, contribute a

Re: T5: Best practice for rendering a dynamic component

2007-05-24 Thread Ivan Dubrov
Howard Lewis Ship wrote: > This is very easy in Tapestry; just put the components on another page, > inject the page, and choose the component from that page. And how to deal with actionlink's inside the component/block from another page? All actions will go to the page the component/block belongs

Re: T5: Best practice for rendering a dynamic component

2007-05-24 Thread Howard Lewis Ship
return null; } -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 4:08 PM To: Tapestry users Subject: Re: T5: Best practice for rendering a dynamic component Absolutely. You can put it inside a to keep it from rendering normally.

RE: T5: Best practice for rendering a dynamic component

2007-05-24 Thread Joel Wiegman
om: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 4:08 PM To: Tapestry users Subject: Re: T5: Best practice for rendering a dynamic component Absolutely. You can put it inside a to keep it from rendering normally. On 5/23/07, Joel Wiegman <[EMAIL PROTECTED]>

Re: T5: Best practice for rendering a dynamic component

2007-05-23 Thread Howard Lewis Ship
expect me to have a tag in the page even though I'm > > delegating the rendering of it? > > > > -Original Message- > > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, May 23, 2007 1:41 PM > > To: Tapestry users > > Subject:

Re: T5: Best practice for rendering a dynamic component

2007-05-23 Thread Daniel Tabuenca
gt; > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 23, 2007 1:41 PM > To: Tapestry users > Subject: Re: T5: Best practice for rendering a dynamic component > > The Delegate component is what you need: > > > > @Comp

Re: T5: Best practice for rendering a dynamic component

2007-05-23 Thread Howard Lewis Ship
ect: Re: T5: Best practice for rendering a dynamic component The Delegate component is what you need: @Component private Apple apple; @Component private Banana banana; public Object getFruit() { if ( ... ) return apple; return banana; } With Tapestry, the construction of pages is stati

RE: T5: Best practice for rendering a dynamic component

2007-05-23 Thread Joel Wiegman
ing the rendering of it? -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 1:41 PM To: Tapestry users Subject: Re: T5: Best practice for rendering a dynamic component The Delegate component is what you need: @Component private Appl

Re: T5: Best practice for rendering a dynamic component

2007-05-23 Thread Howard Lewis Ship
The Delegate component is what you need: @Component private Apple _apple; @Component private Banana _banana; public Object getFruit() { if ( ... ) return _apple; return _banana; } With Tapestry, the construction of pages is static, fixed, unchanging, much like the construction of your cla