You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mitchell O'Brien <mi...@gutzmann.com> on 2006/06/23 15:06:32 UTC
Portlets and Liferay?
Hi all,
my company is looking to create portlets for a project and I want to
do this in Tapestry. We have already chosen a portlet container
called Liferay and I was wondering if anybody has gotten Tapestry
portlets to work with it and if there were any problems encountered?
Cheers,
Mitch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
How to download a file from portlet
Posted by Atanu <at...@gmail.com>.
Hi All,
I am following the recommendations at
http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=3132
while I download a file from a portlet. I include the request from portlet
to servlet using a PortletRequestDispatcher. But while rendering, portal
prints the binary contents in the portlet page, instead of giving an option
for download.
I am using Struts 2 in Liferay 4.2.x. Can you please point out what am I
missing here?
Thanks and regards,
Atanu Dasgupta
Here are my code snippets.
===== STRUTS ACTION ======
RenderRequest request = PortletActionContext.getRenderRequest();
String uuid = (String) request.getParameter("reportUuid");
RenderResponse res = PortletActionContext.getRenderResponse();
PortletRequestDispatcher rd =
PortletActionContext.getPortletConfig()
.getPortletContext().getRequestDispatcher("/download?reportUuid=" + uuid);
try {
rd.include(request, res);
} catch (IOException ioe) {
ioe.printStackTrace();
} catch (PortletException pe) {
pe.printStackTrace();
===== SERVLET ======
res.setContentType("application/xdownload");
res.setHeader("Content-Disposition", "attachment;
filename=x.pdf");
try {
res.setContentLength(report.getData().available());
} catch (IOException e) {
e.printStackTrace();
}
try {
OutputStream os = res.getOutputStream();
InputStream is = report.getData(); // get the actual Data
int read = 0;
byte[] bytes = new byte[1024];
while((read = is.read(bytes)) != -1) {
os.write(bytes, 0, read);
}
os.flush();
os.close();
is.close();
} catch (IOException ioe) {
ioe.printStackTrace();
}
--
View this message in context: http://www.nabble.com/Portlets-and-Liferay--tf1836171.html#a11828846
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: how to deploy vine toolkit with liferay ??
Posted by Ulrich Stärk <ul...@spielviel.de>.
Wrong mailing list. This one is about the Tapestry web development
framework (as the word Tapestry in the mailing list address might
indicate).
Uli
Am Di, 23.09.2008, 12:10, schrieb shashik:
>
> hi friends,
>
> i want to install vine toolkit on liferay.and on the gridsphere web site
> is
> mantion that vine is supported by liferay so please any one help me how
> can
> i deploy vine on lifaray.
>
> vine toolkit is available on this link:-
>
> http://www.gridsphere.org/gridsphere/gridsphere/guest/vine/r/
>
> Thanks
> shashikant
>
>
> jfsingletin wrote:
>>
>> I've been down this path. I liked tapestry from a development point of
>> view, but had a problem with performance wrt Portlets. Basically, each
>> Portlet has it's own Hivemind registry, so if you have 5 portlets on a
>> page you get 5 x the initial performance hit for creating the portlet.
>> If
>> it's an instanceable portlet you get a registry for each instance. This
>> makes adding portlets to a page an expensive operation (between 5-10s in
>> my simple test app).
>>
>> As a result we've stopped trying to use tapestry for portlet
>> development.
>> Judging from my reading of the list it doesn't look like many people are
>> doing portlet development.
>>
>> John.
>>
>> ----- Original Message ----
>> From: Mitchell O'Brien <mi...@gutzmann.com>
>> To: users@tapestry.apache.org
>> Sent: Friday, 23 June, 2006 2:06:32 PM
>> Subject: Portlets and Liferay?
>>
>>
>> Hi all,
>>
>> my company is looking to create portlets for a project and I want to
>> do this in Tapestry. We have already chosen a portlet container
>> called Liferay and I was wondering if anybody has gotten Tapestry
>> portlets to work with it and if there were any problems encountered?
>>
>> Cheers,
>> Mitch
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Portlets-and-Liferay--tp5011467p19624726.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
how to deploy vine toolkit with liferay ??
Posted by shashik <en...@yahoo.co.in>.
hi friends,
i want to install vine toolkit on liferay.and on the gridsphere web site is
mantion that vine is supported by liferay so please any one help me how can
i deploy vine on lifaray.
vine toolkit is available on this link:-
http://www.gridsphere.org/gridsphere/gridsphere/guest/vine/r/
Thanks
shashikant
jfsingletin wrote:
>
> I've been down this path. I liked tapestry from a development point of
> view, but had a problem with performance wrt Portlets. Basically, each
> Portlet has it's own Hivemind registry, so if you have 5 portlets on a
> page you get 5 x the initial performance hit for creating the portlet. If
> it's an instanceable portlet you get a registry for each instance. This
> makes adding portlets to a page an expensive operation (between 5-10s in
> my simple test app).
>
> As a result we've stopped trying to use tapestry for portlet development.
> Judging from my reading of the list it doesn't look like many people are
> doing portlet development.
>
> John.
>
> ----- Original Message ----
> From: Mitchell O'Brien <mi...@gutzmann.com>
> To: users@tapestry.apache.org
> Sent: Friday, 23 June, 2006 2:06:32 PM
> Subject: Portlets and Liferay?
>
>
> Hi all,
>
> my company is looking to create portlets for a project and I want to
> do this in Tapestry. We have already chosen a portlet container
> called Liferay and I was wondering if anybody has gotten Tapestry
> portlets to work with it and if there were any problems encountered?
>
> Cheers,
> Mitch
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Portlets-and-Liferay--tp5011467p19624726.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Portlets and Liferay?
Posted by moorthy <ur...@gmail.com>.
Hi,
i am new to portlet can you send me portlet example codes . and also
deployment descriptor file for the example.
thanks
guna
jfsingletin wrote:
>
> I've been down this path. I liked tapestry from a development point of
> view, but had a problem with performance wrt Portlets. Basically, each
> Portlet has it's own Hivemind registry, so if you have 5 portlets on a
> page you get 5 x the initial performance hit for creating the portlet. If
> it's an instanceable portlet you get a registry for each instance. This
> makes adding portlets to a page an expensive operation (between 5-10s in
> my simple test app).
>
> As a result we've stopped trying to use tapestry for portlet development.
> Judging from my reading of the list it doesn't look like many people are
> doing portlet development.
>
> John.
>
> ----- Original Message ----
> From: Mitchell O'Brien <mi...@gutzmann.com>
> To: users@tapestry.apache.org
> Sent: Friday, 23 June, 2006 2:06:32 PM
> Subject: Portlets and Liferay?
>
>
> Hi all,
>
> my company is looking to create portlets for a project and I want to
> do this in Tapestry. We have already chosen a portlet container
> called Liferay and I was wondering if anybody has gotten Tapestry
> portlets to work with it and if there were any problems encountered?
>
> Cheers,
> Mitch
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Portlets-and-Liferay--tf1836171.html#a9673339
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Portlets and Liferay?
Posted by John Singleton <jo...@yahoo.com>.
I've been down this path. I liked tapestry from a development point of view, but had a problem with performance wrt Portlets. Basically, each Portlet has it's own Hivemind registry, so if you have 5 portlets on a page you get 5 x the initial performance hit for creating the portlet. If it's an instanceable portlet you get a registry for each instance. This makes adding portlets to a page an expensive operation (between 5-10s in my simple test app).
As a result we've stopped trying to use tapestry for portlet development. Judging from my reading of the list it doesn't look like many people are doing portlet development.
John.
----- Original Message ----
From: Mitchell O'Brien <mi...@gutzmann.com>
To: users@tapestry.apache.org
Sent: Friday, 23 June, 2006 2:06:32 PM
Subject: Portlets and Liferay?
Hi all,
my company is looking to create portlets for a project and I want to
do this in Tapestry. We have already chosen a portlet container
called Liferay and I was wondering if anybody has gotten Tapestry
portlets to work with it and if there were any problems encountered?
Cheers,
Mitch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org