Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
subhash lamba
portlet runtime in jsp page generate an error
16 luglio 2013 22.30
Risposta

subhash lamba

Punteggio: Regular Member

Messaggi: 136

Data di Iscrizione: 7 luglio 2013

Messaggi recenti

<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<liferay-portlet:runtime portletName="portlet_userdisplayquotes_WAR_userdisplayquotesportlet"></liferay-portlet:runtime>


i am using this to display portlet in jsp page but it generate an error like

SEVERE: Servlet.service() for servlet usersetting Servlet threw exception
javax.servlet.jsp.JspException: ServletException in '/html/common/themes/portlet.jsp': File &quot;/html/common/themes/portlet.jsp&quot; not found
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1559)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5116)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5104)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1545)
at com.toocoolproductions.controller.RuntimePortletEmbedUtil.renderPortlet(RuntimePortletEmbedUtil.java:62)
.............

plz help me to solve this problem.
Péter Borkuti
RE: portlet runtime in jsp page generate an error
16 luglio 2013 22.42
Risposta

Péter Borkuti

LIFERAY STAFF

Punteggio: New Member

Messaggi: 18

Data di Iscrizione: 15 giugno 2012

Messaggi recenti

Hi,

Is your portlet "portlet_userdisplayquotes" working if you just deployed it and add it to a page?

What is your goal? Displaying a portlet in a portlet?

I searched in liferay-plugins directory, and there are two usages of <liferay-portlet:runtime>:

liferay-plugins\portlets\notifications-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view_user_account.jspf
liferay-plugins\portlets\so-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view.jsp

I think, that it is worth to check these two files and what are these two files needs to be imported.

Moreover, "nested portlets" portlet also may be worth to investigate, it is an out-of-the-box portlet in Liferay.

I found a thread about portlet-in-a-portlet :
https://www.liferay.com/community/forums/-/message_boards/message/15709909

I hope, that it helps a bit.
Sharad Sinha
RE: portlet runtime in jsp page generate an error
16 luglio 2013 22.56
Risposta

Sharad Sinha

Punteggio: Junior Member

Messaggi: 44

Data di Iscrizione: 7 marzo 2013

Messaggi recenti

HI Subhash

Hers is the sample code, how can u use another portlet in your jsp. I am displaying Language Portlet in my jsp.




<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<portlet:defineObjects />

<liferay-portlet:runtime portletName="82"></liferay-portlet:runtime>





And in your code, use only userdisplayquotes_WAR_userdisplayquotesportlet. and let me know it is working or not.


Thanks
Sharad Sinha
subhash lamba
RE: portlet runtime in jsp page generate an error
16 luglio 2013 23.10
Risposta

subhash lamba

Punteggio: Regular Member

Messaggi: 136

Data di Iscrizione: 7 luglio 2013

Messaggi recenti

Sharad Sinha:
HI Subhash

Hers is the sample code, how can u use another portlet in your jsp. I am displaying Language Portlet in my jsp.




<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<portlet:defineObjects />

<liferay-portlet:runtime portletName="82"></liferay-portlet:runtime>





And in your code, use only userdisplayquotes_WAR_userdisplayquotesportlet. and let me know it is working or not.


Thanks
Sharad Sinha


hi Sharad Sinha..

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<portlet:defineObjects />

<liferay-portlet:runtime portletName="82"></liferay-portlet:runtime>

this code working for me..
but custome portlet not working for me.

and i also try for "userdisplayquotes_WAR_userdisplayquotesportlet" is not working for me. generate same error..
subhash lamba
RE: portlet runtime in jsp page generate an error
16 luglio 2013 23.23
Risposta

subhash lamba

Punteggio: Regular Member

Messaggi: 136

Data di Iscrizione: 7 luglio 2013

Messaggi recenti

Péter Borkuti:
Hi,

Is your portlet "portlet_userdisplayquotes" working if you just deployed it and add it to a page?

What is your goal? Displaying a portlet in a portlet?

I searched in liferay-plugins directory, and there are two usages of <liferay-portlet:runtime>:

liferay-plugins\portlets\notifications-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view_user_account.jspf
liferay-plugins\portlets\so-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view.jsp

I think, that it is worth to check these two files and what are these two files needs to be imported.

Moreover, "nested portlets" portlet also may be worth to investigate, it is an out-of-the-box portlet in Liferay.

I found a thread about portlet-in-a-portlet :
https://www.liferay.com/community/forums/-/message_boards/message/15709909

I hope, that it helps a bit.


Péter Borkuti

portlet_userdisplayquotes working if i add in jsp page simplely.
but i am creating another portlet and use portlet_userdisplayquotes in this portlet.
i wont to import portlet_userdisplayquotes portlet in jsp file
Sharad Sinha
RE: portlet runtime in jsp page generate an error
17 luglio 2013 1.22
Risposta

Sharad Sinha

Punteggio: Junior Member

Messaggi: 44

Data di Iscrizione: 7 marzo 2013

Messaggi recenti

Hi Subhash,

Try this:

Add this line into your liferay-portlet.xml of Custom Portlet and use userdisplayquotes_WAR_userdisplayquotesportlet.


<use-default-template>false</use-default-template>




Thanks
Sharad Sinha
subhash lamba
RE: portlet runtime in jsp page generate an error
17 luglio 2013 1.51
Risposta

subhash lamba

Punteggio: Regular Member

Messaggi: 136

Data di Iscrizione: 7 luglio 2013

Messaggi recenti

Thanx Sharad Sinha..
yes error is gone but still portlet is not visible emoticon
no error accure but portlet is also not visible.