The IPageSource is responsible for caching. I would suggest an "interceptor" pattern, where you create a new implementation of the IPageSource interface that delegates to the DefaultPageSource implementation.
You can then override method releasePage() to simply discard Portal-ized pages. Another option would be to store Portalized pages in -- [EMAIL PROTECTED] http://tapestry.sf.net > How would I go about discarding the portalized pages?? Or more precisely, > is there a way to control if a page is cached or not on a page by page > basis?? What I want to do is only generate those pages that the system > knows are portals, and pass off to the superclass version if they are not a > portal page. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:hlship@;attbi.com] > Sent: Monday, October 21, 2002 2:46 PM > To: [EMAIL PROTECTED] > Cc: Tapestry Developer > Subject: Re: [Tapestry-developer] Overriding the Template and HTML > Source > > > Tricky but doable. > > Override SimpleEngine's createPageSource() and > createTemplateSource() methods to provide your own > implementations. > > You may have to do something tricky with pooling as well > (perhaps discarding Portal-ized pages rather than > pooling them). If user's Bob and Fred hit the Portal > page, the system may get an instance customized from Bob > and try to use it with Fred which probably won't work. > You may need to encode some extra information into the > page name. > > > > -- > [EMAIL PROTECTED] > > http://tapestry.sf.net > > I am looking at building a Portal system and I want to be able to override > > the source for the JWC (page/jwc) and the HTML. I want to dynamically > > generate them on the fly based on XML data. What I am looking to do is > > change the default way that tapestry gets the HTML and JWC. Is this hard? > > How would I go about doing it? > > > > > > > > > > ------------------------------------------------------- > > This sf.net emial is sponsored by: Influence the future of > > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) > > program now. http://ad.doubleclick.net/clk;4699841;7576298;k? > > http://www.sun.com/javavote > > _______________________________________________ > > Tapestry-developer mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
