PasswordTextField {
        protected String getInputType()
        {
                return "password";
        }
}

TextField {
        /**
         * Subclass should override this method if this textfields mappes on
a different
         * input type as text. Like PasswordField or HiddenField.
         *
         * @return The input type of this textfield, default is 'text'
         */
        protected String getInputType()
        {
                return null;
        }
}

On 7/19/07, David Rosenstrauch <[EMAIL PROTECTED]> wrote:
> Martijn Dashorst wrote:
> > On 7/19/07, David Rosenstrauch <[EMAIL PROTECTED]> wrote:
> >> Martijn Dashorst wrote:
> >>> It is configurable: don't use PasswordTextField but TextField instead.
> >> No.  If you try to use a TextField, then wicket will insist that you
> >> convert your HTML to use <input type="text"/> instead of <input
> >> type="password"/> - and thus lose the masked password entry capabilities
> >> (i.e., echoing "*" characters).
> >
> > In 1.3-beta2 the type is not specified: so you can use any type of
> > field.
>
>
> ?  I am using 1.3-beta2.
>
>
> > IIUC (I don't have the code open) you can override the
> > getType() method of the textfield, and return null.
> >
> > Martijn
> >
>
> Hmmm ... I don't think I totally understand what you're suggesting here:
>
> new RequiredTextField() {
>         public Class getType() {
>                 return ....what?!?!?;
>         }
> }
>
> And now that I check, that's not even allowed.  getType() is final in
> FormComponent.
>
> DR
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to