The use of a PhaseListener to set EL values seems to the casual observer like Voodoo magic. You will see the EL expressions on the page, and they magically seem to populate. In some ways it is like a classical interceptor which can make your code really seem magical, and lead to confusion. This approach though has its place, and if used correctly can solve a lot of issues. One example is determining if a
<ui:include src="XXX" rendered="#{EL_VARIABLE_HERE}" />
should render.It can also be used to set the src value on the fly. An always popular question on how to resolve.
The project can be found on GitHub here: jsf-ve-phaselistener
So the output looks like a nice set of name value pairs using the Greek alphabet as variable names.
No comments:
Post a Comment