|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.jboss.errai.ui.client.widget.AbstractForm
public abstract class AbstractForm
Base class for Templated
widgets that require native form
support for asynchronous GET
or POST
requests.
Calls to submit()
trigger a form submission that is
null-routed and targets a hidden iframe.
The typical usage will be for login forms, where calling
submit()
after a successful login will prompt the
browser to remember a user's credentials.
If you use an AbstractForm
and still encounter issues getting proper
browser form support:
ClickHandler
that
calls AbstractForm
submit()
type="submit"
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
static String |
DEFAULT_FORM_ACTION
|
static String |
ERRAI_FORM_FRAME_ID
|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
AbstractForm()
|
Method Summary | |
---|---|
protected String |
getFormAction()
Subclasses may override this method if they want the form to submit to a different url than DEFAULT_FORM_ACTION . |
protected abstract com.google.gwt.dom.client.FormElement |
getFormElement()
|
void |
submit()
Submit the form returned from getFormElement() . |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_FORM_ACTION
public static final String ERRAI_FORM_FRAME_ID
Constructor Detail |
---|
public AbstractForm()
Method Detail |
---|
protected String getFormAction()
DEFAULT_FORM_ACTION
.
getFormElement()
action
attribute
before submission.public void submit()
getFormElement()
. Before
the form is submitted, it will be modifed so that it targets a hidden
iframe with the id ERRAI_FORM_FRAME_ID
with the
action
set to the return value of
getFormAction()
.
protected abstract com.google.gwt.dom.client.FormElement getFormElement()
submit()
is called.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |