Re: How to generate form controls dynamically

2006-03-09 Thread Craig McClanahan
On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello Craig, > > thanks for your answer. The phase listener is the correct timepoint for > the > component creation, yet it will be executed repeatedly for each request so > how > can I avoid re-adding components to the view tree? Isn't th

Re: How to generate form controls dynamically

2006-03-09 Thread t . ziemer
Hello Craig, thanks for your answer. The phase listener is the correct timepoint for the component creation, yet it will be executed repeatedly for each request so how can I avoid re-adding components to the view tree? Isn't there something like a servlet's init() method? Otherwise I'd still have

Re: How to generate form controls dynamically

2006-03-09 Thread Craig McClanahan
On 3/9/06, Tom Ziemer <[EMAIL PROTECTED]> wrote: > > Hi Craig, > > sorry, if this is totally OT, but I just posted a similar question in > the sun forum: Where would you actually place the code you mentioned > within a JSF component? I mean beginEncode() is called each time the > page is requested

Re: How to generate form controls dynamically

2006-03-09 Thread Tom Ziemer
Hi Craig, sorry, if this is totally OT, but I just posted a similar question in the sun forum: Where would you actually place the code you mentioned within a JSF component? I mean beginEncode() is called each time the page is requested so what can I do, if I only want to add a component once? I do

Re: How to generate form controls dynamically

2006-03-09 Thread Frank W. Zammetti
While it is true you cannot do it with Stuts HTML tags, remember that those tags render plain HTML when all is said and done, as does JSF incidentally, and there is nothing to stop you from doing that yourself. It's a pretty trivial exercise really. Frank Craig McClanahan wrote: On 3/9/06,

Re: How to generate form controls dynamically

2006-03-09 Thread Craig McClanahan
On 3/9/06, Rivka Shisman <[EMAIL PROTECTED]> wrote: > > Hi friends, > > > > I need to dynamically build an input form that may contain various > html:fields (i.e. html:text, html:select, html:radio etc). > > The type and name of the html:field will be determined at runtime (from > DB table). > > Ho

How to generate form controls dynamically

2006-03-09 Thread Rivka Shisman
Hi friends, I need to dynamically build an input form that may contain various html:fields (i.e. html:text, html:select, html:radio etc). The type and name of the html:field will be determined at runtime (from DB table). How can I do it using Struts and JSP? Thanks Rivka