Date: 2004-12-16T13:12:46
   Editor: HassanReyes <[EMAIL PROTECTED]>
   Wiki: Apache Struts Wiki
   Page: ActionForms
   URL: http://wiki.apache.org/struts/ActionForms

   Add new FormPropertyConfig dinamicly

Change Log:

------------------------------------------------------------------------------
@@ -27,3 +27,6 @@
 ----
 
 Up to ["ValidatorFAQ"]
+
+
+Hi everybody... I'm working with DynaActionForms, because is cool to do not 
create an Form class for each Form. But what about if I want to 'extend' my 
form definition, yes, is like if this Form is instanceof MyDynaActionForm so 
add all this properties to the internal Map. I was looking for... and i found 
that you can add new properties or FormPropertyConfig to the FormBeanConfig 
before it come to be freeze. You can do this with a PlugIn, just put the 
instanceof validation and add the new properties with the 
addFormPropertyConfig() method, yes you can debug it and you will see that the 
internal Map is growing, but when you go into you execute method on the Action 
class and read the size of the internal Map of properties, you will see that 
all the properties are not there... why? I dont know... Do some body know 
why?... Thks. and sorry for my bad english.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to