netui:tree RunAtClient alt image descriptions are not updated
-------------------------------------------------------------

         Key: BEEHIVE-520
         URL: http://issues.apache.org/jira/browse/BEEHIVE-520
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1Beta    
    Reporter: Krista Baker
 Assigned to: Daryl Olander 
 Attachments: Controller.jpf, J520.jsp

When using a netui:tree which is runAtClient, if the imageRoot or imageNames 
are improperly specified or do not exist, the alt attributes for the images are 
displayed.  These alt attribute values are not updated when a treeItem is 
expanded or collapsed.  These items are only updated when a postback or refresh 
occurs to the page.

Code snippet:
<netui:tree imageRoot="" runAtClient="true" dataSource....>
  <netui:treeItem><netui:treeLabel>one</netui:treeLabel>
    <netui:treeItem>two</netui:treeItem>
  </netui:treeItem>
</netui:tree>

When the tree is rendered, (assuming the images are not found at ""), Expand 
Tree Element is the alt attribute for the image nodeCollapsed.gif, if this alt 
image is selected (expand the tree to show treeItem two), the alt attribute 
remains the same as Expand Tree Element even though the image src changes to 
nodeExpanded.gif.  The alt attribute of the images should be updated when the 
images change and not just on a refresh of the page.

Netui:tree configurations affected:  All RunAtClient trees - static, dynamic, 
expandOnServer, etc.

See attached repro.

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

Reply via email to