portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yuhao (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-1209) The PortletURL's windowState property doesn't work in Desktop mode.
Date Wed, 25 Aug 2010 07:44:17 GMT

    [ https://issues.apache.org/jira/browse/JS2-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902333#action_12902333

yuhao commented on JS2-1209:

I have read these jetspeed2 sources,I found that the change of window state is accept by the
framework,but the client js code doesn't take any actions on processing  the window state
when the window state is changed through renderURL tag or actionURL tag.
the related work flow of   the  processing tag is like the follow:
if we click a link direct to an renderURL, the js code will send a request like 'http://localhost:8088/jetexpress/ajaxapi/main.psml?action=getactions&id=P-11"
It will get an xml response like these: 


then the dojo Object  jetspeed.om.PortletActionsCL(in javascript/jetspeed/desktop/core.js
or core.src.js)  invoke the notifysuccess method to process these response, in this  invoke
chain,the processPortletActionsResponse method,the  portlet.updateActions method will be invoked,but
it will not process the windowState but  change the button status according the windowState.

    If we want to resolve these problem,we can add some code in the  PortletActionsCL.
    the follow codes are my resolution ( add them to the bottom of PortletActionsCL.updateActions
      if( this.currentActionState=="minimized")
      else if (this.currentActionState=="normal")
	    else if (this.currentActionState=="maximized")
then,the portletWindow can be maximized or minimized after click a renderURL with specified
If Some body has another resolutions, hope to have a discuss.

> The PortletURL's windowState property doesn't work  in Desktop mode.
> --------------------------------------------------------------------
>                 Key: JS2-1209
>                 URL: https://issues.apache.org/jira/browse/JS2-1209
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Desktop
>    Affects Versions: 2.2.0
>         Environment: Jetspeed2.2.0, Tomcat 6.0, Oracle10g
>            Reporter: yuhao
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> When I want to maxmize an portletwindow through the PortletURL tag with a property windowState="maximized",I
found that it doesn't work properly in Desktop Mode. when I click a hyperlink which direct
to these renderURL or actionURL with windowState property, The ajax request is done properly,and
the action button has changed to restore icon, but actually, the portletWindow still stays
on its original size. 
> This problem doesn't disappear in Portal mode.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message