JavaServer Faces - HtmlCommandLink in Dynamic datatable
Hi All,
I got the dynamic data table working with help from http://balusc.xs4all.nl/srv/dev-jep-dat.html
I want to have a command link for all the cells . I tried the following code. It shows the link. But when I click on the link it just refreshes the same page
HtmlCommandLink column1Text = new HtmlCommandLink();
ValueBinding vb =
FacesContext.getCurrentInstance().getApplication().createValueBinding("#{contact.createSetup}");
column1Text.setValueBinding("action", vb);
ValueBinding vbvalue =
FacesContext.getCurrentInstance().getApplication().createValueBinding("#{myItem[" + i + "]}");
column1Text.setValueBinding("value", vbvalue);
UIParameter param = new UIParameter();
param.setName("parm1");
param.setValue("test");
column1Text.getChildren().add(param);
// Set column.
UIColumn column = new UIColumn();
column.setHeader(header);
column.getChildren().add(column1Text);
// Add column.
dynamicTable.getChildren().add(column);
Any idea what I am doing wrong? Any help is appreciated much..
regards
Reghu

