If you mean an all-on-one-page CRUD, I'm doing this using a Seam Gen'd 
application and using the EntityHome objects. 

On the left of the screen is my input form. No real difference to the ones 
created by Seam Gen but the page.xml returns the view to itself. On the right 
is the DataTable. This has a column with links for Edit and Delete as per below:

  | <rich:column>
  |     <f:facet name="header">Action</f:facet>
  |     <s:link action="#{objectHome.find}"
  |             title="Click here to edit this record">
  |             <f:param name="objectId" value="#{tableVar.objectId}"/>
  |             <h:graphicImage url="/img/edit.png" border="0"/>
  |     </s:link>
  |     <s:link action="#{objectHome.remove}"
  |             onclick="return confirm('Are you sure you want to delete this 
row?');"
  |             title="Click here to delete this record">
  |             <f:param name="objectId" value="#{tableVar.objectId}"/>
  |             <h:graphicImage url="/img/cross.png" border="0"/>
  |     </s:link>
  | </rich:column>
  | 

The page.xml has the param like this:

  | <param name="objectId" value="#{objectHome.objectId}"/>
  | 

And in the objectHome after an Update or Persist I remove it from the all 
contexts:

  | Contexts.removeFromAllContexts("objectHome");
  | 

This is working quite well for me at the moment, but the downside is that it 
exposes the IDs. Would welcome any improvements.

Cheers,

Damian.

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

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

Reply via email to