Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
devaraj s
pop up implementation for login portlet in liferay 6.1
December 5, 2012 1:28 AM
Answer

devaraj s

Rank: Regular Member

Posts: 206

Join Date: May 21, 2012

Recent Posts

Hi all,

I have a requirement to implement popup for login portlet,

I am producing steps i am following,

1) In portal normal.vm added javascript

#set ($my_url = $portletURLFactory.create($request, "58", $getterUtil.getLong($plid), "RENDER_PHASE"))
$my_url.setParameter("p_p_state", "exclusive")

<script type="text/javascript" charset="utf-8">
function showPopup() {
AUI().use('aui-dialog', 'aui-io', 'event-custom', 'io-form', function(A) {
window.instance = new A.Dialog({
centered: true,
constrain2view: true,
destroyOnClose: true,
draggable: true,
stack: true,
title: 'SignIn',
width: 500
}).plug(A.Plugin.IO, {uri: '$my_url'}).render();
});
}
</script>

2) In header.vm

#if(!$is_signed_in)
<a href="#" id="sign-in" rel="nofollow" onclick="showPopup();">$sign_in_text</a>

after clicking on sign in link getting error in popup window like,,, failed to retrieve content,


please anyone help me, thanks in advance
Attachment

Attachments: sign in popup.png (182.6k)
Manish Kumar
RE: pop up implementation for login portlet in liferay 6.1
December 5, 2012 5:37 AM
Answer

Manish Kumar

Rank: Junior Member

Posts: 94

Join Date: March 1, 2012

Recent Posts

Hello Devraj,
I guess you have the same requirement as that in this thread. May be this will help you.
Popup Signin

Thanks,
Manish Kumar
devaraj s
RE: pop up implementation for login portlet in liferay 6.1
December 5, 2012 9:37 PM
Answer

devaraj s

Rank: Regular Member

Posts: 206

Join Date: May 21, 2012

Recent Posts

Manish Kumar:
Hello Devraj,
I guess you have the same requirement as that in this thread. May be this will help you.
Popup Signin

Thanks,
Manish Kumar



Thanks manish,

Now its working fine,, but the problem is, if i give wrong id or password it switches to different page. It should give error within same portlet .

How i will resolve this . plz help me in this way.

Thanks in advance..
devaraj s
RE: pop up implementation for login portlet in liferay 6.1
December 6, 2012 2:39 AM
Answer

devaraj s

Rank: Regular Member

Posts: 206

Join Date: May 21, 2012

Recent Posts

Anybody help please..emoticon
Manish Kumar
RE: pop up implementation for login portlet in liferay 6.1
December 6, 2012 8:23 PM
Answer

Manish Kumar

Rank: Junior Member

Posts: 94

Join Date: March 1, 2012

Recent Posts

Hello Devraj,
There is some actionURL in the login.jsp of your login portlet. Form there you can check where it is going and you can stop that.
Thanks,
Manish Kumar