I want to create an ajax component: kind of tree which shows current node and
all its parent and child nodes (but only for current node - nodes which are
not relatives of current are not visible). Component consists of zone which
is reloaded after user clicks on any of visible nodes. 

Component template looks like this:

<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
  
  <t:zone t:id="nodesZone" visible="literal:true">
    <t:delegate to="nodesBlock"/>
  </t:zone>

  <t:block t:id="nodesBlock">
     <!-- tree markup -->
  </t:block>

</t:container>

I think most natural tree markup will be nested
<ul><li>...<ul><li></li><li></li>...</ul></li></ul>.
But how can I create recurrent <ul> markup? Of course I can prepare markup
in component class and
write it out using <t:outputRaw> component. But I want each node title be
enclosed by <t:actionLink>.
Is that possible?
Can I create a link with createEventLink method and use toRedirectURI()
method to get href for <a...>?
(I tried but it didn't work)

please help...

-- 
View this message in context: 
http://www.nabble.com/Component-with-recurrent-markup-tp20506638p20506638.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to