Foren

Home » Liferay IDE » English

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
yassine msaddek
please urgent, how to add new application in liferay
6. März 2012 14:17
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

bonsoir.
please how to add a new application in liferay?
i am using:
liferay-portal-6.1.0-ce-ga1
liferay-plugins-sdk-6.0.2
tomcat-7.0.23
eclipse

this is the image..as you see i can't click the add new application:





and please who can give me the steps of creating a hello world because i can't find any good documentation.
please i have an end of year project and i haven't done any thing.please
Ram Manusani
RE: please urgent, how to add new application in liferay
6. März 2012 15:58
Antwort

Ram Manusani

Rang: Regular Member

Nachrichten: 124

Eintrittsdatum: 27. Oktober 2011

Neue Beiträge

Firstly, to add a portlet to the page.. Click on More... and then select the portlet you wish to add.

Secondly, if you want to create a Hello World Portlet... You can either use the Liferay IDE or Command prompt to do so..

If you are using Liferay IDE and assuming you are using eclipse...

1) Click on File-->New-->Liferay Project
2) Add Project Name as HelloWorld and make sure you select the right Liferay Plugins SDK and Liferay Portal Runtime
3) Select Plugin Type as Portlet and click on Finish
4)From your Ant Perspective, Deploy the portlet which you just created.
5) Once you see the message Successfully Deployed, you are ready to add the portlet from the Portal UI like I mentioned above.

Hope this helps
yassine msaddek
RE: please urgent, how to add new application in liferay
7. März 2012 09:26
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

Ram Manusani:
Firstly, to add a portlet to the page.. Click on More... and then select the portlet you wish to add.

Secondly, if you want to create a Hello World Portlet... You can either use the Liferay IDE or Command prompt to do so..

If you are using Liferay IDE and assuming you are using eclipse...

1) Click on File-->New-->Liferay Project
2) Add Project Name as HelloWorld and make sure you select the right Liferay Plugins SDK and Liferay Portal Runtime
3) Select Plugin Type as Portlet and click on Finish
4)From your Ant Perspective, Deploy the portlet which you just created.
5) Once you see the message Successfully Deployed, you are ready to add the portlet from the Portal UI like I mentioned above.

Hope this helps


thanks a lot..it doesn't work with me in steps 4 and 5..what does mean deploy? can you please give pictures please..i can't do helloworld.
this is what i have in eclipse:

David H Nebinger
RE: please urgent, how to add new application in liferay
7. März 2012 09:39
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 6274

Eintrittsdatum: 1. September 2006

Neue Beiträge

Um, it's a simple matter of right-clicking on the build.xml for the project and do "run as ant script".

You really should read some doco, it's painfully obvious that you're just trying to wing this and you're not really going to be that successful until you get more of an understanding of how to develop for Liferay...
yassine msaddek
RE: please urgent, how to add new application in liferay
7. März 2012 12:36
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

David H Nebinger:
Um, it's a simple matter of right-clicking on the build.xml for the project and do "run as ant script".

You really should read some doco, it's painfully obvious that you're just trying to wing this and you're not really going to be that successful until you get more of an understanding of how to develop for Liferay...



first of all..a great thank for you..
can you complete with me please
i right clicked bild.xml and do run as ant build..because i found not ant script.and this what happens:




i don't know..i created a liferay project..name is: hello
but when i go to add---->more i find not my hello that i created..
really i am blocked.

secondo..please can you give me documentation..Although i downloaded many pdf and web files but i cant find the basic steps..from zero.

i am using:
liferay-portal-6.1.0-ce-ga1
liferay-plugins-sdk-6.0.2
tomcat-7.0.23
eclipse
David H Nebinger
RE: please urgent, how to add new application in liferay
7. März 2012 12:55
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 6274

Eintrittsdatum: 1. September 2006

Neue Beiträge

yassine msaddek:
can you complete with me please

No, I'm not going to do your job for you. We're here to help you get over issues, not to train you on how to become a Liferay developer from start to end.

i right clicked bild.xml and do run as ant build..because i found not ant script.and this what happens:


Right, so your portlet was compiled and copied to the deploy directory. If tomcat was running, it would have picked it up and deployed it.

