click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Finn Bock (JIRA)" <>
Subject [jira] Created: (CLK-574) DateField .help property is rendered twice
Date Fri, 31 Jul 2009 10:48:14 GMT
DateField .help property is rendered twice

                 Key: CLK-574
             Project: Click
          Issue Type: Bug
          Components: extras
    Affects Versions: 2.1.0 RC1
            Reporter: Finn Bock

If the property is defined in the page property file, the help text for the
DateField is rendered twice, first after the input field, then after the calendar icon:

<td class="fields" align="left"><label for="date_field">Enter the date</label>&#160;</td>
<td align="left"><input type="text" name="date" id="date_field" value="" size="20"
title="The title"/>Help Me!<img align="top" style="cursor:hand" src="/click/calendar/calendar.gif"
id="date_field-button"  alt="Calendar" title="Calendar"/>Help Me!</td>

While DateField tries to null out the help field in its render(buffer) method, the getHelp()
method in Field will still return the help text from the property file.

public class TestPage extends Page {
    public Form form = new Form();
    public TestPage() {
        form.add(new DateField("date"));
} Me!
date.title=The title
date.label=Enter the date



This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message