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 "Dutertry, Nicolas" <Ni...@HRACCESS.com> on 2006/10/18 16:07:05 UTC
RE : Rendering a single portlet with Jetspeed 2
Hi,
I've got the same problem, the preferences are ignored when I use the
portlet-pipeline.
Actually the value of the preference I want to use is defined in the psml
file (with the tag <preference>). Perhaps should you look at this special
case ?
The ajax "window" api now works when I minimize a portlet but it still has
no effect when I try to restore the portlet to "normal" state.
I got the jetspeed source from svn today.
Any idea ?
--
Nicolas Dutertry
-----Message d'origine-----
De : David Sean Taylor [mailto:david@bluesunrise.com]
Envoyé : jeudi 12 octobre 2006 18:38
À : Jetspeed Users List
Objet : Re: Rendering a single portlet with Jetspeed 2
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: RE : Rendering a single portlet with Jetspeed 2
Posted by David Sean Taylor <da...@bluesunrise.com>.
Olivier VIGNON wrote:
>>
> Hello,
>
> I’ve progressed in my Ajax portal development thanks to your
> modifications. But I’ve still three questions that I can’t resolve:
>
> * What’s the way to add or remove a page using Ajax ?
There is no API for this written, yet
We will be getting to that soon
> * Edition submit using the “portlet pipeline” doesn’t seem to work.
> I’m using a post form with the “actionUrl” request attribute as
> action, but when I submit it I get a blank page
Take a look at pipelines.xml, there is a desktop-action-pipeline
Also review the Jetspeed Desktop, as it executes an action phase from
the clientside, and then executes the subsequent render phases for the
portlets on the page
> * The pipeline portlet doesn’t seem to use the PSML user’s
> preferences (it’s OK with the database ones)
>
I thought we fixed that a while back....
> Otherwise my customer is OK to share my code with the Open Source
> communities; so if you’re interested we’ll can see that when the project
> is finished.
Of course we are interested. Could you please review the Jetspeed
Desktop and compare your work with the svn head. In particular review
core.js, as it has quite a bit of nice functionality for client side
portlet rendering and aggregation
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: RE : Rendering a single portlet with Jetspeed 2
Posted by Olivier VIGNON <o....@laposte.net>.
David Sean Taylor wrote:
> Dutertry, Nicolas wrote:
>
>> Hi,
>>
>> I've got the same problem, the preferences are ignored when I use the
>> portlet-pipeline.
>> Actually the value of the preference I want to use is defined in the
>> psml
>> file (with the tag <preference>). Perhaps should you look at this
>> special
>> case ?
>>
>> The ajax "window" api now works when I minimize a portlet but it
>> still has
>> no effect when I try to restore the portlet to "normal" state.
>>
>> I got the jetspeed source from svn today.
>> Any idea ?
>>
> Have you logged on?
> Right now the API requires logging on for these operations (edit
> access to the page).
>
> I did this with the demo distribution (dp-7 is the pickanumber portlet):
>
> 1. login at http://localhost:8080/jetspeed/portal/
>
> 2. from another tab in browser:
> http://localhost:8080/jetspeed/ajaxapi?action=window&id=dp-7&state=minimized
>
>
> go back to /portal, see the portlet minimized
>
> 3. and then:
>
> http://localhost:8080/jetspeed/ajaxapi?action=window&id=dp-7&state=normal
>
> go back to /portal, see the portlet restored
>
> works for me
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
Hello,
I’ve progressed in my Ajax portal development thanks to your
modifications. But I’ve still three questions that I can’t resolve:
* What’s the way to add or remove a page using Ajax ?
* Edition submit using the “portlet pipeline” doesn’t seem to work.
I’m using a post form with the “actionUrl” request attribute as
action, but when I submit it I get a blank page
* The pipeline portlet doesn’t seem to use the PSML user’s
preferences (it’s OK with the database ones)
Otherwise my customer is OK to share my code with the Open Source
communities; so if you’re interested we’ll can see that when the project
is finished.
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: RE : Rendering a single portlet with Jetspeed 2
Posted by David Sean Taylor <da...@bluesunrise.com>.
Dutertry, Nicolas wrote:
> Hi,
>
> I've got the same problem, the preferences are ignored when I use the
> portlet-pipeline.
> Actually the value of the preference I want to use is defined in the psml
> file (with the tag <preference>). Perhaps should you look at this special
> case ?
>
> The ajax "window" api now works when I minimize a portlet but it still has
> no effect when I try to restore the portlet to "normal" state.
>
> I got the jetspeed source from svn today.
> Any idea ?
>
Have you logged on?
Right now the API requires logging on for these operations (edit access
to the page).
I did this with the demo distribution (dp-7 is the pickanumber portlet):
1. login at http://localhost:8080/jetspeed/portal/
2. from another tab in browser:
http://localhost:8080/jetspeed/ajaxapi?action=window&id=dp-7&state=minimized
go back to /portal, see the portlet minimized
3. and then:
http://localhost:8080/jetspeed/ajaxapi?action=window&id=dp-7&state=normal
go back to /portal, see the portlet restored
works for me
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org