Hey, I have a simple question regarding object editing,
I have a page containing a 'datatable' tag which fetches several objects via an EJB3, I want two simple actions: delete per row/ edit per row, by adding tag per row: | '<h:commandButton value="delete" action="#{myEjbBean.deleteObject}" />' | as it seems, the object gets injected into the bean fine (this is only working with h:commandButton tag, injection does not work when I use 's:link' tag. so this process seems to be straight forward, but what about editing an object? editing required two steps: 1) showing a form with the current object data (edit) 2) submitting the new edited data and persist it (update) if the selected row object is already injected by seam, can I bypass the 'edit' action and re-direct to another page and have the selected object already accessible there? WITHOUT having an actionListener on the way? if so? how do I do that? I tried the following: | <s:link view="/some_new_page.xhtml" value="edit"> | <f:param name="id" value="#{myvar.id}"/> | </s:link> | but appearntly 'some_new_page.xhtml' does not have 'myvar' accessible, so I assume 's:link' tag does not inject the object... Note (as I mentioned), when I Tried to use 's:link' tag with delete, the object was not injected as well, Am I missing something? or I must use an actionListener method to inject the object for the 'edit' process and then use another method for the 'update' as well? Thanks a lot, Asaf View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954812#3954812 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954812 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user