Skip to content

Instantly share code, notes, and snippets.

@IsaacGonzalez
Created October 4, 2013 18:17
Show Gist options
  • Save IsaacGonzalez/6830252 to your computer and use it in GitHub Desktop.
Save IsaacGonzalez/6830252 to your computer and use it in GitHub Desktop.
Configuración de portlets para liferay
<!-- liferay-display.xml -->
<?xml version="1.0"?>
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 6.1.0//EN" "http://www.liferay.com/dtd/liferay-display_6_1_0.dtd">
<display>
<category name="Inicio2">
<portlet id="16" />
<portlet id="17" />
</category>
</display>
<!-- liferay-plugin-packages.properties -->
name=PIA Inicio
module-group-id=com.liferay.faces.demos.bridge
module-incremental-version=1
tags=sample
short-description=This plugin is a test portlet that uses Liferay Faces Bridge and PrimeFaces 3
change-log=
page-url=http://www.liferay.com/community/liferay-projects/liferay-faces
author=liferay.com
licenses=LGPL 2.1
portal.dependency.jars=
<!-- liferay-portlet.xml -->
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.1.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>16</portlet-name>
<instanceable>true</instanceable>
<remoteable>true</remoteable>
<ajaxable>false</ajaxable>
</portlet>
<portlet>
<portlet-name>17</portlet-name>
<instanceable>true</instanceable>
<remoteable>true</remoteable>
<ajaxable>false</ajaxable>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>
<!-- portlet.xml -->
<?xml version="1.0"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>16</portlet-name>
<display-name>Pagina de inicio</display-name>
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/pagina-inicio/pagina-inicio-alumno.xhtml</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>Pagina de inicio</title>
<short-title>Pagina de inicio</short-title>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
<portlet>
<portlet-name>17</portlet-name>
<display-name>Trámite en Proceso</display-name>
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/views/tramites-proceso/tramites-proceso.xhtml</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>Trámites en proceso</title>
<short-title>Trámites en proceso</short-title>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment