You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jon Travis (JIRA)" <my...@incubator.apache.org> on 2005/07/21 20:51:45 UTC

[jira] Created: (MYFACES-351) Tree2 isssue (Summary)

Tree2 isssue (Summary)
----------------------

         Key: MYFACES-351
         URL: http://issues.apache.org/jira/browse/MYFACES-351
     Project: MyFaces
        Type: Bug
 Environment: All
    Reporter: Jon Travis


This JIRA issue is in response to the upcomming tree2 summit.

We would love to use Tree2 for our application, but it falls short in a variety of areas. 
I'll list them out here in order to have them evaluated by the developers, but this
bug can be deleted once it's been hashed out.  

1)  (high priority) We need to be able to dynamically add and delete nodes from the
tree, and have it behave correctly.  Currently if you add or delete nodes, you will
get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
application has an explorer view (tree on the left, workspace on the right).  Part of the
app adds new members to the tree, so we need to be able to have this refreshed and
displayed correctly

2)  (high priority) We need to be able to select and expand nodes in the tree.  If someone
hits 'search', we need to expand the path to the node we find and select it.  This seems
troublesome to do in the current implementation

Ideally we would like to be able to use the client side feature of Tree2, but would use
server-side if that is all that worked.


-- 
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] Updated: (MYFACES-351) [tree2] Cannot dynamically add or delete nodes

Posted by "AtreeBlu (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-351?page=all ]

AtreeBlu updated MYFACES-351:
-----------------------------

    Attachment: TestTree2.zip

This TEST page, add dinamically a Node to a Tree2. Also a RESET button standard-fill the Tree2. Look at the code.

NOTE: In this file i'm using a "panelStack", is only a test and doesn't serve to add a NODE. If code is soo dirty tell my I will clean, I send files as ther are.

> [tree2] Cannot dynamically add or delete nodes
> ----------------------------------------------
>
>          Key: MYFACES-351
>          URL: http://issues.apache.org/jira/browse/MYFACES-351
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: All
>     Reporter: Jon Travis
>     Assignee: sean schofield
>  Attachments: TestTree2.zip
>
> We need to be able to dynamically add and delete nodes from the
> tree, and have it behave correctly.  Currently if you add or delete nodes, you will
> get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
> application has an explorer view (tree on the left, workspace on the right).  Part of the
> app adds new members to the tree, so we need to be able to have this refreshed and
> displayed correctly
> Ideally we would like to be able to use the client side feature of Tree2, but would use
> server-side if that is all that worked.

-- 
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] Updated: (MYFACES-351) Tree2 isssue (Summary)

Posted by "sean schofield (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-351?page=all ]

sean schofield updated MYFACES-351:
-----------------------------------

    Component: Tomahawk

> Tree2 isssue (Summary)
> ----------------------
>
>          Key: MYFACES-351
>          URL: http://issues.apache.org/jira/browse/MYFACES-351
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>  Environment: All
>     Reporter: Jon Travis

>
> This JIRA issue is in response to the upcomming tree2 summit.
> We would love to use Tree2 for our application, but it falls short in a variety of areas. 
> I'll list them out here in order to have them evaluated by the developers, but this
> bug can be deleted once it's been hashed out.  
> 1)  (high priority) We need to be able to dynamically add and delete nodes from the
> tree, and have it behave correctly.  Currently if you add or delete nodes, you will
> get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
> application has an explorer view (tree on the left, workspace on the right).  Part of the
> app adds new members to the tree, so we need to be able to have this refreshed and
> displayed correctly
> 2)  (high priority) We need to be able to select and expand nodes in the tree.  If someone
> hits 'search', we need to expand the path to the node we find and select it.  This seems
> troublesome to do in the current implementation
> Ideally we would like to be able to use the client side feature of Tree2, but would use
> server-side if that is all that worked.

-- 
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] Updated: (MYFACES-351) [tree2] Cannot dynamically add or delete nodes

Posted by "sean schofield (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-351?page=all ]

sean schofield updated MYFACES-351:
-----------------------------------

        Summary: [tree2] Cannot dynamically add or delete nodes   (was: Tree2 isssue (Summary))
    Description: 
We need to be able to dynamically add and delete nodes from the
tree, and have it behave correctly.  Currently if you add or delete nodes, you will
get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
application has an explorer view (tree on the left, workspace on the right).  Part of the
app adds new members to the tree, so we need to be able to have this refreshed and
displayed correctly

Ideally we would like to be able to use the client side feature of Tree2, but would use
server-side if that is all that worked.


  was:
This JIRA issue is in response to the upcomming tree2 summit.

We would love to use Tree2 for our application, but it falls short in a variety of areas. 
I'll list them out here in order to have them evaluated by the developers, but this
bug can be deleted once it's been hashed out.  

1)  (high priority) We need to be able to dynamically add and delete nodes from the
tree, and have it behave correctly.  Currently if you add or delete nodes, you will
get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
application has an explorer view (tree on the left, workspace on the right).  Part of the
app adds new members to the tree, so we need to be able to have this refreshed and
displayed correctly

2)  (high priority) We need to be able to select and expand nodes in the tree.  If someone
hits 'search', we need to expand the path to the node we find and select it.  This seems
troublesome to do in the current implementation

Ideally we would like to be able to use the client side feature of Tree2, but would use
server-side if that is all that worked.


        Version: 1.0.9 beta
      Assign To: sean schofield

Can you be more specific about this duplicate id problem?  A stack trace would be helpful.  The new TreeModel interface may be helpful to you at this point.  Have you used this?  Please also make sure to try the latest (8-19) nightly build as there were a few important changes there.  

