如果我在selectOneMenu中进行了更改,则在我的Bean中调用handleFactoryEvent方法(请参阅p:ajax标记)。那个功能!
但如果我对selectItem“bitteususwählen”进行了更改,则不会调用handleFactoryEvent。如果我将selectOneMenu更改为“bitteususwählen”,我应该怎么做才调用handleFactoryEvent。
<p:selectOneMenu id="factory" style="width:151px"
value="#{measurementTemplateViewActions.actualMeasurementTemplate.factory}"
filter="true" filterMatchMode="contains" >
<f:converter binding="#{factoryConverter}" />
<f:selectItem itemValue="#{null}" itemLabel="bitte auswählen" noSelectionOption="true"/>
<f:selectItems
value="#{factoryDataActions.getAllFactorysForProject()}"
var="factory"
itemLabel="#{factory.factoryName}
/ #{factory.inventarnumber} / #{factory.cycle} " />
<p:ajax
listener="#{measurementTemplateViewActions.handleFactoryEvent}"
update="@form"/>
</p:selectOneMenu>