[Bese-devel] Forms, how to make them

Pupeno pupeno at pupeno.com
Wed Jun 21 00:27:32 UTC 2006


Hello,
I have made a simple component with a some fields and now I want it to
be a form, I've tried two ways which lead to different problems.
In-CL markup, so I build the form like:

(<:p (<:label "Name: " (render (account-name form))))
(<:p (<:label "Email address: " (render (account-email form))))
(<:p (<:label "Password: " (render (account-password form)))))

Now, for example, how do I put an "accesskey" parameter to the generated
input elements ?
I am ok with automatically generated ids and names, but, do they have to
be randomly generated ? It breaks the useful browser feature of
auto-completation.

Then I tried using TAL (with which I am confortable since my days as a
Zope developer), but there, how do I generate the input elements ?
and/or can I write them myself (to have the right names and the right
parameters, like "account-name" and "n" for the first field in the
previous example) ? Is it possible to still have all that javascript
voodoo still in place ?

Thanks.
-- 
Pupeno <pupeno at pupeno.com> http://pupeno.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060621/b943a855/attachment.sig>


More information about the bese-devel mailing list