Fórum

Portlet with layout

thumbnail
Gerhard Horatschek, modificado 14 Anos atrás.

Portlet with layout

Junior Member Postagens: 86 Data de Entrada: 20/03/09 Postagens Recentes
Hi all,
we have a problem during developing a new portlet with a new db-entity, which should use a liferay-layout (page).
Following status: when we add this new entity (lets call it institution), we also persist a liferay-layout into the db. All the institutions are shown in a table. The name-column of this table contains a link to the layout - like the link in the table of the community-portlet.
We also have defined the neccessary struts actions and mappings (struts-config/tiles-def). At this point we want to forward to the my_places-portlet by using the render()-method (return mapping.findForward("portlet.my_places.view");) of a defined action. But we alyways get an error "server not found" (without any exception in the tomcat window).

Do we use the wrong redirect-string in the method processAction() of the defined action? Currently we use "/web/<institution-friendlyURL>/home", similar to the redirect string for the link to the layout of a community ("/web/<community-friendlyURL>/home").
Do we have to use liferay-resources, or layout-sets like this is done in the method addGroup() in GroupLocalServiceImpl?

Does anybody have ideas?
Thank you,
regards Gerhard