I am using the panelSeries component to iterate over a list of items and dynamically create commandLinks with different values and the same actionListener.
When I hard-code the value inside the command Link it is available in the actionListener method in the backing bean, but when i try to assign the value dynamically it is not available in the action listener.
What I do is :
Code:
my action listener :
public void test(ActionEvent actionEvent){
HtmlCommandLink commandLink = (HtmlCommandLink) actionEvent.getSource();
System.out.println(commandLink.getValue());
}
when i try:
Code:
<ice:commandLink value="1" actionListener="#{PackageDef.test}" />
the value is available ...
so can any one help me to find out how to get value of selected command link in backing bean.
When I hard-code the value inside the command Link it is available in the actionListener method in the backing bean, but when i try to assign the value dynamically it is not available in the action listener.
What I do is :
Code:
my action listener :
public void test(ActionEvent actionEvent){
HtmlCommandLink commandLink = (HtmlCommandLink) actionEvent.getSource();
System.out.println(commandLink.getValue());
}
when i try:
Code:
<ice:commandLink value="1" actionListener="#{PackageDef.test}" />
the value is available ...
so can any one help me to find out how to get value of selected command link in backing bean.