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 2015/05/15 17:36:37 UTC
syncope git commit: Fixing a "focus" bug when searching roles.
Currently, hitting "enter" on the final textfield doesn't search,
but switches tabs instead.
Repository: syncope
Updated Branches:
refs/heads/1_2_X 4f65a9202 -> ac920f0b1
Fixing a "focus" bug when searching roles. Currently, hitting "enter" on the final textfield doesn't search, but switches tabs instead.
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/ac920f0b
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/ac920f0b
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/ac920f0b
Branch: refs/heads/1_2_X
Commit: ac920f0b199b9903579786c7a53359839bad5eb9
Parents: 4f65a92
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Fri May 15 16:35:27 2015 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Fri May 15 16:35:27 2015 +0100
----------------------------------------------------------------------
.../org/apache/syncope/console/pages/Roles.java | 36 +++++++++++---------
1 file changed, 20 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/ac920f0b/console/src/main/java/org/apache/syncope/console/pages/Roles.java
----------------------------------------------------------------------
diff --git a/console/src/main/java/org/apache/syncope/console/pages/Roles.java b/console/src/main/java/org/apache/syncope/console/pages/Roles.java
index fa94ee4..9ce3d51 100644
--- a/console/src/main/java/org/apache/syncope/console/pages/Roles.java
+++ b/console/src/main/java/org/apache/syncope/console/pages/Roles.java
@@ -111,26 +111,30 @@ public class Roles extends BasePage {
final RoleSearchPanel searchPanel = new RoleSearchPanel.Builder("searchPanel").build();
searchForm.add(searchPanel);
- searchForm.add(new ClearIndicatingAjaxButton("search", new ResourceModel("search"), getPageReference()) {
+ final ClearIndicatingAjaxButton searchButton =
+ new ClearIndicatingAjaxButton("search", new ResourceModel("search"), getPageReference()) {
- private static final long serialVersionUID = -958724007591692537L;
+ private static final long serialVersionUID = -958724007591692537L;
- @Override
- protected void onSubmitInternal(final AjaxRequestTarget target, final Form<?> form) {
- final String fiql = searchPanel.buildFIQL();
- LOG.debug("Node condition {}", fiql);
-
- doSearch(target, fiql, searchResult);
+ @Override
+ protected void onSubmitInternal(final AjaxRequestTarget target, final Form<?> form) {
+ final String fiql = searchPanel.buildFIQL();
+ LOG.debug("Node condition {}", fiql);
- Session.get().getFeedbackMessages().clear();
- searchPanel.getSearchFeedback().refresh(target);
- }
+ doSearch(target, fiql, searchResult);
- @Override
- protected void onError(final AjaxRequestTarget target, final Form<?> form) {
- searchPanel.getSearchFeedback().refresh(target);
- }
- });
+ Session.get().getFeedbackMessages().clear();
+ searchPanel.getSearchFeedback().refresh(target);
+ }
+
+ @Override
+ protected void onError(final AjaxRequestTarget target, final Form<?> form) {
+ searchPanel.getSearchFeedback().refresh(target);
+ }
+ };
+
+ searchForm.add(searchButton);
+ searchForm.setDefaultButton(searchButton);
}
private void doSearch(final AjaxRequestTarget target, final String fiql,