You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2012/08/09 19:15:32 UTC

svn commit: r828488 - in /websites/staging/openejb/trunk: cgi-bin/ content/ content/examples-trunk/jsf-managedBean-and-ejb/README.html

Author: buildbot
Date: Thu Aug  9 17:15:31 2012
New Revision: 828488

Log:
Staging update by buildbot for openejb

Modified:
    websites/staging/openejb/trunk/cgi-bin/   (props changed)
    websites/staging/openejb/trunk/content/   (props changed)
    websites/staging/openejb/trunk/content/examples-trunk/jsf-managedBean-and-ejb/README.html

Propchange: websites/staging/openejb/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Aug  9 17:15:31 2012
@@ -1 +1 @@
-1371314
+1371320

Propchange: websites/staging/openejb/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Aug  9 17:15:31 2012
@@ -1 +1 @@
-1371314
+1371320

Modified: websites/staging/openejb/trunk/content/examples-trunk/jsf-managedBean-and-ejb/README.html
==============================================================================
--- websites/staging/openejb/trunk/content/examples-trunk/jsf-managedBean-and-ejb/README.html (original)
+++ websites/staging/openejb/trunk/content/examples-trunk/jsf-managedBean-and-ejb/README.html Thu Aug  9 17:15:31 2012
@@ -154,29 +154,31 @@
 </h1>
 </div>
 
-<p>A simple web-app showing how to use dependency injection in JSF managed beans using TomEE.</p>
+<h2>JSF App using managed-bean and ejb</h2>
 
-<p>It contains a Local Stateless session bean (CalculatorImpl) which adds two numbers and returns the result.</p>
+<p>This is a simple web-app showing how to use dependency injection in JSF managed beans using TomEE.</p>
 
-<p>The application also contains a JSF managed bean (CalculatorBean), which uses the EJB to add two numbers
+<p>It contains a Local Stateless session bean (CalculatorImpl) which adds two numbers and returns the result.
+The application also contains a JSF managed bean (CalculatorBean), which uses the EJB to add two numbers
 and display the results to the user. The EJB is injected in the managed bean using @EJB annotation.</p>
 
-<p>You could run this in the latest Apache TomEE <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/">snapshot</a></p>
-
-<p>The complete source code is below but lets break down to look at some smaller snippets and see  how it works.</p>
+<h2>A little note on the setup:</h2>
 
-<p>A little note on the setup:</p>
+<p>You could run this in the latest Apache TomEE <a href="https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/">snapshot</a></p>
 
 <p>As for the libraries, myfaces-api and myfaces-impl are provided in tomee/lib and hence they should not be a part of the
-war. In maven terms, they would be with scope 'provided'</p>
+war. In maven terms, they would be with scope 'provided'
+The complete source code is below but lets break down to look at some smaller snippets and see  how it works.</p>
 
-<p>Also note that we use servlet 2.5 declaration in web.xml
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xmlns="http://java.sun.com/xml/ns/javaee"
-  xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-  version="2.5"></p>
+<p>Also note that we use servlet 2.5 declaration in web.xml</p>
+
+<pre><code>&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xmlns="http://java.sun.com/xml/ns/javaee"
+xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+version="2.5"&gt;
+</code></pre>
 
 <p>And we use 2.0 version of faces-config</p>
 
@@ -221,17 +223,17 @@ x being a Double, we rightly should see 
 <p>When you change the value and submit the form, these entered values are bound using the setters
 in the bean and then the commandButton-action method is invoked.</p>
 
-<p>In this case, CalculatorBean#add() is invoked.</p>
+<p>In this case, <code>CalculatorBean#add()</code> is invoked.</p>
 
-<p>Calculator#add() delegates the work to the ejb, gets the result, stores it
+<p><code>Calculator#add()</code> delegates the work to the ejb, gets the result, stores it
 and then instructs what view is to be rendered.</p>
 
 <p>You're right. The return value "success" is checked up in faces-config navigation-rules
 and the respective page is rendered.</p>
 
-<p>In our case, 'result.xhtml' page is rendered.</p>
+<p>In our case, <code>result.xhtml</code> page is rendered.</p>
 
-<p>The request scoped 'calculatorBean' is available here, and we use EL to display the values.</p>
+<p>The request scoped <code>calculatorBean</code> is available here, and we use EL to display the values.</p>
 
 <h2>Source</h2>