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?
I have a JSF component which is initialized from a managed bean’s getter getProperty()
Share
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
bindingattribute for dynamically creating component instances, this must also be read-write as per the contract defined in the specification.