title: Ajax-enabled confirm in richfaces?
body: <p>I need some help with richfaces. Here's what I need to do in <em>pseudocode</em>:</p>
  
  <pre><code>//user clicked on a &lt;h:selectBooleanCheckbox/&gt;
  if(!checkbox.checked) {
      ajax_call_method0_on_bean
      return
  }
  else {
      boolean_value = ajax_call_method1_on_bean
      if(boolean_value == true) show_confirm
          if(confirm_result == false) return
  
      //if(boolean_value == false OR confirm_result == false)
      ajax_call_method0_on_bean
  }
  </code></pre>
  
  <p>Basically I have a checkbox which, when clicked to uncheck, first has to verify if a confirmation box must be shown, then (if no confirmation was needed or confirmation was ok) call the final action</p>