Re: render nested component

2016-03-21 Thread Thiago H de Paula Figueiredo
On Fri, 18 Mar 2016 02:17:44 -0300, Qbyte Consulting wrote: I am creating a Menu component (for a ul tag) that needs to programmatically generate the child links. Hi! At my job, I've come up with a technique for a component which allows other components to

Re: render nested component

2016-03-21 Thread Chris Poulsen
Tree can be viewed as an example of how to construct a recursive structure using Blocks/ RenderCommands, understanding the render queue may require a little reading/experimentation, but the advantage of this approach is that it allows you to use the normal tapestry components for creating your

Re: render nested component

2016-03-20 Thread Qbyte Consulting
ok ignore that, bumped into some tapestry4 source would this be the approach? JSONObject spec = new JSONObject

Re: render nested component

2016-03-20 Thread Qbyte Consulting
Tree uses BaseComponent that doesn't seem to be in tapestry5? On Fri, Mar 18, 2016 at 2:15 PM, Chris Poulsen wrote: > Hi, > > Take a look at the Tapestry Tree component to see how recursive rendering > can be done. > > -- > Chris > > On Fri, Mar 18, 2016 at 6:17 AM,

Re: render nested component

2016-03-19 Thread Chris Poulsen
Hi, Take a look at the Tapestry Tree component to see how recursive rendering can be done. -- Chris On Fri, Mar 18, 2016 at 6:17 AM, Qbyte Consulting wrote: > I am creating a Menu component (for a ul tag) that needs to > programmatically generate the child links.

render nested component

2016-03-19 Thread Qbyte Consulting
I am creating a Menu component (for a ul tag) that needs to programmatically generate the child links. I already have a MenuItem component, but this is parameter bound to a template, whereas now I need to programmatically drive the parameters. I either need to be able to create the existing