`
butterluo
  • 浏览: 53299 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

JSF知识集合

    博客分类:
  • 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/

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics