David Sean Taylor wrote:

Olivier VIGNON wrote:

David Sean Taylor wrote:

Olivier VIGNON wrote:


Hi,

I'm customizing Jetspeed 2 in order to use Ajax and Drag and Drop, but I don't find the way to render just one portlet using different modes (view, edit, help), without its entire page. Can you help me ?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Example of rendering a single portlet in its current mode:

http://localhost:8080/jetspeed/portlet?portlet=j2-admin::LocaleSelector&entity=dp-3

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thank you very much, your example is very helpfull to render a lonely portlet. But now I'm looking for a way to change the portlet's current mode without reloading the whole page (maybe with a Web Service or a Jetspeed "action"...). I've tried several solutions but I didn't succeed.
Is there a way to do that ?

Yes. Most of the AJAX APIs (except the latest commits) are documented here, including the one you want.

http://portals.apache.org/jetspeed-2/guides/guide-ajax-api.html

http://localhost:8080/jetspeed/ajaxapi?action=window&state=maximized&mode=edit&id=um-2




Thanks but I'm still struggling !
I have installed the 2.1-dev version in order to use the last Ajax functionalities, I've changed my portlet mode with the "action=window" URL, and I've received a nice XML response which told me that everything was all right, but finally the portlet invocation still gave me the view mode. I've also noticed that the portlets prefences are totally ignored when using the portlet pipeline, even if I specify the PSML file. I've also tried the desktop pipeline to see how to call Ajax functions, but I didn't find the way to change the portlet's mode and the preferences are ignored too. So I wonder if the Ajax functionalities realy work yet... or if I've not understood the way to use them !


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to