CommandLink iceface
Chcę pobrać za pomocą beana id od komponentu CommandLink
wygląda to tak:
<ice:commandLink id="ala" actionListener="#{newsHelper.link}">
<ice:outputText value="x"/>
</ice:commandLink>
public void link(javax.faces.event.ActionEvent e)
{
HtmlCommandLink ct = (HtmlCommandLink) e.getSource();
System.out.print(ct.getId());
}
Wszystko działa poprawnie ale czy to jest dobra metoda? Czy może są jakieś lepsze rozwiązania tego zagadnienia.