• Post Reply Bookmark Topic Watch Topic
  • New Topic

input text disabled style class

 
The David Miller
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there a way to apply different css to an inputText component when it's disabled? It doesn't seem to have a disabledClass attribute like a selectManyListbox, etc...

Thanks,
Dave
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David

You can use a property of your managed bean to set the name of the css class, for example if you have a css class named cssDisabled when the input is disabled and a css class named cssEnabled when the input is enabled you must set the component attribute like this:

And the property cssName:

Regards

Cesar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!