Author: ivaynberg
Date: Tue Apr 15 09:10:48 2008
New Revision: 648307

URL: http://svn.apache.org/viewvc?rev=648307&view=rev
Log:
xhtml compliance

Modified:
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/SelectOption.java

Modified: 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/SelectOption.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/SelectOption.java?rev=648307&r1=648306&r2=648307&view=diff
==============================================================================
--- 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/SelectOption.java
 (original)
+++ 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/SelectOption.java
 Tue Apr 15 09:10:48 2008
@@ -57,6 +57,7 @@
         * @param tag
         *            the abstraction representing html tag of this component
         */
+       @Override
        protected void onComponentTag(final ComponentTag tag)
        {
 
@@ -67,9 +68,9 @@
                if (select == null)
                {
                        throw new WicketRuntimeException(
-                                       "SelectOption component [" +
-                                                       getPath() +
-                                                       "] cannot find its 
parent Select. All SelectOption components must be a child of or below in the 
hierarchy of a Select component.");
+                               "SelectOption component [" +
+                                       getPath() +
+                                       "] cannot find its parent Select. All 
SelectOption components must be a child of or below in the hierarchy of a 
Select component.");
                }
 
                // assign name and value
@@ -79,7 +80,7 @@
 
                if (select.isSelected(this))
                {
-                       tag.put("selected", "true");
+                       tag.put("selected", "selected");
                }
 
                // Default handling for component tag


Reply via email to