Forums de discussion

Embedding service layer in faces portlet

Mohammad Bagheri, modifié il y a 6 années.

Embedding service layer in faces portlet

New Member Publications: 6 Date d'inscription: 09/05/17 Publications récentes
I created a faces portlet in liferay 7, i want to implement service layer without using new module(service-builder) or osgi service, how can i do this?
thumbnail
David H Nebinger, modifié il y a 6 années.

RE: Embedding service layer in faces portlet

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
You shouldn't.

Follow recommended development and deployment patterns. They exist for a reason.






Come meet me at the 2017 LSNA!
Mohammad Bagheri, modifié il y a 6 années.

RE: Embedding service layer in faces portlet

New Member Publications: 6 Date d'inscription: 09/05/17 Publications récentes
I read development and deployment patterns, and I'm going to follow this patterns.
What I came to realize is
I need 2 modules for the following functions:
1- service-builder module for services
2- war file that contains bean,ui and jsf pages
This is not good idea to use 2 modules for simple faces portlet.
Is there another way to have only one module for deploy?
Mohammad Bagheri, modifié il y a 6 années.

RE: Embedding service layer in faces portlet

New Member Publications: 6 Date d'inscription: 09/05/17 Publications récentes
anyone can help me?emoticon
thumbnail
Neil Griffin, modifié il y a 6 années.

RE: Embedding service layer in faces portlet

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Mohammad,

Developing multiple modules (ServiceBuilder API JAR module, ServiceBuilder implementation JAR module, JSF WAR module) is the recommended pattern to follow. Whether it is a simple JSF UI or a more complex UI, this pattern provides a good separation of concerns, increases modularity, and can help decouple the UI tier from the service tier. You can learn more about ServiceBuilder at the Liferay Developer Network.

Kind Regards,

Neil