You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Brent N Atkinson (JIRA)" <ji...@apache.org> on 2011/04/20 12:57:05 UTC

[jira] [Created] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Branch controls do not update while showEmptyBranchControls=false
-----------------------------------------------------------------

                 Key: PIVOT-734
                 URL: https://issues.apache.org/jira/browse/PIVOT-734
             Project: Pivot
          Issue Type: Bug
          Components: wtk-terra
    Affects Versions: 2.0
            Reporter: Brent N Atkinson


When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.

Using the definition:

{code}
<TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
...
</TreeView>
{code}

...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.

See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini resolved PIVOT-734.
----------------------------------

    Resolution: Fixed

Resolved, but be free to reopen the issue in case of other related problems.

> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027515#comment-13027515 ] 

Sandro Martini commented on PIVOT-734:
--------------------------------------

Just committed a sample test to show the problem ... but for the fix you have to wait some days.


> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037675#comment-13037675 ] 

Sandro Martini commented on PIVOT-734:
--------------------------------------

Sample Steps to reproduce the problem (but there are other ways): 
in Pivot734.java, comment (or remove) the workaround code block and Run as Application (or Pivot Script Application, it's the same):
select "Activity" without expanding it, click on the Add button, and the child element will not be added (seems that listeners will not be called, so internal indexes will not be aligned with other data structures), and later adding other elements (pressing the add button) will generate exceptions.

Note: this happens without and with the previous patch (currently reverted).


> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Priority: Minor
>             Fix For: 2.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13035725#comment-13035725 ] 

Sandro Martini edited comment on PIVOT-734 at 5/22/11 10:28 PM:
----------------------------------------------------------------

Retrying the test application (and related bxml) I've just seen that this is no more working, so I have to see what happened to the fix.

Ok, the fix has been reverted, and was this:
http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTreeViewSkin.java?p2=%2Fpivot%2Ftrunk%2Fwtk-terra%2Fsrc%2Forg%2Fapache%2Fpivot%2Fwtk%2Fskin%2Fterra%2FTerraTreeViewSkin.java&p1=%2Fpivot%2Ftrunk%2Fwtk-terra%2Fsrc%2Forg%2Fapache%2Fpivot%2Fwtk%2Fskin%2Fterra%2FTerraTreeViewSkin.java&r1=1101680&r2=1101679&view=diff&pathrev=1101680

Just committed the sample workaround suggested here in Pivot734.


      was (Author: smartini):
    Retrying the test application (and related bxml) I've just seen that this is no more working, so I have to see what happened to the fix.
  
> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Re: [jira] [Updated] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by Greg Brown <gk...@verizon.net>.
Rather than continuing to tack fixes on to the 2.0.1 release, why not get the release process started and resolve such issues in a follow-on release?


On Apr 20, 2011, at 8:35 AM, Sandro Martini (JIRA) wrote:

> 
>     [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Sandro Martini updated PIVOT-734:
> ---------------------------------
> 
>    Fix Version/s: 2.0.1
>         Assignee: Sandro Martini
>         Priority: Minor  (was: Major)


[jira] [Updated] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-734:
---------------------------------

    Fix Version/s: 2.0.1
         Assignee: Sandro Martini
         Priority: Minor  (was: Major)

> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini reopened PIVOT-734:
----------------------------------


Retrying the test application (and related bxml) I've just seen that this is no more working, so I have to see what happened to the fix.

> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Brent N Atkinson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022074#comment-13022074 ] 

Brent N Atkinson commented on PIVOT-734:
----------------------------------------

Until this is patched, there is a workaround. Before adding an item to an empty branch, call TreeView's setBranchExpanded(...) method on the empty branch. This installs the necessary BranchHandlers so that list insertion events are delivered to the proper places.

> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIVOT-734) Branch controls do not update while showEmptyBranchControls=false

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-734:
---------------------------------

    Fix Version/s:     (was: 2.0.1)
                   2.1
         Assignee:     (was: Sandro Martini)

Debugging Pivot734 (with the workaround commented or removed) I've seen some strange things inside Trees, so postpone this ticket for the 2.1 release, for better investigation.


> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Priority: Minor
>             Fix For: 2.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. The expected behavior is that the node reflects that it is non-empty and the expander controls show up. The actual behavior is that there is no change in the controls for the node.
> See the user-list thread for details: http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira