Hello,
I am considering doing code generation of backing beans, JS files, CSS
files,
and I18N text properties files based on the JSF component model for a given
screen.
One hurdle I need to overcome is that this code generation phase must
occur during the development cycle (not at run-time). Therefore, I need
to be able to "load" a JSP file, extract the JSF component model, and then
walk the model and generate code based upon the components in the model.
Has anyone already tried this? That is, have you created the code to (a)
compile the JSP, (b) create a FacesContext, (c) execute the JSP (I image
that
just calling the service() method would be sufficient), and (c) extract the
UIViewRoot (from the FacesContext). Did I miss any steps? How could
I accomplish steps (a) and (b)?
Thanks,
Bryan