[
https://issues.jboss.org/browse/GTNPORTAL-1673?page=com.atlassian.jira.pl...
]
RH Bugzilla Integration commented on GTNPORTAL-1673:
----------------------------------------------------
Jared MORGAN <jmorgan(a)redhat.com> made a comment on [bug
793571|https://bugzilla.redhat.com/show_bug.cgi?id=793571]
Technical note added. If any revisions are required, please edit the "Technical
Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services
team.
New Contents:
Several fields requiring user names where previously
validated using hardcoded logic, thus preventing users from easily changing
which user names were acceptable for their requirements. A new configurable
validator has been implemented that can be configured by users without having
to modify the source code thus allowing users to more easily change the format
for valid user names.
make UI validation regular expressions configurable by users
-------------------------------------------------------------
Key: GTNPORTAL-1673
URL:
https://issues.jboss.org/browse/GTNPORTAL-1673
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Reporter: Gary Hu
Assignee: Chris Laprun
Fix For: 3.2.0-GA
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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira