Re: Trying to create a form object in code

2005-02-23 Thread Richard Yee
What is the entry in your struts-config.xml file for your form. It doesn't appear that it is a DynaForm. If it isn't then you can just do a new formDataCopy(). -Richard At 04:43 AM 2/23/2005, you wrote: Does anyone have an idea on this? I am trying to create a LazyValidatorForm object in code -

Re: Trying to create a form object in code

2005-02-23 Thread Norris Shelton
Fantastic. Someone had showed me something similar earlier, but I was hung-up on the servlet parameter. I did not know that it was already available in the action. Thanks so much. --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > createDynActionFormClass(FormBeanConfig) is only for > DynaAction

Re: Trying to create a form object in code

2005-02-23 Thread Niall Pemberton
createDynActionFormClass(FormBeanConfig) is only for DynaActionForm and its derivatives - LazyValidatorForm isn't a DynaActionForm (its an ActionForm thats a DynaBean, but not a DynaActionForm). If you want to create any kind of ActionForm, then call the FormBeanConfig's createActionForm() method.

Re: Trying to create a form object in code

2005-02-23 Thread Norris Shelton
Does anyone have an idea on this? I am trying to create a LazyValidatorForm object in code --- Norris Shelton <[EMAIL PROTECTED]> wrote: > FormBeanConfig cfg = > mapping.getModuleConfig().findFormBeanConfig(name); > form =(DynaActionForm) > DynaActionFormClass.createDynaActionFormClass(cfg).newIn

Trying to create a form object in code

2005-02-17 Thread Norris Shelton
FormBeanConfig cfg = mapping.getModuleConfig().findFormBeanConfig(name); form =(DynaActionForm) DynaActionFormClass.createDynaActionFormClass(cfg).newInstance(); The cfg object has the properties for my dyna bean, but I get: java.lang.IllegalArgumentException: ActionForm is not dynamic at