You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Manuel Thurn <ma...@isogmbh.de> on 2007/01/17 15:41:57 UTC

Tacos:Tree - Node opens after submit only

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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Tacos:Tree - Node opens after submit only

Posted by Manuel Thurn <ma...@isogmbh.de>.
No, I'm not using a form. Thanks nevertheless.

Manuel 


-----Original Message-----
From: Steve Shucker [mailto:sshucker@vmsinfo.com] 
Sent: Mittwoch, 17. Januar 2007 17:28
To: Tapestry users
Subject: Re: Tacos:Tree - Node opens after submit only

Are you using the tree in a form?  If so, it's bugged.
http://tacoscomponents.jot.com/BugReporter/Bug32

I posted a workaround a while ago, but it assumes that you don't have any
form controls in your tree nodes.
http://mail-archives.apache.org/mod_mbox/tapestry-users/200606.mbox/%3C018e0
1c69c4c$061bf1a0$3a01010a@vtdom.local%3E

If you're not in a form, ignore me.

-Steve


Manuel Thurn wrote:
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tacos:Tree - Node opens after submit only

Posted by Steve Shucker <ss...@vmsinfo.com>.
Are you using the tree in a form?  If so, it's bugged.
http://tacoscomponents.jot.com/BugReporter/Bug32

I posted a workaround a while ago, but it assumes that you don't have 
any form controls in your tree nodes.
http://mail-archives.apache.org/mod_mbox/tapestry-users/200606.mbox/%3C018e01c69c4c$061bf1a0$3a01010a@vtdom.local%3E

If you're not in a form, ignore me.

-Steve


Manuel Thurn wrote:
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org