I have a JSF component which is initialized from a managed bean's getter getProperty()
. Is it mandatory to also have a setter setProperty()
in that managed bean?
It depends.
Some property bindings must be read-write. For example, if you bind the value of a component that implements EditableValueHolder
. Other properties can be read-only.
If you use the binding
attribute for dynamically creating component instances, this must also be read-write as per the contract defined in the specification.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With