De : Andrew C. Oliver [mailto:[EMAIL PROTECTED]] > > Thanks! > > > > > - There's already a setContent() method implemented in the > AbstractPortlet > > that can be used to preload content (you still need to > deal with the JSP > > case) > > I think you're misunderstanding something. preLoad isn't intent on > creating anything that could be construed as "View". The idea is that > data that the view might depend upon can be loaded... > > So for instance... > > init > preload(RunData) { get stuff from the database } > getContent(RunData) { get the database stuff from the cache and > present it via Velocity JSP whatever... } >
OK, so you assume that the actual rendering is a low cost operation compared to data access. Seems fair. > > > > - the rendering is triggered by the use of JetspeedTool.getContent() > > > > Maybe you can implement your solution by writing a custom > PortletSet > > -- i'd like to do something that I can donate to jetspeed. > I'd rather > work collaboratively than create some nasty branch of my own. > It's not issue, the implementation is pluggable to allow this kind of customization. You just need to create a new PortalToolkit implementation that uses your custom PortletSet instead of the default BasePortletSet implementation. > > > > implementation that would create the content loading threads before > > invoking > > the controller to lay out the complete page. > > Should think about that... > > > > > A little custom logic in AbstractPortlet should be enough > to make sure > > that > > a background thread can get a lock on the portlet toset its content > > without > > allowing getContent() from being called from the main > request thread... > > Well it seems to me that getcontent should still do the view > and such. > preLoad should just be for fetching data, etc. > > Thanks for your help! I'll get hacking...this being a > hackathon and all! > Have a nice Con then and put your pictures of the event somewhere (I still have to upload mines of London 2000 and Santa Clara 2001 though :( ) -- Rapha�l Luta - [EMAIL PROTECTED] Jakarta Jetspeed - Enterprise Portal in Java http://jakarta.apache.org/jetspeed/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
