The class ‘…’ does not have the property ‘some method to get list’.

Posted: September 5, 2012 in web

On your backing bean:

You need to create a private field with a public getter and setter and use the getter on your view (xhtml)

ex:

private List listCar;

public void findAllCar() {
this.listCar = remoteService.getActiveCars();
}

public List<Car> getListCar() {
return listCar;
}

public void setListCar(List<Car> listCar) {
this.listCar = listCar;
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s