I have a selectOneMenu and trying to disable on page load. I have a couple other inputText elements that do become disabled when the onLoad is triggered. When searching the web I did find a couple other questions around this topic but no answers. Anyone know if this is a known issue or there is a work around to get the selectOneMenu to become disabled/enabled?
Asked
Active
Viewed 1,474 times
0
-
show your code , basically you need to use the `disabled="#{myBean.myCondition}"` .... – Daniel Sep 24 '12 at 18:48
-
I want to be able to disabled/enabled on a jquery call...here is my code: – Joseph Vance Sep 24 '12 at 18:50
-
$j(PrimeFaces.escapeClientId('question')).attr('disabled',true); – Joseph Vance Sep 24 '12 at 18:50
1 Answers
0
INMO no way you can do it in such a way that you described ($j(PrimeFaces.escapeClientId('question')).attr('disabled',true);
) look into what its being rendered.... probably some kinda complex table...
If you need to disable it on page load just use the disabled
attribute... if you need to disable from client side later on use the primeface blockUI

Daniel
- 36,833
- 10
- 119
- 200