[ http://issues.apache.org/jira/browse/BEEHIVE-879?page=all ]

Carlin Rogers updated BEEHIVE-879:
----------------------------------

    Attachment: j879-test-patch.txt

Rich, here's a patch that includes a test recorder test running in MockPortal.

To see the JavaScript errors (old behavior) you can run the test manually and
view problems in a JavaScript console. First build the coreWeb DRT web app
and deploy. Modify the 
coreWeb/resources/beehive/version1/javascript/netui-tree.js
file to back out the change that was committed with the earlier patch for this 
bug.
(I.E. remove the if statement around the "var netUI = new NetUI();" line at the 
top
of the file). Start the server and with a browser go to the page,
http://localhost:8080/coreWeb/mockportal/treetest/TreesMockPortal.jsp
Then expand the first tree. There will be JavaScript errors that 
"netUI.netUITree.trees[treeName] has no properties" in netui-tree.js
If the tree does expand, it is done only on the server side.

However, with the new fix now in netui-tree.js, you will not see the
error messages and the tree will expand on the client side.


> collapse/expand tree button does not work for two tree portlets on one page - 
> fix netui-tree.js
> -----------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-879
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-879
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: v1m1, V1Beta
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>     Priority: Minor
>      Fix For: V1
>  Attachments: j879-patch.txt, j879-test-patch.txt
>
> When two portlets with trees are included on one page, collapse/expand tree 
> button does not work.
> There is a script tag written referring to netui-tree.js for every tree 
> written out on 
> the page.  The netui-tree.js file defines the global netUI variable. The 
> script is 
> getting included multiple times on a page, the netUI variable keeps getting 
> redefined.  The tree information is being stored in this variable, and then 
> getting 
> wiped out the next time the file is included.
> In netui-tree.js we need to change 
> var netUI = new NetUI();
> to 
> if (!netUI) {
>     var netUI = new NetUI();
> }

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

Reply via email to