| 
EchoPoint 1.0  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.ui.util.ValidationHelper
ValidationHelper is used by UI peers to place
 validation JS support into the resultant web pages.
| Constructor Summary | |
ValidationHelper()
 | 
|
| Method Summary | |
static void | 
addValidationSupport(nextapp.echoservlet.RenderingContext rc,
                     java.lang.String htmlId,
                     Validateable validateable)
Adds validation UI support for a Validateable.  | 
static java.lang.String | 
getOnBlurRule(nextapp.echoservlet.RenderingContext rc,
              java.lang.String htmlId,
              Validateable validateable)
Called to return the onblur function to support validation.  | 
static java.lang.String | 
getOnChangeRule(nextapp.echoservlet.RenderingContext rc,
                java.lang.String htmlId,
                Validateable validateable)
Called to return the onchange function to support validation.  | 
static java.lang.String | 
getSubmitterActionCommand(nextapp.echoservlet.RenderingContext rc,
                          ValidationSubmitter submitter,
                          java.lang.String id,
                          java.lang.String command)
This adds support for a ValidationSubmitter for running validation when submitting the page.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public ValidationHelper()
| Method Detail | 
public static void addValidationSupport(nextapp.echoservlet.RenderingContext rc,
                                        java.lang.String htmlId,
                                        Validateable validateable)
rc - - the current RenderingContexthtmlId - - the htmlId of the elementvalidateable - 
public static java.lang.String getOnBlurRule(nextapp.echoservlet.RenderingContext rc,
                                             java.lang.String htmlId,
                                             Validateable validateable)
rc - - the rendering context in playhtmlId - - the base HTML in playvalidateable - - the validateable itself
public static java.lang.String getOnChangeRule(nextapp.echoservlet.RenderingContext rc,
                                               java.lang.String htmlId,
                                               Validateable validateable)
rc - - the rendering context in playhtmlId - - the base HTML in playvalidateable - - the validateable itself
public static java.lang.String getSubmitterActionCommand(nextapp.echoservlet.RenderingContext rc,
                                                         ValidationSubmitter submitter,
                                                         java.lang.String id,
                                                         java.lang.String command)
rc - - the rendering context in placesubmitter - - the ValidationSubmitter in questionid - - the unqiue id string to suecommand - - the command string to use
  | 
EchoPoint 1.0  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||