But you can't use a delegate component without a template, right? On Wed, Jul 9, 2008 at 12:15 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> Another option is to use the Delegate component and pass it the Block > instance. > > On Wed, Jul 9, 2008 at 9:59 AM, Josh Canfield <[EMAIL PROTECTED]> > wrote: > > I don't recall if you can use MarkupWriter to write blocks yet, but one > > method I've used is to return the block from the beginRender method, it's > > rendered after whatever you write within the method. I believe for both > > blocks you would have to use both beginRender and beforeRenderTemplate, > or I > > suppose you could loop from the beginRender method. > > > > If you want to wrap your blocks in an element you would start it in > > beginRender and finish it in afterRender... > > > > In the case you've laid out though, it might be easier to just create a > > template. > > > > Josh > > On Wed, Jul 9, 2008 at 8:56 AM, Tobias Wehrum <[EMAIL PROTECTED]> > wrote: > > > >> Hi there, > >> > >> I am developing a tree component which can take several classes as > nodes. > >> Each class should have it's own body, stored in parameters - and then > >> rendered, of course. > >> > >> Now, lets say I have I have this code in my Test.tml: > >> > >> > -------------------------------------------------------------------------- > >> <t:ExTree t:id="taskTree" source="treeNodes" > currentNode="currentTreeNode"> > >> <t:parameter name="taskClassContent"> > >> <t:pagelink t:page="Task" > >> > context="${ognl:currentTreeNode.id}">${ognl:currentTreeNode.title}</t:pagelink> > >> </t:parameter> > >> <t:parameter name="projectClassContent"> > >> <t:pagelink t:page="Project" > >> > context="${ognl:currentTreeNode.id}">${ognl:currentTreeNode.projectName}</t:pagelink> > >> </t:parameter> > >> </t:ExTree> > >> > -------------------------------------------------------------------------- > >> > >> As you can see, taskClassContent and projectClassContent are Block > >> elements. > >> > >> Now how can I render this Block element in my ExTree component? By the > way, > >> ExTree hasn't a template, just a class. > >> > >> Hope that someone can help me, > >> Tobias > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > -- > > TheDailyTube.com. Sign up and get the best new videos on the internet > > delivered fresh to your inbox. > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.