title: Ajax not rendering
body: <p>I've seen similar questions but haven found the answer... Platform is JSF 2.2.6, Primefaces, Derby DB with Eclipse</p>
  
  <p>I have two instances where I am toggling one item to affect another and ajax to provide an update. They seem the same to me other than one update is within the form and the other outside. "item" refers to a derby entity that uses Boolean rather than boolean which is why the test is ==true. Here is XHTML part:</p>
  
  <pre><code>    &lt;p:growl id="msg"/&gt;
  
      &lt;h:form&gt;
          &lt;h:outputLabel value="Team event? " /&gt;
          &lt;p:selectBooleanButton  value="#{events.item.teamEvent}" onLabel="Yes" offLabel="No"&gt;
              &lt;p:ajax update="teamSize" listener="#{events.changeTeamEvent()}"/&gt;
          &lt;/p:selectBooleanButton&gt; 
  
          &lt;h:outputLabel for="teamSize" id="teamSizeLabel"  rendered="#{events.item.teamEvent==true}" value="Team size: "/&gt;
          &lt;p:inputText id="teamSize" rendered="#{events.item.teamEvent==true}" value="#{events.item.teamSize}" 
                       validatorMessage="Team size must be between 2 and 4"&gt;
              &lt;f:validateLongRange minimum="2" maximum="4" /&gt;
          &lt;/p:inputText&gt;
  
          &lt;br/&gt;
          &lt;h:outputLabel value="Allow signup? " /&gt;
          &lt;p:selectBooleanButton value="#{events.item.allowSignup}" onLabel="Yes" offLabel="No"&gt;  
              &lt;p:ajax update=":msg" listener="#{events.changeSignup()}"/&gt;  
          &lt;/p:selectBooleanButton&gt; 
      &lt;/h:form&gt;    
  </code></pre>
  
  <p>The backing bean is session scoped and with a debugger I have proven the properties are updated, the listener gets called. Neither changes the properties.
  After the listener finishes all appropriate sets and gets in the entity file are also called during render phase but only the second p:selectBooleanButton in my example renders correctly. The other changes the button but the Team size info never changes. It does present correctly when I refresh my my browser (up-to-date Chrome). My suspicion was that my rendered test was wrong but the refresh should work in that case. I've also tried many variations on the update attribute "teamSize", ":teamSize", "teamSize teamSizeLabel". I want the last example but have tried to show a simple example.</p>
  
  <p>I assume it is simple but I can't see it.</p>