Bug added:

http://sourceforge.net/tracker/index.php? func=detail&aid=1470901&group_id=119783&atid=684975

On Apr 15, 2006, at 11:52 AM, Johan Compagner wrote:

I see we do this test:

        // If this is not a subclass (PasswordTextField)
        if (getClass() == TextField.class)
        {
            // check for text type
            checkComponentTagAttribute(tag, "type", "text");
        }

But that is ofcourse wrong for the RequiredTextField that is just a TextField it
has only overridden the constructos to call setRequired(true)

So if anybody overrides a textfield the type check is gone. this is a bit wrong.
can you add a bug for this?

johan


On 4/15/06, Michael Day <[EMAIL PROTECTED]> wrote: When specifying input elements, are we supposed to specify the type,
or let wicket handle it?

Example:

<input wicket:id="phone" id="phone" size="12" maxlength="20" />

This works with RequiredTextField, but TextField makes me add the
type="text" attribute to the <input>

wicket.markup.MarkupException: Component phone must be applied to a
tag with 'type' attribute matching 'text', not 'null'

Thanks,
Michael Day


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel? cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to