8. Click Next.
9. Click Finish
9. If you have set ANT_HOME then create a file in your
pligin-sdk named
build.username.properties this file should contain
app.server.dir = D:/pFiles/portal-6.0.5/tomcat-6.0.26
contains path to your
liferay tomcat.
then open
command Prompt. Go to your liferay-sdk->portlets-> Employee-portlet
then Type
ant deploy.
As soon as it is deployed you would be able to see some message in your Tomcat Server
1 portlet available for use.
Goto http://localhost:8080 in your browser or whatever port number you are using that you can verify in your running tomcat server. Login happily as admin and add the portlet. Here you go......, you can see your own custom portlet.
Note:- If you are able to add only once(oopsy :P ...No Worries :) ). Go to liferay-portlet.xml and set
<instanceable>true</instanceable>
Deploy it once again and refresh your page in the browser.
No comments:
Post a Comment