| org.andromda.cartridges.jsf.component.JSFValidatorComponent
JSFValidatorComponent | public class JSFValidatorComponent extends UIComponentBase (Code) | | A JSF component that enabled the commons-validator server side validation, as well
as encodes JavaScript for all client-side validations
specified in the same JSP page (with jsf:validator .
|
Field Summary | |
final public static String | CLIENT The attribute storing whether or not client-side validation
shall performed. |
Method Summary | |
public void | encodeBegin(FacesContext context) Begin encoding for this component. | public String | getFamily() Returns the component's family. | public String | getRendererType() The component renders itself; therefore, this method returns null. | public void | setClient(String functionName) Sets whether or not client-side validation shall be performed. |
CLIENT | final public static String CLIENT(Code) | | The attribute storing whether or not client-side validation
shall performed.
|
encodeBegin | public void encodeBegin(FacesContext context) throws IOException(Code) | | Begin encoding for this component. This method finds all Commons
validators attached to components in the current component hierarchy and
writes out JavaScript code to invoke those validators, in turn.
Parameters: context - The FacesContext for this request |
getFamily | public String getFamily()(Code) | | Returns the component's family. In this case, the component is not
associated with a family, so this method returns null.
|
getRendererType | public String getRendererType()(Code) | | The component renders itself; therefore, this method returns null.
|
setClient | public void setClient(String functionName)(Code) | | Sets whether or not client-side validation shall be performed.
true/false |
|
|