title: Problems with JSF datatable and Bootsfaces modal windows
body: <p>I am using JSF for my webapp (combined with EJB) and Bootsfaces as JavaScript addition to show modal windows. I am having a list of items that are being shown through a dataTable. And by clicking on a command button inside my list I am opening a modal window, asking the user "wether he is sure he wants to delete". That modal confirm dialog has YES and NO. I can execute the yes execute button inside the modal window. But I cant do #{controller.delete(item)} because the item is only server side available while building the list table. Somehow I have to send the actual selected item to the modal window to set it somehow in that controller call...???</p>
  
  <p>Anyone got an idea?</p>
  
  <pre><code>&lt;!-- looping the jsf list //--&gt;
  &lt;h:dataTable value="#{controller.itemlist}" var="item"...
  ...
  &lt;!-- showing modal window //--&gt;
  &lt;h:commandButton value="delete" action="" onClick="return false;" p:toggle-data.... /&gt;
  &lt;/h:dataTable&gt;
  &lt;/h:form&gt;
  ...
  &lt;!-- modal window in panel, with item not set //--&gt;
  ...
  &lt;h:commandButton action="#{controller.delete(item)}" /&gt;
  &lt;/h:form&gt;
  &lt;/b:panel&gt;
  ...
  </code></pre>