Could somebody give me an advice for my situation? I'd like to display a List<FileInfo> like this:
When we click on the button in the Action column, we send that row to the server, modify it (modify the Status field) and refresh that row.
This is the bean code:
I put a break point inside the testX method and canbe sure that the fi variable is not null.
From the JSF xhtml code, you can notice that I have "id='status'" for the cell in the Status column which will be updated by the <p:commandButton> in the Actions column. However this doesn't work as I expected. Firebug shows that there's no id of "xxx:status" for that <td>. You will also notice in firebug that the button, which is the <p:commandButton>, will update the "j_idt11:j_idt12:0:status" element, but the <td> right in front of this button doesn't have such id.
Thank you for any advice.
Another problem I encountered is that the <f:setPropertyActionListener> inside the <p:commandButton> didn't work in my case. I mean this code doesn't work:
Code: Select all
<p:commandButton update="status" actionListener="#{index.checkStatus}">
<f:setPropertyActionListener value="#{fileInfo}" target="#{index.currentFileInfo}"/>
</p:commandButton>