Repository: syncope Updated Branches: refs/heads/master 183be626f -> aa50e8ae5
moved UserDetails username and userTO variables to class attributes in order to reuse them in child classes, for customization purposes Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/aa50e8ae Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/aa50e8ae Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/aa50e8ae Branch: refs/heads/master Commit: aa50e8ae5863244a07cdd2e229177a590412b0b9 Parents: 183be62 Author: Andrea Patricelli <andreapatrice...@apache.org> Authored: Wed Aug 23 16:25:49 2017 +0200 Committer: Andrea Patricelli <andreapatrice...@apache.org> Committed: Wed Aug 23 16:26:27 2017 +0200 ---------------------------------------------------------------------- .../syncope/client/console/wizards/any/UserDetails.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/aa50e8ae/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserDetails.java ---------------------------------------------------------------------- diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserDetails.java b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserDetails.java index 844ff4b..75ddac8 100644 --- a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserDetails.java +++ b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserDetails.java @@ -43,6 +43,10 @@ public class UserDetails extends Details<UserTO> { private static final String PASSWORD_CONTENT_PATH = "body:content"; + protected final AjaxTextFieldPanel username; + + protected final UserTO userTO; + public UserDetails( final UserWrapper wrapper, final boolean templateMode, @@ -51,11 +55,11 @@ public class UserDetails extends Details<UserTO> { final PageReference pageRef) { super(wrapper, templateMode, includeStatusPanel, pageRef); - final UserTO userTO = wrapper.getInnerObject(); + userTO = wrapper.getInnerObject(); // ------------------------ // Username // ------------------------ - final AjaxTextFieldPanel username = new AjaxTextFieldPanel( + username = new AjaxTextFieldPanel( "username", "username", new PropertyModel<String>(userTO, "username"), false); if (wrapper.getPreviousUserTO() != null && StringUtils.