JSF - Component Libraries, migrate or not migrate?

一个人想着一个人 提交于 2019-12-19 21:54:44

问题


I am using an old component library called Woodstock. Whenever I try to change something I get stuck with not find finding adequate documents about this library. I am thinking about migrating to another library like ICE Faces or Prime Faces. But I suspect that migrating to another library will end up with the same result in 3-4 years, no documents, no support anymore. Should I use JSF standard library and not use component libraries anymore, or is there a library that lasts more than 3 years


回答1:


Woodstock was rather unique. The Woodstock components generates generally JavaScript code instead of HTML code. That JavaScript code in turn generates the HTML DOM tree on page load. After all, especially since the release of Firefox 3 where all Woodstock based websites instantly broke, that generated JavaScript code was not standards compliant. This was a major mistake of the Woodstock inventors/developers. It was too late to fix it.

IceFaces, RichFaces, PrimeFaces, etc have all a robust component library which generate standards compliant HTML/JS code wherein the cross browser sensitive JS tasks are delegated to a 3rd party JS library such as jQuery. Currently those JSF component libraries are still actively maintained. I know that you can never predict this beforehand, but I wouldn't expect them to disappear in 5 years or something.



来源:https://stackoverflow.com/questions/7818223/jsf-component-libraries-migrate-or-not-migrate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!