1
我無法獲取Ajax事件觸發並調用actionListener或使第二個選擇一個更新本身。我錯過了什麼?ajax事件在JSF中未觸發
<p:selectOneMenu value="#{player}"
converter="playerConverter" id="playerList">
<f:selectItem itemLabel="---" noSelectionOption="true" />
<f:selectItems value="#{servicePlayer.allPlayers}"
var="n"
itemValue="#{n}"
itemLabel="#{n.combinedName}"
itemLabelEscaped="true"/>
<p:ajax event="change" execute="@this" actionListener="#
{serviceHCP.getClubs(player) }" update="ClubMenu" />
</p:selectOneMenu>
<h:outputText value="Klubb"></h:outputText>
<!-- h:outputText value="#{ serviceHCP.myClubList.size()}"/-->
<p:selectOneMenu id="ClubMenu" value="#{serviceHCP.myCurrentClub}" rendered="#{not empty serviceHCP.myClubList}"
converter="clubConverter">
<f:selectItems value="#{serviceHCP.myClubList}"
var="clb"
itemValue="#{clb}"
itemLabel="#{clb.name}"
itemLabelEscaped="true"/>
</p:selectOneMenu>
<h:outputText value="Serietyp"></h:outputText>
是您'號碼:selectOneMenu'由形式包裝? –
是的,都在同一個h:表格 – user2130951
你的'playerConverter'被調用並正常工作? –