org.apache.myfaces.html5.renderkit.input.util
Class InputPatternRendererUtil

java.lang.Object
  extended by org.apache.myfaces.html5.renderkit.input.util.InputPatternRendererUtil

public class InputPatternRendererUtil
extends Object

Utility class to render new Html5 "pattern" markup.

Author:
Ali Ok

Constructor Summary
InputPatternRendererUtil()
           
 
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
 

Constructor Detail

InputPatternRendererUtil

public InputPatternRendererUtil()
Method Detail

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.