title: how to render selected checkbox value in jsf when i select checkbox
body: <p>i have renderd checkboxes. when i select checkbox that checkbox value shoud be displayed in panel.i have written code for this but not worked</p>
  
  <p>
                                </p>
  
  <pre><code>                              &lt;h:selectManyCheckbox id="chkedition" value="#{newspaperBean.selectedEditions}" layout="lineDirection" styleClass="nostyle"&gt;
                                    &lt;f:selectItems value="#{newspaperBean.searchEditionByNewspaper()}" var="item" itemLabel="#{item.editionName}" itemValue="#{item.editionName}"/&gt;
                                    &lt;f:ajax render="display" event="select"/&gt;
                                &lt;/h:selectManyCheckbox&gt;
                            &lt;/td&gt;
                          &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td colspan="2"&gt;
                                      &lt;p:panel id="display" header="You have selected"&gt;
                                      &lt;c:forEach items="#{newspaperBean.selectedEditions}" var="it"&gt;
                                          &lt;h:outputText value="#{it}"/&gt;&lt;br/&gt;
                                      &lt;/c:forEach&gt;
                                      &lt;/p:panel&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
  </code></pre>
  
  <p>this worked when i submit form but i want that when i select checkbox.</p>