[jboss-cvs] jboss-seam/examples/seamdiscs/view/layout ...
Peter Muir
peter at bleepbleep.org.uk
Sat Oct 27 10:56:34 EDT 2007
User: pmuir
Date: 07/10/27 10:56:34
Modified: examples/seamdiscs/view/layout footer.xhtml
Log:
Make a seamdiscs framework-based components an EJB3 to show how it can be done.
Revision Changes Path
1.6 +7 -0 jboss-seam/examples/seamdiscs/view/layout/footer.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: footer.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamdiscs/view/layout/footer.xhtml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- footer.xhtml 8 Oct 2007 13:42:33 -0000 1.5
+++ footer.xhtml 27 Oct 2007 14:56:34 -0000 1.6
@@ -182,6 +182,13 @@
<a href="javascript:Richfaces.showModalPanel('componentsxml')"><code>EntityQuery</code></a>
for clickable lists.</p>
+ <p>If you extend <code>EntityHome</code> you can make the component an
+ EJB3 stateful session bean by adding <code>@Stateful</code> and a local
+ interface. You'll need to declare methods like <code>persist()</code>
+ and <code>isManaged()</code> from <code>EntityHome</code> on the
+ interface. The <code>ArtistHome</code> is a stateful session bean in
+ this example.</p>
+
<p>Each item in the list can be clicked - an <code><s:link /></code> and an
<code><f:param /></code> is used to <a href="javascript:Richfaces.showModalPanel('clickablelist')">link</a>
to the detail view. It's wired using <a href="javascript:Richfaces.showModalPanel('clickablelist')"><code>pages.xml</code></a>.
More information about the jboss-cvs-commits
mailing list