(Reprint, please indicate the source, the author.)
Dynamic Form fields in Webwork
=========================
Under normal circumstances, WebWork uses field drivers or model drivers to get data in the form. (Ordinary form)
However, in case, the content of the field that needs to be edited is dynamically changed, and the determined class is not used to make mappings.
At this point, I think of the following ways to solve:
1. Use the internal object of WebWork to remove all parameters
ActionContext context = actionContext.getContext ();
Map params = context.getParameters ();
Operate Params to get all parameters
2. Maps using MAP
Map has GET, PUT functions, such as Get ("Name"), PUT ("Name", "SCUD")
After the test (there is no description of the document, the webwork document is still very small, or I have not read)
The mapping in the form uses this way:
The reading value is adopted by Fields ['Name'], which is mentioned in this document.
The specific documents are as follows:
A: Enter page
<% @ Taglib Uri = "Webwork" prefix = "ww"%>
hEAD>
what's your name? p>