[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634713#action_12634713
 ] 

Leonardo Uribe commented on TOMAHAWK-1341:
------------------------------------------

Since the file HtmlJSCookMenuTag.java is generated, it is not good practice to 
modify it

The problem comes from org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr:

    // Alternate locations (instead of using AddResource)
    String JAVASCRIPT_LOCATION         = 
"org.apache.myfaces.JAVASCRIPT_LOCATION";
    String IMAGE_LOCATION              = "org.apache.myfaces.IMAGE_LOCATION";
    String STYLE_LOCATION              = "org.apache.myfaces.STYLE_LOCATION";

Since in 1.1.7, all tag hierarchy is generated, this should look like this:

    // Alternate locations (instead of using AddResource)
    String JAVASCRIPT_LOCATION         = "javascriptLocation";
    String IMAGE_LOCATION              = "imageLocation";
    String STYLE_LOCATION              = "styleLocation";

The components affected are t:inputCalendar and t:jscookMenu (and a lot of 
sandbox components), but this should solve the problem for all related 
components.


> JS Cook Menu stylelocation no longer working on 1.1.7
> -----------------------------------------------------
>
>                 Key: TOMAHAWK-1341
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1341
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: JS Cook Menu
>    Affects Versions: 1.1.7
>         Environment: window Jboss Java 5 and tomahawk 1.1.7 for 1.2 jsf
>            Reporter: Joseph ONeil
>         Attachments: HtmlJSCookMenuTag.java
>
>
> The stylelocation in 1.16 allow me to set custom color to the menu this is no 
> longer and instead showing the default color
> <t:jscookMenu layout="hbr" theme="ThemeOffice" 
> styleLocation="/css/jscookmenu" >
> .....
> </t:jscookMenu>
>  Looking at the html source you can see how the href is being created note 
> Trade is the application name
> version 1.1.6 (Link is correct)
> link rel="stylesheet" href="/Trade/css/jscookmenu/ThemeOffice/theme.css" 
> type="text/css" />
> version .1.17
> <link rel="stylesheet" 
> href="/Trade/faces/extensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12222884/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.css"
>  type="text/css" />

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

Reply via email to