title: Render ui:fragment with ajax event
body: <p>I'm trying to find out how to make this work with the tag "ui:fragment". I'm using JSF 2.2 and Richfaces 4.</p>
  
  <p>I have a combo, and when I select a value I want to show or hide the code inside my ui:fragment in function of the value selected.</p>
  
  <p><strong>Combo:</strong></p>
  
  <pre><code>&lt;rich:select id="mycombo" valueChangeListener="#{controller.comboChangeListener}" 
              selectFirstOnUpdate="false" value="#{controller.myComboValue}"&gt;
      &lt;f:selectItems value="#{controller.getValues}" var="object" itemLabel="#{object.label}" itemValue="#{object.id}"/&gt;
      &lt;a4j:ajax event="selectitem" render="myHiddenFragment" /&gt;
  &lt;/rich:select&gt;
  </code></pre>
  
  <p><strong>Fragment:</strong></p>
  
  <pre><code>&lt;ui:fragment rendered="#{controller.isMyValueSelected}" id="myHiddenFragment"&gt;
      &lt;!-- Lots of things going on here --&gt;
  &lt;/ui:fragment&gt;
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>private boolean isMyValueSelected = false;
  
  public void comboChangeListener(final ValueChangeEvent event) {
      if (event.getNewValue().equals(IConstantes.ID_THIS_VALUE)) {
           this.isMyValueSelected = false;
      } else {
           this.isMyValueSelected = true;
      }
  }
  </code></pre>
  
  <p>I guess I'm missing something very silly, but I don't see it.</p>
  
  <p>Thanks!</p>