Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Angeline Chan
PermissionsURL: Preventing page refresh on save
April 13, 2012 12:00 AM

Angeline Chan

Rank: New Member

Posts: 3

Join Date: February 21, 2012

Recent Posts

I'm currently showing a permissionsURL in an AUI Dialog box, and every time I click save the whole page reloads, showing just the permissions page (since the window state is POP_UP).

Is there a way to make the permissions page not refresh?
Jelmer Kuperus
RE: PermissionsURL: Preventing page refresh on save
April 14, 2012 7:40 AM

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

The window state shouldn't be POP_UP but exclusive for aui dialogs since POP_UP will include the html head, body etc tags in the output, which you do not want because aui dialogs are really just nodes in the dom of the current page.

The easiest way to solve your problem is : keep the window state POP_UP but instead of opening the url in an aui dialog, open the url in a new window (with javascript and

If you must absolutely open the dialog in an aui dialog you will need to wait until the dialog has been created and then attach a javascript event listener to the form that listenens for submits, cancels the event and executes the submit as an ajax call. When the call is dont you should refresh only the dialog content based on the response.
This is a fair bit more involved (as well as more brittle)

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!