incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmatth...@apache.org
Subject svn commit: r1057213 - /incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/form/InputForm.java
Date Mon, 10 Jan 2011 14:34:37 GMT
Author: rmatthews
Date: Mon Jan 10 14:34:36 2011
New Revision: 1057213

URL: http://svn.apache.org/viewvc?rev=1057213&view=rev
Log:
Fixed checkbox value

Modified:
    incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/form/InputForm.java

Modified: incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/form/InputForm.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/form/InputForm.java?rev=1057213&r1=1057212&r2=1057213&view=diff
==============================================================================
--- incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/form/InputForm.java
(original)
+++ incubator/isis/trunk/viewer/scimpi/dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/view/form/InputForm.java
Mon Jan 10 14:34:36 2011
@@ -153,7 +153,7 @@ public class InputForm {
         String entryText = field.getValue();
         String valueSegment = entryText != null && entryText.toLowerCase().equals("true")
? " checked=\"checked\"" : "";
         String disabled = field.isEditable() ? "" : " disabled=\"disabled\"";
-        return "<input type=\"checkbox\" name=\"" + field.getName() + "\"" + valueSegment
+ disabled + " />";
+        return "<input type=\"checkbox\" name=\"" + field.getName() + "\" value=\"true\"
" + valueSegment + disabled + " />";
     }
 
     private static String createOptions(InputField field) {



Mime
View raw message