You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Tim Noonan (JIRA)" <be...@incubator.apache.org> on 2004/12/15 20:58:56 UTC

[jira] Created: (BEEHIVE-138) The netui-tree.js has harcoded expansion images

The netui-tree.js has harcoded expansion images
-----------------------------------------------

         Key: BEEHIVE-138
         URL: http://nagoya.apache.org/jira/browse/BEEHIVE-138
     Project: Beehive
        Type: Bug
  Components: NetUI  
 Environment: Firefox 1.0 on xp.
    Reporter: Tim Noonan


The netui-tree.js has harcoded expansion images.

If you are using the netui tree tag and are specifying an images directory at runtime when you collapse the root node it cannot find the imageHandleDownLast gif if specified.

<beehive:tree dataSource="pageInput.tree"
                            selectionAction="select" tagId="tree" runAtClient="true"
                            imageRoot="/tools/framework/skins/wlp-tools/images"
                            imageHandleRightLast="minus.gif"
                            imageHandleRightMiddle="minus.gif"
                            imageHandleDownLast="minus.gif"
                            imageHandleDownMiddle="minus.gif"
                            imageLineMiddle="join.gif"
                            imageLineVertical="line.gif"
                            imageLineLast="joinbottom.gif"/>


--From netui-script.js--
///////////////////////////////// Tree //////////////////////////
function NetUITree()
{
    this.imgExpandName = "/resources/images/handledownlast.gif";
    this.imgCollapseName = "/resources/images/handlerightlast.gif";
}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (BEEHIVE-138) The netui-tree.js has harcoded expansion images

Posted by "Jeremiah Johnson (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-138?page=comments#action_57485 ]
     
Jeremiah Johnson commented on BEEHIVE-138:
------------------------------------------

This issue is reproduced in when runAtClient is set on the tree.  Even if the image root isn't explicitly set, the hard-coding is a problem because it uses a different path than the default image root.

The simplest work-around for users using the default images is to ensure that the web application contains the following:

/resources/beehive/version1/images
  folder_16_pad.gif
  handledownlast.gif
  handledownmiddle.gif
  handlerightlast.gif
  handlerightmiddle.gif
  linelastnode.gif
  linemiddlenode.gif
  linevertical.gif
  spacer.gif
/resources/images
  handledownlast.gif
  handlerightlast.gif

Note the duplicates of handledownlast.gif and handlerightlast.gif.

- jeremiah

> The netui-tree.js has harcoded expansion images
> -----------------------------------------------
>
>          Key: BEEHIVE-138
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-138
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Firefox 1.0 on xp.
>     Reporter: Tim Noonan
>     Assignee: Daryl Olander

>
> The netui-tree.js has harcoded expansion images.
> If you are using the netui tree tag and are specifying an images directory at runtime when you collapse the root node it cannot find the imageHandleDownLast gif if specified.
> <beehive:tree dataSource="pageInput.tree"
>                             selectionAction="select" tagId="tree" runAtClient="true"
>                             imageRoot="/tools/framework/skins/wlp-tools/images"
>                             imageHandleRightLast="minus.gif"
>                             imageHandleRightMiddle="minus.gif"
>                             imageHandleDownLast="minus.gif"
>                             imageHandleDownMiddle="minus.gif"
>                             imageLineMiddle="join.gif"
>                             imageLineVertical="line.gif"
>                             imageLineLast="joinbottom.gif"/>
> --From netui-script.js--
> ///////////////////////////////// Tree //////////////////////////
> function NetUITree()
> {
>     this.imgExpandName = "/resources/images/handledownlast.gif";
>     this.imgCollapseName = "/resources/images/handlerightlast.gif";
> }

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-138) The netui-tree.js has harcoded expansion images

Posted by "Karen Stutesman (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-138?page=history ]

Karen Stutesman reassigned BEEHIVE-138:
---------------------------------------

    Assign To: Krista Baker  (was: Karen Stutesman)

