You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/08/13 00:23:18 UTC

[18/21] git commit: ISIS-825, ISIS-544: fix for auto-focus of BigDecimal, also for date fields.

ISIS-825, ISIS-544: fix for auto-focus of BigDecimal, also for date fields.


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/60e212d9
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/60e212d9
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/60e212d9

Branch: refs/heads/prepare/isis-1.6.0-RC2
Commit: 60e212d9aca8bc15b1a60e20a4b6b04df783cbe5
Parents: 41ef736
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu Jul 24 06:24:44 2014 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Jul 24 06:24:44 2014 +0100

----------------------------------------------------------------------
 .../components/widgets/cssmenu/ActionLinkFactoryAbstract.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/60e212d9/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/cssmenu/ActionLinkFactoryAbstract.java
----------------------------------------------------------------------
diff --git a/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/cssmenu/ActionLinkFactoryAbstract.java b/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/cssmenu/ActionLinkFactoryAbstract.java
index 4b09951..945bd27 100644
--- a/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/cssmenu/ActionLinkFactoryAbstract.java
+++ b/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/cssmenu/ActionLinkFactoryAbstract.java
@@ -130,7 +130,11 @@ public abstract class ActionLinkFactoryAbstract implements ActionLinkFactory {
                     final Component actionPanelFirstParam = actionPanel.visitChildren(new IVisitor<Component, Component>() {
                         @Override
                         public void component(Component object, IVisit<Component> visit) {
-                            if (object instanceof FormComponent) {
+                            if (object instanceof FormComponent &&
+                                !"scalarIfCompact".equals(object.getId()) &&
+                                object.getOutputMarkupId()) {
+                                // there are components for 'compact' and 'regular'; we want the 'regular' one
+                                // also double check that has outputMarkupId enabled (prereq for setting focus)
                                 visit.stop(object);
                             }
                         }