-2
 <f:actionListener binding="#{clController.getTotal((clController.year))}" />

clController.getTotal((clController.year)) 関数を呼び出そうとしましたが、問題があると思います。

なぜ ?actionListenerで関数を呼び出すにはどうすればよいですか

私はこのactionListenerを置きます

<h:commandButton type="submit"  action="#{clController.getPaymentByMonth(clController.year)}"  id="stateInfo"  value="Show Monthly "  >

                            </h:commandButton>

この間に

May 1, 2013 4:27:42 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/customerPaymentPlan.xhtml]
javax.faces.FacesException: javax.el.ELException: /customerPaymentPlan.xhtml @84,220 onclick="#{clController.getTotal((clController.year))}": Unable to find method [getTotal] with [1] parameters
    at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2350)
    at com.sun.faces.renderkit.RenderKitUtils.renderOnclick(RenderKitUtils.java:442)
    at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:166)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
    at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
4

1 に答える 1