Customizing PageRecorder

Andrus <[email protected]> Sat, 08 Feb 2003 13:13:28 -0500
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <[email protected]>
[Tapestry 2.3 Beta 1]

I am having problems with SimplePageRecorder. 
PageRecorder.persistValue(Object value) checks if an object is an 
EJBObject. This means that I need J2EE libraries in my CLASSPATH. My 
application has no reliance on EJB and I really do not want to add the EJB 
jars to the app.

So I tried subclassing SimplePageRecorder to avoid such check. This turned 
to be hard. Subclassing SimpleEngine that stores and insatiates recorders 
is impossible due to the fact that "recorders" map is private. Subclassing 
AbstractEngine requires copying lots of redundant code from SimpleEngine...

Any other ways to install custom recorders?

And a general question. Why is there so many private ivars in Tapestry 
classes? This makes it extremely hard to customize. Of course I understand 
the desire of developers to hide as much internals from the users as 
possible to have the freedom of changing things, oh well...

Andrus 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com