Skip to main content

developerWorks >  WebSphere  >  Forums  >  Portal and Portlet Development  >  developerWorks

Maximize a portlet by setting some paramter from Action class    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 1 - Pages: 1 - Last Post: Nov 23, 2009 10:37 AM Last Post By: jwbarnes
Learner

Posts: 21
Registered: Oct 09, 2007 05:24:11 AM
Maximize a portlet by setting some paramter from Action class
Posted: Nov 09, 2009 05:48:53 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi All
We are using Struts portlet. We need that the jsp to which we are forwarding from action class should be open in Maximize state. For this I think we need to set some parameter in the action class forwarding.

From the jsp if we are caaling any action then we have already set this using
<html:link forward="welcome" windowState="MAXIMIZED"/>

but we want to set this from the action Class as this is the first jsp we are calling from action class.

I read something to use -

com.ibm.portal.struts.common.PortletURIAttributes uriAttributes = new com.ibm.portal.struts.common.PortletURIAttributes();
uriAttributes.setWindowState(javax.portlet.WindowState.MAXIMIZED.toString());
apiUtils.createPortletURIWithStrutsURL(request,"/Welcome.do",uriAttributes);

but I am not sure how to use this to forward to particular action.
If anybody have any idea how to do this Please let me know.

Thanks
jwbarnes

Posts: 3,731
Registered: Sep 28, 2007 08:59:07 AM
Re: Maximize a portlet by setting some paramter from Action class
Posted: Nov 23, 2009 10:37:07 AM   in response to: Learner in response to: Learner's post
 
Click to report abuse...   Click to reply to this thread Reply
so in your actionclass you have an actionresponse, and with that you can set the windowstate


IBM Certified System Administrator -- WebSphere Portal V6.0, V5.1, V5.0
IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0

The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums