Fórum

Embedding service layer in faces portlet

Mohammad Bagheri, modificado 6 Anos atrás.

Embedding service layer in faces portlet

New Member Postagens: 6 Data de Entrada: 09/05/17 Postagens Recentes
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, modificado 6 Anos atrás.

RE: Embedding service layer in faces portlet

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
You shouldn't.

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






Come meet me at the 2017 LSNA!
Mohammad Bagheri, modificado 6 Anos atrás.

RE: Embedding service layer in faces portlet

New Member Postagens: 6 Data de Entrada: 09/05/17 Postagens Recentes
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, modificado 6 Anos atrás.

RE: Embedding service layer in faces portlet

New Member Postagens: 6 Data de Entrada: 09/05/17 Postagens Recentes
anyone can help me?emoticon
thumbnail
Neil Griffin, modificado 6 Anos atrás.

RE: Embedding service layer in faces portlet

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
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