syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1483380 - in /syncope/branches/1_1_X: common/src/main/java/org/apache/syncope/common/ console/src/main/java/org/apache/syncope/console/markup/html/ console/src/main/java/org/apache/syncope/console/pages/ console/src/main/java/org/apache/sy...
Date Thu, 16 May 2013 14:12:50 GMT
Author: massi
Date: Thu May 16 14:12:49 2013
New Revision: 1483380

URL: http://svn.apache.org/r1483380
Log:
Localized Crontab and refactoring

Added:
    syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/
    syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/
    syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer.properties
    syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer_it.properties
Modified:
    syncope/branches/1_1_X/common/src/main/java/org/apache/syncope/common/SyncopeConstants.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/markup/html/CrontabContainer.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Configuration.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/DerivedSchemaModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/NotificationModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportExecResultDownloadModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportletConfModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Reports.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Resources.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Schema.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/SchemaModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Todo.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/VirtualSchemaModalPage.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/AbstractSearchResultPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/DerivedAttributesPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/NotificationTasks.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PoliciesPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PropagationTasks.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceDetailsPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/RoleSecurityPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SchedTasks.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SearchView.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SyncTasks.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/VirtualAttributesPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxCheckBoxPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDropDownChoicePanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxNumberFieldPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxPasswordFieldPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxTextFieldPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTextFieldPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTimeFieldPanel.java
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/MultiValueSelectorPanel.java

Modified: syncope/branches/1_1_X/common/src/main/java/org/apache/syncope/common/SyncopeConstants.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/common/src/main/java/org/apache/syncope/common/SyncopeConstants.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/common/src/main/java/org/apache/syncope/common/SyncopeConstants.java (original)
+++ syncope/branches/1_1_X/common/src/main/java/org/apache/syncope/common/SyncopeConstants.java Thu May 16 14:12:49 2013
@@ -45,4 +45,8 @@ public class SyncopeConstants {
 
     public static final String DEFAULT_ENCODING = "UTF-8";
 
+    public static final String ON_CHANGE = "onchange";
+
+    public static final String ON_BLUR = "onblur";
+
 }

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/markup/html/CrontabContainer.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/markup/html/CrontabContainer.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/markup/html/CrontabContainer.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/markup/html/CrontabContainer.java Thu May 16 14:12:49 2013
@@ -19,6 +19,7 @@
 package org.apache.syncope.console.markup.html;
 
 import java.util.Arrays;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.console.commons.SelectChoiceRenderer;
 import org.apache.syncope.console.commons.SelectOption;
 import org.apache.wicket.ajax.AjaxRequestTarget;
