Author: thomas.heute(a)jboss.com
Date: 2009-08-12 09:40:30 -0400 (Wed, 12 Aug 2009)
New Revision: 13744
Modified:
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java
Log:
Seems like an unnecessary checking.
A user should be able to enter scripts as preference
Modified:
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java 2009-08-11
19:23:57 UTC (rev 13743)
+++
branches/Enterprise_Portal_Platform_4_3/core-admin/src/main/org/jboss/portal/core/admin/ui/PreferenceBean.java 2009-08-12
13:40:30 UTC (rev 13744)
@@ -210,7 +210,7 @@
if (s.startsWith("index_"))
{
int index = Integer.parseInt(s.substring(6));
- stringValue = checkValidity(stringValue,
"common-edit-existing-form:pref-input-" + index);
+// stringValue = checkValidity(stringValue,
"common-edit-existing-form:pref-input-" + index);
if (stringValue != null)
{
@@ -225,7 +225,7 @@
}
else
{
- stringValue = checkValidity(stringValue,
"common-append-form:new_value");
+// stringValue = checkValidity(stringValue,
"common-append-form:new_value");
if (stringValue == null)
{
throw new EvaluationException("Invalid preference value: " +
value);
Show replies by date