Description:- As per my experience this is one of task that i had did .
In this we are creating a project on that some tabs are there , now if we click any one the tag the data should appeared on the same page using ajax
and data is been stored in database without reloading the server and lastly we can embeded the portlet in Custom_theme.
The following Steps:-
Step 1:- create the portlet AjaxCommunication
Step2:- Now Go to Portlet.xml and please replace below code instead of
<portlet> |
Step 3: Now Open your project structure and find main.js file under js folder
And replace below code
$(document).ready(function(){ |
Step 4:-Now put all .java file under src folder(code is in bottom).
Step 5:-Create Service.xml(Service Builder) code as i had put the code.
<service-builder package-path="com.database"> |
And build your services then
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 the portet for create a custom theme and also
go to mysql then
if you are using lportal;
use this
use lportal;
show tables;
select * from portlet;
then lastly you will get war file
copy the line and paste instead of Portlet_id and finally deploy your custom_theme.
And for in theme go to portel_normal.vm and use this code
$theme.runtime("---portletId---");
then deploy the theme.
You can get the code from :-
http://sourceforge.net/projects/ajaxcommunication-embeded/files/?source=navbar
hope this helps you....
Author
Liferay Top Contributor Q4 2015 Award Winner
http://abhishek2371.blogspot.in/