> [tree2] Cannot dynamically add or delete nodes 
> -----------------------------------------------
>
>          Key: MYFACES-351
>          URL: http://issues.apache.org/jira/browse/MYFACES-351
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: All
>     Reporter: Jon Travis
>     Assignee: sean schofield

>
> We need to be able to dynamically add and delete nodes from the
> tree, and have it behave correctly.  Currently if you add or delete nodes, you will
> get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
> application has an explorer view (tree on the left, workspace on the right).  Part of the
> app adds new members to the tree, so we need to be able to have this refreshed and
> displayed correctly
> Ideally we would like to be able to use the client side feature of Tree2, but would use
> server-side if that is all that worked.

-- 
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] Closed: (MYFACES-351) [tree2] Cannot dynamically add or delete nodes

Posted by "sean schofield (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-351?page=all ]
     
sean schofield closed MYFACES-351:
----------------------------------

    Fix Version: Nightly
     Resolution: Fixed

With the new TreeWalker interface you should be able to provide you own TreeWalking scheme to navigate the nodes during rendering and decoding.  Its complicated to implement but it will free you from relying on the old node naming scheme of 0, 0:0, etc.  

Suggestion: Take a look at the new TreeWalkerBase and write your own test cases similar to the ones in TreeWalkerBaseTest.

> [tree2] Cannot dynamically add or delete nodes
> ----------------------------------------------
>
>          Key: MYFACES-351
>          URL: http://issues.apache.org/jira/browse/MYFACES-351
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9m9
>  Environment: All
>     Reporter: Jon Travis
>     Assignee: sean schofield
>      Fix For: Nightly
>  Attachments: TestTree2.zip
>
> We need to be able to dynamically add and delete nodes from the
> tree, and have it behave correctly.  Currently if you add or delete nodes, you will
> get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
> application has an explorer view (tree on the left, workspace on the right).  Part of the
> app adds new members to the tree, so we need to be able to have this refreshed and
> displayed correctly
> Ideally we would like to be able to use the client side feature of Tree2, but would use
> server-side if that is all that worked.

-- 
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: (MYFACES-351) [tree2] Cannot dynamically add or delete nodes

Posted by "sean schofield (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-351?page=comments#action_12320585 ] 

sean schofield commented on MYFACES-351:
----------------------------------------

@Atree: Thanks for the example.  I took a quick look at it.  The first problem is that its not in English.  Can you please provide an English example?  Also please submit as an SVN patch that uses the current convention for simple examples (ie. web page in examples/simple, source code in examples/simple/src, update examples/conf/faces-config.xml for your managed bean.)

Also, is it possible to implement a simple dynamic *without* panelStack?  Ideally we use as little other tomahawk components in the *simple* example as possible.  This is a nice example of how these components can work together but that is not the goal of the simple examples.  We are talking about providing a more complicated set of examples at some point that shows how the componens interact and this would probably be better for that.

> [tree2] Cannot dynamically add or delete nodes
> ----------------------------------------------
>
>          Key: MYFACES-351
>          URL: http://issues.apache.org/jira/browse/MYFACES-351
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: All
>     Reporter: Jon Travis
>     Assignee: sean schofield
>  Attachments: TestTree2.zip
>
> We need to be able to dynamically add and delete nodes from the
> tree, and have it behave correctly.  Currently if you add or delete nodes, you will
> get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
> application has an explorer view (tree on the left, workspace on the right).  Part of the
> app adds new members to the tree, so we need to be able to have this refreshed and
> displayed correctly
> Ideally we would like to be able to use the client side feature of Tree2, but would use
> server-side if that is all that worked.

-- 
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: (MYFACES-351) [tree2] Cannot dynamically add or delete nodes

Posted by "alban coulange (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-351?page=comments#action_12331477 ] 

alban coulange commented on MYFACES-351:
----------------------------------------

Hello,
Excuse me for commenting that but how is the bug going? will it be fixed soon?

I would like to know if I was deleting nodes correctly in the tree.
I get the tree : 
*********************

FacesContext facesContext = FacesContext.getCurrentInstance();
		ht = (HtmlTree) facesContext.getViewRoot()
		.findComponent(":validationForm:validation-tree");
		root = (ValidationTreeNode)ht.getValue();
*******************

I get the list of children, 
*************
Iterator it = root.getChildren().iterator();
************
and remove the one I don't need any more via an iterator over that list. 
And then : 
**********
ht.setValue(root); or //ht.setValue(root);
************

But doing this, I got strange problems : 
I get the message "missing node" (as bug MYFACES-159 resolved)
*************
 or not (it is  not predictible).
Or it looses (I think) the ids and it affects the rest of the page (some <br>
are turned into &alt br &alt if I don't put MY ids)
If I put my ids in the rest of the components, then the ergonomics is not
affected. The last example every time I remove a node.
For the exception above it occurs whenever it wants!

Is there a proper way to use the tree2?
Any help would be very appreciated.
Thanks,
Alban

> [tree2] Cannot dynamically add or delete nodes
> ----------------------------------------------
>
>          Key: MYFACES-351
>          URL: http://issues.apache.org/jira/browse/MYFACES-351
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9m9
>  Environment: All
>     Reporter: Jon Travis
>     Assignee: sean schofield
>  Attachments: TestTree2.zip
>
> We need to be able to dynamically add and delete nodes from the
> tree, and have it behave correctly.  Currently if you add or delete nodes, you will
> get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
> application has an explorer view (tree on the left, workspace on the right).  Part of the
> app adds new members to the tree, so we need to be able to have this refreshed and
> displayed correctly
> Ideally we would like to be able to use the client side feature of Tree2, but would use
> server-side if that is all that worked.

-- 
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