Good practice to develop on liferay -
i ask please have information on rules development on liferay:
- group multiple portlets in same project liferay plugin or each project develop single portlet?
- develop 1 portlet per page in liferay portal or more per page?
- what best framework use visualization layer (hmi) (liferaymvc, jsf, vaadin)?
thank in advance.
starting question 1: when have multiple portlets in same liferay project, exported in same .war file. result:
- all of them deployed together. if there hook project among them, deployed , have effect too, in every portal
- while developing, change in 1 of portlets cause redeployment portlets in project. if project becomes large, can become big overhead. otherwise, feature should convenient.
if use service builder, projects -except hooks- have access service
all portlets will/can share same localization keys, , utility functions
to make more simple, each time have decide between bundling them in same project or not, should answer question : "is idea having deploy these portlets in every portal ?"
- develop 1 portlet per page in liferay portal or more per page ?
not sure if you're talking instance able portlets, or complex form can splitted in different portlets. if forms in page meant interact each other, better move them in same portlet, because inter-portlet communication issue.
now, framework, there can no definite answer on that. every framework has it's benefits , fan base. find liferaymvc convenient simple portlets (a few pages, simple controls work out of box, , small total number of actions). every other case, i'd recommend jsf following reasons:
- it's suitable large projects complex back-end or lots of pages.
- it's better forms demanding, of custom or ajax/javascript heavy. jsf tag libraries primefaces powerful, complete, documented, , better community support, compared jsp libraries
- lots of times, find impossible write clean jsp page, without having huge java , javascript chunks of code, mixed html. jsf/xhtml pages can cleaner.
- maybe it's me, find myself writing better , more elegant code when using jsf. find easier refactor, , design architecture.
Comments
Post a Comment