| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.renderkit.html.util.DummyFormUtils
public class DummyFormUtils
Many JSF components can be used without an enclosing h:form. In this
 case, they need a dummy form to store data into and submit when
 communication with the server is necessary. These components can use
 methods on the DummyFormRequestInfo object accessable via this
 class to register parameters and get the name of a form to submit.
 
| Field Summary | |
|---|---|
| static String | DUMMY_FORM_INFOUsed to store the instance of DummyFormRequestInfoin the request map | 
| static String | DUMMY_FORM_NAME | 
| Constructor Summary | |
|---|---|
| DummyFormUtils() | |
| Method Summary | |
|---|---|
| static void | addDummyFormParameter(javax.faces.context.FacesContext facesContext,
                      String paramName)Delegator method to add a parameter to the DummyFormRequestInfo object in the request | 
| static FormInfo | findNestingForm(javax.faces.component.UIComponent uiComponent,
                javax.faces.context.FacesContext facesContext) | 
| static String | getDummyFormName() | 
| static Set | getDummyFormParameters(javax.faces.context.FacesContext facesContext) | 
| static boolean | isWriteDummyForm(javax.faces.context.FacesContext facesContext)Checks if the DummyFormRequestInfo is already in the request map. | 
| static void | setWriteDummyForm(javax.faces.context.FacesContext facesContext,
                  boolean writeDummyForm)When writeDummyForm is set to true, a DummyFormRequestInfoobject will be instantiated
 and put in the request. | 
| static void | writeDummyForm(javax.faces.context.ResponseWriter writer,
               Set dummyFormParams) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String DUMMY_FORM_NAME
public static final String DUMMY_FORM_INFO
DummyFormRequestInfo in the request map
| Constructor Detail | 
|---|
public DummyFormUtils()
| Method Detail | 
|---|
public static String getDummyFormName()
public static void setWriteDummyForm(javax.faces.context.FacesContext facesContext,
                                     boolean writeDummyForm)
DummyFormRequestInfo object will be instantiated
 and put in the request. Later, if this object is found, the dummyForm javascript will be rendered in the page
 before the end of the body tag
facesContext - writeDummyForm - public static boolean isWriteDummyForm(javax.faces.context.FacesContext facesContext)
facesContext - 
public static void addDummyFormParameter(javax.faces.context.FacesContext facesContext,
                                         String paramName)
facesContext - paramName - public static Set getDummyFormParameters(javax.faces.context.FacesContext facesContext)
public static void writeDummyForm(javax.faces.context.ResponseWriter writer,
                                  Set dummyFormParams)
                           throws IOException
IOException
public static FormInfo findNestingForm(javax.faces.component.UIComponent uiComponent,
                                       javax.faces.context.FacesContext facesContext)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||