title: jsf popupwindow with a datatable
body: <p>I have a form which one of it's fields is a code and description, also a button for opening a popup window that contains a list of all of the available codes. 
  when the user double clickes a row from that table i want to set these values to the code and description. - how can this be done?</p>
  
  <p>Another question, I want to create this popup and table to be initialized dynamically - by that i mean that if i have a few forms in my application, when ever i have a field which has a description i want to be able to open this popup and to see the available list for that field. (every field can be from a diffrent table). is it possible to create something like that? if so, how? </p>
  
  <p>Any help will be appritiated,</p>
  
  <p>Thank's In Advance.</p>