ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1302984 - /ace/trunk/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java
Date Tue, 20 Mar 2012 16:34:22 GMT
Author: marrs
Date: Tue Mar 20 16:34:22 2012
New Revision: 1302984

URL: http://svn.apache.org/viewvc?rev=1302984&view=rev
Log:
ACE-234 fixed a related bug, once registered, you cannot "unregister" a target anymore, so
disable the checkbox

Modified:
    ace/trunk/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java

Modified: ace/trunk/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java?rev=1302984&r1=1302983&r2=1302984&view=diff
==============================================================================
--- ace/trunk/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java
(original)
+++ ace/trunk/ace-target-mgmt-ui/src/main/java/org/apache/ace/target/management/ui/TargetManagementExtension.java
Tue Mar 20 16:34:22 2012
@@ -58,7 +58,7 @@ public class TargetManagementExtension i
 
         final StatefulTargetObject target = (StatefulTargetObject) object;
 
-        CheckBox registerCB = new CheckBox("Registered?");
+        final CheckBox registerCB = new CheckBox("Registered?");
         registerCB.setImmediate(true);
         registerCB.setEnabled(!target.isRegistered());
         registerCB.setValue(Boolean.valueOf(target.isRegistered()));
@@ -66,6 +66,7 @@ public class TargetManagementExtension i
             public void buttonClick(ClickEvent event) {
                 if (event.getButton().booleanValue()) {
                     target.register();
+                    registerCB.setEnabled(!target.isRegistered());
                 }
             }
         });



Mime
View raw message