View Full Version : Save portal layout

5 Jan 2012, 12:52 AM
Hi all,

I faced some problem with when saving current status of Portal. I have add PortalEvent listener. But There I am unable to get all Portlet's position information. Is there any specific methods to get current portal status?

Thank you

6 Jan 2012, 8:02 AM
PortalEvent object gives you details of old row, old column, new row and new column of the portlet which is moved. It also has portlet object reference using which you can get the absolute left and top position of the portlet.

portal.addListener(Events.Drop, new Listener<PortalEvent>(){

public void handleEvent(PortalEvent be) {
GWT.log("Start "+be.getStartRow()+" Column "+be.getStartColumn()+" New Row "+be.getRow()
+" New Column "+be.getColumn());

//Displays the current position of the moved portlet
GWT.log(" Position "+be.getPortlet().getAbsoluteLeft()+" "+be.getPortlet().getAbsoluteTop());


Hope it helps you