I have a composite component with an interface that contains this:
<cc:attribute name="model" shortDescription="Bean that contains Location" > <cc:attribute name="location" type="pkg.Location" required="true" /> </cc:attribute> </cc:interface>
Therefore, I can access the Location object in the markup using # {cc.attrs.model.location} .
I also access this object from the bean base of the composite component as follows:
FacesContext fc = FacesContext.getCurrentInstance(); Object obj = fc.getApplication().evaluateExpressionGet(fc, "#{cc.attrs.model.location}", Location.class);
So now my composite component has done its job - how can I call the setter method on a model from a backup bean? (i.e. model.setLocation (someValue) ?
source share