ASF Bugzilla – Attachment 9557 Details for
Bug 25497
Input tags generate invalid XHTML,
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Input Option taglib patch
Option.patch.txt (text/plain), 3.94 KB, created by
Ben Meadowcroft
on 2003-12-13 10:25:04 UTC
(
hide
)
Description:
Input Option taglib patch
Filename:
MIME Type:
Creator:
Ben Meadowcroft
Created:
2003-12-13 10:25:04 UTC
Size:
3.94 KB
patch
obsolete
>--- Option.orig 2003-12-12 09:39:28.000000000 +0000 >+++ Option.java 2003-12-12 23:14:39.000000000 +0000 >@@ -3,7 +3,7 @@ > * > * The Apache Software License, Version 1.1 > * >- * Copyright (c) 1999 The Apache Software Foundation. All rights >+ * Copyright (c) 1999 The Apache Software Foundation. All rights > * reserved. > * > * Redistribution and use in source and binary forms, with or without >@@ -11,7 +11,7 @@ > * are met: > * > * 1. Redistributions of source code must retain the above copyright >- * notice, this list of conditions and the following disclaimer. >+ * notice, this list of conditions and the following disclaimer. > * > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in >@@ -19,15 +19,15 @@ > * distribution. > * > * 3. The end-user documentation included with the redistribution, if >- * any, must include the following acknowlegement: >- * "This product includes software developed by the >+ * any, must include the following acknowlegement: >+ * "This product includes software developed by the > * Apache Software Foundation (http://www.apache.org/)." > * Alternately, this acknowlegement may appear in the software itself, > * if and wherever such third-party acknowlegements normally appear. > * > * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software > * Foundation" must not be used to endorse or promote products derived >- * from this software without prior written permission. For written >+ * from this software without prior written permission. For written > * permission, please contact apache@apache.org. > * > * 5. Products derived from this software may not be called "Apache" >@@ -53,7 +53,7 @@ > * information on the Apache Software Foundation, please see > * <http://www.apache.org/>. > * >- */ >+ */ > package org.apache.taglibs.input; > > import java.util.*; >@@ -102,9 +102,9 @@ > */ > > HashMap chosen = getChosen(); >- >+ > if ( value != null && chosen != null && chosen.containsKey( value ) ) { >- out.print( "selected=\"true\" " ); >+ out.print( "selected=\"selected\" " ); > } > > // end the starting tag >@@ -115,7 +115,7 @@ > } > return EVAL_BODY_INCLUDE; > } >- >+ > public int doEndTag() throws JspException { > try { > JspWriter out = pageContext.getOut(); >@@ -125,7 +125,7 @@ > throw new JspTagException(ex.getMessage()); > } > } >- >+ > protected HashMap getChosen() throws JspException { > Select selectTag = (Select) findAncestorWithClass( this, Select.class ); > if ( selectTag != null ) { >@@ -139,7 +139,7 @@ > public void setValue(String x) { > value = x; > } >- >+ > /** Getter for property value. > * @return Value of property value. > */ >@@ -148,19 +148,19 @@ > public void setAttributes(Map x) { > attributes = x; > } >- >+ > /** Getter for property attributes. > * @return Value of property attributes. > */ > public Map getAttributes() { return attributes; } >- >+ > public void setAttributesText( String x ) { > attributesText = x; > } >- >+ > /** Getter for property attributesText. > * @return Value of property attributesText. > */ > public String getAttributesText() { return attributesText; } >- >+ > } >--- Option.orig 2003-12-12 09:39:28.000000000 +0000 >+++ Option.java 2003-12-13 09:08:53.000000000 +0000 >@@ -104,7 +104,7 @@ > HashMap chosen = getChosen(); > > if ( value != null && chosen != null && chosen.containsKey( value ) ) { >- out.print( "selected=\"true\" " ); >+ out.print( "selected=\"selected\" " ); > } > > // end the starting tag
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25497
:
9555
|
9556
| 9557 |
9558
|
9559