日期:2014-05-16  浏览次数:20331 次

JSF知识集合

About the Validation in JSF:

ONE:http://stackoverflow.com/questions/6642242/how-can-i-populate-a-text-field-using-primefaces-ajax-after-validation-errors-occ

KeyWords:Primefaces, ajax, validation, autocomplition, gMap

* When validation on a JSF input component fails, the component is marked as invalid and the originally submitted value is kept in the component.

* When validation on a JSF input component succeeds, the component is marked as valid and the originally submitted value is set to null (the converted/validated value is now set as model value).

* When JSF renders an input component, it will first test if the originally submitted value is not null and if so, then redisplay it, else display the model value.

* When JSF needs to update/re-render an input component by an ajax request, and that input component is not included in the process/execute of the ajax request, then JSF should reset the input component's value.

?

The lifecycle of JSF:

ONE: http://blog.csdn.net/youfly/article/details/3885851/ ? (The chinese version of JSF spec)

?

The Cusomization of Tag:

Create tag using template:?http://www.mkyong.com/jsf2/custom-tags-in-jsf-2-0/