|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.ui.util.FormConverter
An object responsbile for the conversion from an Form and GenericObject into an HtmlPage object.
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
LOC_BUTTON
Value of the "location" property we recognize in fields placed within an HtmlPage object to place it the button row we maintain. |
static java.lang.String |
PARM_ASSIMILATE_FILTER
A special HttpServletRequest parameter we look at to find post data filters. |
protected static Trace |
trace
|
Constructor Summary | |
FormConverter(RequestState state,
Form form,
GenericObject geo,
com.waveset.ui.util.html.HtmlPage page)
Build a converter, obtaining the HtmlPage class for the form. |
Method Summary | |
void |
assimilatePostData(RequestState state)
Given a HttpServletRequest containing parameters posted from an HTML form, iterate over the fields defined in the Form object, locate the posted field data, and store the value back into a GenericObject. |
boolean |
checkConfirmations(javax.servlet.http.HttpServletRequest req)
Check posted form data to ensure that it contains proper confirmation values for fields that need them. |
com.waveset.ui.util.html.HtmlPage |
convertForm()
Convert the Form definition into a Component implementation. |
com.waveset.ui.util.html.Component |
createComponent(FieldDisplay def)
Create a component from a FieldDisplay object. |
Form |
getForm()
|
static void |
println(java.lang.Object o)
|
void |
refresh(Form form,
GenericObject geo)
Called after the view has been refreshed. |
void |
setIgnoreDisableExpressions(boolean b)
|
void |
setTrace(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
protected static final Trace trace
public static final java.lang.String PARM_ASSIMILATE_FILTER
public static final java.lang.String LOC_BUTTON
Constructor Detail |
public FormConverter(RequestState state, Form form, GenericObject geo, com.waveset.ui.util.html.HtmlPage page) throws WavesetException
Method Detail |
public void setTrace(boolean b)
public void setIgnoreDisableExpressions(boolean b)
public void refresh(Form form, GenericObject geo) throws WavesetException
In theory, this could specify a new container class, we'll assume for now that can't happen. But now that we maintain a fixed HtmlPage wrapper, we can easily replace _rootComponent.
WavesetException
public Form getForm()
public static void println(java.lang.Object o)
public com.waveset.ui.util.html.HtmlPage convertForm() throws WavesetException
We also calculat the "memento" list and leave it behind on the view. This will be used later to drive post data assimilation.
WavesetException
public com.waveset.ui.util.html.Component createComponent(FieldDisplay def) throws WavesetException
WavesetException
public void assimilatePostData(RequestState state) throws WavesetException
WavesetException
public boolean checkConfirmations(javax.servlet.http.HttpServletRequest req) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |