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ń<[email protected]>:


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

Reply via email to