掲示板

pass value in popup from search continer

thumbnail
6年前 に Nirav Prajapati によって更新されました。

pass value in popup from search continer

Regular Member 投稿: 133 参加年月日: 15/06/25 最新の投稿
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...!!!!
thumbnail
6年前 に Andrew Jardine によって更新されました。

RE: pass value in popup from search continer

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
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 --

<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.