JSF problem with commandlink/param and datatable

M

Michael Plate

Hello,

i have a problem in Jave Server Faces 1.2 and can't find a solution on
google.

JSP:

<h:dataTable ...>
....
<h:commandLink id="Edit" action="editProcess"
actionListener="#processBean.selectProcess}">
<f:param value="#{record.id}" name="id" id="editId" />
</h:commandLink>
....
</h:dataTable>

Bean:
....
public void selectProcessCultivation( ActionEvent event){
//get id
UIParameter component = (UIParameter)
event.getComponent().findComponent("editId");
long id = Long.parseLong( component.getValue().toString() );
...
}

My application shows a table with data. If I click on edit, a new side
appears. Here, I can change my data.

The DataTable shows the data sets with id correctly. I fitted even the
CommandLink for displaying the ids and this is correctly with each line.
When I click on edit, the bean show me an wrong id.
My investigation on google yielded that it apparently a bug here, but I
didn't find a Workaround.

Can somebody help me?

Thank you for your help and merry Christmas.
Michael Plate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top