gatein SVN: r3365 - in sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main: webapp/jsp and 1 other directory.
by do-not-reply@jboss.org
Author: david.borruat
Date: 2010-06-17 09:39:15 -0400 (Thu, 17 Jun 2010)
New Revision: 3365
Modified:
sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp
sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
Log:
jsphellouser
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-06-17 12:13:45 UTC (rev 3364)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-06-17 13:39:15 UTC (rev 3365)
@@ -38,11 +38,36 @@
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
{
- String sYourName = (String) request.getParameter("yourname");
- if (sYourName != null)
+ String sPage = (String) request.getParameter("page");
+ if (sPage != null)
{
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
+ if(sPage.equals("about")){
+
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/about.jsp");
+ prd.include(request, response);
+ }
+ else if(sPage.equals("fedora")){
+
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/fedora.html");
+ prd.include(request, response);
+ }
+ else
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/rh-logo.html");
+ prd.include(request, response);
+ }
+
+//
+// if(sPage.equals("about")){
+//
+// PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/about.html");
+// prd.include(request, response);
+// }
+
+
+
+
+
}
else
{
@@ -70,8 +95,8 @@
public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
UnavailableException
{
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
+ String sPage = (String) aRequest.getParameter("page");
+ aResponse.setRenderParameter("page", sPage);
}
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp 2010-06-17 12:13:45 UTC (rev 3364)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/hello.jsp 2010-06-17 13:39:15 UTC (rev 3365)
@@ -2,7 +2,7 @@
<portlet:defineObjects/>
-<div class="portlet-section-header">Remember we love you: <%= renderRequest.getParameter("yourname") %></div>
+<div class="portlet-section-header">Remember we love you: <%= renderRequest.getParameter("page") %></div>
<portlet:renderURL var="myRenderURL"/>
<br/>
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp 2010-06-17 12:13:45 UTC (rev 3364)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp 2010-06-17 13:39:15 UTC (rev 3365)
@@ -1,124 +1,31 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-<style type="text/css">
- body {
- background-color: #ddd;
- color: #222;
- font-family: Helvetica;
- font-size: 14px;
- margin: 0;
- padding: 0;
-
- text-align: justify;
- }
- #header {
- background-color: #ccc;
- background-image: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#999));
- border-color: #666;
- border-style: solid;
- border-width: 0 0 1px 0;
- }
- #header h1 {
- color: #222;
- font-size: 20px;
- font-weight: bold;
- margin: 0 auto;
- padding: 10px 0;
- text-align: center;
- text-shadow: 0px 1px 0px #fff;
-
- /* below for header ellipsis */
- max-width: 160px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
-
- }
- ul {
- list-style: none;
- margin: 10px;
- padding: 0;
- }
- ul li a {
- background-color: #FFF;
- border: 1px solid #999;
- color: #222;
- display: block;
- font-size: 17px;
- font-weight: bold;
- margin-bottom: -1px;
- padding: 12px 10px;
- text-decoration: none;
- }
- ul li:first-child a {
- -webkit-border-top-left-radius: 8px;
- -webkit-border-top-right-radius: 8px;
- }
- ul li:last-child a {
- -webkit-border-bottom-left-radius: 8px;
- -webkit-border-bottom-right-radius: 8px;
- }
- ul li a:active,ul li a:hover {
- /* background-color:blue;*/
- background-image: -webkit-gradient(linear, left top, left bottom, from(#5d87b1), to(#2c6aa9));
- color:white;
- }
- #content {
- padding: 10px;
- text-shadow: 0px 1px 0px #fff;
- }
- #content a {
- color: blue;
- }
-
- #progress {
- -webkit-border-radius: 10px;
- background-color: rgba(0,0,0,.7);
- color: white;
- font-size: 18px;
- font-weight: bold;
- height: 80px;
- left: 60px;
- line-height: 80px;
- margin: 0 auto;
- position: absolute;
- text-align: center;
- top: 120px;
- width: 200px;
- }
-
- #header div.leftButton {
- font-weight: bold;
- text-align: center;
- line-height: 28px;
- color: white;
- text-shadow: rgba(0,0,0,0.6) 0px -1px 0px;
- position: absolute;
- top: 7px;
- left: 6px;
- max-width: 50px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- border-width: 0 8px 0 14px;
- -webkit-border-image: url(../images/back_button.png) 0 8 0 14;
- -webkit-tap-highlight-color: rgba(0,0,0,0);
- }
-
- #header div.leftButton.clicked {
- -webkit-border-image: url(../images/back_button_clicked.png) 0 8 0 14;
- }
+<div class="portlet-section-header">Welcome !</div>
-</style>
+<br/>
+
+<div class="portlet-font">Welcome on the JSP Hello User portlet,
+my name is JBoss Portal. What's yours ?</div>
+
+<br/>
+
+<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
+<a href="<portlet:renderURL><portlet:param name="page" value="about"/></portlet:renderURL>">about</a>
+<a href="<portlet:renderURL><portlet:param name="page" value="fedora"/></portlet:renderURL>">fedora</a>
+<a href="<portlet:renderURL><portlet:param name="page" value="rhome"/></portlet:renderURL>">rhome</a>
+</div>
+<br/>
+
<div id="container">
<div id="header">
- <!--h2><a href="./">None</a></h2-->
+ <h2><a href="./">None</a></h2>
<div id="menu">
<ul>
- <li><a href="about.html">About Red Hat</a></li>
- <li><a href="rh-logo.html">Red Hat Logo</a></li>
- <li><a href="fedora.html">Fedora</a></li>
+ <li><a href="<portlet:renderURL><portlet:param name="page" value="about"/></portlet:renderURL>">about</a></li>
+ <li><a href="<portlet:renderURL><portlet:param name="page" value="fedora"/></portlet:renderURL>">fedora</a></li>
+ <li><a href="<portlet:renderURL><portlet:param name="page" value="rh-logo"/></portlet:renderURL>">rh-logo</a></li>
</ul>
</div>
+</div>
</div>
\ No newline at end of file
14 years, 6 months
gatein SVN: r3364 - in portal/trunk: webui/portal/src/main/java/org/exoplatform/portal/webui/navigation and 1 other directory.
by do-not-reply@jboss.org
Author: hoang_to
Date: 2010-06-17 08:13:45 -0400 (Thu, 17 Jun 2010)
New Revision: 3364
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UIGroupNavigationManagement.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/UIAddGroupNavigation.java
Log:
GTNPORTAL-1300:
Modified: portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UIGroupNavigationManagement.java
===================================================================
--- portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UIGroupNavigationManagement.java 2010-06-17 12:03:17 UTC (rev 3363)
+++ portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UIGroupNavigationManagement.java 2010-06-17 12:13:45 UTC (rev 3364)
@@ -335,15 +335,16 @@
}
uicomp.navigations.remove(navigation);
- // remove navigation from UIPortal
- UIPortal uiPortal = Util.getUIPortal();
- removeNavigationByID(uiPortal.getNavigations(), navigation);
-
+ // remove navigation from UIPortalApplication
+ UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
+ removeNavigationByID(uiPortalApp.getUserPortalConfig().getNavigations(), navigation);
+ removeNavigationByID(uiPortalApp.getNavigations(), navigation);
+
+
service.remove(navigation);
event.getRequestContext().addUIComponentToUpdateByAjax(uicomp);
//Update UserToolbarGroupPortlet
- UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChild(UIWorkingWorkspace.class);
uiWorkingWS.updatePortletsByName("UserToolbarGroupPortlet");
}
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/UIAddGroupNavigation.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/UIAddGroupNavigation.java 2010-06-17 12:03:17 UTC (rev 3363)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/UIAddGroupNavigation.java 2010-06-17 12:13:45 UTC (rev 3364)
@@ -23,6 +23,7 @@
import org.exoplatform.portal.application.PortalRequestContext;
import org.exoplatform.portal.config.DataStorage;
import org.exoplatform.portal.config.UserACL;
+import org.exoplatform.portal.config.UserPortalConfig;
import org.exoplatform.portal.config.UserPortalConfigService;
import org.exoplatform.portal.config.model.PageNavigation;
import org.exoplatform.portal.config.model.PortalConfig;
@@ -156,10 +157,10 @@
// create navigation for group
dataService.create(pageNav);
- // add navigation to UIPortal 's navigations
- UIPortal uiPortal = Util.getUIPortal();
- uiPortal.getNavigations().add(pageNav); //TODO: Reorder the list in term of navigation priority
-
+ uiPortalApp.getUserPortalConfig().getNavigations().add(0, pageNav);
+ uiPortalApp.getNavigations().add(0, pageNav);
+ uiPortalApp.localizeNavigations();
+
//Update group navigation list
ctx.addUIComponentToUpdateByAjax(uicomp);
14 years, 6 months
gatein SVN: r3363 - portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config.
by do-not-reply@jboss.org
Author: trong.tran
Date: 2010-06-17 08:03:17 -0400 (Thu, 17 Jun 2010)
New Revision: 3363
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java
Log:
GTNPORTAL-1289 It is not necessary to use CONTAINS in this case which may cause an exception with special characters
Modified: portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java
===================================================================
--- portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java 2010-06-17 10:57:46 UTC (rev 3362)
+++ portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java 2010-06-17 12:03:17 UTC (rev 3363)
@@ -314,8 +314,7 @@
"jcr:path LIKE '" + workspaceChunk + "/" + ownerTypeChunk + "/" + ownerIdChunk
+ "/mop:rootpage/mop:children/mop:pages/mop:children/%' AND " +
"(" +
- "LOWER(gtn:name) LIKE '%" + title + "%' OR CONTAINS(gtn:name,'" + title + "')" +
- ")";
+ "LOWER(gtn:name) LIKE '%" + title.toLowerCase() + "%')";
}
else
{
14 years, 6 months
gatein SVN: r3362 - portal/trunk/web/portal/src/main/webapp/groovy/webui/core.
by do-not-reply@jboss.org
Author: ndkhoiits
Date: 2010-06-17 06:57:46 -0400 (Thu, 17 Jun 2010)
New Revision: 3362
Modified:
portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl
Log:
GTNPORTAL-1329 Using replace method instead of replaceAll
Modified: portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl
===================================================================
--- portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl 2010-06-17 10:25:26 UTC (rev 3361)
+++ portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIPopupMessages.gtmpl 2010-06-17 10:57:46 UTC (rev 3362)
@@ -60,7 +60,7 @@
Object[] msgArguments = mess.getMessageAruments();
if(msgArguments != null && msgArguments.length > 0) {
for(i in 0..msgArguments.length-1){
- msgValue = msgValue.replaceAll("\\{" + i + "\\}", _ctx.appRes(msgArguments [i]));
+ msgValue = msgValue.replace("{" + i + "}", _ctx.appRes(msgArguments [i]));
}
}
println msgValue;
14 years, 6 months
gatein SVN: r3361 - portal/trunk/portlet/web/src/main/webapp/skin/portal/webui/component/UINavigationPortlet.
by do-not-reply@jboss.org
Author: thuy.nguyen
Date: 2010-06-17 06:25:26 -0400 (Thu, 17 Jun 2010)
New Revision: 3361
Modified:
portal/trunk/portlet/web/src/main/webapp/skin/portal/webui/component/UINavigationPortlet/DefaultStylesheet.css
Log:
GTNPORTAL-1326: IE7: Lost divided icon of child page on breadscrumbs on IE7
Modified: portal/trunk/portlet/web/src/main/webapp/skin/portal/webui/component/UINavigationPortlet/DefaultStylesheet.css
===================================================================
--- portal/trunk/portlet/web/src/main/webapp/skin/portal/webui/component/UINavigationPortlet/DefaultStylesheet.css 2010-06-17 10:18:42 UTC (rev 3360)
+++ portal/trunk/portlet/web/src/main/webapp/skin/portal/webui/component/UINavigationPortlet/DefaultStylesheet.css 2010-06-17 10:25:26 UTC (rev 3361)
@@ -111,6 +111,7 @@
background: url('DefaultSkin/background/NavDownArrow.gif') no-repeat right; /* orientation=lt */
background: url('DefaultSkin/background/NavDownArrow.gif') no-repeat left; /* orientation=rt */
cursor: pointer;
+ border-right: 1px solid #0a4da6;
}
/*###############-Hightlight Navigation Tab -################*/
@@ -155,6 +156,7 @@
background: url('DefaultSkin/background/NavDownArrow.gif') no-repeat right; /* orientation=lt */
background: url('DefaultSkin/background/NavDownArrow.gif') no-repeat left; /* orientation=rt */
cursor: default;
+ border-right: 1px solid #6d94c8;
}
/*###############-Selected Navigation Tab-################*/
@@ -201,6 +203,7 @@
background: url('DefaultSkin/background/NavDownArrow.gif') no-repeat right center; /* orientation=lt */
background: url('DefaultSkin/background/NavDownArrow.gif') no-repeat left center; /* orientation=rt */
cursor: pointer;
+ border-right: 1px solid white;
}
.UINavigationPortlet .MenuItemContainer {
@@ -354,6 +357,10 @@
background: url('DefaultSkin/background/NavGroup.gif') repeat-x center bottom;
}
+.UINavigationPortlet .GroupNavigation .UITab .NormalNavigationTab .MiddleTab .DropDownArrowIcon {
+ border-right: 1px solid #ffa200;
+}
+
.UINavigationPortlet .GroupNavigation .UITab .HighlightNavigationTab .LeftTab {
background: url('DefaultSkin/background/NavigationTab.gif') no-repeat left -152px;
}
@@ -366,6 +373,10 @@
background: #ffcf01;
}
+.UINavigationPortlet .GroupNavigation .UITab .HighlightNavigationTab .MiddleTab .DropDownArrowIcon {
+ border-right: 1px solid #ffcf01;
+}
+
.UINavigationPortlet .GroupNavigation .UITab .SelectedNavigationTab .LeftTab {
background: #ffa200 url('DefaultSkin/background/NavigationTab.gif') no-repeat left -28px;
}
@@ -376,4 +387,8 @@
.UINavigationPortlet .GroupNavigation .UITab .SelectedNavigationTab .MiddleTab {
background: #ffa200 url('DefaultSkin/background/NavigationTab.gif') repeat-x;
+}
+
+.UINavigationPortlet .GroupNavigation .UITab .SelectedNavigationTab .MiddleTab .DropDownArrowIcon {
+ border-right: 1px solid white;
}
\ No newline at end of file
14 years, 6 months
gatein SVN: r3360 - portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component.
by do-not-reply@jboss.org
Author: thanh_tung_do
Date: 2010-06-17 06:18:42 -0400 (Thu, 17 Jun 2010)
New Revision: 3360
Modified:
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java
Log:
GTNPORTAL-1312: set title for page of pageNode after renaming a tab of dashboard
Modified: portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java
===================================================================
--- portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java 2010-06-17 10:17:58 UTC (rev 3359)
+++ portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UITabPaneDashboard.java 2010-06-17 10:18:42 UTC (rev 3360)
@@ -352,6 +352,11 @@
renamedNode.setUri(newUri);
+ Page page = configService.getPage(renamedNode.getPageReference());
+ page.setTitle(newNodeLabel);
+ if (page != null)
+ dataService.save(page);
+
dataService.save(pageNavigation);
return newUri;
}
14 years, 6 months
gatein SVN: r3359 - portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component.
by do-not-reply@jboss.org
Author: phuong_vu
Date: 2010-06-17 06:17:58 -0400 (Thu, 17 Jun 2010)
New Revision: 3359
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java
Log:
GTNPORTAL-1327 Reset Change password checkbox after edit user info
Modified: portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java
===================================================================
--- portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java 2010-06-17 10:12:59 UTC (rev 3358)
+++ portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java 2010-06-17 10:17:58 UTC (rev 3359)
@@ -186,6 +186,12 @@
((UIFormStringInput)password1.setValue(null)).setRendered(isChange);
((UIFormStringInput)password2.setValue(null)).setRendered(isChange);
}
-
+ @Override
+ public void reset()
+ {
+ super.reset();
+ enableChangePassword(false);
+ }
+
}
14 years, 6 months
gatein SVN: r3358 - sandbox/mobile_delivery/trunk/examples/skins/simpleskin/src/main/webapp/skin/webPortlet/webui/component/UIPortalNavigationPortlet.
by do-not-reply@jboss.org
Author: jpourtet
Date: 2010-06-17 06:12:59 -0400 (Thu, 17 Jun 2010)
New Revision: 3358
Modified:
sandbox/mobile_delivery/trunk/examples/skins/simpleskin/src/main/webapp/skin/webPortlet/webui/component/UIPortalNavigationPortlet/Stylesheet.css
Log:
[ updated ]: simple Skin
Modified: sandbox/mobile_delivery/trunk/examples/skins/simpleskin/src/main/webapp/skin/webPortlet/webui/component/UIPortalNavigationPortlet/Stylesheet.css
===================================================================
--- sandbox/mobile_delivery/trunk/examples/skins/simpleskin/src/main/webapp/skin/webPortlet/webui/component/UIPortalNavigationPortlet/Stylesheet.css 2010-06-17 09:58:36 UTC (rev 3357)
+++ sandbox/mobile_delivery/trunk/examples/skins/simpleskin/src/main/webapp/skin/webPortlet/webui/component/UIPortalNavigationPortlet/Stylesheet.css 2010-06-17 10:12:59 UTC (rev 3358)
@@ -24,6 +24,7 @@
* version: $Id$
*/
+
.UINavigationPortlet {
border-bottom: 1px solid #e5e5e5;
}
@@ -53,14 +54,47 @@
background: #f9f9f9;
}
+/*
.UINavigationPortlet .UITab a.TabLabel {
+
display: block;
- padding: 0px 0px 0px 20px; /* orientation=lt */
- padding: 0px 20px 0px 0px; /* orientation=rt */
- background-position: left; /* orientation=lt */
- background-position: right; /* orientation=rt */
+ padding: 0px 0px 0px 20px;
+ padding: 0px 20px 0px 0px;
+ background-position: left;
+ background-position: right;
+
}
+*/
+.TabIcon div a.TabLabel {
+ font-family: Helvetica, Arial;
+ background-color: #FFFFFF;
+ border: 1px solid #999999;
+ color: #222222;
+ display: block;
+ font-size: 17px;
+ font-weight: bold;
+ margin-bottom: -1px;
+ padding: 12px 10px;
+ text-decoration: none;
+}
+
+.TabsContainer .UITab:first-child a {
+ -webkit-border-top-left-radius: 8px;
+ -webkit-border-top-right-radius: 8px;
+}
+
+.TabsContainer .UITab:last-child a {
+ -webkit-border-bottom-left-radius: 8px;
+ -webkit-border-bottom-right-radius: 8px;
+}
+
+.TabsContainer .UITab a:active, .TabsContainer .UITab a:hover {
+ /* background-color:blue;*/
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#0099ff), to(#3366ff));
+ color:white;
+}
+
.UINavigationPortlet .UITab a.DefaultPageIcon {
background: none;
padding: 0px;
14 years, 6 months
gatein SVN: r3357 - portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account.
by do-not-reply@jboss.org
Author: kien_nguyen
Date: 2010-06-17 05:58:36 -0400 (Thu, 17 Jun 2010)
New Revision: 3357
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java
Log:
GTNPORTAL-1325 Should validate First/Last name field is between 1-45 chars in user and group management (change for Account Profile page)
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java 2010-06-17 09:46:57 UTC (rev 3356)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/account/UIAccountProfiles.java 2010-06-17 09:58:36 UTC (rev 3357)
@@ -70,11 +70,9 @@
.addValidator(ResourceValidator.class).addValidator(ExpressionValidator.class,
Utils.USER_NAME_VALIDATOR_REGEX, "ResourceValidator.msg.Invalid-char"));
addUIFormInput(new UIFormStringInput("firstName", "firstName", useraccount.getFirstName()).addValidator(
- StringLengthValidator.class, 3, 45).addValidator(MandatoryValidator.class).addValidator(
- ExpressionValidator.class, Utils.FIRST_CHARACTER_NAME_VALIDATOR_REGEX, "FirstCharacterNameValidator.msg"));
+ StringLengthValidator.class, 1, 45).addValidator(MandatoryValidator.class));
addUIFormInput(new UIFormStringInput("lastName", "lastName", useraccount.getLastName()).addValidator(
- StringLengthValidator.class, 3, 45).addValidator(MandatoryValidator.class).addValidator(
- ExpressionValidator.class, Utils.FIRST_CHARACTER_NAME_VALIDATOR_REGEX, "FirstCharacterNameValidator.msg"));
+ StringLengthValidator.class, 1, 45).addValidator(MandatoryValidator.class));
addUIFormInput(new UIFormStringInput("email", "email", useraccount.getEmail()).addValidator(
MandatoryValidator.class).addValidator(EmailAddressValidator.class));
}
14 years, 6 months