Hi, I’m trying to integrate MyFaces into an in-house web framework and have a couple of grey areas that I’m trying to think through.
Lets say I want to dynamically build a JSF form and the controls that should be included in the form are defined at runtime, instead of a typical java bean. The idea I have is to dynamically build a JSF form all in code and then be able to reuse it throughout the life of the form. The first thing I need to figure out is what API would I use to directly instantiate stuff like, <h:form><f:inputText> etc. directly in code without using the associated Taglibs. Is this possible?
I currently have a controller that is responsible for serving all requests and its specific to an existing framework that I still want to use. However I also want to use JSF!. The way I see myself wanting to integrate this is like this: I have my overall page broken down into 4 sections, for the sake of this example lets say each section is its own jsp page. Now lets say that I know one of these pages is a JSF page, I would usually get a RequestDispatcher off the ServletContext to get the jsp output but in this case it has to go through the JSF controller. What could I do? Or more generally is it even possible to put the JSF controller behind another controller?
Any comments or thoughts would be greatly appreciated as I’m having a tough time finding my answers on the web.
|
- Using JSF from code & behind another controller Duncan Krebs
- Re: Using JSF from code & behind another contro... Craig McClanahan
- RE: Using JSF from code & behind another contro... balaji.saranathan