|
Hi,
I'm new to all of this and
learning on the way.
But I'm doing something similar to the
first point below.
I'm building a component that can build me
a form from XML based configuration file. In that case you would directly
use the HtmlForm and HtmlInputText. The component I'm designing builds the form
page with the regular _expression_ validator thrown into it. It also takes in a
Bean to fill in the values in case of a Edit mode.
I would also appreciate if I get any
feedback on designing such dynamically created forms. Is it worth the effort to
do it?
From: Duncan Krebs [mailto:[EMAIL PROTECTED] Sent: Sat 7/23/05 1:43 AM To: [email protected] Subject: Using JSF from code & behind another controller 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

