Fórum

pass value in popup from search continer

thumbnail
Nirav Prajapati, modificado 6 Anos atrás.

pass value in popup from search continer

Regular Member Postagens: 133 Data de Entrada: 25/06/15 Postagens Recentes
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
Andrew Jardine, modificado 6 Anos atrás.

RE: pass value in popup from search continer

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
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.