myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Yee (JIRA)" <...@myfaces.apache.org>
Subject [jira] Issue Comment Edited: (TRINIDAD-948) the tr:commandNavigationItem does not handle leading "//" in the icon attribute to mean that the path is absolute
Date Thu, 20 Mar 2008 12:37:24 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580735#action_12580735
] 

ryee edited comment on TRINIDAD-948 at 3/20/08 5:36 AM:
---------------------------------------------------------------

I am using the commandNavigationItem as a child of  navigationPane which itself is a child
of panelPageHeader.


  <tr:panelPageHeader inlineStyle="background-image:url('/webdoes/components/images/topnav_stripes.gif')">
    <f:facet name="branding">
    </f:facet>
    <f:facet name="navigationGlobal">
      <tr:navigationPane hint="buttons" var="menu1Item" value="#{menuModel_main.model}"
                      level="0"
                      inlineStyle="padding:0em 0em 0.5em">
        <f:facet name="nodeStamp">
          <tr:commandNavigationItem text="#{menu1Item.label}"
                              accessKey="#{menu1Item.accessKey}"
                              action="#{menu1Item.getOutcome}"
                              useWindow="#{menu_enrollment.useWindow}"
                              windowWidth="#{menu_enrollment.windowWidth}"
                              windowHeight="#{menu_enrollment.windowHeight}"

                              icon="#{menu1Item.icon}"

                              rendered="#{menu1Item.type == 'global'}"/>
        </f:facet>
      </tr:navigationPane>
    </f:facet>

  </tr:panelPageHeader>



#{menu1Item.icon} resolves to something like: //myApp/components/images/logoff.gif  

/myApp/components/images/logoff.gif   is the location of the  image file which is also on
a separate web server from the application server. The URL for the application server is /appj/myApp/




      was (Author: ryee):
    I am using the commandNavigationItem as a child of  panelPageHeader.


  <tr:panelPageHeader inlineStyle="background-image:url('/webdoes/components/images/topnav_stripes.gif')">
    <f:facet name="branding">
    </f:facet>
    <f:facet name="navigationGlobal">
      <tr:navigationPane hint="buttons" var="menu1Item" value="#{menuModel_main.model}"
                      level="0"
                      inlineStyle="padding:0em 0em 0.5em">
        <f:facet name="nodeStamp">
          <tr:commandNavigationItem text="#{menu1Item.label}"
                              accessKey="#{menu1Item.accessKey}"
                              action="#{menu1Item.getOutcome}"
                              useWindow="#{menu_enrollment.useWindow}"
                              windowWidth="#{menu_enrollment.windowWidth}"
                              windowHeight="#{menu_enrollment.windowHeight}"

                              icon="#{menu1Item.icon}"

                              rendered="#{menu1Item.type == 'global'}"/>
        </f:facet>
      </tr:navigationPane>
    </f:facet>

  </tr:panelPageHeader>



#{menu1Item.icon} resolves to something like: //myApp/components/images/logoff.gif  

/myApp/components/images/logoff.gif   is the location of the  image file which is also on
a separate web server from the application server. The URL for the application server is /appj/myApp/



  
> the tr:commandNavigationItem does not handle leading "//" in the icon attribute to mean
that the path is absolute
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-948
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-948
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.5-core
>         Environment: MyFaces 1.1.5,  Trinidad 1.0.5
>            Reporter: Richard Yee
>            Priority: Minor
>             Fix For: 1.0.5-core
>
>
> The commandNavigationItem doesn't use the same API as tr:image uses to handle the "source"
attribute.  The "//" should indicate that the path is an absolute path.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message