This content has been marked as final.
Show 1 reply
-
1. Re: rich tree <rich:treeNode icon=
aleeuwen Dec 13, 2007 6:00 AM (in response to jak.wei)"jak.wei" wrote:
in the IE browser the icon display is ok ,
but use the firefox browser the icon not display ;public String getIcon() { String icon=""; if ("P".equals(getObjectType())) icon="images\\ico_page.gif"; if("M".equals(getObjectType())) icon="images\\ico_menu.gif"; if("I".equals(getObjectType())) icon="images\\ico_contral.gif"; if("T".equals(getObjectType())) icon="images\\ico_table.gif"; return icon; }
You probably need to use forward slashes to return the icon. Since it eventually will be part of an source attribute somewhere. So:icon="images/ico_table.gif";