Why encodeXxx methods in UIComponent accept FacesContext parameter?
- by Roman
I haven't ever before created custom component in jsf so I've noticed it only now that methods like encodeBegin(), encodeEnd() etc accept FacesContext parameter.
FacesContext instance can usually be received with FacesContext.getCurrentInstance().
So, I wonder whether these methods have FacesContext parameter just for convenience or some different objects can be passed there (maybe from external resources..). If the latter is possible then could you give an example pls.