org.apache.myfaces.html5.renderkit.input.util
Class InputPatternRendererUtil
java.lang.Object
org.apache.myfaces.html5.renderkit.input.util.InputPatternRendererUtil
public class InputPatternRendererUtil
- extends Object
Utility class to render new Html5 "pattern" markup.
- Author:
- Ali Ok
|
Method Summary |
static boolean |
renderPattern(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIInput component)
Iterates over the validators and converter of the given UIInput and renders the pattern attr if found one. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputPatternRendererUtil
public InputPatternRendererUtil()
renderPattern
public static boolean renderPattern(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIInput component)
throws IOException
- Iterates over the validators and converter of the given UIInput and renders the pattern attr if found one.
If there are multiple validator instances attached to component, only the pattern of the first one will be used.
- Returns:
- true if a pattern is found or calculated and the pattern markup is written. false otherwise.
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.