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 10:37:18 GMT

    [ 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


Mime
View raw message