You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org> on 2006/10/05 11:55:47 UTC

[jira] Created: (TOMAHAWK-727) tree2 do not work with clientSideToggle=true and preserveToggle=false

tree2 do not work with clientSideToggle=true and preserveToggle=false
---------------------------------------------------------------------

                 Key: TOMAHAWK-727
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-727
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Tree
    Affects Versions: 1.1.5-SNAPSHOT
            Reporter: Mario Ivankovits


The reason is that the server side treeModel do not know which nodes are expanded and so do not call decode on them.

1) In HtmlTreeRenderer.decode
If a node is expanded or not will be restored from the cookie (client-side) or from a request parameter (server-side)
There the case that in client-side toggle there is no cookie will not be honored

2) UITreeData.processNodes
There the TreeWalker see a "all nodes closed" tree and stops traversing

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (TOMAHAWK-727) tree2 do not work with clientSideToggle=true and preserveToggle=false

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-727?page=comments#action_12440099 ] 
            
Mario Ivankovits commented on TOMAHAWK-727:
-------------------------------------------

IMHO the correct solution is to transfer the tree state through a hidden field.

The "problem" one might have then is, that the tree will show the nodes expanded after postback (even without "preserverToggle").
For me having the nodes expanded is the behavior I await from the tree.

Any objections?

> tree2 do not work with clientSideToggle=true and preserveToggle=false
> ---------------------------------------------------------------------
>
>                 Key: TOMAHAWK-727
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-727
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tree
>    Affects Versions: 1.1.5-SNAPSHOT
>            Reporter: Mario Ivankovits
>
> The reason is that the server side treeModel do not know which nodes are expanded and so do not call decode on them.
> 1) In HtmlTreeRenderer.decode
> If a node is expanded or not will be restored from the cookie (client-side) or from a request parameter (server-side)
> There the case that in client-side toggle there is no cookie will not be honored
> 2) UITreeData.processNodes
> There the TreeWalker see a "all nodes closed" tree and stops traversing

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira