Discussion:
OmniFaces CombinedResourceHandler
Matthew Broadhead
2017-11-09 15:42:31 UTC
Permalink
Hi,

I am using TomEE 7.0.3 Plus (MyFaces 2.2.11).  I have tried different
OmniFaces versions particularly 1.14 and 2.4.

There seems to be a problem with using OmniFaces CombinedResourceHandler
with MyFaeces.  CombinedResourceHandler bundles all js and css resources
to reduce browser load times by reducing hits on the server.

There is a test project at https://github.com/chongma/test.  I use the
Eclipse IDE and deploy the project onto a TomEE 7.0.3 Plus server.  It
currently works as expected with extra dependencies:
<dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>2.2.13</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>2.2.13</version>
            <scope>runtime</scope>
        </dependency>
which switch it to Mojarra.  If you remove these dependencies then the
CombinedResourceHandler does not work anymore.

Regards,
Matthew
Matthew Broadhead
2017-11-09 15:52:05 UTC
Permalink
sorry i meant to send this to the MyFaces list
Post by Matthew Broadhead
Hi,
I am using TomEE 7.0.3 Plus (MyFaces 2.2.11).  I have tried different
OmniFaces versions particularly 1.14 and 2.4.
There seems to be a problem with using OmniFaces
CombinedResourceHandler with MyFaeces.  CombinedResourceHandler
bundles all js and css resources to reduce browser load times by
reducing hits on the server.
There is a test project at https://github.com/chongma/test.  I use the
Eclipse IDE and deploy the project onto a TomEE 7.0.3 Plus server.  It
<dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>2.2.13</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>2.2.13</version>
            <scope>runtime</scope>
        </dependency>
which switch it to Mojarra.  If you remove these dependencies then the
CombinedResourceHandler does not work anymore.
Regards,
Matthew
Loading...