@@ -30,24 +31,9 @@ import org.apache.wicket.markup.html.for
 import org.apache.wicket.model.IModel;
 import org.apache.wicket.model.Model;
 import org.apache.wicket.model.PropertyModel;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 public class CrontabContainer extends WebMarkupContainer {
 
-    /**
-     * Logger.
-     */
-    protected static final Logger LOG = LoggerFactory.getLogger(CrontabContainer.class);
-
-    private static final SelectOption[] CRON_TEMPLATES = {
-        new SelectOption("Unschedule", "UNSCHEDULE"), new SelectOption("Every 5 minutes", "0 0/5 * * * ?"),
-        new SelectOption("Fire at 12pm (noon) every day", "0 0 12 * * ?"),
-        new SelectOption("Fire at 12am (midnight) every first day of the month", "0 0 0 1 * ?"),
-        new SelectOption("Fire at 12am (midnight) every last day of the month", "0 0 0 L * ?"),
-        new SelectOption("Fire at 12am (midnight) every Monday", "0 0 0 ? * 2")
-    };
-
     private static final long serialVersionUID = 7879593326085337650L;
 
     private final TextField seconds;
@@ -68,17 +54,28 @@ public class CrontabContainer extends We
         super(id);
         setOutputMarkupId(true);
 
+        final SelectOption[] CRON_TEMPLATES = {
+            new SelectOption(getString("selOpt1"), "UNSCHEDULE"),
+            new SelectOption(getString("selOpt2"), "0 0/5 * * * ?"),
+            new SelectOption(getString("selOpt3"), "0 0 12 * * ?"),
+            new SelectOption(getString("selOpt4"), "0 0 0 1 * ?"),
+            new SelectOption(getString("selOpt5"), "0 0 0 L * ?"),
+            new SelectOption(getString("selOpt6"), "0 0 0 ? * 2")
+        };
+
         final DropDownChoice<SelectOption> cronTemplateChooser =
                 new DropDownChoice<SelectOption>("cronTemplateChooser") {
 
-                    private static final long serialVersionUID = -5843424545478691442L;
+            private static final long serialVersionUID = -5843424545478691442L;
 
-                    @Override
-                    protected CharSequence getDefaultChoice(final String selected) {
-                        return "<option value=\"\">" + getString("chooseForTemplate") + "</option>";
-                    }
-                };
-        cronTemplateChooser.setModel(new IModel<SelectOption>() {
+            @Override
+            protected CharSequence getDefaultChoice(final String selected) {
+                return "<option value=\"\">" + getString("chooseForTemplate") + "</option>";
+            }
+        };
+
+        cronTemplateChooser.setModel(
+                new IModel<SelectOption>() {
 
             private static final long serialVersionUID = 6762568283146531315L;
 
@@ -128,7 +125,7 @@ public class CrontabContainer extends We
         daysOfWeek = new TextField("daysOfWeek", new Model(getCronField(cronExpression, 5)));
         add(daysOfWeek);
 
-        cronTemplateChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        cronTemplateChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Configuration.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Configuration.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Configuration.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Configuration.java Thu May 16 14:12:49 2013
@@ -26,6 +26,7 @@ import java.util.Arrays;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.ConfigurationTO;
 import org.apache.syncope.common.to.LoggerTO;
 import org.apache.syncope.common.to.NotificationTO;
@@ -359,7 +360,7 @@ public class Configuration extends BaseP
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this,
                 "confPaginatorRows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -504,7 +505,7 @@ public class Configuration extends BaseP
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this,
                 "notificationPaginatorRows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -642,7 +643,7 @@ public class Configuration extends BaseP
             });
             level.setChoices(Arrays.asList(SyncopeLoggerLevel.values()));
             level.setOutputMarkupId(true);
-            level.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+            level.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                 private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java Thu May 16 14:12:49 2013
@@ -29,6 +29,7 @@ import java.util.List;
 import java.util.Map;
 import org.apache.commons.lang.ArrayUtils;
 import org.apache.commons.lang.StringUtils;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.ConnBundleTO;
 import org.apache.syncope.common.to.ConnInstanceTO;
 import org.apache.syncope.common.types.ConnConfPropSchema;
@@ -207,7 +208,7 @@ public class ConnectorModalPage extends 
         connectorForm.add(connRequestTimeout);
 
         // form - first tab - onchange()
-        location.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        location.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -232,7 +233,7 @@ public class ConnectorModalPage extends 
                 target.add(propertiesContainer);
             }
         });
-        connectorName.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        connectorName.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -257,7 +258,7 @@ public class ConnectorModalPage extends 
                 target.add(version);
             }
         });
-        version.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        version.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/DerivedSchemaModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/DerivedSchemaModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/DerivedSchemaModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/DerivedSchemaModalPage.java Thu May 16 14:12:49 2013
@@ -92,6 +92,7 @@ public class DerivedSchemaModalPage exte
                     } else {
                         restClient.updateDerivedSchema(kind, schemaTO);
                     }
+
                     if (pageRef.getPage() instanceof BasePage) {
                         ((BasePage) pageRef.getPage()).setModalResult(true);
                     }
@@ -122,13 +123,9 @@ public class DerivedSchemaModalPage exte
         cancel.setDefaultFormProcessing(
                 false);
 
-        String allowedRoles;
-
-        if (createFlag) {
-            allowedRoles = xmlRolesReader.getAllAllowedRoles("Schema", "create");
-        } else {
-            allowedRoles = xmlRolesReader.getAllAllowedRoles("Schema", "update");
-        }
+        String allowedRoles = createFlag
+                ? xmlRolesReader.getAllAllowedRoles("Schema", "create")
+                : xmlRolesReader.getAllAllowedRoles("Schema", "update");
 
         MetaDataRoleAuthorizationStrategy.authorize(submit, ENABLE, allowedRoles);
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/NotificationModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/NotificationModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/NotificationModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/NotificationModalPage.java Thu May 16 14:12:49 2013
@@ -23,6 +23,7 @@ import java.util.Arrays;
 import java.util.Collections;
 import java.util.EnumSet;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.NotificationTO;
 import org.apache.syncope.common.types.AttributableType;
 import org.apache.syncope.common.types.IntMappingType;
