This content has been marked as final.
Show 3 replies
-
1. Re: Remove or update entity from a EntityHome.resultList
wise_guybg Sep 20, 2007 10:46 AM (in response to erik.d.hellman)use h:dataTable and h:column
-
2. Re: Remove or update entity from a EntityHome.resultList
erik.d.hellman Sep 20, 2007 10:52 AM (in response to erik.d.hellman)You mean something like this?
<h:dataTable var="ws" value="#{workShifts.resultList}"> <h:form> <h:column><h:inputText value="#{ws.name}"/></h:column> <h:column><h:commandLink action="#{workShiftHome.update}" value="Save"/></h:column> <h:column><h:commandLink action="#{workShiftHome.remove}" value="Remove"/></h:column> </h:form> </h:dataTable>
I tried variations on that to with no success. Do you have an example of how it should look like?
Thanks,
Erik -
3. Re: Remove or update entity from a EntityHome.resultList
wise_guybg Sep 20, 2007 11:06 AM (in response to erik.d.hellman)You can override update()/delete() to accept an entity bean.
@Override public String update(WorkShift workShift) { setInstance(workShift); return super.update(); }
You will then have:#{workShiftHome.update(ws)}