0

当尝试以两种不同的形式更新 ajax 时,我正在使用 primefaces 3.2 没有得到更新。请参阅下面的代码

<p:selectOneMenu value="#{baen.vareable1}">

   <f:selectItem itemLabel="val1" itemValue=="val1"/>

    <f:selectItem itemLabel="val2" itemValue="val2" />

        <p:ajax update="new" listner="#{bean.val()}" event="onchange"/>

</p:selectOneMenu >

4

2 回答 2

0

Could it be that a form validation is blocking the request? Try setting <p:ajax process="@this" .../>. By default the complete form that the component belongs to is processed. So by setting this attribute to "@this", only the selectOneMenu component is processed. An additional advantage is that the request becomes a little bit lighter, because less information is sent to the server.

于 2012-07-03T15:10:16.367 回答
0

替换event="onchange"event="change"或事件更好地完全删除它(因为它是默认事件)

于 2012-07-02T09:47:09.000 回答