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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章