Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@www.apache.org Received: (qmail 34111 invoked from network); 1 Apr 2004 17:22:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Apr 2004 17:22:51 -0000 Received: (qmail 63472 invoked by uid 500); 1 Apr 2004 17:22:42 -0000 Delivered-To: apmail-jakarta-jetspeed-dev-archive@jakarta.apache.org Received: (qmail 63451 invoked by uid 500); 1 Apr 2004 17:22:42 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 63438 invoked by uid 500); 1 Apr 2004 17:22:42 -0000 Received: (qmail 63435 invoked by uid 500); 1 Apr 2004 17:22:42 -0000 Received: (qmail 63432 invoked from network); 1 Apr 2004 17:22:42 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 1 Apr 2004 17:22:42 -0000 Received: (qmail 34096 invoked by uid 1265); 1 Apr 2004 17:22:48 -0000 Date: 1 Apr 2004 17:22:48 -0000 Message-ID: <20040401172248.34095.qmail@minotaur.apache.org> From: taylor@apache.org To: jakarta-jetspeed-2-cvs@apache.org Subject: cvs commit: jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/apps/pam PortletApplicationBrowser.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N taylor 2004/04/01 09:22:48 Modified: applications/pam/src/java/org/apache/jetspeed/apps/pam PortletApplicationBrowser.java Log: testing out PortletMode and WindowState PR: Obtained from: Submitted by: Reviewed by: CVS: ---------------------------------------------------------------------- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Revision Changes Path 1.5 +6 -2 jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/apps/pam/PortletApplicationBrowser.java Index: PortletApplicationBrowser.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/apps/pam/PortletApplicationBrowser.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- PortletApplicationBrowser.java 8 Mar 2004 00:05:43 -0000 1.4 +++ PortletApplicationBrowser.java 1 Apr 2004 17:22:48 -0000 1.5 @@ -25,10 +25,12 @@ import javax.portlet.PortletConfig; import javax.portlet.PortletContext; import javax.portlet.PortletException; +import javax.portlet.PortletMode; import javax.portlet.PortletRequestDispatcher; import javax.portlet.PortletURL; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; +import javax.portlet.WindowState; //import org.apache.jetspeed.cps.util.Streams; @@ -76,7 +78,9 @@ PortletURL url = response.createRenderURL(); PortletURL actionUrl = response.createActionURL(); - + url.setWindowState(WindowState.MAXIMIZED); + actionUrl.setPortletMode(PortletMode.EDIT); + // url.addParameter("test", "value"); response.getWriter().println("
Init Param 'Template' = " + this.getInitParameter("template") + ""); --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org