GWT PORTLET

1,052 views
Skip to first unread message

Nitheesh Chandran

unread,
Mar 9, 2012, 5:20:29 AM3/9/12
to Google Web Toolkit
Hello ,
I want to create portlet using GWT. I searched in the Internet and
downloaded get-portlet.jar. But the hello world app failed. Is there
any other way for creating portlet in GWT. ? Helps will be
appreciated. Thanks in advance.

Viktor

unread,
Mar 9, 2012, 5:29:05 AM3/9/12
to Google Web Toolkit
Hi,

you could just include the generated js code into your portlet and
work with it.

Example:
<script language="javascript" src="${contextPath}/
[YOUR_GWT_APP].nocache.js"></script>


On 9 Mrz., 11:20, Nitheesh Chandran <nithe...@dotentreprise.com>
wrote:

Nitheesh Chandran

unread,
Mar 9, 2012, 5:26:44 AM3/9/12
to Google Web Toolkit
Sorry gwt-portlet.jar

On Mar 9, 3:20 pm, Nitheesh Chandran <nithe...@dotentreprise.com>
wrote:

Nitheesh Chandran

unread,
Mar 10, 2012, 2:43:19 AM3/10/12
to Google Web Toolkit
Can you tell me more specifically ? I want to create a portlet then
integrate that with GWT app. How to create portlet ,then how to
integrate it with gwt app ?

On Mar 9, 3:26 pm, Nitheesh Chandran <nithe...@dotentreprise.com>

dodo dard

unread,
Mar 12, 2012, 11:36:50 AM3/12/12
to Google Web Toolkit
I'm just repeating what @Viktor said :
1) Create your portlet (without GWT)

If you don't know how to create a portlet, it is a big question : you
should looking for a proper portlet tutorial.
It cannot be answer in the email like that.

Use Spring MVC for example, it can help you to do that.

http://static.springsource.org/spring/docs/2.0.x/reference/portlet.html

And then ..
2) Add a GWT in your portlet body by putting :

<script language="javascript" src="${contextPath}/
[YOUR_GWT_APP].nocache.js"></script>




======================
http://www.html5bydemo.com/

On Mar 10, 8:43 am, Nitheesh Chandran <nithe...@dotentreprise.com>
wrote:

Sebastian Gurin

unread,
Mar 12, 2012, 1:33:52 PM3/12/12
to google-we...@googlegroups.com
I have done GWT portlets successfully for liferay. You can use some liferay specific options for including your portlet javascript. But basically, I would start with the following.

1) create a sample GWT application and compile it. You should have a index.html page that loads your GWT javascript
2) create a sample portlet (using technologies of your choise, could be jsp for example).
3) in your portlet's markup, copy your GWT sample project's files.
4) in your view.jsp (or whatever main portlet VIEW page), include the GWT script and neccesary markup.

P/d: searching in google "GWT portlet" there are some suggestions about calling the gwt compiler inside your portlet's project, for example with eclipse or ant. For example "liferay gwt portlet" will give you a lot of specific step by step tutorials

regards

> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>


--
Sebastian Gurin <sgu...@softpoint.org>

Joseph Lust

unread,
Mar 13, 2012, 12:18:31 PM3/13/12
to google-we...@googlegroups.com
You could also use Ext GWT. It has out of the box working examples of portlets in GWT. I found it quite simple to implement.


Sincerely,
Joe

Nitheesh Chandran

unread,
Mar 15, 2012, 6:33:29 AM3/15/12
to Google Web Toolkit
As you people suggested i have created liferay portlet and its
working. My actual requirement is to display the portlet in my GWT
application in response to a user event. I mean if i click a
button ,the portlet should come. How to get this portlet in my GWT
application ?? should i follow the same steps above ?

dodo dard

unread,
Mar 16, 2012, 5:18:59 AM3/16/12
to google-we...@googlegroups.com
Follow this tutorial, is within the liferay website :


Give us the feedback if there is something you dont understand.

=============

Nitheesh Chandran

unread,
Mar 16, 2012, 7:23:36 AM3/16/12
to Google Web Toolkit
I have used that link and followed the instructions but it does not
seem to be worked. In that tutorial they are saying about the
integration of GWT to portlet ,i mean to display GWT output inside a
portlet. I want the opposite ,i want to display a portlet which i
created using LifeRay when a user clicks on a button on the GWT
application. GWT works on apache tomcat and Liferay portlet works on
Liferay portlet container

On Mar 16, 2:18 pm, dodo dard <keratonj...@gmail.com> wrote:
> Follow this tutorial, is within the liferay website :
>
> http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How+to+bu...

tong123123

unread,
Aug 14, 2012, 4:37:59 AM8/14/12
to google-we...@googlegroups.com
I want to know more about step 3 and 4, could you provide more detail?
what is the GWT sample project's files (the folder containing files *.nocache.js ,*.gwt.rpc ,cache.html and *.cahce.png?)
copy to sample portlet which folder? (webapp folder, where view.jsp is placed?)

> To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.


> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>


--
Sebastian Gurin <sgu...@softpoint.org>

tong123123

unread,
Aug 14, 2012, 4:42:58 AM8/14/12
to google-we...@googlegroups.com
the link is dead.
http 404
The requested resource (/examples/pages/portal/portal.html) is not available.


I really want to find some step by step example for integration of gwt with portlet.
Reply all
Reply to author
Forward
0 new messages