Note that there are some explanatory texts on larger screens.

plurals
  1. POh:selectManyCheckbox loses values when navigating
    primarykey
    data
    text
    <p>My problem is that h:selectManyCheckbo loses values when navigating , here's my code below :</p> <pre><code>&lt;h:selectManyCheckbox id="selectGroupsBox" value="{userCreationWizardBean.selectedGroupsId}" layout="pageDirection"&gt; &lt;f:selectItems var="Group" value="#{userCreationWizardBean.terminalsGroups}" itemLabel="#{terminalsGroup.groupName}" itemValue="#{terminalsGroup.id}" itemDisabled="#{Group.defaultGroup}"&gt; &lt;/f:selectItems&gt; &lt;p:ajax event="change" update=":form-top-wizard:numBase" process="selectGroupsBox" listener="#{userCreationWizardBean.selectedGroupListner}"&gt;&lt;/p:ajax&gt; &lt;/h:selectManyCheckbox&gt; </code></pre> <p>The CheckBox loses values if I go back and forth using my navigation pad :</p> <pre><code>&lt;div id="top-wizard" class="#{class}"&gt; &lt;ul&gt; &lt;li class="premier#{wizard_step=='0'?'_active':''}"&gt;&lt;p:commandLink action="#{userCreationWizardBean.getViewAt(0)}" ajax="true" update=":msg-form:popup_faces-messages" /&gt;&lt;/li&gt; &lt;li class="deuxieme#{wizard_step=='1'?'_active':''}"&gt;&lt;p:commandLink action="#{userCreationWizardBean.getViewAt(1)}" ajax="true" update=":msg-form:popup_faces-messages" /&gt;&lt;/li&gt; &lt;li class="troisieme#{wizard_step=='2'?'_active':''}"&gt;&lt;p:commandLink action="#{userCreationWizardBean.getViewAt(2)}" ajax="true" update=":msg-form:popup_faces-messages" /&gt;&lt;/li&gt; &lt;li class="quatrieme#{wizard_step=='3'?'_active':''}"&gt;&lt;p:commandLink action="#{userCreationWizardBean.getViewAt(3)}" ajax="true" update=":msg-form:popup_faces-messages" /&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>The problem stragely vanishes when I delete the itemDisabled attribute.</p> <p>it seems like i can use jquery css selector syntaxe to exclude the checkbox from being processed , but only in primefaces 3.3 , but i'm using 3.2.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload