开发者

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.


  1. Use <f:setPropertyActionListener> in the link in the table. Thus you set the current entity in a managed bean
  2. in the modal panel simply output the value of the currently selected item. For example #{yourBean.current.name} (you have set current on the previous step)
  3. The link better be <a4j:commandLink> (or button), so that you can reRender the modal panel in order to obtain the new data
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