diff --git a/backoffice/src/main/java/uy/edu/fing/tse/jsf/RequestBean.java b/backoffice/src/main/java/uy/edu/fing/tse/jsf/RequestBean.java index 172e08d8267a91048f372ee7f9e4f7c6c4b9fe81..ad64d9f6a3c3f67c30b75dd717fe9a06eb274f1e 100644 --- a/backoffice/src/main/java/uy/edu/fing/tse/jsf/RequestBean.java +++ b/backoffice/src/main/java/uy/edu/fing/tse/jsf/RequestBean.java @@ -6,7 +6,6 @@ import uy.edu.fing.tse.central.business.BusinessLocal; import javax.ejb.EJB; import javax.enterprise.context.RequestScoped; import javax.inject.Named; -import javax.jms.MessageProducer; @Named @RequestScoped @@ -15,7 +14,5 @@ public class RequestBean { @EJB private BusinessLocal negocio; - @EJB - private MessageProducer mq; } diff --git a/backoffice/src/main/webapp/WEB-INF/templates/template.xhtml b/backoffice/src/main/webapp/WEB-INF/templates/template.xhtml new file mode 100644 index 0000000000000000000000000000000000000000..6a23d21bf333d6df990fd28376d4796e9c8829ab --- /dev/null +++ b/backoffice/src/main/webapp/WEB-INF/templates/template.xhtml @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets"> + +<head> + <title>BackOffice - feiknius</title> +</head> +<body> +<header> + +</header> +<!-- Menús, headers y todo lo que vaya antes del contenido --> +<ui:insert name="contenido"> + Contenido por defecto para que no quede en blanco... +</ui:insert> +<!-- Footer y otros componentes que vayan después del contenido --> +<footer> + +</footer> +</body> +</html> \ No newline at end of file diff --git a/backoffice/src/main/webapp/index.html b/backoffice/src/main/webapp/index.html deleted file mode 100644 index a5c3cccfcc0f62458c59076efad7cba7b0b0be26..0000000000000000000000000000000000000000 --- a/backoffice/src/main/webapp/index.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <title>TSE 2019 - Práctico</title> -</head> -<body> - -<h1>TSE 2019 - Practico</h1> -<br> -<h3> - <a href="jsp">JSP</a> -</h3> -<br> - -<h3> - <a href="jsf">JSF</a> -</h3> -<br> - -<h3> - <a href="../practico-api/rest/noticias">Rest</a> -</h3> -<br> - -<h3> - <a href="../practico-api/SoapAPI?wsdl">SOAP</a> -</h3> -<br> - -<h3> - <a href="resources/soapui/TSE-API-soapui-project.xml" download>SoapUI</a> -</h3> - -</body> -</html> \ No newline at end of file diff --git a/backoffice/src/main/webapp/index.xhtml b/backoffice/src/main/webapp/index.xhtml new file mode 100644 index 0000000000000000000000000000000000000000..5856e5468ec84d61e04e84caead8d65127ac0632 --- /dev/null +++ b/backoffice/src/main/webapp/index.xhtml @@ -0,0 +1,7 @@ +<ui:decorate xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" template="WEB-INF/templates/template.xhtml"> + <ui:define name="contenido"> + <h1>Contenido que inserta el cliente en el template.</h1> + <h1>FALLER</h1> + </ui:define> +</ui:decorate> \ No newline at end of file diff --git a/central-ear/pom.xml b/central-ear/pom.xml index b650d6c95814029de86c45ab039310050449467f..95748efe1e9d111d09a6630fe407ffda970f8299 100644 --- a/central-ear/pom.xml +++ b/central-ear/pom.xml @@ -33,6 +33,11 @@ <type>ejb</type> </dependency> + <dependency> + <groupId>uy.edu.fing.tse</groupId> + <artifactId>backoffice</artifactId> + <type>war</type> + </dependency> </dependencies> diff --git a/pom.xml b/pom.xml index ab3e01014ded050165debebb3d622b8212be9f1c..09df15dd09f24ce4260610d70767ccf154762587 100644 --- a/pom.xml +++ b/pom.xml @@ -57,6 +57,13 @@ <type>ejb</type> </dependency> + <dependency> + <groupId>uy.edu.fing.tse</groupId> + <artifactId>backoffice</artifactId> + <version>${project.version}</version> + <type>war</type> + </dependency> + <dependency> <groupId>org.wildfly.bom</groupId> <artifactId>wildfly-javaee8-with-tools</artifactId>