You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/11/12 08:24:12 UTC

[syncope] branch 2_1_X updated: [SYNCOPE-1509] Fixing login form refresh after language selection

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new 28458f1  [SYNCOPE-1509] Fixing login form refresh after language selection
28458f1 is described below

commit 28458f17655be6dd7be70869f93c06ff658aea21
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Nov 12 09:23:19 2019 +0100

    [SYNCOPE-1509] Fixing login form refresh after language selection
---
 .../java/org/apache/syncope/client/console/pages/Login.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/client/console/src/main/java/org/apache/syncope/client/console/pages/Login.java b/client/console/src/main/java/org/apache/syncope/client/console/pages/Login.java
index 5fa749d..f5fc731 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/pages/Login.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/pages/Login.java
@@ -102,7 +102,7 @@ public class Login extends WebPage {
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                // nothing to do
+                target.add(form);
             }
         }).add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
 
@@ -110,10 +110,10 @@ public class Login extends WebPage {
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                // nothing to do
+                target.add(form);
             }
         });
-        form.add(languageSelect);
+        form.add(languageSelect.setOutputMarkupId(true));
 
         DomainDropDown domainSelect = new DomainDropDown("domain");
         if (SyncopeConsoleApplication.get().getDomains().size() == 1) {
@@ -125,7 +125,7 @@ public class Login extends WebPage {
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                // nothing to do
+                target.add(form);
             }
         }).add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
 
@@ -133,10 +133,10 @@ public class Login extends WebPage {
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                // nothing to do
+                target.add(form);
             }
         });
-        form.add(domainSelect);
+        form.add(domainSelect.setOutputMarkupId(true));
 
         AjaxButton submitButton = new AjaxButton("submit", new Model<>(getString("submit"))) {