You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/01/15 11:17:22 UTC

[jira] [Resolved] (WICKET-5467) NumberTextField should support "any" as valid step attribute value

     [ https://issues.apache.org/jira/browse/WICKET-5467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-5467.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 7.0.0
                   6.14.0
         Assignee: Martin Grigorov

The patch is applied.
Thanks!

> NumberTextField should support "any" as valid step attribute value
> ------------------------------------------------------------------
>
>                 Key: WICKET-5467
>                 URL: https://issues.apache.org/jira/browse/WICKET-5467
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.13.0
>         Environment: wicket 6.11.0
>            Reporter: Per Newgro
>            Assignee: Martin Grigorov
>              Labels: WICKET-5096
>             Fix For: 6.14.0, 7.0.0
>
>         Attachments: fix-WICKET-5467-src.zip, fix-WICKET-5467.patch
>
>
> The NumberTextField removes the any value from step attribute added to markup.
> E.g. <input type="number" step="any" wicket:id="myNumber" />
> and add(new NumberTextField<Double>("myNumber", numModel);
> leads to markup
> <input type="number" id="myNumber" />
> but should be
> <input type="number" step="any" id="myNumber" />
> I can see 2 possbile solutions
> 1. Don't remove the step attribute
> 2. Add a constant ANY to NumberTextField
> public static final Number ANY = 0;
> and let this be configurable to users (setStep(ANY))



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)