You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2014/07/09 16:11:05 UTC

[jira] [Resolved] (TOBAGO-1107) Using a TreeState object instead of "expanded" and "marked" in the tree node tag

     [ https://issues.apache.org/jira/browse/TOBAGO-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Udo Schnurpfeil resolved TOBAGO-1107.
-------------------------------------

    Resolution: Fixed

> Using a TreeState object instead of "expanded" and "marked" in the tree node tag 
> ---------------------------------------------------------------------------------
>
>                 Key: TOBAGO-1107
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1107
>             Project: MyFaces Tobago
>          Issue Type: Task
>          Components: Core
>            Reporter: Udo Schnurpfeil
>            Assignee: Udo Schnurpfeil
>             Fix For: 2.0.0, 1.6.0-beta-1
>
>
> The expanded and marked state was saved in the tree model directly since Tobago 1.5.0.
> But it turns out, that has some disadvantages:
>  - to handle the state, you may have to write extra code to save the state
>  - usually this code is only for presenation (expanded), so you mix data and presentation
> So introducing the TreeState. The TreeState shoud be independet from tree model implementations. It saves the path a node, instead of the node themself. This is different to the TreeState of Tobago 1.0.x.



--
This message was sent by Atlassian JIRA
(v6.2#6252)