emreturka
emreturka

Reputation: 876

Setting disable all of the components in a JSF page

I want to set disable all of the components in a page in JSF.How to do that in Managed bean?

Upvotes: 0

Views: 429

Answers (1)

Przemek
Przemek

Reputation: 643

give all components that you want to disable a disabled flag with a boolean in the bean which indicates if the fields are enabled or not

<someTag disabled="#{yourBean.disabled}" />

Upvotes: 1

Related Questions