Skip to main content

JSF2.0 - ActionEvent triggered from CommandButton not updating GUI

1 reply [Last post]
Joined: 2009-11-13


I’ve a commandbutton an actionListener as show, and had hoped that pressing this button would display updated values for the outputText component

Associated methods from DashBoardBean

import javax.faces.event.ActionEvent;

private String chartType = "thisWeek";

* @return the chartType
public String getChartType() {
return chartType;

* @param chartType the chartType to set
public void setChartType(String chartType) {
this.chartType = chartType;

public void displayLastWeek(ActionEvent ae) {
chartType = "lastWeek";

However the output is not being updates and pressing the button has no effect..... Hopefully someone can point out what I am doing wrong


Message was edited by: patnevin

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-05-10


is your h:commandButton surrounded by h:form tag?

if not, then do so,and respond back