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
-
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
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.
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
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
5 matches
Mail list logo