You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by bu...@apache.org on 2013/10/29 07:53:21 UTC
svn commit: r884609 - in /websites/production/geronimo/content:
GMOxDOC30/developing-a-simple-javaserver-faces-application.html
GMOxDOC30/developing-user-interface-with-jsf.html cache/GMOxDOC30.pageCache
Author: buildbot
Date: Tue Oct 29 06:53:21 2013
New Revision: 884609
Log:
Production update by buildbot for geronimo
Modified:
websites/production/geronimo/content/GMOxDOC30/developing-a-simple-javaserver-faces-application.html
websites/production/geronimo/content/GMOxDOC30/developing-user-interface-with-jsf.html
websites/production/geronimo/content/cache/GMOxDOC30.pageCache
Modified: websites/production/geronimo/content/GMOxDOC30/developing-a-simple-javaserver-faces-application.html
==============================================================================
--- websites/production/geronimo/content/GMOxDOC30/developing-a-simple-javaserver-faces-application.html (original)
+++ websites/production/geronimo/content/GMOxDOC30/developing-a-simple-javaserver-faces-application.html Tue Oct 29 06:53:21 2013
@@ -40,6 +40,7 @@ under the License.
<link href='http://geronimo.apache.org/resources/highlighter/styles/shThemeGeronimo.css' rel='stylesheet' type='text/css' />
<script src='http://geronimo.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
<script src='http://geronimo.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://geronimo.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -218,7 +219,7 @@ and
</div></div>
<p> <br clear="none" class="atl-forced-newline"></p></li><li>To add these two TLD's in the application, in Eclipse under the Project Explorer right click on <b>WEB-INF</b>. Create a folder called <b>tld</b>. Copy <tt>myfaces-html.tld</tt> and <tt>myfaces_core.tld</tt> to this folder.<br clear="none" class="atl-forced-newline"> <br clear="none" class="atl-forced-newline"></li><li>The next step is to populate <tt>login.jsp</tt> and <tt>welcome.jsp</tt> with data
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>login.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<%@ taglib uri="/WEB-INF/tld/myfaces-html.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/tld/myfaces_core.tld" prefix="f" %>
<html>
@@ -253,7 +254,7 @@ and
]]></script>
</div></div>
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>welcome.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<%@ taglib uri="/WEB-INF/tld/myfaces-html.tld" prefix="h"%>
<%@ taglib uri="/WEB-INF/tld/myfaces_core.tld" prefix="f"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
@@ -276,7 +277,7 @@ pageEncoding="ISO-8859-1"%>
<p>Lets now try to understand what each line of code represents.</p>
<ul><li>The first two lines in <tt>login.jsp</tt> defines two tag libraries
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>Code Snippet from login.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<%@ taglib uri="/WEB-INF/tld/myfaces-html.tld" prefix="h" %>
and
<%@ taglib uri="/WEB-INF/tld/myfaces_core.tld" prefix="f" %>
@@ -294,7 +295,7 @@ and
]]></script>
</div></div></li><li>The tag <b><f:view></b> represents the start of JSF code.</li><li>This line of code Represents the input tag. The <b>id="firstName"</b> and <b>value="firstName.name"</b> comes from the Managed Bean.
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>Code Snippet from login.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<h:inputText id="firstName" value="#{firstName.name}" required="true">
]]></script>
</div></div></li></ul>
@@ -320,7 +321,7 @@ The pages navigation in a JSF applicaito
<span class="image-wrap" style=""><img src="developing-a-simple-javaserver-faces-application.data/ViewController5.png" style="border: 0px solid black"></span><br clear="none" class="atl-forced-newline"> <br clear="none" class="atl-forced-newline"> <br clear="none" class="atl-forced-newline"></li><li>Once done have a look the <em>Source</em> tab in the Faces Navigation Editor. A <b><navigation-rule></b> tag has been introduced into the <tt>faces-config.xml</tt>. This rule instructs the Controller that if all the inputs are valid from a form in the <tt>/pages/login.jsp</tt>, and the action is <b>validated</b>, then go to page <tt>/pages/welcome.jsp</tt>.<br clear="none" class="atl-forced-newline"> <br clear="none" class="atl-forced-newline">
<span class="image-wrap" style=""><img src="developing-a-simple-javaserver-faces-application.data/ViewController6.png" style="border: 0px solid black"></span><br clear="none" class="atl-forced-newline"> <br clear="none" class="atl-forced-newline"> <br clear="none" class="atl-forced-newline"></li><li>Now lets add a <tt>index.jsp</tt> under <b>WebContent</b> as follows:
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>index.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"pageEncoding="ISO-8859-1"%>
<\!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
Modified: websites/production/geronimo/content/GMOxDOC30/developing-user-interface-with-jsf.html
==============================================================================
--- websites/production/geronimo/content/GMOxDOC30/developing-user-interface-with-jsf.html (original)
+++ websites/production/geronimo/content/GMOxDOC30/developing-user-interface-with-jsf.html Tue Oct 29 06:53:21 2013
@@ -40,6 +40,7 @@ under the License.
<link href='http://geronimo.apache.org/resources/highlighter/styles/shThemeGeronimo.css' rel='stylesheet' type='text/css' />
<script src='http://geronimo.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
<script src='http://geronimo.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+ <script src='http://geronimo.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
@@ -461,7 +462,7 @@ public class Employee {
<br clear="none" class="atl-forced-newline">
The contents of the <tt>index.jsp</tt> are as follows.
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>index.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
@@ -480,7 +481,7 @@ The contents of the <tt>index.jsp</tt> a
]]></script>
</div></div></li><li>Similarly, create <tt>addEmployee.jsp</tt> and the contents are as follows.
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>addEmployee.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page language="java" %>
@@ -583,7 +584,7 @@ String basePath = request.getScheme()+":
]]></script>
</div></div></li><li>Similarly, create <tt>editEmployee.jsp</tt> and the contents are as follows.
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>editEmployee.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
@@ -682,7 +683,7 @@ String basePath = request.getScheme()+":
]]></script>
</div></div></li><li>Similarly, create <tt>RetrieveEmployee.jsp</tt> and the contents are as follows.
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>RetrieveEmployee.jsp</b></div><div class="codeContent panelContent">
-<script class="theme: Default; brush: actionscript; gutter: false" type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: html; gutter: false" type="syntaxhighlighter"><![CDATA[
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page language="java" %>
Modified: websites/production/geronimo/content/cache/GMOxDOC30.pageCache
==============================================================================
Binary files - no diff available.