how create password field?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how create password field?

jens.riboe
How do I create a password field
    <INPUT type=password ...>

There is no GSP tag for it and
    <g:textField name="pwd" value="" type="password"/>
do not work.

Unless I missed something in the docs, this looks like an oversight.
    /jens

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: how create password field? - PATCH

jens.riboe
I added this snippet
        def passwordField = { attrs ->
                attrs.type = "password"  
                attrs.tagName = "textField"
                def result = field(attrs)
                if(result) {    
                        out << result
                }
        }
to

${grails-install-dir}/src/groovy/org/codehaus/groovy/grails/plugins/web/taglib/FormTagLib.groovy
and did a rebuild with
    ant jar
(the Grails src distr is needed)

After that, I could use the tag
    <g:passwordField name="pwd" value=""/>

Would it be possible for any of the committers to add this patch,
please?

    /jens


On Thu, 2007-12-20 at 12:59 +0100, Jens Riboe wrote:

> How do I create a password field
>     <INPUT type=password ...>
>
> There is no GSP tag for it and
>     <g:textField name="pwd" value="" type="password"/>
> do not work.
>
> Unless I missed something in the docs, this looks like an oversight.
>     /jens
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email