title: Hide and show components depending on h:selectOneRadio value
body: <p>I have a page with a p:selectOneRadio and I want to show one datatable depending on the chosen value of the radio selection. I have the error:</p>
  
  <blockquote>
    <p>GRAVE: javax.el.MethodNotFoundException:  .......changeListenerMethod(javax.faces.event.AjaxBehaviourEvent)</p>
  </blockquote>
  
  <p>My code is the following:</p>
  
  <pre><code>&lt;p:selectOneRadio value="#{analysisOrderForm.selectedOrderDomain}"&gt;
       &lt;f:selectItem itemLabel="choice1" itemValue="choice1"&gt;&lt;/f:selectItem&gt;         
       &lt;f:selectItem itemLabel="choice2" itemValue="choice2"&gt;&lt;/f:selectItem&gt;
       &lt;p:ajax event="change" listener="#{analysisOrderForm.changeListenerMethod}"/&gt;
   &lt;/p:selectOneRadio&gt;
   &lt;h:PanelGroup&gt;
      &lt;p:dataTable rendered="#{analysisOrderForm.selectedOrderDomain == 'choice1'}"&gt;....&lt;/p:dataTable&gt;
      &lt;p:dataTable rendered="#{analysisOrderForm.selectedOrderDomain == 'choice2'}"&gt;....&lt;/p:dataTable&gt;
   &lt;/h:PanelGroup&gt;
  </code></pre>
  
  <p>The code of my 'changeListenerMethod method' is just:</p>
  
  <pre><code> public void changeListenerMethod(ValueChangeEvent e){
        setSelectedOrderDomain(e.getValue().toString());
   }
  </code></pre>
  
  <p>What is correct and what is wrong in my code?</p>