How to handle data from one model panel to another in JSF richfaces?
scenario: i have a model anel opened in whci i have a commandlink which opens another model to search for data adn the data is poplated in a datatable with a link in one of the column. On click of the link i need to fetch the row data an populate the value inside the parent model panel .
Problem: i am not able to get the row da开发者_如何学Gota form the child panel using a4j:action
params and also the when the child panel is cosed the parent panel is also getting closed.
Can any one please help me solving this issue . i know this is a known problem but if any one has a work around for it please let me know.
- Use
<f:setPropertyActionListener>
in the link in the table. Thus you set the current entity in a managed bean - in the modal panel simply output the value of the currently selected item. For example
#{yourBean.current.name}
(you have setcurrent
on the previous step) - The link better be
<a4j:commandLink>
(or button), so that you canreRender
the modal panel in order to obtain the new data
精彩评论