I'm having a similar problem, I'm not using the config for elements though.

To get a class onto the element I think you would need to add...
user.login.elements.password.options.attrib = "element text medium"

But then you'd get the problem I'm having which is if you specifiy a class
then you'll loose the required or optional class that gets added when you
specifiy required = true

I'm proposing that they having something like addClass or setClass where
they would add the class name to a list of definded classes then at render
explode that list seperated by a space.

On Wed, Feb 20, 2008 at 4:48 PM, bjorn - <[EMAIL PROTECTED]> wrote:

> Here's an example of my config for the Password entry field in my login
> form:
>
> user.login.elements.password.type = "password"
> user.login.elements.password.options.validators.strlen.validator =
> "StringLength"
> user.login.elements.password.options.validators.strlen.options.min = "6"
> user.login.elements.password.options.required = true
> user.login.elements.password.options.label = "Password"
> user.login.elements.password.options.class = "element text medium"
>
> I'd like the label to have a class though, how can that be accomplished? (
> options.label.class = 'blabla' didn't work ..)
>
> --
>
> ========================
> http://www.juicability.com - flex blog
> http://www.43min.com - funny movies
>



-- 
/James

Reply via email to