OmniFaces CombinedResourceHandler

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

OmniFaces CombinedResourceHandler

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
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
Reply | Threaded
Open this post in threaded view
|

Re: OmniFaces CombinedResourceHandler

Thomas Andraschko-4
Hi,

i would ask the omnifaces guys about that - they know their
CombinedResourceHandler better then we do ;)

Regards,
Thomas

2017-11-09 16:51 GMT+01:00 Matthew Broadhead <[hidden email]
>:

> 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
>
Reply | Threaded
Open this post in threaded view
|

Re: OmniFaces CombinedResourceHandler

Matthew Broadhead
i have already posted the same on stack overflow with omnifaces tag. 
there must be something fundamentally different between Mojarra and
MyFaces for this to be happening?  shouldn't they behave more or less
the same?

On 09/11/2017 16:58, Thomas Andraschko wrote:

> Hi,
>
> i would ask the omnifaces guys about that - they know their
> CombinedResourceHandler better then we do ;)
>
> Regards,
> Thomas
>
> 2017-11-09 16:51 GMT+01:00 Matthew Broadhead <[hidden email]
>> :
>> 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
>>

Reply | Threaded
Open this post in threaded view
|

Re: OmniFaces CombinedResourceHandler

Thomas Andraschko-4
You can also create a issue on their github project.

Yes, "more or less" :D
Not every small bit is defined in the specs, so in some parts their might
be some small differences.
Also the CombinedResourceHandler is not just a small component like a
inputText, it heavily changes the resources and many of these used features
are now specified now in the JSF 2.3 specs.
So OmniFaces already used some JSF impl hacks here in pre JSF 2.3
environments.

2017-11-09 17:28 GMT+01:00 Matthew Broadhead <[hidden email]
>:

> i have already posted the same on stack overflow with omnifaces tag.
> there must be something fundamentally different between Mojarra and MyFaces
> for this to be happening?  shouldn't they behave more or less the same?
>
>
> On 09/11/2017 16:58, Thomas Andraschko wrote:
>
>> Hi,
>>
>> i would ask the omnifaces guys about that - they know their
>> CombinedResourceHandler better then we do ;)
>>
>> Regards,
>> Thomas
>>
>> 2017-11-09 16:51 GMT+01:00 Matthew Broadhead <
>> [hidden email]
>>
>>> :
>>> 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
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: OmniFaces CombinedResourceHandler

Matthew Broadhead
so this feature is available in 2.3?  how will we configure it?  i think
TomEE 8 will ship with 2.3 although it is in the early stages

On 09/11/2017 17:38, Thomas Andraschko wrote:

> You can also create a issue on their github project.
>
> Yes, "more or less" :D
> Not every small bit is defined in the specs, so in some parts their might
> be some small differences.
> Also the CombinedResourceHandler is not just a small component like a
> inputText, it heavily changes the resources and many of these used features
> are now specified now in the JSF 2.3 specs.
> So OmniFaces already used some JSF impl hacks here in pre JSF 2.3
> environments.
>
> 2017-11-09 17:28 GMT+01:00 Matthew Broadhead <[hidden email]
>> :
>> i have already posted the same on stack overflow with omnifaces tag.
>> there must be something fundamentally different between Mojarra and MyFaces
>> for this to be happening?  shouldn't they behave more or less the same?
>>
>>
>> On 09/11/2017 16:58, Thomas Andraschko wrote:
>>
>>> Hi,
>>>
>>> i would ask the omnifaces guys about that - they know their
>>> CombinedResourceHandler better then we do ;)
>>>
>>> Regards,
>>> Thomas
>>>
>>> 2017-11-09 16:51 GMT+01:00 Matthew Broadhead <
>>> [hidden email]
>>>
>>>> :
>>>> 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
>>>>
>>>>

Reply | Threaded
Open this post in threaded view
|

Re: OmniFaces CombinedResourceHandler

Thomas Andraschko-4
No it isn't. JSF2.3 defines how resources can be "manipulated" - Thats what
i meant :)

2017-11-09 18:24 GMT+01:00 Matthew Broadhead <[hidden email]
>:

> so this feature is available in 2.3?  how will we configure it?  i think
> TomEE 8 will ship with 2.3 although it is in the early stages
>
>
> On 09/11/2017 17:38, Thomas Andraschko wrote:
>
>> You can also create a issue on their github project.
>>
>> Yes, "more or less" :D
>> Not every small bit is defined in the specs, so in some parts their might
>> be some small differences.
>> Also the CombinedResourceHandler is not just a small component like a
>> inputText, it heavily changes the resources and many of these used
>> features
>> are now specified now in the JSF 2.3 specs.
>> So OmniFaces already used some JSF impl hacks here in pre JSF 2.3
>> environments.
>>
>> 2017-11-09 17:28 GMT+01:00 Matthew Broadhead <
>> [hidden email]
>>
>>> :
>>> i have already posted the same on stack overflow with omnifaces tag.
>>> there must be something fundamentally different between Mojarra and
>>> MyFaces
>>> for this to be happening?  shouldn't they behave more or less the same?
>>>
>>>
>>> On 09/11/2017 16:58, Thomas Andraschko wrote:
>>>
>>> Hi,
>>>>
>>>> i would ask the omnifaces guys about that - they know their
>>>> CombinedResourceHandler better then we do ;)
>>>>
>>>> Regards,
>>>> Thomas
>>>>
>>>> 2017-11-09 16:51 GMT+01:00 Matthew Broadhead <
>>>> [hidden email]
>>>>
>>>> :
>>>>> 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
>>>>>
>>>>>
>>>>>
>