留言板

RE: please urgent, how to add new application in liferay

yassine msaddek,修改在12 年前。

please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
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
thumbnail
Ram Manusani,修改在12 年前。

RE: please urgent, how to add new application in liferay

Regular Member 帖子: 124 加入日期: 11-10-27 最近的帖子
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,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
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:

thumbnail
David H Nebinger,修改在12 年前。

RE: please urgent, how to add new application in liferay

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
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
thumbnail
David H Nebinger,修改在12 年前。

RE: please urgent, how to add new application in liferay

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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.
thumbnail
Gregory Amerson,修改在12 年前。

RE: please urgent, how to add new application in liferay

Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
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,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
great thank for you all
yassine msaddek,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
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
thumbnail
srikanth a,修改在12 年前。

RE: please urgent, how to add new application in liferay

Regular Member 帖子: 144 加入日期: 11-2-21 最近的帖子
Hi,
It should solve your problem. Could you please tell us what actually it is printing in the console.


regards
Sri
yassine msaddek,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子

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,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
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
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: please urgent, how to add new application in liferay

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
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,修改在12 年前。

RE: please urgent, how to add new application in liferay

New Member 帖子: 15 加入日期: 12-3-6 最近的帖子
Please..now how can i develop a function for example?
In edit.jsp or where..can someone help me.thanks
thumbnail
Gregory Amerson,修改在12 年前。

RE: please urgent, how to add new application in liferay

Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
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!