You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by de...@struts.apache.org on 2004/12/16 22:12:46 UTC

[Apache Struts Wiki] Updated: ActionForms

   Date: 2004-12-16T13:12:46
   Editor: HassanReyes <ha...@yahoo.com.mx>
   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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org