You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "yuhao (JIRA)" <je...@portals.apache.org> on 2010/08/25 04:56:15 UTC

[jira] Created: (JS2-1209) The PortletURL's windowState property doesn't work in Desktop mode.

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


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


[jira] Commented: (JS2-1209) The PortletURL's windowState property doesn't work in Desktop mode.

Posted by "yuhao (JIRA)" <je...@portals.apache.org>.
    [ 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: 

<js>
    <status>success</status>
    <action>getactions</action>
	    <action>....</action>
                           ......
                           .......
    <id>P-11</id>
</js>

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 method)
      if( this.currentActionState=="minimized")
      {   
            this.getPWin().minimizeWindow();
      }
      else if (this.currentActionState=="normal")
      {   
             this.getPWin().restoreWindow();
      }
	    else if (this.currentActionState=="maximized")
      {
            this.getPWin().maximizeWindow();
      }
then,the portletWindow can be maximized or minimized after click a renderURL with specified windowState.
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


[jira] Commented: (JS2-1209) The PortletURL's windowState property doesn't work in Desktop mode.

Posted by "yuhao (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902372#action_12902372 ] 

yuhao commented on JS2-1209:
----------------------------

After a day's test,I found the previous resolution has some influencing to the jetspeed framework, it will cause the portlet window maxmize and minimize button doesn't work properly.

Now I have a new resolution:
replace the js soruce:    

jetspeed.om.Portlet 's method: updateActions:

updateActions:function(actions,currentActionState,currentActionMode){
if(actions){
this.actions=actions;
}else{
this.actions={};
}

/*add to change the portletwindow state*/
var pw_currentState=this.getPWin().windowState;
var jsObj_1=jetspeed;
	if(pw_currentState!=currentActionState){
			if (currentActionState=="minimized")
      {   
            this.getPWin().minimizeWindow();
              this.renderAction("minimized");
      }
      else if (currentActionState=="normal")
      {   
            this.getPWin().restoreWindow();
            this.renderAction("normal");
      }
   else if (currentActionState=="maximized")
      {
            this.getPWin().maximizeWindow();
             this.renderAction("maximized");
      }
    }

this.currentActionState=currentActionState;
this.currentActionMode=curretntActionMode;


this.syncActions();
}

> 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