Saturday, 15 January 2011

Not able to open a portlet in liferay dialog -



Not able to open a portlet in liferay dialog -

i have dialog in portal opens portlet. when click on link , dialog opens, dialog shows

you not have roles required access portlet.

however, if add together same portlet on page, portlet opens without hitch, both on page , dialog. missing here? got thought ?

my codes :

#set ($profile_url = $portleturlfactory.create($request, "profile_war_profileportlet", $getterutil.getlong($plid), "render_phase")) $profile_url.setparameter("p_p_state", "exclusive") <a href="#" id="profile" onclick="opendialog('$profile_url','preferences-dialog',500,500)"> profile </a> window, 'opendialog', //function name function(url, popupid, wd, ht) { // parameters function var = aui(); popupdialog = new a.dialog({ id: popupid, // popupid passed easy close through events other close button centered: false, // different parameters function can check in alloy api draggable: true, resizable: false, width: wd, stack: true, modal: true, height: ht, scrollbars: true, xy: [getwidth()/2-wd/2,10] } ).plug( a.plugin.io, { uri: url } ); popupdialog.render(); }, ['aui-dialog','aui-dialog-iframe'] );

thanks in advance help can provide.

i think missing next configuration in liferay-portlet.xml of profile_war_profileportlet portlet:

<add-default-resource>true</add-default-resource>

this should set true portlet accessed within dialog pop-up, here documentation element.

for more info can @ answer points 4 & 5 of reply of help you.

dialog liferay portlet portal

No comments:

Post a Comment