amyroh 01/12/18 14:59:41 Modified: webapps/admin/WEB-INF/classes/org/apache/webapp/admin TreeControlTag.java Log: The selected node does not get highlighted when the node is selected. Made changes so that the tree also gets refreshed with each node selection, along with loading the appropriate content in the content frame. Submitted by Manveen Kaur. Revision Changes Path 1.6 +16 -4 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControlTag.java Index: TreeControlTag.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControlTag.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TreeControlTag.java 2001/12/16 19:38:02 1.5 +++ TreeControlTag.java 2001/12/18 22:59:41 1.6 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControlTag.java,v 1.5 2001/12/16 19:38:02 patrickl Exp $ - * $Revision: 1.5 $ - * $Date: 2001/12/16 19:38:02 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControlTag.java,v 1.6 2001/12/18 22:59:41 amyroh Exp $ + * $Revision: 1.6 $ + * $Date: 2001/12/18 22:59:41 $ * * ==================================================================== * @@ -104,7 +104,7 @@ * <strong>FIXME</strong> - Internationalize the exception messages! * * @author Craig R. McClanahan - * @version $Revision: 1.5 $ $Date: 2001/12/16 19:38:02 $ + * @version $Revision: 1.6 $ $Date: 2001/12/18 22:59:41 $ */ public class TreeControlTag extends TagSupport { @@ -397,6 +397,10 @@ String action = replace(getAction(), "${name}", encodedNodeName); + + String updateTreeAction = + replace(getAction(), "tree=${name}", "select=" + encodedNodeName); + out.print(" <td>"); if ((action != null) && !node.isLeaf()) { out.print("<a href=\""); @@ -448,6 +452,10 @@ out.print(target); out.print("\""); } + // to refresh the tree in the same 'self' frame + out.print(" onclick=\""); + out.print("self.location.href='" + updateTreeAction + "'"); + out.print("\""); out.print(">"); } out.print("<img src=\""); @@ -484,6 +492,10 @@ out.print(labelStyle); out.print("\""); } + // to refresh the tree in the same 'self' frame + out.print(" onclick=\""); + out.print("self.location.href='" + updateTreeAction + "'"); + out.print("\""); out.print(">"); } else if (labelStyle != null) { out.print("<span class=\"");
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>