I'm having problems in using JSF's selectOneMenu.

I have been trying somethings like the ones below, but no one seems to work...

Can someone help me?

JSP:

```
<h:selectOneMenu value="#{myBean.listCats.desc}" id="desc">
    <f:selectItems value="#{myBean.selectAllCats}" />
</h:selectOneMenu>

```

myBean:

```
(...)
    public Collection<SelectItem> selectAllCats() throws (some exceptions...){  
        this.listCats = this.controller().selectAllCats();
        Collection<SelectItem> toReturn = new ArrayList<SelectItem>();  

        for( int i = 0; i<this.listCats.size(); i++){  
          toReturn.add( new SelectItem( this.listCats.get(i).getCod(), this.listCats.get(i).getDesc()));  
        }
        return toReturn;
    }
(...)

```

Just a bit more info:

```
List<Cats> listCats = new List<Cats>();
//-------------------------------------
class Cats{
    private int cod; // both with getters and setters
    private String desc;
}

```

Thanks in advance!

---

Edit:

I forgot to say that I keep getting the following error:

> 
> '#{myBean.selectAllCats}' Property 'selectAllCats' not found on type
>  path.to.myBean
> 
> 
>