You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (Jira)" <de...@myfaces.apache.org> on 2021/03/15 18:21:00 UTC

[jira] [Commented] (TOMAHAWK-1685) ExtensionFilter not working for JSF 2.2

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

Mike Kienenberger commented on TOMAHAWK-1685:
---------------------------------------------

I hit similar issues when upgrading a MyFaces 1.x project to Myfaces 2.x.

 

You need to be using <h:head> instead of <head> in order for the <link> and <script> tags to be inserted into the head section of your generated html.

You should also be using <h:body> and not <body> tags.

 

Also, you no longer need to use the extension filter so far as I can tell, and should remove all references to it from your web.xml file.

 

> ExtensionFilter not working for JSF 2.2
> ---------------------------------------
>
>                 Key: TOMAHAWK-1685
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1685
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Calendar
>    Affects Versions: 1.1.14
>         Environment: JSF 2.2, Trinidad 2.2.1, Websphere Application Server 9
>            Reporter: Rajat
>            Priority: Blocker
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> org_apache_myfaces_PopupCalendar is not defined.
>  
> I've defined the ExtensionFilter - /faces/myExtensionResource/* and at runtime it should load in source /faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader -> calendar.HtmlCalendarRenderer while it is pointing to javax.faces.resource
> The HTML is missing this:
> {{<link rel="stylesheet" href="/DERO_WEB/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/15238805/calendar.HtmlCalendarRenderer/WH/theme.css" type="text/css" /> <link rel="stylesheet" href="/DERO_WEB/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/15238805/calendar.HtmlCalendarRenderer/DB/theme.css" type="text/css" /> <script type="text/javascript" src="/DERO_WEB/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/15238805/prototype.PrototypeResourceLoader/prototype.js"></script> <script type="text/javascript" src="/DERO_WEB/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/15238805/calendar.HtmlCalendarRenderer/date.js"></script> <script type="text/javascript" src="/DERO_WEB/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/15238805/calendar.HtmlCalendarRenderer/popcalendar.js">}}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)