de.odysseus.calyxo.struts.forms.legacy |
This package contains action form implementations, that can be used with
the struts html tags.
The classes can be used as a drop-in replacement for struts' standard
action form classes. Simply derive your form class from the appropriate variant.
There are two groups of action form base classes:
Note: the classes (currently) require all form bean properties to be of type
java.lang.String !
-
The classes starting with
Simple do not
keep form data. Using this kind of action forms, you will just use Calyxo
Forms validation, but you won't be able to access the validated data.
Also, the action form properties won't be flushed with formatted values.
-
The classes starting with
Flushable will keep validated
form data using a map. Thus, you will be able to access the data in
your actions. Using the calyxo-struts:flush tag within
your html:form tag will format the data back to the action
form properties.
Keeping the validated values has several benefits.
First, you can initialize or modify them from within your actions.
Displaying the form will always show the current values.
Second, since validated form data is committed "per form",
invalid user inputs do not change the state of your data.
Both groups come in two variants (see struts documentation):
*ActionForm uses ordinary form bean properties
*DynaActionForm uses dynamic form bean properties
|
Java Source File Name | Type | Comment |
DynaFormAccessor.java | Class | |
FlushableActionForm.java | Class | This class can be used as a drop-in replacement to struts' standard
action form class.
However, all form bean properties have to be of type
java.lang.String .
If you migrate from an existing struts application or want to use
Calyxo Forms with the struts html tags, this class might
be your choice. |
FlushableDynaActionForm.java | Class | This class can be used as a drop-in replacement to struts' standard
dyna action form class.
However, all dynamic form bean properties have to be of type
java.lang.String .
If you migrate from an existing struts application or want to use
Calyxo Forms with the struts html tags, this class might
be your choice. |
FlushableForm.java | Interface | |
FormAccessor.java | Class | Access String and String[] properties. |
SimpleActionForm.java | Class | This class can be used as a drop-in replacement to struts' standard
action form class.
However, all form bean properties have to be of type
java.lang.String .
If you migrate from an existing struts application, this class might
be the first step. |
SimpleDynaActionForm.java | Class | This class can be used as a drop-in replacement to struts' standard
dyna action form class.
However, all form bean properties have to be of type
java.lang.String .
If you migrate from an existing struts application, this class might
be the first step. |