myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: JSF + OSGi integration.
Date Tue, 14 Jun 2011 09:46:01 GMT
Hi,

Actually you should not directly use stuff from myfaces-impl (package
org.apache.myfaces.*). Theses classes are implementation specific and
not built for extensions!

If you need some base code, you should copy (or shade) it!

Regards,
Jakob

2011/6/14 Kamil Soboń <iso.poczta@gmail.com>:
> W dniu 2011-06-14 01:30, Jakob Korherr pisze:
>>
>> Hi,
>>
>> Nice stuff ;)
>>
>> I think JSF 2.1 might have the answer to your problem. Two new classes
>> were introduced: FaceletCache and FaceletCacheFactory (see [1] and
>> [2]). With a custom impl of those two you should be able to control
>> the caching behavior!
>>
>> Regards,
>> Jakob
>>
>> [1]
>> http://javaserverfaces.java.net/nonav/docs/2.1/javadocs/javax/faces/view/facelets/FaceletCache.html
>> [2]
>> http://javaserverfaces.java.net/nonav/docs/2.1/javadocs/javax/faces/view/facelets/FaceletCacheFactory.html
>>
>> 2011/6/13 Kamil Soboń<iso.poczta@gmail.com>:
>>
>
> I have encountered some problems.
> I have investigated default implementation of FaceleteCache
> (FaceletCacheImpl) that is caching DefaultFacelet.
> Natural solution for me to provide my smart Facelet caching system that is
> aware of OSGi is to extend FaceletCacheImpl and provide new implementation
> of needsToBeRefreshed(DefaultFacelet) method. But it is not possible due to
> the fact that both classes has default (package) access modifier. In order
> to have access in using this classes i should put my own new implementation
> in org.apache.myfaces.view.facelets.impl package. But OSGi is throwing
> IllegalAccessError.
> I also cannot provide new implementation of FaceletCache (that bases on
> FaceletCacheImpl - simply copy&paste) due to the fact I want to use
> DefaultFacelete, which has also default (package) access modifier.
>
> Here is my question: why those classes has default (not public) access level
> ?
>
> --
> Pozdrawiam,
> Kamil Soboń
>
> iso.poczta(at)gmail.com
> sobon(at)student.agh.edu.pl
>
>



-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at

Mime
View raw message