You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by David Sean Taylor <da...@bluesunrise.com> on 2006/10/03 03:19:20 UTC

Re: Rendering a single portlet with Jetspeed 2

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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 
> 
> 
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Rendering a single portlet with Jetspeed 2

Posted by David Sean Taylor <da...@bluesunrise.com>.
Olivier VIGNON wrote:
>>
> 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 cannot reproduce that one. Are you working against the SVN head?
The desktop uses the portlet pipeline, and preferences are working fine 
there as far as i can tell. Try this:

1. login as admin
2. navigate to the RSS page
3. modify the LHS RSS portlet, change the "url" pref to something new, like:

http://www.nytimes.com/services/xml/rss/nyt/Books.xml

4. Then goto:

http://localhost:8080/jetspeed/portlet/rss.psml?portlet=rss::RSS&entity=rss-102&encoder=desktop

You should get the new feed

5. Logout, again, goto

http://localhost:8080/jetspeed/portlet/rss.psml?portlet=rss::RSS&entity=rss-102&encoder=desktop

You should get the original NPR feed



> 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 !
> 

Just tested out the "window" api.
The "window" api is not working, seems I didn't complete the 
implementation. Just noticed that it updates the PSML, but doesn't set 
the transient portlet mode and window state
I'll get that fixed


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Rendering a single portlet with Jetspeed 2

Posted by Olivier VIGNON <o....@laposte.net>.
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: jetspeed-user-unsubscribe@portals.apache.org
>>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>>
>>> 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: jetspeed-user-unsubscribe@portals.apache.org
>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>> 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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Rendering a single portlet with Jetspeed 2

Posted by David Sean Taylor <da...@bluesunrise.com>.
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: jetspeed-user-unsubscribe@portals.apache.org
>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>>
>> 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: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
> 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




-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Rendering a single portlet with Jetspeed 2

Posted by Olivier VIGNON <o....@laposte.net>.
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: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>
> 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: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
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 ?

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org