Thanks, that looks like a good solution.

Is there an easier way by using pages.xml however? If you set the 
#{mySelectedEntity.id} in the pages.xml like the following, then wouldn't the 
entity you selected actually somehow get refreshed with the value in the 
database associated with that id?

<param name="entityId" value="#{mySelectedEntity.id}" />

Then in the remove method you could stick to em.remove(...); alone?

But what I'm wondering is how I could modify my code to take advantage of 
this...basically, what does putting a param element in pages.xml that points to 
an id actually do...is it what I think (the refresh) or is it something else?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005085#4005085

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005085
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to