Author: bdaw
Date: 2007-01-26 09:22:05 -0500 (Fri, 26 Jan 2007)
New Revision: 6103
Modified:
trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java
Log:
- correct UserPortlet behaviour
Modified: trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java
===================================================================
--- trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java 2007-01-26
02:53:22 UTC (rev 6102)
+++ trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java 2007-01-26
14:22:05 UTC (rev 6103)
@@ -56,6 +56,7 @@
import javax.portlet.PortletURL;
import javax.portlet.WindowState;
import javax.portlet.WindowStateException;
+import javax.portlet.PortletMode;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashSet;
@@ -750,7 +751,8 @@
{
log.info("You didn't specify a default role in the portlet init
configuration, please refer to the documentation");
}
- resp.setRenderParameter("op", OP_SHOWREGISTER_TY);
+ //resp.setRenderParameter("op", OP_SHOWREGISTER_TY);
+ resp.setWindowState(WindowState.NORMAL);
}
catch (IllegalArgumentException e)
{
@@ -760,6 +762,10 @@
{
log.error("Cannot create user " + uname, e);
}
+ catch (WindowStateException e)
+ {
+ log.error("Normal window state not supported...");
+ }
}
else
{
Show replies by date