wicket.markup.html.form.validation
Class FormComponentFeedbackBorder

java.lang.Object
  extended bywicket.Component
      extended bywicket.MarkupContainer
          extended bywicket.markup.html.WebMarkupContainer
              extended bywicket.markup.html.border.Border
                  extended bywicket.markup.html.form.validation.FormComponentFeedbackBorder
All Implemented Interfaces:
IComponentResolver, IFeedback, java.io.Serializable

public class FormComponentFeedbackBorder
extends Border
implements IFeedback

A border that can be placed around a form component to indicate when the bordered child has a validation error. A child of the border named "errorIndicator" will be shown and hidden depending on whether the child has an error. A typical error indicator might be a little red asterisk.

Author:
Jonathan Locke, Eelco Hillenius
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wicket.Component
Component.ComponentModelChange, Component.IVisitor, Component.VisibilityChange
 
Field Summary
 
Fields inherited from class wicket.Component
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4
 
Constructor Summary
FormComponentFeedbackBorder(java.lang.String id)
          Constructor.
 
Method Summary
protected  void onBeginRequest()
          Called when a request begins.
 void setCollectingComponent(Component collectingComponent)
          Sets the optional collecting component.
 
Methods inherited from class wicket.markup.html.border.Border
onComponentTagBody, resolve
 
Methods inherited from class wicket.markup.html.WebMarkupContainer
getMarkupType, onRender
 
Methods inherited from class wicket.MarkupContainer
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, remove, removeAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren
 
Methods inherited from class wicket.Component
add, addStateChange, checkComponentTag, checkComponentTagAttribute, debug, detachModel, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getId, getLocale, getLocalizer, getModel, getModelObject, getModelObjectAsString, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResource, getResponse, getSession, getString, getString, getString, getStyle, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnBeginRequest, internalOnEndRequest, internalOnModelChanged, internalOnModelChanging, isAncestorOf, isVersioned, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onComponentTag, onEndRequest, onModelChanged, onModelChanging, onSessionAttach, redirectTo, remove, render, renderComponent, renderComponentTag, rendered, replaceComponentTagBody, sameRootModel, sameRootModel, setFlag, setModelObject, setRedirect, setRenderBodyOnly, setResponsePage, setShouldEscapeModelStrings, setVersioned, setVisible, urlFor, visitParents, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormComponentFeedbackBorder

public FormComponentFeedbackBorder(java.lang.String id)
Constructor.

Parameters:
id - See Component
Method Detail

setCollectingComponent

public void setCollectingComponent(Component collectingComponent)
Description copied from interface: IFeedback
Sets the optional collecting component. When this is not set explicitly, the first occurence of IFeedbackBoundary will be searched for higher up in the run-time hierarchy.

Specified by:
setCollectingComponent in interface IFeedback
Parameters:
collectingComponent - the collecting component
See Also:
IFeedback.setCollectingComponent(wicket.Component)

onBeginRequest

protected void onBeginRequest()
Description copied from class: Component
Called when a request begins.

Overrides:
onBeginRequest in class Component
See Also:
Component.onBeginRequest()


Copyright © 2004-2005 Wicket developers. All Rights Reserved.