我要瘋了的價值:我無法訪問onchange事件的組合框的選擇值:不能獲得選擇的組合框
<xp:comboBox id="comboBox1" value="#{sessionScope.groupBy}">
<xp:selectItem itemLabel="nothing" itemValue=""></xp:selectItem>
<xp:selectItem itemLabel="State" itemValue="state"></xp:selectItem>
<xp:selectItem itemLabel="CCType" itemValue="cctype"></xp:selectItem>
<xp:eventHandler event="onchange" submit="true" refreshMode="complete">
<xp:this.action>
<xp:executeScript>
<xp:this.script>
<![CDATA[
#{javascript:sessionScope.groupBy = getComponent("comboBox1").getValue();
print(getComponent("comboBox1").getValue())}
]]>
</xp:this.script>
</xp:executeScript>
</xp:this.action>
</xp:eventHandler>
</xp:comboBox>
我想存儲的值,並重新加載頁面訪問我剛剛提交的價值。我也嘗試過getSubmittedValue()和值。他們總是返回null。
什麼訣竅嗎?
哦,哦...我試圖在一個乾淨的Xpage - 它的工作!恐怕在頁面上使用幾個ExtJS元素導致這不再工作...: - /有沒有人有ExtJS元素,事件綁定和其他東西與「正常」Xpage-stuff工作的組合? – 2013-04-07 02:38:54
是的,我再次證明了它與我的ExtJS-Page:我離開了e網格,但關閉了視口/佈局JS - 並且工作。 – 2013-04-07 02:48:08
如果你想嘗試自己,請看看這個: http://mardou.dyndns.org/Privat/osnippets.nsf/id/OBUE-96J5QH – 2013-04-07 03:21:53