[ https://issues.apache.org/jira/browse/TOMAHAWK-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301841#comment-17301841 ]
Mike Kienenberger edited comment on TOMAHAWK-1685 at 3/15/21, 6:21 PM: ----------------------------------------------------------------------- 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 you should remove all references to it from your web.xml file. was (Author: mkienenb): 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)