@@ -56,11 +57,6 @@ class NotificationModalPage extends Base
 
     private static final long serialVersionUID = -1975312550059578553L;
 
-    /**
-     * OnChange event name.
-     */
-    private static final String ON_CHANGE = "onchange";
-
     @SpringBean
     private NotificationRestClient restClient;
 
@@ -117,7 +113,7 @@ class NotificationModalPage extends Base
         recipientAttrName.setRequired(true);
         form.add(recipientAttrName);
 
-        recipientAttrType.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+        recipientAttrType.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -156,7 +152,7 @@ class NotificationModalPage extends Base
         recipientsContainer.add(recipients);
         recipients.setEnabled(checkRecipients.getModelObject());
 
-        selfAsRecipient.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+        selfAsRecipient.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -172,7 +168,7 @@ class NotificationModalPage extends Base
             }
         });
 
-        checkRecipients.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+        checkRecipients.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportExecResultDownloadModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportExecResultDownloadModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportExecResultDownloadModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportExecResultDownloadModalPage.java Thu May 16 14:12:49 2013
@@ -19,6 +19,7 @@
 package org.apache.syncope.console.pages;
 
 import java.util.Arrays;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.types.ReportExecExportFormat;
 import org.apache.syncope.console.wicket.markup.html.form.AjaxDropDownChoicePanel;
 import org.apache.wicket.PageReference;
@@ -56,7 +57,7 @@ public class ReportExecResultDownloadMod
             }
         });
 
-        format.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        format.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportModalPage.java Thu May 16 14:12:49 2013
@@ -22,6 +22,7 @@ import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.report.AbstractReportletConf;
 import org.apache.syncope.common.report.ReportletConf;
 import org.apache.syncope.common.to.ReportExecTO;
@@ -276,7 +277,7 @@ public class ReportModalPage extends Bas
 
         reportlets.setNullValid(true);
         profile.add(reportlets);
-        reportlets.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        reportlets.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportletConfModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportletConfModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportletConfModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/ReportletConfModalPage.java Thu May 16 14:12:49 2013
@@ -143,7 +143,7 @@ public class ReportletConfModalPage exte
         reportletClass.setChoices(restClient.getReportletConfClasses());
         ((DropDownChoice) reportletClass.getField()).setNullValid(true);
         reportletClass.addRequiredLabel();
-        reportletClass.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        reportletClass.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = 5538299138211283825L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Reports.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Reports.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Reports.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Reports.java Thu May 16 14:12:49 2013
@@ -24,6 +24,7 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.ReportTO;
 import org.apache.syncope.common.types.AuditElements.Category;
 import org.apache.syncope.common.types.AuditElements.Result;
@@ -241,7 +242,7 @@ public class Reports extends BasePage {
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                 prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Resources.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Resources.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Resources.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Resources.java Thu May 16 14:12:49 2013
@@ -23,6 +23,7 @@ import java.util.Arrays;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.ConnInstanceTO;
 import org.apache.syncope.common.to.ResourceTO;
 import org.apache.syncope.common.validation.SyncopeClientCompositeErrorException;
@@ -332,7 +333,7 @@ public class Resources extends BasePage 
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this,
                 "resourcePaginatorRows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -493,7 +494,7 @@ public class Resources extends BasePage 
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this,
                 "connectorPaginatorRows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Schema.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Schema.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Schema.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Schema.java Thu May 16 14:12:49 2013
@@ -29,6 +29,7 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import org.apache.commons.lang.StringUtils;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.AbstractSchemaTO;
 import org.apache.syncope.common.types.AttributableType;
 import org.apache.syncope.common.types.SchemaType;
@@ -307,7 +308,7 @@ public class Schema extends BasePage {
                 new PropertyModel<Integer>(schemaTypePanel, "pageRows"), prefMan.getPaginatorChoices(),
                 new SelectChoiceRenderer<Integer>());
 
-        rowChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/SchemaModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/SchemaModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/SchemaModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/SchemaModalPage.java Thu May 16 14:12:49 2013
@@ -26,6 +26,7 @@ import java.util.Iterator;
 import java.util.List;
 import org.apache.commons.lang.StringUtils;
 import org.apache.syncope.common.AbstractBaseBean;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.SchemaTO;
 import org.apache.syncope.common.types.AttributableType;
 import org.apache.syncope.common.types.AttributeSchemaType;
@@ -140,7 +141,7 @@ public class SchemaModalPage extends Abs
             enumerationKeys.setEnabled(Boolean.FALSE);
         }
 
