1
時,我的問題是使得h selectManyCheckbox失去值:selectManyCheckbo失去航行時的值,這裏是我下面的代碼:H:導航
<h:selectManyCheckbox id="selectGroupsBox"
value="{userCreationWizardBean.selectedGroupsId}"
layout="pageDirection">
<f:selectItems var="Group"
value="#{userCreationWizardBean.terminalsGroups}"
itemLabel="#{terminalsGroup.groupName}"
itemValue="#{terminalsGroup.id}"
itemDisabled="#{Group.defaultGroup}">
</f:selectItems>
<p:ajax event="change" update=":form-top-wizard:numBase" process="selectGroupsBox"
listener="#{userCreationWizardBean.selectedGroupListner}"></p:ajax>
</h:selectManyCheckbox>
,如果我去來回用我的導航鍵複選框失去值:
<div id="top-wizard" class="#{class}">
<ul>
<li class="premier#{wizard_step=='0'?'_active':''}"><p:commandLink
action="#{userCreationWizardBean.getViewAt(0)}" ajax="true"
update=":msg-form:popup_faces-messages"
/></li>
<li class="deuxieme#{wizard_step=='1'?'_active':''}"><p:commandLink
action="#{userCreationWizardBean.getViewAt(1)}" ajax="true"
update=":msg-form:popup_faces-messages"
/></li>
<li class="troisieme#{wizard_step=='2'?'_active':''}"><p:commandLink
action="#{userCreationWizardBean.getViewAt(2)}" ajax="true"
update=":msg-form:popup_faces-messages"
/></li>
<li class="quatrieme#{wizard_step=='3'?'_active':''}"><p:commandLink
action="#{userCreationWizardBean.getViewAt(3)}" ajax="true"
update=":msg-form:popup_faces-messages"
/></li>
</ul>
</div>
當我刪除itemDisabled屬性時,問題很快消失。
它似乎我可以使用jQuery的CSS選擇器syntaxe排除複選框被處理,但只在primefaces 3.3,但我使用3.2。
itemDisabled =「Group.defaultGroup))}」這是一個錯誤只是在SO帖子裏,還是在你的代碼? – 2013-03-21 15:58:01
對不起,我只是誤輸了它 – Genjuro 2013-03-21 16:13:44
你在引用的ManagedBean中使用了什麼範圍類型? – 2013-03-21 16:55:01