jsf popup

Hi there,

I have a jsf page which produces a popup on button click.

<h:commandButton value="popupParent" onclick="popupFn()" action="#{testbean.actionFn()}"/>

The popupFn will create a popup window. That window is a jsf page that has a input text field and a button.

<h:commandButton value="inpopup" action="#{testBean.childAction}/>

My problem is to make the button in popup window execute its action first [ childAction] and then only after it is done the button in parent window should execute its action [actionFn].

Is there a way I can make the parent action execute only after the popup window is closed? The way i have it makes it execute the parent action first and then childAction.

Any replies are appreciated.

Thanks,

Mark.">

[815 byte] By [MarkBrettLeea] at [2007-11-27 9:33:53]
# 1
Put an onLoad handler on the body tag of the pop-up window to invoke a function in the parent window to cause it to do whatever it needs to do.
RaymondDeCampoa at 2007-7-12 22:56:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...