In my application i am enabling and disabling a button according to the value selected by the user from the <h:SelectOneMenu>. I am using a valueChangeListener for the same operation.My doubt is whether it is good to use javascript or the valueChangeListener for better performance.
In my application i am enabling and disabling a button according to the value
Share
Rule #1: JavaScript can be disabled.
By the way, the
valueChangeListeneralready won’t be fired automatically without a little help of JavaScript. Theonchange="submit()"part is JavaScript.