[gatein-issues] [JBoss JIRA] Created: (GTNPORTAL-1673) make UI validation regular expressions configurable by users

Gary Hu (JIRA) jira-events at lists.jboss.org
Fri Nov 19 10:34:08 EST 2010


make UI validation regular expressions configurable by users 
-------------------------------------------------------------

                 Key: GTNPORTAL-1673
                 URL: https://jira.jboss.org/browse/GTNPORTAL-1673
             Project: GateIn Portal
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
            Reporter: Gary Hu


The current exoadmin portlet uses hard coded regular expressions to validate the UI component form in multiple java files under portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component.

For example, the org.exoplatform.organization.webui.component.UIGroupMembershipForm class has the following lines:
   addUIFormInput(new UIFormStringInput(USER_NAME, USER_NAME, null).addValidator(MandatoryValidator.class)
  .addValidator(ExpressionValidator.class, "^\\p{L}[\\p{L}\\d._\\-,]+$", "UIGroupMembershipForm.msg.Invalid-char")); 

Can we make the validation expressions configurable by users? We can still keep the current validation expressions as the default but allow the user defined expressions to override the default.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list