[Seaside] Seaside.WATree expand and element position

Lukas Renggli renggli at gmail.com
Thu May 18 21:15:51 UTC 2006

>  (component isKindOf: WATree)
>   ifTrue:
>    [html div
>     style: 'height: 200px; width: 200px;  overflow: scroll';
>     with: ( component renderTreeOn: html  )]
>   ifFalse: [html render: component].

Remove "renderTreeOn: html", you should never all render methods of
other components. And since this method returns the component, it is
displayed twice.

> B) Second problem : tree position
>     Now then rendering one WATree it start  always to root of the tree ;
>             or to one specific node with lose of upper hierrarchy.
>     My question is :
>         is possibol display the WATree positioned on one specific node with
> upper and under hierarchy ?
>         or render WATree to the last position node select with upper an
> under hierarchy ?

Yes, but it is probably not simple and certainly involves changing the
implementation of WATree. You could do it using JavaScript, e.g. with
script.aculo.us and a scroll-to effect.


Lukas Renggli

More information about the Seaside mailing list