syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1447655 - /syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
Date Tue, 19 Feb 2013 10:14:21 GMT
Author: coheigea
Date: Tue Feb 19 10:14:21 2013
New Revision: 1447655

URL: http://svn.apache.org/r1447655
Log:
Make multi-valued properties required as well

Modified:
    syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java

Modified: syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java?rev=1447655&r1=1447654&r2=1447655&view=diff
==============================================================================
--- syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
(original)
+++ syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
Tue Feb 19 10:14:21 2013
@@ -234,10 +234,12 @@ public class ConnectorModalPage extends 
                 }
 
                 field.setTitle(property.getSchema().getHelpMessage());
+                
+                if (required) {
+                    field.addRequiredLabel();
+                }
 
                 if (isArray) {
-                    field.removeRequiredLabel();
-
                     if (property.getValues().isEmpty()) {
                         property.getValues().add(null);
                     }
@@ -245,10 +247,6 @@ public class ConnectorModalPage extends 
                     item.add(new MultiValueSelectorPanel<String>(
                             "panel", new PropertyModel<List<String>>(property,
"values"), field));
                 } else {
-                    if (required) {
-                        field.addRequiredLabel();
-                    }
-
                     field.setNewModel(property.getValues());
                     item.add(field);
                 }



Mime
View raw message