Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
mohammed azam
New to Liferay
September 2, 2009 9:36 PM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

hey i m new to liferay tell me wt is the use of ext impl..and how to create simple portlet
zahid khan
RE: New to Liferay
September 2, 2009 9:50 PM
Answer

zahid khan

Rank: Regular Member

Posts: 116

Join Date: July 30, 2008

Recent Posts

Hi there,

ext-impl has many uses as it is the place where u keep all ur java files of ur custom portlets , and it can even be used to extend the portal source by having a folder structure same as that in portal source , in ur ext-impl and deploying it from the same(ext-impl).

And how to create a simple portlet, just go through the Reports portlet that comes bundled with default ext download u will be able to create a simple struts portlet if u follow what ever is there in the reports portlets.

HTH

Zahid khan
Rishi Dev Gupta
RE: New to Liferay
September 2, 2009 9:54 PM
Answer

Rishi Dev Gupta

Rank: Expert

Posts: 255

Join Date: November 23, 2008

Recent Posts

Checkout the various articles in Wiki area

For above query refer this
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Development+in+the+ext+environment
Anonymous
RE: New to Liferay
September 2, 2009 10:45 PM
Answer

Anonymous

Hi Mohamed Azam,

http://liferay1.googlecode.com/svn/trunk/snippet/portal-devt/

In the above link all the snippetss are mentiond for developing from simple portlet.
This will be useful for you. So please go through the code snippet.

The above code snippets prepared by TransIT mPower Labs (P) Ltd team.


Thanks in Advance,

V.C.Vijayan
Software Developer, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global Inc.
A Liferay expert company.
Ahmed Hasan
RE: New to Liferay
September 2, 2009 11:40 PM
Answer

Ahmed Hasan

Rank: Expert

Posts: 304

Join Date: April 13, 2007

Recent Posts

Dear Azam,

While you use the snippets, also see how we can improve them so that it becomes a useful resource for all the new ones that joins the prestigious liferay community.

For any help feel free to contact me,

Ahmed Hasan
CTO, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global Inc.
A Liferay expert company.
mohammed azam
RE: New to Liferay
September 3, 2009 2:40 AM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

i created a simple jsp portlet and deployed it and the build was successful but when started the server and went to add application it was not there... emoticon
mohammed azam
RE: New to Liferay
September 3, 2009 2:41 AM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

thanks ... for ur reply
mohammed azam
RE: New to Liferay
September 3, 2009 2:42 AM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

ok thanks
mohammed azam
RE: New to Liferay
September 3, 2009 2:46 AM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

ya thanks i went to that link and did create some portlets and deployed it bro....
mohammed azam
RE: New to Liferay
September 7, 2009 9:27 PM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

In which folder the port-let will be created by default after deploying it by ant deploy....
Ahamed Sakir
RE: New to Liferay
September 7, 2009 9:49 PM
Answer

Ahamed Sakir

Rank: Regular Member

Posts: 133

Join Date: August 22, 2008

Recent Posts

Hi,
You can find out here /tomcat/webapps/ROOT/html/portlet/ext/..

Regards
Sakir
Oliver Bayer
RE: New to Liferay
September 8, 2009 12:46 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 881

Join Date: February 18, 2009

Recent Posts

Hi,

the easiest way to implement a new portlet is -asaik- if you use the sdk and run the ant-call in the portlet folder.
Positive: your portlet is build as an own war file and can easily be deployed/ undeployed while running the server
Negative: you can't access functions from the original portal-impl (which you don't need in most cases) only functions from portal-kernel.jar. portal-service.jar.

If you want to develop in ext you have to keep your jsps in the ext-web dir. Only your java classes have to be in the ext-impl folder.
The positives and negatives are vice versa of the one of the sdk.

The created portlet stays in different folders:
- your java code is getting compiled to the ext-impl.jar (under webapps \ ROOT \ WEB-INF \ lib)
- your html code is deployed to: webapps \ root \ html \ <the folder you specified in ext-web>

Greets Oli
mohammed azam
RE: New to Liferay
September 9, 2009 9:51 PM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

Thanks Bro i found it But when I go to add application I cant find the port let which i had created by my name "AZAM"
Oliver Bayer
RE: New to Liferay
September 10, 2009 12:53 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 881

Join Date: February 18, 2009

Recent Posts

Hi,

if the portlet doesn't show up in the add application popup (but is deployed correctly) take a look at liferay-display.xml and portlet-custom.xml (or portlet-ext.xml in ext). From portlet-ext.xml you'll get the portlet name (an id) which you need in the liferay-display.xml to map the portlet to a category. With the language.properties files you can set the display name of your portlet for different languages or create new categories.

HTH
mohammed azam
RE: New to Liferay
September 12, 2009 2:34 AM
Answer

mohammed azam

Rank: New Member

Posts: 11

Join Date: September 2, 2009

Recent Posts

liferay-portal-5.2.3/tomcat-6.0.18/webapps in this folder we can find different porlets created each portlet folder created has css html etc...
and only those portlet appear in the add application.
Now my question is i want to create my portlet by name Sample-portlet in that folder can anyone tell me the flow... to create it
Oliver Bayer
RE: New to Liferay
September 13, 2009 8:13 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 881

Join Date: February 18, 2009

Recent Posts

Hey,

as I described earlier the easiest way to develop an new portlet is to use the liferay plugin sdk.
  • download liferay plugin sdk
  • extract it (I call the folder sdk-folder)
  • create a build.<your username>.properties and set up the path to the tomcat dir via variable "app.server.dir", the path must not have backslashes
  • navigate to the portlets folder
  • call the bat/sh script to build a new portlet e.g. create.bat portlet-folder-name "portlet-display-name"
  • the ant call will create all necessary files (jsps, java classes, xml definition files)
  • modify the sources (jsp, java classes, properties...)
  • run ant clean deploy from sdk folder to copy the new portlet to the webapps folder
  • if you see the tomcat output "<portlet name> is availlable for use" your portlet should show up in the add application popup
Greets Oli