Hi,

On Feb 17, 2008 5:25 PM, Maik77 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I want to use some components with the icon-attribute
> (tr:commandNavigationItem and tr:panelPopup), but the icon is never
> rendered.
> The path to the image should be correct, because using a simple  tag with
> the same path is showing the image.
> Short example:
> <?xml version="1.0" encoding="UTF-8"?>
> <jsp:root xmlns="http://www.w3.org/1999/xhtml";
>         xmlns:jsp="http://java.sun.com/JSP/Page";
>         xmlns:f="http://java.sun.com/jsf/core";
>         xmlns:tr="http://myfaces.apache.org/trinidad";
>         version="2.0">
> <f:view>
>     <tr:document title="test">
>           <tr:form>
>                 <tr:commandNavigationItem text="test" 
> icon="/images/warn.gif"/>
>           </tr:form>
>     </tr:document>
>   </f:view>
> </jsp:root>
>
> The text is rendered, but not the icon.
> I'm using Trinidad 1.2.6 (old versions had the same prob) and Facelets
> 1.1.14.
>
> Do I have to configure something special, or what could be my fault?


checking the trinidad demos, it works
http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx

The source code:
http://example.irian.at/trinidad-demo-20080218/faces/components/commandNavigationItem.jspx.source

contains some commandNavigationItem that have an icon, like:

<tr:commandNavigationItem text="Icon Item"
  actionListener="#{demoCommandNavigationItem.navigationItemAction}"
  icon="/components/images/file.gif"
  partialSubmit="true"/>


make sure, that "warn.gif" is available via

http://server:port/context/images/warn.gif

thx,
Matthias

>
> --
> View this message in context: 
> http://www.nabble.com/-Trinidad--Icon-%28attribute%29-not-rendered-tp15530596p15530596.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Reply via email to