org.olat.core.gui.components.util
Class ValidateForwardComponent

java.lang.Object
  extended by org.olat.core.gui.components.Component
      extended by org.olat.core.gui.components.util.ValidateForwardComponent

public class ValidateForwardComponent
extends Component

Description:
This component forwards any validate calls (which take place after dispatching, but prior to rendering) to the listening controller. Useful when the controller received e.g. a model invalidation from the system even bus. Instead of immediately updating the model from the db or similar, which is expensive, the controller can wait till it receives a validate event.
This component does not render anything.
the validate method is called just before the rendering of the -whole tree- takes place, so e.g. lazy fetching can be implemented, or issueing a request for a new moduleUri (e.g. for CPComponent, so that the browser loads images correctly).
only called when the component is visible

Initial Date: 10.03.2007

Author:
Felix Jost, http://www.goodsolutions.ch

Method Summary
 ComponentRenderer getHTMLRendererSingleton()
           
 void validate(UserRequest ureq, ValidationResult vr)
          called just before the rendering of the -whole tree- takes place, so e.g.
 
Methods inherited from class org.olat.core.gui.components.Component
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getExtendedDebugInfo, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

validate

public void validate(UserRequest ureq,
                     ValidationResult vr)
called just before the rendering of the -whole tree- takes place, so e.g. lazy fetching can be implemented, or issueing a request for a new moduleUri (e.g. for CPComponent, so that the browser loads images correctly). only called when the component is visible

Overrides:
validate in class Component

getHTMLRendererSingleton

public ComponentRenderer getHTMLRendererSingleton()
Specified by:
getHTMLRendererSingleton in class Component