带有参数的Icefaces/JSF方法调用

带有参数的Icefaces/JSF方法调用,jsf,icefaces,icefaces-1.8,Jsf,Icefaces,Icefaces 1.8,我使用的是icefaces1.8.2,我需要在xhtml页面上用参数进行一个方法调用,我不知道该怎么做。 我的网页如下所示 <ice:commandLink actionListener="#{myBean.reset}"> protected void reset(ActionEvent event, List myList) { ..... } 如果您使用的是jsf>=2.0: <ice:commandLink actionListener="#{myBean.rese

我使用的是
icefaces1.8.2
,我需要在xhtml页面上用参数进行一个方法调用,我不知道该怎么做。 我的网页如下所示

<ice:commandLink actionListener="#{myBean.reset}">
protected void reset(ActionEvent event, List myList) {
.....
}

如果您使用的是jsf>=2.0:

<ice:commandLink actionListener="#{myBean.reset(myList)}">

如果没有,你可以检查一些替代方案

我不想多写一行,但我想我需要这样做,因为我使用的是
was7
<ice:commandLink>
    <f:setPropertyActionListener target="#{myBean.myList}" value="#{null}" />
</ice:commandLink>
getMyList(){ 
    return myList == null ? new ArrayList() ? myList;
}