title: How to cross validation phase and get checkboxes of dialog box selected?
body: <p>In my project I have a dialog box where I have some checkboxes for items inside a datagrid and a command button which will add that into a list.</p>
  
  <p>And in the page I have some fields with JSF validation.</p>
  
  <p>My present functionality is like, when user clicks a commandButton in the page that dialog box should appear. Where user will select some items through checkboxes and click the add button of dialog box. Then dialog box will be closed and that item will be added to the table in the page.</p>
  
  <p>Now I want to add some more functionality like, whenever user will open that dialog box he should get those item selected always which he has added to the table. For this I am calling a method by ajax in command button, which opens the dialog box and will update all checkboxes.</p>
  
  <p>Problem is due to validation on my page I am not able to pass validation. I also kept immediate="true" in command button. But in this case I am not able to get selected the checkboxes after updating it.</p>
  
  <p>P.S. Value for checkboxes I am getting through a HashMap. I am using JSF and primefaces</p>