Foren
pass value in popup from search continer
Nirav Prajapati, geändert vor 6 Jahren.
pass value in popup from search continer
Regular Member Beiträge: 133 Beitrittsdatum: 25.06.15 Neueste Beiträge
Hello Friends,
I am using Liferay 6.2 CE GA6 with Liferay MVC.
Please help me, I have stuck up in following
When i am click on button then i want to open pop up and also pass USER_ID in this popup and it shows in to popup window page.
For EX. when click on SUBMIT button of one.jsp page then popup is open
and in pop up window shows second.jsp page with the USER_ID from search container of one.jsp page.
Thanks in Advance...!!!!
I am using Liferay 6.2 CE GA6 with Liferay MVC.
Please help me, I have stuck up in following
When i am click on button then i want to open pop up and also pass USER_ID in this popup and it shows in to popup window page.
For EX. when click on SUBMIT button of one.jsp page then popup is open
and in pop up window shows second.jsp page with the USER_ID from search container of one.jsp page.
Thanks in Advance...!!!!
Andrew Jardine, geändert vor 6 Jahren.
RE: pass value in popup from search continer
Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Hi Niray,
I'm going from memory here as I have not done this in a while, but I think you just need to make sure that the render url that you use for the popoup contains a param with the value you need. So if yo uhave this --
.. then you need to make sure that the url you pass has a parameter for the user id. Then you just access it in your JSP as you would any other request parameter.
I'm going from memory here as I have not done this in a while, but I think you just need to make sure that the render url that you use for the popoup contains a param with the value you need. So if yo uhave this --
<aui:script>
var popup;
function showDetails(url){
AUI().use('aui-dialog', 'aui-io', function(A)
{
popup = new A.Dialog({
title: 'Window Title',
centered: true,
modal: true,
width: 800,
height: 250,
}).plug(A.Plugin.IO, {uri: url}).render();
});
}
</aui:script>
.. then you need to make sure that the url you pass has a parameter for the user id. Then you just access it in your JSP as you would any other request parameter.