Cany any one provide the sample code to edit the details of selected row from the listing in form. The edit details page is different from listing form. I am not getting an idea on how to give a reference of modal dialog of one page in another.
Google for Rick Hightower's "JSF for Nonbelievers" articles on the IBM Developerworks. Although it's a few years old now, it's still one of the best examples.
However, I think you're looking for something slightly different. Not quite sure what, however, since a dialog would pop up on the same page as its parent, not on a separate page (and PLEASE don't tell me you're planning to pop up a separate browse window!). The same table/detail paradigm applies, regardless.
An IDE is no substitute for an Intelligent Developer.