Liferay Top Contributor Q4 2015
https://dev.liferay.com/participate/contributors
Tuesday, 17 November 2015
Embeded the portlet in custom theme and data is stored (using Ajax) without reload the liferay server
Before starting to your task or else ajax "The thing is make sure you have a clear concept of
*ajax
*jquery
In this task i had make a portet in which , the tags are there.in which if i cliked the any particular content the content is been displayed by using ajax. lets take a look in step by step that i had shown you !
step 1- create the portlet AjaxCommunication
step2:- Now Go to Portlet.xml and please replace below code instead of <portlet> .. .. </portlet>
after generating local service's please find below file com.backend.service.impl.BackendServiceImpl.java and replace my file(BackendServiceImpl.java) And Rebuild your service
Step 6:Now replace all jsp file under docroot directly
Step 7:deploy your project
now for embeded create a custom theme in which go to mysql then if you are using lportal; use this use lportal; show tables; select * from portlet then lastly you will get this copy the line
go to portel.vm and use this code
$theme.runtime("---portletId---");
then deploy the theme. Lastly you will get the portlet in your custom theme..!!
No comments:
Post a Comment