|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.jsf.dialog.PostParameters
Simple helper class to collect post parameters for a request and add them as hidden fields to a response or as token, thas my be added to a link or view id. Here it is used to add the dialog identifying parameters (dialog id and dialog instance id) or the sequence number to the hidden fields of a form.
| Constructor Summary | |
protected |
PostParameters()
Protected Constructor. |
| Method Summary | |
java.lang.String |
getPostParameters(java.lang.String key)
|
java.util.Map |
getPostParametersMap()
|
void |
putPostParameter(java.lang.String key,
java.lang.String value)
Add a new post parameter or change an existing. |
static void |
writeHiddenField(UIComponent component,
ResponseWriter writer,
java.lang.String key,
java.lang.String value)
Writes a key value pair to the given writer of a response as hidden field. |
void |
writePostParameters(UIComponent component,
ResponseWriter writer)
Writes all post parameters of this to the given writer of a response as hidden fields. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected PostParameters()
PostParameters are added to every request and can be obtained
from a RequestDataService.
| Method Detail |
public java.util.Map getPostParametersMap()
HashMap with collected the post parameterpublic java.lang.String getPostParameters(java.lang.String key)
key - the key for a post parameter
public void putPostParameter(java.lang.String key,
java.lang.String value)
key - the key for a post parametervalue - the new value for the post parameter
public void writePostParameters(UIComponent component,
ResponseWriter writer)
throws java.io.IOException
java.io.IOException
public static void writeHiddenField(UIComponent component,
ResponseWriter writer,
java.lang.String key,
java.lang.String value)
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||