jsf, richfaces, popup window

Posted by Hubidubi on Stack Overflow See other posts from Stack Overflow or by Hubidubi
Published on 2010-05-06T16:12:19Z Indexed on 2010/05/06 16:18 UTC
Read the original article Hit count: 224

Filed under:
|

Hi

I would like to make a list-detail view with richfaces. There will be a link for every record in the list that should open a new window containing record details. I tried to implement the link this way:

<a4j:commandLink oncomplete="window.open('/pages/serviceDetail.jsf','popupWindow', 'dependent=yes, menubar=no, toolbar=no, height=500, width=400')" actionListener="#{monitoringBean.recordDetail}"  value="details" />         

I use <a4j:keepAlive beanName="monitoringBean" ajaxOnly="false" /> for both the list and the detail page. recordDetail method fills the data of the selected record to a variable of the bean that I would like to display on the detail page.

The problem is that keepalive doesn't work, so I get new bean instance on the detail page every time. So the the previously selected record from the other bean is not accessible here. Is there a way to pass parameter (id) to the detail page to handle record selection. Or is there any way to make keepalive work? (I this this would be the easiest).

Thanks

© Stack Overflow or respective owner

Related posts about jsf

Related posts about richfaces