click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r952266 - /click/trunk/click/framework/src/org/apache/click/util/PageImports.java
Date Mon, 07 Jun 2010 15:20:59 GMT
Author: sabob
Date: Mon Jun  7 15:20:59 2010
New Revision: 952266

URL: http://svn.apache.org/viewvc?rev=952266&view=rev
Log:
fixed PageImports to include RadioGroup's Radio HEAD elements. CLK-682

Modified:
    click/trunk/click/framework/src/org/apache/click/util/PageImports.java

Modified: click/trunk/click/framework/src/org/apache/click/util/PageImports.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/PageImports.java?rev=952266&r1=952265&r2=952266&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/PageImports.java (original)
+++ click/trunk/click/framework/src/org/apache/click/util/PageImports.java Mon Jun  7 15:20:59
2010
@@ -28,6 +28,8 @@ import org.apache.click.Control;
 import org.apache.click.Page;
 import org.apache.click.control.Container;
 import org.apache.click.control.Panel;
+import org.apache.click.control.Radio;
+import org.apache.click.control.RadioGroup;
 import org.apache.click.control.Table;
 import org.apache.click.element.CssImport;
 import org.apache.click.element.CssStyle;
@@ -383,6 +385,14 @@ public class PageImports {
                     processControl(childControl);
                 }
             }
+
+        } else if (control instanceof RadioGroup) {
+            RadioGroup radioGroup = (RadioGroup) control;
+            if (radioGroup.hasRadios()) {
+                for (Radio radio : radioGroup.getRadioList()) {
+                    processControl(radio);
+                }
+            }
         }
     }
 



Mime
View raw message