PopupWindow - transfer data from parent window to child window

I would like to transfer some data from parent window to child window

when user clicks on the button.

I create popup window from a custom component renderer

using

button.setOnclick("javascript:doPopup(xyz.jsp)

This custom component (parent window)has some information which needs to be displayed on the pop up when user clicks on it.

Is there any state information transferred to the child window from

parent window? like faces context ?

The issue is, I have multiple instances of this custom component and

based on the button click need to display the relavent 'details'(on a pop up window). These relevant details are in the custom component.

thanks

-K

[730 byte] By [ketha] at [2007-10-3 2:01:12]
# 1
button.setOnclick("javascript:doPopup(xyz.jsp)->button.setOnclick("javascript:doPopup(xyz.jsp,details)and display the details in the pop up.
rajureddya at 2007-7-14 18:59:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks, but how do I pass information from .js to .jsp

my .js looks like this

function doPopup(list) {

win3 = window.open('details.jsf, '', "width=320,height=210,scrollbars=yes resizable=yes");

win3.focus();

}

How do I access this list in details.jsf?

-K

ketha at 2007-7-14 18:59:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Infact these messages are list of FacesMessages.I need to display these messages in a popup with some color, image etc., based on the Error Status (Fatal, Error, Info).-K
ketha at 2007-7-14 18:59:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

I am not sure if this is useful. But here I go.

1) You can have a div block which is hidden on your parent page which encloses your h:messages tag.

2) on your pop up, onload you can call a javascript method in which you would call something like window.opener.document.getElementById('div_block_id').innerHTML and set this value in a div block in the pop up.

HTH

Akash_Gangaa at 2007-7-14 18:59:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Do you have sample code somewhere for me to try it out.thanksK
ketha at 2007-7-14 18:59:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
try this:win3 = window.open('details.jsf?details='+details,width=320,height=210,scrollbars=yes resizable=yes);now you can access the details
rajureddya at 2007-7-14 18:59:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...