com.raritantechnologies.quickstart.taglibrary.forms
Class FormProcessingTag

java.lang.Object
  extended bycom.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
      extended bycom.raritantechnologies.quickstart.taglibrary.forms.FormProcessingTag
All Implemented Interfaces:
IConfigurable, ISearchElementRenderer

public class FormProcessingTag
extends BasicSearchElementRenderer

Takes the configurable inputs fields and sends the results to an IQueryResultSetWriter for storage.

 1. Gets the values for the fields form the RaritanPageContext
 2. Gets check for valid input also form the RaritanPageContext
    in a HashMap of FieldName/Error Message
 3. Error messages and pass criteria are configured in each IElementValueBuilder 
    and stored in a HashMap in the session vars.
 4. The value passes the test if the Error Message for the field is null
 5. queryWriter is the IQueryResultSetWriter that handles the save
 

This tag has to be below all elements in the XML that it processes the values for so it can get their values The name of the error message hashmap here has to match the name that the indiviual elements use.

XML Configuration Template:
 <SearchElementRenderer rendererClass="com.raritantechnologies.quickstart.taglibrary.forms.FormProcessingTag"
                           queryWriter="QueryWriterName" 
                           errorMessageMap="ErroMessageMapName" >
     <Fields>
 		<Field>fieldname1</field>
 		<Field>fieldname2</field>
 		<Field>fieldname3</field>
 		  		........
     <Fields>
 
 </SearchElementRenderer>
 

Developed by Raritan Technologies Inc..

Author:
Chris Peterson

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
enabled, name
 
Constructor Summary
FormProcessingTag()
           
 
Method Summary
protected  java.lang.String doGetBody(ISearchFormRenderer parent, RaritanPageContext pageContext)
           
protected  IQueryResultSetWriter getQueryResultSetWriter()
           
 void initialize(org.w3c.dom.Element elem)
          Initialize renderer-specific parameters from the configuration XML tag.
 
Methods inherited from class com.raritantechnologies.searchApp.taglibrary.BasicSearchElementRenderer
doGetBodyDisabled, getBody, getInitValue, getInitValue, getInitValue, getRenderer, isHidden, setEnable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormProcessingTag

public FormProcessingTag()
Method Detail

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: ISearchElementRenderer
Initialize renderer-specific parameters from the configuration XML tag.

Specified by:
initialize in interface ISearchElementRenderer
Overrides:
initialize in class BasicSearchElementRenderer

doGetBody

protected java.lang.String doGetBody(ISearchFormRenderer parent,
                                     RaritanPageContext pageContext)
Specified by:
doGetBody in class BasicSearchElementRenderer

getQueryResultSetWriter

protected IQueryResultSetWriter getQueryResultSetWriter()