Home » tapestry-src-5.0.19 » org.apache.tapestry5.corelib.components » [javadoc | source]
public class: FormInjector [javadoc | source]

All Implemented Interfaces:

A way to add new content to an existing Form. The FormInjector emulates its tag from the template (or uses a <div>). When triggered, new content is obtained from the application and is injected before or after the element.

On the client side, a new function, trigger(), is added to the element. Invoking this client-side function will trigger the FormInjector; a request is sent to the server, new content is generated, and the new content is placed before or after (per configuration) the existing FormInjector element.
Field Summary
public static final  String INJECT_EVENT     
public static final  String FORM_CLIENTID_PARAMETER     
public static final  String FORM_COMPONENTID_PARAMETER     
Method from org.apache.tapestry5.corelib.components.FormInjector Summary:
afterRender,   beginRender,   defaultElement,   getClientId,   onInject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tapestry5.corelib.components.FormInjector Detail:
  void afterRender(MarkupWriter writer) 
  void beginRender(MarkupWriter writer) 
 String defaultElement() 
 public String getClientId() 
    Returns the unique client-side id of the rendered element.
  void onInject(EventContext context) throws IOException 
    Invoked via an Ajax request. Triggers an action event and captures the return value. The return value from the event notification is what will ultimately render (typically, its a Block). However, we do a lot of tricks to provide the desired FormSupport around the what renders.