> The netui-tree.js has harcoded expansion images
> -----------------------------------------------
>
>          Key: BEEHIVE-138
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-138
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Firefox 1.0 on xp.
>     Reporter: Tim Noonan
>     Assignee: Krista Baker

>
> The netui-tree.js has harcoded expansion images.
> If you are using the netui tree tag and are specifying an images directory at runtime when you collapse the root node it cannot find the imageHandleDownLast gif if specified.
> <beehive:tree dataSource="pageInput.tree"
>                             selectionAction="select" tagId="tree" runAtClient="true"
>                             imageRoot="/tools/framework/skins/wlp-tools/images"
>                             imageHandleRightLast="minus.gif"
>                             imageHandleRightMiddle="minus.gif"
>                             imageHandleDownLast="minus.gif"
>                             imageHandleDownMiddle="minus.gif"
>                             imageLineMiddle="join.gif"
>                             imageLineVertical="line.gif"
>                             imageLineLast="joinbottom.gif"/>
> --From netui-script.js--
> ///////////////////////////////// Tree //////////////////////////
> function NetUITree()
> {
>     this.imgExpandName = "/resources/images/handledownlast.gif";
>     this.imgCollapseName = "/resources/images/handlerightlast.gif";
> }

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-138) The netui-tree.js has harcoded expansion images

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/BEEHIVE-138?page=history ]

Daryl Olander reassigned BEEHIVE-138:
-------------------------------------

    Assign To: Daryl Olander

> The netui-tree.js has harcoded expansion images
> -----------------------------------------------
>
>          Key: BEEHIVE-138
>          URL: http://nagoya.apache.org/jira/browse/BEEHIVE-138
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Firefox 1.0 on xp.
>     Reporter: Tim Noonan
>     Assignee: Daryl Olander

>
> The netui-tree.js has harcoded expansion images.
> If you are using the netui tree tag and are specifying an images directory at runtime when you collapse the root node it cannot find the imageHandleDownLast gif if specified.
> <beehive:tree dataSource="pageInput.tree"
>                             selectionAction="select" tagId="tree" runAtClient="true"
>                             imageRoot="/tools/framework/skins/wlp-tools/images"
>                             imageHandleRightLast="minus.gif"
>                             imageHandleRightMiddle="minus.gif"
>                             imageHandleDownLast="minus.gif"
>                             imageHandleDownMiddle="minus.gif"
>                             imageLineMiddle="join.gif"
>                             imageLineVertical="line.gif"
>                             imageLineLast="joinbottom.gif"/>
> --From netui-script.js--
> ///////////////////////////////// Tree //////////////////////////
> function NetUITree()
> {
>     this.imgExpandName = "/resources/images/handledownlast.gif";
>     this.imgCollapseName = "/resources/images/handlerightlast.gif";
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-138) The netui-tree.js has harcoded expansion images

Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-138?page=history ]
     
Krista Baker closed BEEHIVE-138:
--------------------------------


Verified that the expand and contract images are no longer hard-coded in netui-tree.js.

> The netui-tree.js has harcoded expansion images
> -----------------------------------------------
>
>          Key: BEEHIVE-138
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-138
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Firefox 1.0 on xp.
>     Reporter: Tim Noonan
>     Assignee: Krista Baker

>
> The netui-tree.js has harcoded expansion images.
> If you are using the netui tree tag and are specifying an images directory at runtime when you collapse the root node it cannot find the imageHandleDownLast gif if specified.
> <beehive:tree dataSource="pageInput.tree"
>                             selectionAction="select" tagId="tree" runAtClient="true"
>                             imageRoot="/tools/framework/skins/wlp-tools/images"
>                             imageHandleRightLast="minus.gif"
>                             imageHandleRightMiddle="minus.gif"
>                             imageHandleDownLast="minus.gif"
>                             imageHandleDownMiddle="minus.gif"
>                             imageLineMiddle="join.gif"
>                             imageLineVertical="line.gif"
>                             imageLineLast="joinbottom.gif"/>
> --From netui-script.js--
> ///////////////////////////////// Tree //////////////////////////
> function NetUITree()
> {
>     this.imgExpandName = "/resources/images/handledownlast.gif";
>     this.imgCollapseName = "/resources/images/handlerightlast.gif";
> }

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-138) The netui-tree.js has harcoded expansion images

