title: Primefaces selectOneRadio ajax
body: <p>I'm trying to display validation messages everytime the user clicks on a radio button.</p>
  
  <p>This only works when I click on the submit button, but not when I click on the radio button:</p>
  
  <pre><code>    &lt;h:form id="form"&gt;
          &lt;p:panel id="panel"&gt;
              &lt;ui:repeat value="#{questionsBean}" var="question"&gt;
                  &lt;h:panelGrid columns="3" style="margin-bottom:10px" cellpadding="5"&gt;
                      &lt;h:outputText value="#{question.questionText}" /&gt;
                      &lt;p:selectOneRadio id="question" value="#{question.response}"
                          validator="#{question.validate}" required="true"&gt;
                          &lt;f:selectItem itemLabel="Yes" itemValue="Yes" /&gt;
                          &lt;f:selectItem itemLabel="No" itemValue="No" /&gt;
                          &lt;p:ajax update="msgQuestion" event="change"/&gt;
                      &lt;/p:selectOneRadio&gt;
                      &lt;p:message for="question" id="msgQuestion" /&gt;
                  &lt;/h:panelGrid&gt;
              &lt;/ui:repeat&gt;
              &lt;p:commandButton id="btn" value="Save" update="panel" partialSubmit="true"/&gt;
          &lt;/p:panel&gt;
      &lt;/h:form&gt;
  </code></pre>