From jira-events at lists.jboss.org Mon Feb 13 05:54:01 2012 Content-Type: multipart/mixed; boundary="===============6298878834228961670==" MIME-Version: 1.0 From: =?utf-8?q?Luk=C3=A1=C5=A1_Fry=C4=8D_=28JIRA=29_=3Cjira-events_at_lists=2E?= =?utf-8?q?jboss=2Eorg=3E?= To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11974) Resource packaging does not work on MyFaces Date: Mon, 13 Feb 2012 05:54:00 -0500 Message-ID: <1187643565.855.1329130440997.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 204473284.35936.1328864588537.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============6298878834228961670== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11974?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12665994#com= ment-12665994 ] = Luk=C3=A1=C5=A1 Fry=C4=8D edited comment on RF-11974 at 2/13/12 5:52 AM: ---------------------------------------------------------- Here is the MyFaces interface for handling resources: http://myfaces.apache.org/shared20/myfaces-shared-core/apidocs/org/apache/m= yfaces/shared/renderkit/html/util/ResourceUtils.html Such interface should be made part of the specification. For RichFaces, I would recommend: * create new service for handling resources (similarly to MyFaces' {{Resour= ceUtils}}) ** detection of JSF runtime * hold by ServiceTracker = was (Author: lfryc): Here is the MyFaces interface for handling resources: http://myfaces.apache.org/shared20/myfaces-shared-core/apidocs/org/apache/m= yfaces/shared/renderkit/html/util/ResourceUtils.html Such interface should be made part of the specification. For RichFaces, I would recommend: * create new service for handling resources (similarly to MyFaces' {{Resour= ceUtils}}) * hold by ServiceTracker = > Resource packaging does not work on MyFaces > ------------------------------------------- > > Key: RF-11974 > URL: https://issues.jboss.org/browse/RF-11974 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Affects Versions: 4.2.0.CR1 > Environment: richfaces-4.2.0.CR1, myfaces-2.1.6, firefox 10 > Reporter: Rene O > Assignee: Luk=C3=A1=C5=A1 Fry=C4=8D > Labels: myfaces > > Was: Optimizing Resource Loading with RichFaces 4.2 doesn't work as expec= ted > If i use resource loading optimizing, the packed js resources are include= d multiple times, which is not the expected behaviour. > Here is a simple usecase: > {code:title=3Dsimplepage.xhtml} > > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:ui=3D"http://java.sun.com/jsf/facelets" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich" > > > > JSF Test = > > = > > > > Header > > Content > = > = > = > > {code} > {code:title=3Dweb.xml} > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://java.sun.com/xml/ns/javaee http://java.sun.c= om/xml/ns/javaee/web-app_2_5.xsd"> > jsftest web.xml = > = > > = > > javax.faces.PARTIAL_STATE_SAVING > true > = > = > > javax.faces.STATE_SAVING_METHOD > server > > = > > org.apache.myfaces.COMPRESS_STATE_IN_SESSION > true > > = > > org.apache.myfaces.SERIALIZE_STATE_IN_SESSION > true > > = > > org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION > 5 = > > = > = > > javax.faces.FACELETS_REFRESH_PERIOD > 2 > > = > > javax.faces.FACELETS_SKIP_COMMENTS > true > > = > > javax.faces.DEFAULT_SUFFIX > .xhtml > > = > > org.richfaces.resourceOptimization.enabled > true > > = > > org.richfaces.resourceOptimization.compressionStages > All > > = > > org.richfaces.resourceOptimization.packagingStages > All > > = > > Resource Servlet > org.richfaces.webapp.ResourceServlet > 1 > > = > > Resource Servlet > /org.richfaces.resources/* > > > FacesServlet > javax.faces.webapp.FacesServlet > 1 > > = > > FacesServlet > *.jsf > = > = > > 30 > > = > > > {code} > {code:title=3Dsource code of generated html} > > > JSF Test
> Header >
> Content >
= > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira = --===============6298878834228961670==--