大家好,又來請教大家問題了
我有一個網頁,想輸入查詢資料,確認後底下的圖會更新
所以我用了ajax
但是我實作後發現,他怎麼有更和沒更一樣??(他有跑更新但長條圖還是沒變...
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<ui:define name="source">
<h:form>
金額小於:<h:inputText id="a" value="#{aapqchart.apk08}" />
金額大於:<h:inputText id="b" value="#{aapqchart.apk082}" />
<h:commandButton value="查詢" action="# {aapqchart.searchchart()}">
<f:ajax execute = "a,b" render = "showchart" />
</h:commandButton>
<br/>
<p:chart id="showchart" type="bar" model="#{aapqchart.barModel}" style="height:300px"/>
</h:form>
</ui:define>
</ui:composition>
麻煩各位大大幫我看哪裡有誤,謝謝