You could do something like this:
   RenderingContext rc = RenderingContext.getCurrentInstance();
   Skin skin = rc.getSkin();
   if (skin != null)
   {
       Icon icon = skin.getIcon("af|selectManyChoice::dropdown-icon");
       if (icon != null)
       {
Object url = icon.getImageURI(FacesContext.getCurrentInstance(), rc);
           return url;

       }
   }

Renzo Tomaselli wrote:
Hi, while it's fairly elegant to have tr:icon picking up actual image contents through skin redirection, I wonder if this can be generalized. Specifically, components such as tr:commandNavigationItem have an icon attribute, but it wants the image uri straightaway. Is there any way to get it through EL and then from skin (css) on the java side ?
Thanks -- Renzo

Reply via email to