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:08 UTC
[syncope] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 4b0784d [SYNCOPE-1509] Fixing login form refresh after language selection
4b0784d is described below
commit 4b0784d2909c1887f2b2b912b1d08726fc55b3e3
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/ui/commons/BaseLogin.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/BaseLogin.java b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/BaseLogin.java
index 4005741..0627544 100644
--- a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/BaseLogin.java
+++ b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/BaseLogin.java
@@ -130,7 +130,7 @@ public abstract class BaseLogin extends WebPage {
@Override
protected void onUpdate(final AjaxRequestTarget target) {
- // nothing to do
+ target.add(form);
}
}).add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
@@ -138,10 +138,10 @@ public abstract class BaseLogin 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", domains);
domainSelect.add(new AjaxFormComponentUpdatingBehavior(Constants.ON_BLUR) {
@@ -150,7 +150,7 @@ public abstract class BaseLogin extends WebPage {
@Override
protected void onUpdate(final AjaxRequestTarget target) {
- // nothing to do
+ target.add(form);
}
}).add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
@@ -158,10 +158,10 @@ public abstract class BaseLogin 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"))) {