org.apache.myfaces.html5.component.properties
Interface Html5InputProperties

All Known Implementing Classes:
AbstractHtml5BaseInputText, AbstractHtmlInputColor, AbstractHtmlInputDateTime, AbstractHtmlInputEmail, AbstractHtmlInputNumberSlider, AbstractHtmlInputNumberSpinner, AbstractHtmlInputText, Html5BaseInputText, HtmlInputColor, HtmlInputDateTime, HtmlInputEmail, HtmlInputNumberSlider, HtmlInputNumberSpinner, HtmlInputText

public interface Html5InputProperties


Method Summary
 String getDataList()
          Id of <hx:datalist> or HTML <datalist> for suggestions mechanism.
 String getOnformchange()
          HTML: Script to be invoked when the state of the owner form is changed.
 String getOnforminput()
          HTML: Script to be invoked when the owner form gets user input.
 String getOninput()
          HTML: Script to be invoked when the element gets user input.
 String getOninvalid()
          HTML: Script to be invoked when the owner form is validated and this element could not pass the validation.
 Object getSuggestions()
          Static(not Ajax) suggestion values.
 boolean isAutoFocus()
          If this property is set to true, it will allow the user to just start typing without having to manually focus the main control when the page is loaded.
 

Method Detail

isAutoFocus

@JSFProperty(defaultValue="false",
             deferredValueType="java.lang.Boolean")
boolean isAutoFocus()
If this property is set to true, it will allow the user to just start typing without having to manually focus the main control when the page is loaded. Default to false.


getSuggestions

@JSFProperty(deferredValueType="java.lang.Object")
Object getSuggestions()
Static(not Ajax) suggestion values. This attribute should not be defined if "list" is set.

See Also:
property

getDataList

@JSFProperty(deferredValueType="java.lang.String")
String getDataList()
Id of <hx:datalist> or HTML <datalist> for suggestions mechanism. By this way, suggestion options(datalist) can be shared across several input elements. If this attribute is set, other suggestion mechanisms(with f:selectItem(s) children or 'suggestions' attribute) should not be used


getOnformchange

@JSFProperty(clientEvent="formchange")
String getOnformchange()
HTML: Script to be invoked when the state of the owner form is changed.


getOnforminput

@JSFProperty(clientEvent="forminput")
String getOnforminput()
HTML: Script to be invoked when the owner form gets user input.


getOninput

@JSFProperty(clientEvent="input")
String getOninput()
HTML: Script to be invoked when the element gets user input.


getOninvalid

@JSFProperty(clientEvent="invalid")
String getOninvalid()
HTML: Script to be invoked when the owner form is validated and this element could not pass the validation.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.