Re: Setting component type at runtime

2009-05-14 Thread Thiago H. de Paula Figueiredo
Em Thu, 14 May 2009 15:32:20 -0300, Borut Bolčina escreveu: My intention was that page selects its own layout, not which block gets rendered. I am using the block and delegate for other purposes. If the layouts don't differ much then one can use parameters for the layout and then conditionall

Re: Setting component type at runtime

2009-05-14 Thread Borut Bolčina
My intention was that page selects its own layout, not which block gets rendered. I am using the block and delegate for other purposes. If the layouts don't differ much then one can use parameters for the layout and then conditionally renders parts of the layout so it looks different. I wanted to h

Re: Setting component type at runtime

2009-05-14 Thread Thiago H. de Paula Figueiredo
On Thu, May 14, 2009 at 7:12 AM, Borut Bolčina wrote: > You probably mean that I would have one layout component, but with > conditional blocks and not several layouts chosen dynamically? Not exactly. You can define one block per layout and use delegate to render one of them. The choosing logic s

Re: Setting component type at runtime

2009-05-14 Thread Ulrich Stärk
Something like that, yeah. Am 14.05.2009 12:12 schrieb Borut Bolčina: You probably mean that I would have one layout component, but with conditional blocks and not several layouts chosen dynamically? -Borut 2009/5/14 Ulrich Stärk Maybe a Delegate can help you here. Uli Am 14.05.2009 10:45

Re: Setting component type at runtime

2009-05-14 Thread Borut Bolčina
You probably mean that I would have one layout component, but with conditional blocks and not several layouts chosen dynamically? -Borut 2009/5/14 Ulrich Stärk > Maybe a Delegate can help you here. > > Uli > > Am 14.05.2009 10:45 schrieb Borut Bolčina: > > Hi, >> >> I am trying to set the layo

Re: Setting component type at runtime

2009-05-14 Thread Ulrich Stärk
Maybe a Delegate can help you here. Uli Am 14.05.2009 10:45 schrieb Borut Bolčina: Hi, I am trying to set the layout dynamically, but I guess this can not be done. The t:type="${layout}" does not get expanded to whatever I set in Index.java. PageWithLayout.tml === http://tapestry.

Setting component type at runtime

2009-05-14 Thread Borut Bolčina
Hi, I am trying to set the layout dynamically, but I guess this can not be done. The t:type="${layout}" does not get expanded to whatever I set in Index.java. PageWithLayout.tml === http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> page with ${layout} PageWithLayout.java =