Posted by "Daryl Olander (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-138?page=history ]
     
Daryl Olander resolved BEEHIVE-138:
-----------------------------------

     Assign To: Alejandro Ramirez  (was: Daryl Olander)
    Resolution: Fixed

This is now fixed.  Basically, up to this point, the images where hardwired in the netui-tree.js file.  The change involved dynamically generating the images on a per-tree basis.  This required adding state for each tree as part of the initialization of the tree.  The state is used by the expand/collapses JavaScript to set the proper tree.

I've verified this with a tree that overrides the expand/contract images  with a single tree on a page and a test with two trees on the page, where the second tree uses the default images.

BVTs: coreWeb/tree/image and coreWeb/tree/image2

> The netui-tree.js has harcoded expansion images
> -----------------------------------------------
>
>          Key: BEEHIVE-138
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-138
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Firefox 1.0 on xp.
>     Reporter: Tim Noonan
>     Assignee: Alejandro Ramirez

>
> The netui-tree.js has harcoded expansion images.
> If you are using the netui tree tag and are specifying an images directory at runtime when you collapse the root node it cannot find the imageHandleDownLast gif if specified.
> <beehive:tree dataSource="pageInput.tree"
>                             selectionAction="select" tagId="tree" runAtClient="true"
>                             imageRoot="/tools/framework/skins/wlp-tools/images"
>                             imageHandleRightLast="minus.gif"
>                             imageHandleRightMiddle="minus.gif"
>                             imageHandleDownLast="minus.gif"
>                             imageHandleDownMiddle="minus.gif"
>                             imageLineMiddle="join.gif"
>                             imageLineVertical="line.gif"
>                             imageLineLast="joinbottom.gif"/>
> --From netui-script.js--
> ///////////////////////////////// Tree //////////////////////////
> function NetUITree()
> {
>     this.imgExpandName = "/resources/images/handledownlast.gif";
>     this.imgCollapseName = "/resources/images/handlerightlast.gif";
> }

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-138) The netui-tree.js has harcoded expansion images

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-138?page=history ]

Alejandro Ramirez reassigned BEEHIVE-138:
-----------------------------------------

    Assign To: Karen Stutesman  (was: Alejandro Ramirez)

Please verify


> The netui-tree.js has harcoded expansion images
> -----------------------------------------------
>
>          Key: BEEHIVE-138
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-138
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Firefox 1.0 on xp.
>     Reporter: Tim Noonan
>     Assignee: Karen Stutesman

>
> The netui-tree.js has harcoded expansion images.
> If you are using the netui tree tag and are specifying an images directory at runtime when you collapse the root node it cannot find the imageHandleDownLast gif if specified.
> <beehive:tree dataSource="pageInput.tree"
>                             selectionAction="select" tagId="tree" runAtClient="true"
>                             imageRoot="/tools/framework/skins/wlp-tools/images"
>                             imageHandleRightLast="minus.gif"
>                             imageHandleRightMiddle="minus.gif"
>                             imageHandleDownLast="minus.gif"
>                             imageHandleDownMiddle="minus.gif"
>                             imageLineMiddle="join.gif"
>                             imageLineVertical="line.gif"
>                             imageLineLast="joinbottom.gif"/>
> --From netui-script.js--
> ///////////////////////////////// Tree //////////////////////////
> function NetUITree()
> {
>     this.imgExpandName = "/resources/images/handledownlast.gif";
>     this.imgCollapseName = "/resources/images/handlerightlast.gif";
> }

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira