You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by co...@apache.org on 2013/02/19 11:14:21 UTC

svn commit: r1447655 - /syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java

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);
                 }