i don't know..i created a liferay project..name is: hello
but when i go to add---->more i find not my hello that i created..
really i am blocked.


Was there an error in the console? Is it a locally running tomcat, or do you think that somehow your locally developed portlet is supposed to be magically deployed to the server?

secondo..please can you give me documentation..Although i downloaded many pdf and web files but i cant find the basic steps..from zero.


There are plenty of references, from the documentation link from the main Liferay site, books available from PACKT publishing and elsewhere. They're really a better place to start as they'll hold your hand through the development process, something the forum is not intended to do.

i am using:
liferay-portal-6.1.0-ce-ga1
liferay-plugins-sdk-6.0.2
tomcat-7.0.23
eclipse


You should be using the same version of the SDK as the Liferay environment that you're targetting. A 6.0.2 SDK w/ a 6.1.0 Liferay is not a good match and will lead to all kinds of issues.
Gregory Amerson
RE: please urgent, how to add new application in liferay
7. März 2012 17:30
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

Hello Yassine,

Try to following getting started tutorial here:

http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Getting+Started+Tutorial

It shows you how to deploy your first plugin from scratch to displaying it in Liferay portal.
yassine msaddek
RE: please urgent, how to add new application in liferay
8. März 2012 02:10
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

great thank for you all
yassine msaddek
RE: please urgent, how to add new application in liferay
8. März 2012 02:13
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

Gregory Amerson:
Hello Yassine,

Try to following getting started tutorial here:

http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Getting+Started+Tutorial

It shows you how to deploy your first plugin from scratch to displaying it in Liferay portal.



really i've done all this..but after when i try to do a portlet i've a problem..the server is installed and started..also i replaced the sdk 6.0 by 6.1 but nothing is good after all
srikanth a
RE: please urgent, how to add new application in liferay
8. März 2012 02:18
Antwort

srikanth a

Rang: Regular Member

Nachrichten: 142

Eintrittsdatum: 20. Februar 2011

Neue Beiträge

Hi,
It should solve your problem. Could you please tell us what actually it is printing in the console.


regards
Sri
yassine msaddek
RE: please urgent, how to add new application in liferay
8. März 2012 03:19
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge


hello..i tried to show you what i have.

first..the server is ok


second the sdk plug-in


when i try to start new project this is what i have


i choose new liferay project..name is hello


it is ok..it is added at left:



right clic at build.xml


i do: run as ant build

the result is:



but really i have ecj.jar in the lib of sdk-plug-in as shown:



yassine msaddek
RE: please urgent, how to add new application in liferay
8. März 2012 03:30
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

please...

I added ecj.jar to Eclipse Preferences->Ant->Runtime->Classpath->Ant Home Entries..
and this is the result



after i finally added my hello1 to liferay


so after what should i doto modify this portlet and write what i like
Hitoshi Ozawa
RE: please urgent, how to add new application in liferay
8. März 2012 06:02
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

Instead of "Run As", you should have right clicked on the plugin project and select "Liferay" - "SDK" - "Deploy".

There should be "view.jsp" file under docroot directory. Just edit that.
yassine msaddek
RE: please urgent, how to add new application in liferay
8. März 2012 12:25
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

Hitoshi Ozawa:
Instead of "Run As", you should have right clicked on the plugin project and select "Liferay" - "SDK" - "Deploy".

There should be "view.jsp" file under docroot directory. Just edit that.

thanks a lot.
i have done what you say and i can now edit message.thank you very much



yassine msaddek
RE: please urgent, how to add new application in liferay
9. März 2012 12:04
Antwort

yassine msaddek

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 6. März 2012

Neue Beiträge

Please..now how can i develop a function for example?
In edit.jsp or where..can someone help me.thanks
Gregory Amerson
RE: please urgent, how to add new application in liferay
9. März 2012 14:27
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

yassine msaddek:
Please..now how can i develop a function for example?
In edit.jsp or where..can someone help me.thanks


My suggestion would be to read the official liferay development portlet guide here:
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/portlet-developme-3

Also I would highly recommend getting a copy of the Liferay in Action eBook
http://www.manning.com/sezov/

Also a good place to find working example portlets would be to take a look in the github liferay plugins repository:
https://github.com/liferay/liferay-plugins/tree/master/portlets

Hope this helps!