Bug 15247 - text field default value always generated
Summary: text field default value always generated
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Input Taglib (show other bugs)
Version: 1.1
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2002-12-10 19:42 UTC by Frank Miceli
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Frank Miceli 2002-12-10 19:42:17 UTC
The text tag:
<input:text name="text" default="default text" bean="myBean" /> 

always generates the default text, even when a value is present in the value 

<input type="text" name="text" value="text from bean" value="default text" />

The default value should be suppressed when the field has data.
Comment 1 Karl von Randow 2002-12-10 20:09:46 UTC
Good spotting, that's fixed and committed to CVS - so should be available for 
download after the nightly build.

The bug affected the Text, Password and TextArea tags.
Comment 2 The Bugmanager 2004-02-13 14:26:49 UTC
I am finding the same problem. I download the lastest version from nightly
builds but the problem continues.
Here is my code:

<jsp:useBean id="user" class="the.complete.class.Name"/>
<input:form bean="user" action="/action" method="post">
   <input:text name="name" default="Type the user name"/>
Comment 3 Karl von Randow 2004-10-26 23:05:12 UTC
I can't reproduce this bug in the latest copy of the input taglib. Perhaps 
this was a problem related to the lack of a release() method previously. 
Please download the latest input taglib and try again.

If the problem is reproduced, please submit the generated HTML as well.