Hello everybody,

I tried to implement a tree using the sources of the Tacos demo (I use Tacos
4.0.0 with Tapestry 4.0.2) as a guide but the nodes won't open in Ajax style
(without page reload). When I click on a node the font gets bold and the
plus sign switches to minus but the node shows its content only after a
submit.

HTML snippet:
<div jwcid="tree" id="tree">
        <span jwcid="nodeLink">
                <span jwcid="icon"/>
                <span jwcid="nodeLabel"/>
        </span>
</div>

Excerpt of my page specification: 

   <component id="nodeLink" type="Tacos:AjaxDirectLink">
      <binding name="listener"
              value="ognl:components.tree.listeners.contentExpansion"/>
      <binding name="parameters" value="linkParameters"/>
      <binding name="updateComponents" value="componentsToUpdate"/>

      <binding name="effects"
value="template:{highlight:{'${component.id}':'[255,255,184], 500, 500',
      '${component.id}':'[255,255,184], 500, 500'},
         fadeshow:{'${component.id}':300, '${component.id}':500}}"/>

   </component>
   
   <component id="nodeLabel" type="Insert">
      <binding name="value" value="nodeLabelText"/>
      <binding name="class" value="nodeLabelStyle"/>
   </component>

   <component id="tree" type="Tacos:Tree">
       <binding name="contentProvider" value="contentProvider"/>
       <binding name="keyProvider" value="keyProvider"/>
       <binding name="value" value="component"/>
       <binding name="state" value="componentState"/>
         <binding name="sorter" value="treeSorter"/>
       <binding name="rowStyle" value="beans.evenOdd"/>
       <binding name="partialBlockClass" value="literal:treeBlock"/>
       <binding name="linkListener" value="listener:select"/>
       <binding name="delayedLoad" value="ognl:true"/>
       <binding name="loadElement" value="literal:partialWait"/>
       <binding name="nodeLinkAjax" value="ognl:true"/>
   </component>

I would be very thankfully for any advice.

Greetings,
Manuel




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

Reply via email to