[JBoss JIRA] Created: (GTNPORTAL-1940) calender doesnt disappear if tab is used for navigation
by Gary Hu (JIRA)
calender doesnt disappear if tab is used for navigation
-------------------------------------------------------
Key: GTNPORTAL-1940
URL: https://issues.jboss.org/browse/GTNPORTAL-1940
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Gary Hu
Attachments: tab_error.JPG
We have a calendar field in the dialog template. Whenever that field has focus, a calendar is shown to select the date.
But when the user moves out of calendar field using tab key from keyboard to another field, the calendar is still displayed. Th user has to explicitly CLICK to remove the Calendar from display.
Please see the attached screen shot.
The cause is that there is no javascript onblur event defined on the date/time field:
http://anonsvn.jboss.org/repos/gatein/epp/portal/branches/EPP_5_1_Branch/...
The following fix should help to address this issue:
Index: core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java
===================================================================
--- core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java (revision 6667)
+++ core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java (working copy)
@@ -234,6 +234,6 @@
w.write(value_.toString());
w.write('\'');
}
- w.write(" onclick='event.cancelBubble = true'/>");
+ w.write(" onclick='event.cancelBubble = true' onblur='eXo.webui.UICalendar.hide();'/>");
}
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (GTNPORTAL-1673) make UI validation regular expressions configurable by users
by Gary Hu (JIRA)
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
13 years, 7 months
[JBoss JIRA] Created: (GTNWSRP-235) It's not possible to create two consumers with different name in clustered environment
by Michal Vanco (JIRA)
It's not possible to create two consumers with different name in clustered environment
--------------------------------------------------------------------------------------
Key: GTNWSRP-235
URL: https://issues.jboss.org/browse/GTNWSRP-235
Project: GateIn WSRP
Issue Type: Bug
Affects Versions: 2.0.0-GA
Environment: 2 EPP 5.1.1 DEV01 instances in cluster + loadbalancer as producer
1 local EPP5.1.1 DEV01 instance as consumer
Reporter: Michal Vanco
Assignee: Chris Laprun
Fix For: 2.0.1-GA
Attachments: wsrp-cluster-names.txt
Exact steps to reproduce:
- start clustered environment with loadbalancer as producer
- register consumer with name 'test1'
- delete consumer
- register consumer with name 'test2' -> error:
org.chromattic.api.DuplicateNameException: Attempt to insert context EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class org.gatein.portal.wsrp.state.producer.registrations.mapping.ConsumerMapping,typeName=wsrp:consumer]] as an existing child with name mvanco-laptop_WSRP_v1_version child of node /wsrp:consumersandgroups
(log from producer attached)
Note: I have also applied patched gatein wsrp jar (for epp5.1.1 CR1) with the same result.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (GTNWSRP-237) Potential NPE in org.gatein.portal.wsrp.structure.MOPConsumerStructureProvider
by Minh Hoang TO (JIRA)
Potential NPE in org.gatein.portal.wsrp.structure.MOPConsumerStructureProvider
------------------------------------------------------------------------------
Key: GTNWSRP-237
URL: https://issues.jboss.org/browse/GTNWSRP-237
Project: GateIn WSRP
Issue Type: Bug
Reporter: Minh Hoang TO
Assignee: Chris Laprun
{code}
public void addWindow(String windowName, String uuid)
{
// add suffix in case we have several windows with the same name in the page
if (childrenWindows.containsKey(windowName))
{
if (windowName.endsWith("|"))
{
windowName += "|";
}
else
{
windowName += windowName + " |";
}
}
childrenWindows.put(windowName, uuid);
}
{code}
There is NPE at windowName.endsWith("|") in case saved page contains two non-titled portlet windows referring to the same portlet object.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months