title: Primefaces custom selectOneRadio, doesn't propagate to backing bean
body: <p>I'm currently having a problem with the <code>&lt;p:radioButton&gt;</code> and <code>&lt;p:selectOneRadio&gt;</code>. I'm trying to make a form with three radio buttons with some boxes next to them, this works and the "radio-mechanism" in the buttons work so that only one can be selected at once. However the selected radio button is not propagated to the backend. I've tried putting a <code>&lt;p:ajax&gt;</code> in the <code>&lt;p:selectOneRadio&gt;</code> to make it trigger some sort of call to the backing bean but with no success. I have looked at the following primefaces example: <a href="http://www.primefaces.org/showcase/ui/selectOneRadio.jsf" rel="nofollow">http://www.primefaces.org/showcase/ui/selectOneRadio.jsf</a></p>
  
  <p>Can someone point me in the right direction to solve this problem?</p>
  
  <pre><code>&lt;p:selectOneRadio id="customRadio" layout="custom" value="advancedSettingsBean.radioValue"&gt;
      &lt;f:selectItem itemValue="1" /&gt;
      &lt;f:selectItem itemValue="2" /&gt;
      &lt;f:selectItem itemValue="3" /&gt;
      &lt;p:ajax /&gt;
  &lt;/p:selectOneRadio&gt;
  &lt;tr&gt;
      &lt;td valign="top"&gt;
          &lt;p:radioButton id="CheckboxValidTimeCurrent" for="customRadio" itemIndex="0"&gt;
          &lt;/p:radioButton&gt;
      &lt;/td&gt;
      &lt;td colspan="2"&gt;
          &lt;h:outputText value="#{messages.search_advanced_validtimecurren}" /&gt; 
          &lt;br /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td valign="top"&gt;
          &lt;p:radioButton id="CheckboxvValidTimeDate" for="customRadio" itemIndex="1"&gt;
          &lt;/p:radioButton&gt;
      &lt;/td&gt;
      &lt;td colspan="2"&gt;
          &lt;h:outputText value="#{messages.search_advanced_validtimedate}" /&gt;
          &lt;br /&gt; 
          &lt;p:calendar id="singledate" value="#{advancedSettingsBean.singleSearchDate}"
              datePattern="yyyy-MM-dd" direction="smart" jointPoint="auto"
              inputStyle="width:80px" style="width: 200px"&gt;
              &lt;f:convertDateTime pattern="yyyy-MM-dd" timeZone="UTC" /&gt;
          &lt;/p:calendar&gt; Z 
          &lt;br /&gt; 
          &lt;p:message showSummary="true" showDetail="false"
             id="singledateError" for="singledate" /&gt;
          &lt;br /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td valign="top"&gt;
          &lt;p:radioButton id="CheckboxvValidTimeSpan" for="customRadio" itemIndex="2"&gt;
          &lt;/p:radioButton&gt;
      &lt;/td&gt;
  ...
  </code></pre>