-        type.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        type.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -199,7 +200,7 @@ public class SchemaModalPage extends Abs
             }
         };
 
-        mandatoryCondition.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        mandatoryCondition.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Todo.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Todo.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Todo.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/Todo.java Thu May 16 14:12:49 2013
@@ -22,6 +22,7 @@ import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.UserRequestTO;
 import org.apache.syncope.common.to.WorkflowFormTO;
 import org.apache.syncope.common.types.UserRequestType;
@@ -196,7 +197,7 @@ public class Todo extends BasePage {
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this,
                 "approvalPaginatorRows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -336,7 +337,7 @@ public class Todo extends BasePage {
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this,
                 "userRequestPaginatorRows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/VirtualSchemaModalPage.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/VirtualSchemaModalPage.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/VirtualSchemaModalPage.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/VirtualSchemaModalPage.java Thu May 16 14:12:49 2013
@@ -109,13 +109,9 @@ public class VirtualSchemaModalPage exte
 
         cancel.setDefaultFormProcessing(false);
 
-        String allowedRoles;
-
-        if (createFlag) {
-            allowedRoles = xmlRolesReader.getAllAllowedRoles("Schema", "create");
-        } else {
-            allowedRoles = xmlRolesReader.getAllAllowedRoles("Schema", "update");
-        }
+        String allowedRoles = createFlag
+                ? xmlRolesReader.getAllAllowedRoles("Schema", "create")
+                : xmlRolesReader.getAllAllowedRoles("Schema", "update");
 
         MetaDataRoleAuthorizationStrategy.authorize(submit, ENABLE, allowedRoles);
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/AbstractSearchResultPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/AbstractSearchResultPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/AbstractSearchResultPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/AbstractSearchResultPanel.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.pages
 
 import java.util.Collection;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.search.NodeCond;
 import org.apache.syncope.common.to.AbstractAttributableTO;
 import org.apache.syncope.console.commons.AttributableDataProvider;
@@ -213,7 +214,7 @@ public abstract class AbstractSearchResu
         final DropDownChoice<Integer> rowsChooser = new DropDownChoice<Integer>(
                 "rowsChooser", new PropertyModel<Integer>(this, "rows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/DerivedAttributesPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/DerivedAttributesPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/DerivedAttributesPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/DerivedAttributesPanel.java Thu May 16 14:12:49 2013
@@ -19,6 +19,7 @@
 package org.apache.syncope.console.pages.panels;
 
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.AbstractAttributableTO;
 import org.apache.syncope.common.to.AttributeTO;
 import org.apache.syncope.common.to.RoleTO;
@@ -144,7 +145,7 @@ public class DerivedAttributesPanel exte
                 final DropDownChoice<String> schemaChoice = new DropDownChoice<String>("schema",
                         new PropertyModel<String>(attributeTO, "schema"), derivedSchemaNames);
 
-                schemaChoice.add(new AjaxFormComponentUpdatingBehavior("onblur") {
+                schemaChoice.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_BLUR) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/NotificationTasks.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/NotificationTasks.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/NotificationTasks.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/NotificationTasks.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.pages
 
 import java.util.ArrayList;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.NotificationTaskTO;
 import org.apache.syncope.common.to.TaskTO;
 import org.apache.syncope.common.validation.SyncopeClientCompositeErrorException;
@@ -233,7 +234,7 @@ public class NotificationTasks extends P
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                 prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PoliciesPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PoliciesPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PoliciesPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PoliciesPanel.java Thu May 16 14:12:49 2013
@@ -22,6 +22,7 @@ import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.AccountPolicyTO;
 import org.apache.syncope.common.to.PasswordPolicyTO;
 import org.apache.syncope.common.to.PolicyTO;
@@ -233,7 +234,7 @@ public class PoliciesPanel extends Panel
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                 prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java Thu May 16 14:12:49 2013
@@ -25,6 +25,7 @@ import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.annotation.ClassList;
 import org.apache.syncope.common.annotation.SchemaList;
 import org.apache.syncope.common.types.AbstractPolicySpec;
@@ -254,7 +255,7 @@ public class PolicyBeanPanel extends Pan
 
         panel.setEnabled(checked);
 
-        check.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        check.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PropagationTasks.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PropagationTasks.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PropagationTasks.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/PropagationTasks.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.pages
 
 import java.util.ArrayList;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.PropagationTaskTO;
 import org.apache.syncope.common.to.TaskTO;
 import org.apache.syncope.common.validation.SyncopeClientCompositeErrorException;
@@ -252,7 +253,7 @@ public class PropagationTasks extends Pa
         final DropDownChoice rowsChooser = new DropDownChoice(
                 "rowsChooser", new PropertyModel(this, "paginatorRows"), prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java Thu May 16 14:12:49 2013
@@ -22,6 +22,7 @@ import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.ResourceTO;
 import org.apache.syncope.common.types.ConnConfProperty;
 import org.apache.syncope.console.markup.html.list.AltListView;
@@ -204,7 +205,7 @@ public class ResourceConnConfPanel exten
                         field.addRequiredLabel();
                     }
 
-                    field.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+                    field.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                         private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceDetailsPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceDetailsPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceDetailsPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceDetailsPanel.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.pages
 
 import java.util.Arrays;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.ConnInstanceTO;
 import org.apache.syncope.common.to.ResourceTO;
 import org.apache.syncope.common.types.PropagationMode;
@@ -131,7 +132,7 @@ public class ResourceDetailsPanel extend
         final AjaxCheckBoxPanel resetToken = new AjaxCheckBoxPanel("resetToken", new ResourceModel("resetToken",
                 "resetToken").getObject(), new Model<Boolean>(null));
 
-        resetToken.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        resetToken.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -186,7 +187,7 @@ public class ResourceDetailsPanel extend
         conn.addRequiredLabel();
         conn.setEnabled(createFlag);
 
-        conn.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        conn.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java Thu May 16 14:12:49 2013
@@ -25,6 +25,7 @@ import java.util.Comparator;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.ConnIdObjectClassTO;
 import org.apache.syncope.common.to.ConnInstanceTO;
 import org.apache.syncope.common.to.MappingItemTO;
@@ -78,11 +79,6 @@ public class ResourceMappingPanel extend
     private static final Logger LOG = LoggerFactory.getLogger(ResourceMappingPanel.class);
 
     /**
-     * OnChange event name.
-     */
-    private static final String ON_CHANGE = "onchange";
-
-    /**
      * Mapping field style sheet.
      */
     private static final String FIELD_STYLE = "ui-widget-content ui-corner-all short_fixedsize";
@@ -302,7 +298,7 @@ public class ResourceMappingPanel extend
                 intAttrNames.setChoices(schemaNames);
                 intAttrNames.setRequired(true);
                 intAttrNames.setStyleSheet(FIELD_STYLE);
-                intAttrNames.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+                intAttrNames.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 
@@ -328,7 +324,7 @@ public class ResourceMappingPanel extend
                         ? Collections.<AttributableType>singletonList(AttributableType.ROLE)
                         : Arrays.asList(AttributableType.values()));
                 entitiesPanel.setStyleSheet(DEF_FIELD_STYLE);
-                entitiesPanel.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+                entitiesPanel.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 
@@ -373,7 +369,7 @@ public class ResourceMappingPanel extend
                 final AjaxCheckBoxPanel accountId = new AjaxCheckBoxPanel("accountId",
                         new ResourceModel("accountId", "accountId").getObject(),
                         new PropertyModel<Boolean>(mapItem, "accountid"));
-                accountId.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+                accountId.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 
@@ -399,7 +395,7 @@ public class ResourceMappingPanel extend
                 final AjaxCheckBoxPanel password = new AjaxCheckBoxPanel("password",
                         new ResourceModel("password", "password").getObject(),
                         new PropertyModel<Boolean>(mapItem, "password"));
-                password.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+                password.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 
@@ -427,7 +423,7 @@ public class ResourceMappingPanel extend
                 purpose.setChoices(Arrays.asList(MappingPurpose.values()));
                 purpose.setStyleSheet(FIELD_STYLE);
                 purpose.setRequired(true);
-                purpose.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+                purpose.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 
@@ -438,7 +434,7 @@ public class ResourceMappingPanel extend
 
                 item.add(purpose);
 
-                intMappingTypes.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+                intMappingTypes.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 
@@ -491,7 +487,7 @@ public class ResourceMappingPanel extend
         accountLink.setEnabled(accountLinkEnabled);
         accountLinkContainer.add(accountLink);
 
-        accountLinkCheckbox.getField().add(new AjaxFormComponentUpdatingBehavior(ON_CHANGE) {
+        accountLinkCheckbox.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/RoleSecurityPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/RoleSecurityPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/RoleSecurityPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/RoleSecurityPanel.java Thu May 16 14:12:49 2013
@@ -21,6 +21,7 @@ package org.apache.syncope.console.pages
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Map;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.AbstractAttributableTO;
 import org.apache.syncope.common.to.PolicyTO;
 import org.apache.syncope.common.types.PolicyType;
@@ -113,7 +114,7 @@ public class RoleSecurityPanel extends P
 
         passwordPolicy.setReadOnly(inhPasswordPolicy.getModelObject());
 
-        inhPasswordPolicy.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        inhPasswordPolicy.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -145,7 +146,7 @@ public class RoleSecurityPanel extends P
                 "inheritAccountPolicy", new PropertyModel<Boolean>(entityTO, "inheritAccountPolicy"));
         accountPolicy.setReadOnly(inhAccountPolicy.getModelObject());
 
-        inhAccountPolicy.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        inhAccountPolicy.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SchedTasks.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SchedTasks.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SchedTasks.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SchedTasks.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.pages
 
 import java.util.ArrayList;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.SchedTaskTO;
 import org.apache.syncope.common.to.TaskTO;
 import org.apache.syncope.common.validation.SyncopeClientCompositeErrorException;
@@ -242,7 +243,7 @@ public class SchedTasks extends Panel {
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                 prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SearchView.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SearchView.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SearchView.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SearchView.java Thu May 16 14:12:49 2013
@@ -21,6 +21,7 @@ package org.apache.syncope.console.pages
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.search.AttributeCond;
 import org.apache.syncope.console.commons.SearchCondWrapper;
 import org.apache.wicket.ajax.AjaxRequestTarget;
@@ -97,7 +98,7 @@ public class SearchView extends ListView
         }
 
         final CheckBox notOperator = new CheckBox("notOperator", new PropertyModel(searchCondition, "notOperator"));
-        notOperator.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        notOperator.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -109,7 +110,7 @@ public class SearchView extends ListView
 
         final DropDownChoice<AttributeCond.Type> type = new DropDownChoice<AttributeCond.Type>("type",
                 new PropertyModel<AttributeCond.Type>(searchCondition, "type"), attributeTypes);
-        type.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        type.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -123,7 +124,7 @@ public class SearchView extends ListView
                 new PropertyModel<String>(searchCondition, "filterName"), (IModel) null);
         filterNameChooser.setOutputMarkupId(true);
         filterNameChooser.setRequired(required);
-        filterNameChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        filterNameChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -135,7 +136,7 @@ public class SearchView extends ListView
 
         final TextField<String> filterValue = new TextField<String>("filterValue", new PropertyModel<String>(
                 searchCondition, "filterValue"));
-        filterValue.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        filterValue.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -149,7 +150,7 @@ public class SearchView extends ListView
                 new DropDownChoice<SearchCondWrapper.FilterType>("filterType",
                 new PropertyModel<SearchCondWrapper.FilterType>(searchCondition, "filterType"), filterTypes);
         filterTypeChooser.setOutputMarkupId(true);
-        filterTypeChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        filterTypeChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SyncTasks.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SyncTasks.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SyncTasks.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/SyncTasks.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.pages
 
 import java.util.ArrayList;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.SyncTaskTO;
 import org.apache.syncope.common.to.TaskTO;
 import org.apache.syncope.common.validation.SyncopeClientCompositeErrorException;
@@ -285,7 +286,7 @@ public class SyncTasks extends Panel {
         final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                 prefMan.getPaginatorChoices());
 
-        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        rowsChooser.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/VirtualAttributesPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/VirtualAttributesPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/VirtualAttributesPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/pages/panels/VirtualAttributesPanel.java Thu May 16 14:12:49 2013
@@ -22,6 +22,7 @@ import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.syncope.common.to.AbstractAttributableTO;
 import org.apache.syncope.common.to.AttributeTO;
 import org.apache.syncope.common.to.RoleTO;
@@ -194,7 +195,7 @@ public class VirtualAttributesPanel exte
                     }
                 });
 
