Vitaly,
I had the same use case, but instead of left, it was right :).
Unfortunately, there is no easy way to do it. After some discussion with
David, it seems like it would be nice to have a method for JPT
(Jetspeed Power Tool) to render a "psml", currently there is a method
to render one portlet (if you have just one).
Anyways, the way you approached it by opening another connection,
although it does work but one cannot sync with the "current" page.
But, I did not like this approach (I used the portlet pipeline to render
the portlets in the rightColumn.psml).
Then I thought let me try to "read" the fixed psml (in the decorations),
and parse the portlets and use the jpt renderedContent to display
the portlets. I was able to do 1 and 2 but of course the renderedContent
failed miserably. I thought about feeding the PSML before the container
valve, but it would have required significant changes. I think it would
be nice to have a "include" psml feature, that would solve the problem.
Anyways, I ended up creating a new layout template, with the "fixed"
portlets in every page in the interest of time.
Sorry, I could not give a positive answer :)
Cheers
mohan
Vitaly Baranovsky wrote:
Hi!
I have big site. Site has left column that is identical for many
pages. Left column contains portlets. How can I make left column
identical for many pages?
I plan to use portlets in edit-defaults mode. So, preferences will be
stored via psml files.
My solution now is:
1) I've created page left_column.psml
2) I've put WebContent portlet at left of each page where I need left column
3) I've entered path to left_column.psml in "url" parameter of edit
mode of WebContent portlet.
So, for left column I use WebContent portlet, that gets
left_column.psml through http and displays it.
It looks like bad solution (to display portal page inside another
portal page using http connection).
I think, using Jetspeed API to render page would be better solution
(for example, something like renderPage(String sPageName) method), but
it looks like rendering of page is spread in many valves and there is
no such method in Jetspeed API.
Can someone recommend me a good solution?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]