I have been using a while ago a mechanism similar to:
<span jwcid="@Foreach" source="ognl:wpage.validComponents"
value="ognl:row">
<span jwcid="@RenderBlock"
block="ognl:requestCycle.getPage(row.code + 'Edit').components.view"
componentId="ognl:row.id"/>
</span>
This renders different types of "*View" components for different
paragraph types.
The view component has nothing special, just it receives an Id as
parameter.
The tricky part takes place in the "*Edit" page where the block is
defined
<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@HtmlParagraphView"
componentId="ognl:page.getComponent('view').inserter.getBinding('componentId').object"/>
</span>
I'm not sure if this works in the newer versions but maybe it helps.
Len
www.len.ro
On Mon, 2006-12-18 at 12:12 +0100, Cyrille37 wrote:
> Hello,
>
> There is the DynamicBlock component source code at :
> http://www.behindthesite.com/blog/C1931765677/E1630021481/
> and a example at :
> http://examples.mjhenderson.com/dynamicblock/app
>
> Do you know if there is anothers pages which talking about that component ?
>
> Thanks
> Cyrille
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>