-                schemaChoice.add(new AjaxFormComponentUpdatingBehavior("onblur") {
+                schemaChoice.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_BLUR) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 
@@ -216,7 +217,7 @@ public class VirtualAttributesPanel exte
                     }
                 });
 
-                schemaChoice.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+                schemaChoice.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                     private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java Thu May 16 14:12:49 2013
@@ -50,11 +50,9 @@ public class PolicyRestClient extends Ba
     @SuppressWarnings("unchecked")
     public <T extends PolicyTO> List<T> getPolicies(final PolicyType type, final boolean includeGlobal) {
         final List<T> res = new ArrayList<T>();
-        List<T> policies = new ArrayList<T>();
 
         try {
-            policies = (List<T>) getService(PolicyService.class).list(type);
-            res.addAll(policies);
+            res.addAll((List<T>) getService(PolicyService.class).list(type));
         } catch (Exception ignore) {
             LOG.debug("No policy found", ignore);
         }

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxCheckBoxPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxCheckBoxPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxCheckBoxPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxCheckBoxPanel.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.wicke
 
 import java.io.Serializable;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
 import org.apache.wicket.markup.html.form.CheckBox;
@@ -39,7 +40,7 @@ public class AjaxCheckBoxPanel extends F
         add(field.setLabel(new Model(name)).setOutputMarkupId(true));
 
         if (!isReadOnly()) {
-            field.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+            field.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                 private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDropDownChoicePanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDropDownChoicePanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDropDownChoicePanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxDropDownChoicePanel.java Thu May 16 14:12:49 2013
@@ -21,6 +21,7 @@ package org.apache.syncope.console.wicke
 import java.io.Serializable;
 import java.util.Collections;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
 import org.apache.wicket.markup.html.form.ChoiceRenderer;
@@ -46,7 +47,7 @@ public class AjaxDropDownChoicePanel<T e
         add(field.setLabel(new Model(name)).setOutputMarkupId(true));
 
         if (enableOnBlur) {
-            field.add(new AjaxFormComponentUpdatingBehavior("onblur") {
+            field.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_BLUR) {
 
                 private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxNumberFieldPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxNumberFieldPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxNumberFieldPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxNumberFieldPanel.java Thu May 16 14:12:49 2013
@@ -18,6 +18,7 @@
  */
 package org.apache.syncope.console.wicket.markup.html.form;
 
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
 import org.apache.wicket.markup.html.form.TextField;
@@ -37,7 +38,7 @@ public class AjaxNumberFieldPanel extend
         add(field.setLabel(new Model(name)).setOutputMarkupId(true));
 
         if (!isReadOnly()) {
-            field.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+            field.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                 private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxPasswordFieldPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxPasswordFieldPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxPasswordFieldPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxPasswordFieldPanel.java Thu May 16 14:12:49 2013
@@ -18,6 +18,7 @@
  */
 package org.apache.syncope.console.wicket.markup.html.form;
 
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
 import org.apache.wicket.markup.html.form.PasswordTextField;
@@ -39,7 +40,7 @@ public class AjaxPasswordFieldPanel exte
         add(field.setLabel(new Model(name)).setOutputMarkupId(true));
 
         if (!isReadOnly()) {
-            field.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+            field.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                 private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxTextFieldPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxTextFieldPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxTextFieldPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/AjaxTextFieldPanel.java Thu May 16 14:12:49 2013
@@ -23,6 +23,7 @@ import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 import java.util.regex.Pattern;
+import org.apache.syncope.common.SyncopeConstants;
 
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
@@ -69,7 +70,7 @@ public class AjaxTextFieldPanel extends 
         add(field.setLabel(new Model(name)).setOutputMarkupId(true));
 
         if (!isReadOnly()) {
-            field.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+            field.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                 private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTextFieldPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTextFieldPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTextFieldPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTextFieldPanel.java Thu May 16 14:12:49 2013
@@ -17,6 +17,8 @@
  * under the License.
  */
 package org.apache.syncope.console.wicket.markup.html.form;
+import org.apache.syncope.common.SyncopeConstants;
+
 
 import java.util.Date;
 
@@ -38,7 +40,7 @@ public class DateTextFieldPanel extends 
         field = DateTextField.forDatePattern("field", model, datePattern);
 
         if (!isReadOnly()) {
-            field.add(new AjaxFormComponentUpdatingBehavior("onchange") {
+            field.add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                 private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTimeFieldPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTimeFieldPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTimeFieldPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateTimeFieldPanel.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.wicke
 
 import java.util.Calendar;
 import java.util.Date;
+import org.apache.syncope.common.SyncopeConstants;
 import org.apache.wicket.AttributeModifier;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
@@ -46,7 +47,7 @@ public class DateTimeFieldPanel extends 
 
         final Calendar cal = Calendar.getInstance();
 
-        field.get("hours").add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        field.get("hours").add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -61,7 +62,7 @@ public class DateTimeFieldPanel extends 
             }
         });
 
-        field.get("minutes").add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        field.get("minutes").add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -72,7 +73,7 @@ public class DateTimeFieldPanel extends 
             }
         });
 
-        field.get("date").add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        field.get("date").add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 
@@ -90,7 +91,7 @@ public class DateTimeFieldPanel extends 
             }
         });
 
-        field.get("amOrPmChoice").add(new AjaxFormComponentUpdatingBehavior("onchange") {
+        field.get("amOrPmChoice").add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
             private static final long serialVersionUID = -1107858522700306810L;
 

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/MultiValueSelectorPanel.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/MultiValueSelectorPanel.java?rev=1483380&r1=1483379&r2=1483380&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/MultiValueSelectorPanel.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/MultiValueSelectorPanel.java Thu May 16 14:12:49 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.console.wicke
 
 import java.io.Serializable;
 import java.util.List;
+import org.apache.syncope.common.SyncopeConstants;
 
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
@@ -67,7 +68,7 @@ public class MultiValueSelectorPanel<E> 
                 final FieldPanel fieldPanel = panelTemplate.clone();
 
                 if (eventTemplate) {
-                    fieldPanel.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
+                    fieldPanel.getField().add(new AjaxFormComponentUpdatingBehavior(SyncopeConstants.ON_CHANGE) {
 
                         private static final long serialVersionUID = -1107858522700306810L;
 

Added: syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer.properties
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer.properties?rev=1483380&view=auto
==============================================================================
--- syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer.properties (added)
+++ syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer.properties Thu May 16 14:12:49 2013
@@ -0,0 +1,20 @@
+# Copyright 2013 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+selOpt1=Unschedule
+selOpt2=Every 5 minutes
+selOpt3=Fire at 12pm (noon) every day
+selOpt4=Fire at 12am (midnight) every first day of the month
+selOpt5=Fire at 12am (midnight) every last day of the month
+selOpt6=Fire at 12am (midnight) every Monday

Added: syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer_it.properties
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer_it.properties?rev=1483380&view=auto
==============================================================================
--- syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer_it.properties (added)
+++ syncope/branches/1_1_X/console/src/main/resources/org/apache/syncope/console/markup/html/CrontabContainer_it.properties Thu May 16 14:12:49 2013
@@ -0,0 +1,20 @@
+# Copyright 2013 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+selOpt1=Non schedulato
+selOpt2=Ogni 5 minuti
+selOpt3=Lanciato ogni giorno a mezzanotte
+selOpt4=Lanciato ogni primo giorno del mese a mezzogiorno
+selOpt5=Lanciato ogni ultimo giorno del mese a mezzogiorno
+selOpt6=Lanciato ogni Luned\u00ec a mezzogiorno



Mime
View raw message