[racket] textarea-input formlet | How to specify rows & cols

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Fri Aug 6 14:01:14 EDT 2010

The textarea formlet doesn't support setting those attributes right
now. It should be straight-forward for you to do and me to commit the
patch. Check out:


and compare textarea-input to text-or-password and you should be able
to do it fairly easily.

If you submit a bug report, then it will be on my TODO list to get to


On Wed, Aug 4, 2010 at 1:19 PM, Horace Dynamite
<horace.dynamite at gmail.com> wrote:
> I'm really struggling to understand how to use these formlets, so
> please bear with me here :-)
> I've been playing with the continue blog application, and instead of
> input fields consisting of just a single row when you're adding a new
> post, I'd like to have a TEXTAREA field instead for the post body.
> I've got the following formlets,
> (define make-post-formlet
>  (formlet
>   (#%#
>    (div ((class "make-post-title"))
>    "Title:" ,{input-string . => . title})
>    (div ((class "make-post-body"))
>     "Post:" ,{(textarea-input) . => . post})
>    (input ((type "submit"))))
>   (list title post)))
> (define display-post-confirm
>  (match-lambda
>    [(list title post)
>     `(html
>       (head (title "Post confirm page"))
>       (body
>        "Post title: " ,title
>        "Post contents:" ,post))]))
> Notice in make-post-formlet, I'm using the predefined textarea-input
> formlet. A lot of the other formlets have optional attributes you can
> set specifying various features of that particular HTML entity, but I
> don't understand how to specify the row and column size for the
> textarea-input formlet.
> Any help on how to do this, or whether I should be considering a
> different approach would be much appreciated.
> Thanks,
> Horace.
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.