[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Gavin King
gavin.king at jboss.com
Tue Jun 26 16:26:28 EDT 2007
User: gavin
Date: 07/06/26 16:26:28
Modified: doc/reference/en/modules configuration.xml tutorial.xml
Log:
update
Revision Changes Path
1.54 +6 -6 jboss-seam/doc/reference/en/modules/configuration.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: configuration.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/configuration.xml,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -b -r1.53 -r1.54
--- configuration.xml 26 Jun 2007 02:23:11 -0000 1.53
+++ configuration.xml 26 Jun 2007 20:26:28 -0000 1.54
@@ -606,10 +606,10 @@
<para>Embedded JBoss must by installed into Tomcat for Seam applications to run correctly on it. Embedded
- JBoss can be downloaded from <ulink
- url="http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=228977"/>. The
- process for installing Embedded JBoss into Tomcat 6 is quite simple. First, you should copy the JBoss Embedded JARs and
- configuration files into Tomcat. </para>
+ JBoss can be downloaded <ulink
+ url="http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=228977">here</ulink>. The
+ process for installing Embedded JBoss into Tomcat 6 is quite simple. First, you should copy the JBoss
+ Embedded JARs and configuration files into Tomcat. </para>
<itemizedlist>
@@ -647,8 +647,8 @@
</listitem>
</itemizedlist>
- <para>For more configuration options, please see the Embedded JBoss Tomcat integration wiki entry at at
- <ulink url="http://wiki.jboss.org/wiki/Wiki.jsp?page=EmbeddedAndTomcat"/>.</para>
+ <para>For more configuration options, please see the Embedded JBoss Tomcat integration
+ <ulink url="http://wiki.jboss.org/wiki/Wiki.jsp?page=EmbeddedAndTomcat">wiki entry</ulink>.</para>
</sect2>
1.92 +44 -56 jboss-seam/doc/reference/en/modules/tutorial.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: tutorial.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/tutorial.xml,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -b -r1.91 -r1.92
--- tutorial.xml 26 Jun 2007 02:23:11 -0000 1.91
+++ tutorial.xml 26 Jun 2007 20:26:28 -0000 1.92
@@ -57,9 +57,9 @@
First, make sure you have Ant correctly installed, with <literal>$ANT_HOME</literal> and
<literal>$JAVA_HOME</literal> set correctly. Next, make sure you set the location of your Tomcat
6.0 installation in the <literal>build.properties</literal> file in the root folder of your Seam
- installation. You will need to follow the instructions in
- <xref linkend="config.install.embedded"/>
- for installing JBoss Embedded on Tomcat 6.0. JBoss embedded is required to run Seam applications on Tomcat.
+ installation. You will need to follow the instructions in <xref linkend="config.install.embedded"/>
+ for installing JBoss Embedded on Tomcat 6.0. JBoss Embedded is required to run the Seam demo
+ applications on Tomcat. (However, it is possible to use Seam on Tomcat without JBoss Embedded.)
</para>
<para>
@@ -319,7 +319,7 @@
{
em.persist(user);
log.info("Registered new user #{user.username}");
- return "/registered.jspx";
+ return "/registered.xhtml";
}
else
{
@@ -457,7 +457,8 @@
</example>
<para> This code configures a property named <literal>jndiPattern</literal> of a built-in Seam component
- named <literal>org.jboss.seam.core.init</literal>. </para>
+ named <literal>org.jboss.seam.core.init</literal>. The funny <literal>@</literal> symbols are
+ there because our Ant build script puts the correct JNDI pattern in when we deploy the application.</para>
</section>
@@ -488,11 +489,6 @@
</listener>
<context-param>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
- </context-param>
-
- <context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
@@ -503,7 +499,6 @@
<load-on-startup>1</load-on-startup>
</servlet>
- <!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
@@ -599,6 +594,7 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
+
<persistence-unit name="userDatabase">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/DefaultDS</jta-data-source>
@@ -606,6 +602,7 @@
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
</properties>
</persistence-unit>
+
</persistence>]]></programlisting>
</section>
@@ -631,22 +628,13 @@
<body>
<f:view>
<h:form>
- <table border="0">
<s:validateAll>
- <tr>
- <td>Username</td>
- <td><h:inputText value="#{user.username}" required="true"/></td>
- </tr>
- <tr>
- <td>Real Name</td>
- <td><h:inputText value="#{user.name}" required="true"/></td>
- </tr>
- <tr>
- <td>Password</td>
- <td><h:inputSecret value="#{user.password}" required="true"/></td>
- </tr>
+ <h:panelGrid columns="2">
+ Username: <h:inputText value="#{user.username}" required="true"/>
+ Real Name: <h:inputText value="#{user.name}" required="true"/>
+ Password: <h:inputSecret value="#{user.password}" required="true"/>
+ </h:panelGrid>
</s:validateAll>
- </table>
<h:messages/>
<h:commandButton value="Register" action="#{register.register}"/>
</h:form>
@@ -711,7 +699,7 @@
<ejb>jboss-seam-registration.jar</ejb>
</module>
<module>
- <java>jboss-seam.jar</java>
+ <ejb>jboss-seam.jar</ejb>
</module>
<module>
<java>jboss-el.jar</java>
@@ -2548,21 +2536,21 @@
<example>
<programlistingco>
<areaspec>
- <area id="blog-seampc" coords="6"/>
+ <area id="blog-seampc" coords="7"/>
<area id="blog-unwrap" coords="9"/>
</areaspec>
<programlisting><![CDATA[@Name("blog")
@Scope(ScopeType.STATELESS)
+ at AutoCreate
public class BlogService
{
- @In
- private EntityManager entityManager;
+ @In EntityManager entityManager;
@Unwrap
public Blog getBlog()
{
- return (Blog) entityManager.createQuery("from Blog b left join fetch b.blogEntries")
+ return (Blog) entityManager.createQuery("select distinct b from Blog b left join fetch b.blogEntries")
.setHint("org.hibernate.cacheable", true)
.getSingleResult();
}
More information about the jboss-cvs-commits
mailing list