0 Replies Latest reply on Dec 28, 2012 1:45 PM by plasmoid

    Strange behaviour from Resource lookup

    plasmoid

      I'm getting from strange behaviour when I try to use #{resources} to lookup a resource for a commandButton

       

       

      {code} <a4j:commandButton image="#{resource['lib/images:admin_icon_small.png']}" value="Button" />{code}

       

      What happens is that the HTML emitted by JSF is:

       

       

      {code}src="/MyApp/MyApp/faces/javax.faces.resource/admin_icon_small.png?ln=lib/images" {code}

       

      The problem seems to be that the application name is being used twice.  If I hand edit them to only appear once, then it works fine.

       

      Any ideas on why this is happening?