You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2007/06/14 10:59:59 UTC
svn commit: r547185 - in /myfaces/orchestra/trunk: core/src/site/
core/src/site/xdoc/ core15/src/site/ core15/src/site/resources/
core15/src/site/resources/images/ core15/src/site/xdoc/ src/ src/site/
src/site/resources/ src/site/resources/css/ src/sit...
Author: imario
Date: Thu Jun 14 01:59:56 2007
New Revision: 547185
URL: http://svn.apache.org/viewvc?view=rev&rev=547185
Log:
added documentation for "root" orchestra site, moved core15 doc to the
corresponding module, adjusted "intra orchestra site" links
Added:
myfaces/orchestra/trunk/core15/src/site/
myfaces/orchestra/trunk/core15/src/site/resources/
myfaces/orchestra/trunk/core15/src/site/resources/images/
myfaces/orchestra/trunk/core15/src/site/resources/images/easter.png (with props)
myfaces/orchestra/trunk/core15/src/site/resources/images/h3.jpg (with props)
myfaces/orchestra/trunk/core15/src/site/resources/images/myfaces-logo.png (with props)
myfaces/orchestra/trunk/core15/src/site/resources/images/transparent.gif (with props)
myfaces/orchestra/trunk/core15/src/site/site.xml (with props)
myfaces/orchestra/trunk/core15/src/site/xdoc/
myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml (with props)
myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml (with props)
myfaces/orchestra/trunk/src/
myfaces/orchestra/trunk/src/site/
myfaces/orchestra/trunk/src/site/resources/
myfaces/orchestra/trunk/src/site/resources/css/
myfaces/orchestra/trunk/src/site/resources/css/png-fix.htc
myfaces/orchestra/trunk/src/site/resources/css/site.css (with props)
myfaces/orchestra/trunk/src/site/resources/images/
myfaces/orchestra/trunk/src/site/resources/images/easter.png (with props)
myfaces/orchestra/trunk/src/site/resources/images/h3.jpg (with props)
myfaces/orchestra/trunk/src/site/resources/images/myfaces-logo.png (with props)
myfaces/orchestra/trunk/src/site/resources/images/transparent.gif (with props)
myfaces/orchestra/trunk/src/site/site.xml (with props)
myfaces/orchestra/trunk/src/site/xdoc/
myfaces/orchestra/trunk/src/site/xdoc/index.xml (with props)
Removed:
myfaces/orchestra/trunk/core/src/site/xdoc/dynaForm.xml
Modified:
myfaces/orchestra/trunk/core/src/site/site.xml
myfaces/orchestra/trunk/core/src/site/xdoc/index.xml
myfaces/orchestra/trunk/core/src/site/xdoc/installation.xml
Modified: myfaces/orchestra/trunk/core/src/site/site.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/site/site.xml?view=diff&rev=547185&r1=547184&r2=547185
==============================================================================
--- myfaces/orchestra/trunk/core/src/site/site.xml (original)
+++ myfaces/orchestra/trunk/core/src/site/site.xml Thu Jun 14 01:59:56 2007
@@ -22,7 +22,7 @@
<item name="Tomahawk" href="../tomahawk/index.html"/>
<item name="Sandbox" href="../sandbox/index.html"/>
<item name="Tobago" href="http://myfaces.apache.org/tobago"/>
- <item name="Orchestra" href="index.html"/>
+ <item name="Orchestra" href="../index.html"/>
</links>
<menu name="MyFaces Projects">
@@ -31,7 +31,7 @@
<item name="Impl" href="../impl/index.html"/>
<item name="Tomahawk" href="../tomahawk/index.html"/>
<item name="Sandbox" href="../sandbox/index.html"/>
- <item name="Orchestra" href="index.html"/>
+ <item name="Orchestra" href="../index.html"/>
</menu>
<menu name="MyFaces Orchestra">
@@ -39,7 +39,6 @@
<item name="Installation" href="installation.html"/>
<item name="Conversation API Usage" href="usage.html"/>
<item name="Best Practice" href="bestPractice.html"/>
- <item name="Dynamic Forms" href="dynaForm.html"/>
<item name="TODO" href="todo.html"/>
<item name="FAQs" href="faqs.html"/>
</menu>
Modified: myfaces/orchestra/trunk/core/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/site/xdoc/index.xml?view=diff&rev=547185&r1=547184&r2=547185
==============================================================================
--- myfaces/orchestra/trunk/core/src/site/xdoc/index.xml (original)
+++ myfaces/orchestra/trunk/core/src/site/xdoc/index.xml Thu Jun 14 01:59:56 2007
@@ -3,137 +3,20 @@
"http://www.apache.org/dtd/xdoc.dtd">
<document>
<properties>
- <title>About Apache MyFaces Orchestra</title>
+ <title>About Apache MyFaces Orchestra - Core</title>
</properties>
<body>
- <section name="Apache MyFaces Orchestra">
+ <section name="Apache MyFaces Orchestra - Core">
<p>
- Are you fearing the dreaded LazyInitializationException?
- <br/>
- Or the ghastly NonUniqueObjectException?
- <br/>
- Read on to finally find a solution to such problems...
- </p>
- <p>
- Apache MyFaces Orchestra aims to provide a simple way to combine a web-framework with a persistence
- layer. Typically, an Apache MyFaces Orchestra stack might combine JavaServer Faces (JSF), Spring and
- a Java Persistence API (JPA) implementation like Toplink, Hibernate, etc.
- The underlying idea is to provide long persistence sessions to the web-developer - this is
- done by associating these sessions with a conversational context.
- <br/>
- The conversational context is opened when the bean configured for this context is first loaded.
- It can be manually closed by the programmer, plus a time-out can be configured as a global
- parameter.
+ The Apache MyFaces Orchestra Core module contains all the stuff not requiring any Java 5.0 feature.
</p>
- <p>Apache MyFaces Orchestra is the latest addition to the Apache MyFaces project family, but
- has already been used in several real world projects. Check-out our demo-application if you
- want to see more on how it works in the wild-life.
+ <p>
+ Please find the documentation in the navigation panel on the left side.
</p>
- <subsection name="A small example">
- in three parts.
-
- First, you need to configure a conversation-scoped bean - do that
- in standard Spring-syntax. Define the name of the scope by setting
- the scope-attribute; usually you will want to put "conversation" here.
- <br/>
-
- Don't forget to add the child-element scoped-proxy - it makes sure
- injected instances are re-checked (and if necessary, re-instantiated)
- on every access to the instance.
- <pre>
-<bean
- name="ballotTopic"
- class="org.apache.myfaces.examples.ballot.backings.BallotTopic"
- scope="conversation"
- autowire="byName">
-
- <aop:scoped-proxy/>
-
-</bean>
- </pre>
- The bean named "ballotTopic" can now be used from the JSF-view.
- It defines properties, methods and event-listeners as usual
- managed-beans do.
- <br/>
- Then, there is the action-method - you define this method as
- requiring a transaction with the @Transactional annotation
- (with this, a commit will be executed at the end of the method).
- Now do whatever you want to do with your beans - save business objects,
- update them, play around and have fun.
- When the conversation needs to be closed again, close it by calling
- the invalidate method on the current conversational instance (the
- action-method needs to be defined in the conversational bean itself).
- <code><pre>
-@Transactional
-public String saveAction()
-{
- topic.setOwner(getVoterDao().getByKey(getBallotState().getVoterId()));
- topicDao.save(topic);
-
- Conversation.getCurrentInstance().invalidate();
-
- return "success";
-} </pre>
- </code>
-
- The developer keeps on defining DAO's as she is used to do
- - here a simple example using the JPA-syntax with an
- injected EntityManager.
- <pre>
-public class VoterDao
-{
- @PersistenceContext
- private EntityManager entityManager;
-
- public Voter getByKey(Long id)
- {
- return entityManager.find(Voter.class, id);
- }
-}
- </pre>
-
- </subsection>
-
- <subsection name="Highlights">
- <ul>
- <li>It works with a Java 1.4-compliant syntax, but you can optionally use annotations
- (in the persistence layer - in the future, additional annotations for
- Orchestra itself might be added).</li>
- <li>It utilizes the powerful Spring bean configuration mechanism instead of JSF's
- managed-bean facility.
- Departing from Spring 2.0, it is possible to configure session and request-scoped
- managed-beans in Spring - and you can easily use them from your JSF application.
- We recommend doing so if you use Spring in your applications - you gain from having
- one common syntax for defining the beans of your application, from the AOP-support Spring
- provides, and from other advanced features Spring has included.
- </li>
- <li>A plus for integrating Orchestra into existing applications:
- If you configure your application to use Orchestra, whenever the
- conversational context is opened,
- Spring configured DAOs and BOs automatically use the new context and gain
- from the conversational features of Orchestra. Minimal effort for maximal results!</li>
- <li>MyFaces Orchestra is know to be compatible to persistence frameworks
- such as Toplink and Hibernate (and generally any JPA-implementation).
- However, any persistence framework can be plugged into Orchestra.</li>
- <li>The Orchestra API can be adapted to use other web frameworks than JSF.</li>
- <li>Orchestra sports a very easy to use API - maximum 3 method calls, and you're ready to go.</li>
- </ul>
- </subsection>
-
- <subsection name="Context">
- <p>
- Some historical context at the end: Apache Orchestra has been initiated by members of the JavaServer
- Faces and Spring community to provide better interaction between the projects and the persistence
- layer of a typical web-application. Namely, Spring founder
- Jürgen Höller, MyFaces founder Manfred Geiler, and MyFaces committer and PMC member
- Mario Ivankovits have worked together to lay-out the fundamentals of this glue-code project.
- </p>
- </subsection>
-
- </section>
+ </section>
</body>
</document>
Modified: myfaces/orchestra/trunk/core/src/site/xdoc/installation.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/site/xdoc/installation.xml?view=diff&rev=547185&r1=547184&r2=547185
==============================================================================
--- myfaces/orchestra/trunk/core/src/site/xdoc/installation.xml (original)
+++ myfaces/orchestra/trunk/core/src/site/xdoc/installation.xml Thu Jun 14 01:59:56 2007
@@ -131,7 +131,6 @@
</property>
<property name="persistenceUnitName" value="default"/>
</bean>
-
</beans>
</pre>
<p>Basically, all you need to do is copy this configuration segment and paste it
@@ -237,7 +236,7 @@
</filter-mapping>
</pre>
<p>
- <b>Notice:</b> Replace the <code>*.faces</code> url-pattern by the one used by your application.
+ <b>Notice:</b> Replace the <code>*.faces</code> url-pattern by the one used by your application.
</p>
<p>
The OrchestraFilter ensures that any resources in use by the underlying framework
Added: myfaces/orchestra/trunk/core15/src/site/resources/images/easter.png
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/resources/images/easter.png?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/core15/src/site/resources/images/easter.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: myfaces/orchestra/trunk/core15/src/site/resources/images/h3.jpg
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/resources/images/h3.jpg?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/core15/src/site/resources/images/h3.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: myfaces/orchestra/trunk/core15/src/site/resources/images/myfaces-logo.png
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/resources/images/myfaces-logo.png?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/core15/src/site/resources/images/myfaces-logo.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: myfaces/orchestra/trunk/core15/src/site/resources/images/transparent.gif
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/resources/images/transparent.gif?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/core15/src/site/resources/images/transparent.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: myfaces/orchestra/trunk/core15/src/site/site.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/site.xml?view=auto&rev=547185
==============================================================================
--- myfaces/orchestra/trunk/core15/src/site/site.xml (added)
+++ myfaces/orchestra/trunk/core15/src/site/site.xml Thu Jun 14 01:59:56 2007
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project name="MyFaces Orchestra">
+
+ <bannerLeft>
+ <name>MyFaces Orchestra</name>
+ <src>images/myfaces-logo.png</src>
+ <href>http://myfaces.apache.org/</href>
+ </bannerLeft>
+ <bannerRight>
+ <name>Easter Island</name>
+ <src>images/easter.png</src>
+ <href>http://myfaces.apache.org/</href>
+ </bannerRight>
+
+ <body>
+
+ <links>
+ <item name="Apache" href="http://www.apache.org/"/>
+ <item name="MyFaces" href="../index.html"/>
+ <item name="API" href="../api/index.html"/>
+ <item name="Impl" href="../impl/index.html"/>
+ <item name="Tomahawk" href="../tomahawk/index.html"/>
+ <item name="Sandbox" href="../sandbox/index.html"/>
+ <item name="Tobago" href="http://myfaces.apache.org/tobago"/>
+ <item name="Orchestra" href="../index.html"/>
+ </links>
+
+ <menu name="MyFaces Projects">
+ <item name="Overview" href="../index.html"/>
+ <item name="API" href="../api/index.html"/>
+ <item name="Impl" href="../impl/index.html"/>
+ <item name="Tomahawk" href="../tomahawk/index.html"/>
+ <item name="Sandbox" href="../sandbox/index.html"/>
+ <item name="Orchestra" href="../index.html"/>
+ </menu>
+
+ <menu name="MyFaces Orchestra">
+ <item name="Dynamic Forms" href="dynaForm.html"/>
+ </menu>
+
+ ${reports}
+
+ </body>
+</project>
Propchange: myfaces/orchestra/trunk/core15/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/orchestra/trunk/core15/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/orchestra/trunk/core15/src/site/site.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml?view=auto&rev=547185
==============================================================================
--- myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml (added)
+++ myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml Thu Jun 14 01:59:56 2007
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//Apache Software Foundation//DTD XDOC 1.0//EN"
+ "http://www.apache.org/dtd/xdoc.dtd">
+<document>
+ <properties>
+ <title>Dynamic Forms</title>
+ </properties>
+
+ <body>
+ <section name="Dynamic Forms">
+ <p>
+ This is a core15 feature.
+ </p>
+ <p>
+ The MyFaces Orchestra JSF tag called <code>dynaForm</code> enables you to dynamically create
+ forms or lists - editable or just displayable - based on the annotation of your beans.
+ </p>
+ <p>
+ ... more to come ...
+ </p>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange: myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/orchestra/trunk/core15/src/site/xdoc/dynaForm.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml?view=auto&rev=547185
==============================================================================
--- myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml (added)
+++ myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml Thu Jun 14 01:59:56 2007
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//Apache Software Foundation//DTD XDOC 1.0//EN"
+ "http://www.apache.org/dtd/xdoc.dtd">
+<document>
+ <properties>
+ <title>About Apache MyFaces Orchestra - Core15</title>
+ </properties>
+
+ <body>
+ <section name="Apache MyFaces Orchestra - Core15">
+
+ <p>
+ The Apache MyFaces Orchestra Core15 module contains all the stuff requiring Java 5.0 features.
+ </p>
+
+ <p>
+ Please find the documentation in the navigation panel on the left side.
+ </p>
+
+ </section>
+ </body>
+</document>
Propchange: myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/orchestra/trunk/core15/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/orchestra/trunk/src/site/resources/css/png-fix.htc
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/resources/css/png-fix.htc?view=auto&rev=547185
==============================================================================
--- myfaces/orchestra/trunk/src/site/resources/css/png-fix.htc (added)
+++ myfaces/orchestra/trunk/src/site/resources/css/png-fix.htc Thu Jun 14 01:59:56 2007
@@ -0,0 +1,57 @@
+<public:component lightWeight="true">
+<public:attach event="onpropertychange" onEvent="propertyChanged()" />
+<script>
+/*
+ * Based on
+ * http://www.mongus.net/pngInfo/
+ * and
+ * http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html
+ *
+ */
+
+ var gNeedFix = needFix();
+
+ var transparentImage = "transparent.gif";
+
+ pngFix();
+
+ function propertyChanged() {
+ if (event.propertyName == "src") {
+ pngFix();
+ }
+ }
+
+ function pngFix() {
+ if (!gNeedFix) {
+ return;
+ }
+
+ var src = element.src;
+
+ if (src.indexOf(transparentImage) != -1) {
+ return;
+ }
+
+ if (src.indexOf(".png") == -1) {
+ return;
+ }
+
+ var w = element.width;
+ var h = element.height;
+ element.src = src.substring(0, src.lastIndexOf('/') + 1) + transparentImage;
+ element.width = w;
+ element.height = h;
+ element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
+ }
+
+ function needFix() {
+ var pos = navigator.userAgent.indexOf("MSIE ");
+ if (pos == -1) {
+ return false;
+ }
+ var version = navigator.userAgent.substring(pos + 5);
+ return (((version.indexOf("5.5") == 0) || (version.indexOf("6") == 0)) && (navigator.platform == ("Win32")));
+ }
+
+</script>
+</public:component>
\ No newline at end of file
Added: myfaces/orchestra/trunk/src/site/resources/css/site.css
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/resources/css/site.css?view=auto&rev=547185
==============================================================================
--- myfaces/orchestra/trunk/src/site/resources/css/site.css (added)
+++ myfaces/orchestra/trunk/src/site/resources/css/site.css Thu Jun 14 01:59:56 2007
@@ -0,0 +1,198 @@
+body {
+ background-color: #fff;
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ margin-left: auto;
+ margin-right: auto;
+ background-repeat: repeat-y;
+ font-size: 13px;
+ padding: 0px;
+}
+td, select, input, li{
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: 12px;
+ color:#333333;
+}
+code{
+ font-size: 12px;
+}
+a {
+ text-decoration: none;
+}
+a:link {
+ color:#47a;
+}
+a:visited {
+ color:#666666;
+}
+a:active, a:hover {
+ color:#990000;
+}
+#legend li.externalLink {
+ background: url(../images/external.png) left top no-repeat;
+ padding-left: 18px;
+}
+a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
+ background: url(../images/external.png) right center no-repeat;
+ padding-right: 18px;
+}
+#legend li.newWindow {
+ background: url(../images/newwindow.png) left top no-repeat;
+ padding-left: 18px;
+}
+a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover {
+ background: url(../images/newwindow.png) right center no-repeat;
+ padding-right: 18px;
+}
+h2 {
+ font-size: 17px;
+ color: #333333;
+}
+h3 {
+ padding: 4px 4px 4px 24px;
+ color: #666666;
+ background-color: #CECECE;
+ font-weight: bold;
+ font-size: 14px;
+ background-image: url(../images/h3.jpg);
+ background-repeat: no-repeat;
+ background-position: left bottom;
+}
+p {
+ line-height: 1.3em;
+ font-size: 12px;
+ color: #000;
+}
+#breadcrumbs {
+ color: #DDDDDD;
+ padding: 5px 5px 5px 5px;
+}
+
+* html #breadcrumbs {
+ padding-bottom: 8px;
+}
+#leftColumn {
+ background-color: #B2C4E0;
+}
+#navcolumn h5 {
+ font-size: smaller;
+ border-bottom: 1px solid #aaaaaa;
+ padding-top: 2px;
+ padding-left: 9px;
+ color: #49635a;
+ background-image: url(../images/h5.gif);
+ background-repeat: no-repeat;
+ background-position: left bottom;
+}
+
+table.bodyTable th {
+ color: white;
+ background-color: #999999;
+ text-align: left;
+ font-weight: bold;
+}
+
+table.bodyTable th, table.bodyTable td {
+ font-size: 11px;
+}
+
+table.bodyTable tr.a {
+ background-color: #ddd;
+}
+
+table.bodyTable tr.b {
+ background-color: #eee;
+}
+
+.source {
+ border: 1px solid #999;
+ overflow:auto
+}
+dt {
+ padding: 4px 4px 4px 24px;
+ color: #333333;
+ background-color: #ccc;
+ font-weight: bold;
+ font-size: 14px;
+ background-image: url(../images/h3.jpg);
+ background-repeat: no-repeat;
+ background-position: left bottom;
+}
+.subsectionTitle {
+ font-size: 13px;
+ font-weight: bold;
+ color: #666;
+
+}
+
+table {
+ font-size: 10px;
+}
+.xright a:link, .xright a:visited, .xright a:active {
+ color: #666;
+}
+.xright a:hover {
+ color: #003300;
+}
+#banner {
+ background-color: #B5C8CF;
+ border-bottom: 1px solid #B5C8CF;
+}
+#navcolumn ul {
+ margin: 5px 0 15px -0em;
+}
+#navcolumn ul a {
+ color: #333333;
+}
+#navcolumn ul a:hover {
+ color: red;
+}
+#intro {
+ border: solid #ccc 1px;
+ margin: 6px 0px 0px 0px;
+ padding: 10px 40px 10px 40px;
+}
+.subsection {
+ margin-left: 3px;
+ color: #333333;
+}
+
+.subsection p {
+ font-size: 12px;
+}
+#footer {
+ padding: 10px;
+ margin: 20px 0px 20px 0px;
+ border-top: solid #ccc 1px;
+ color: #333333;
+}
+
+
+dl {
+ padding: 0px 0px 5px 0px;
+ border: 0px;
+ background: url(../images/dl.jpg) left top no-repeat
+}
+
+dt {
+ padding: 0px 0px 0px 25px;
+ border: 0px;
+ background-color: #FFFFFF;
+}
+
+div#leftColumn {
+ background: #F0F0F0;
+ border-color: #999 #999 #999 #999;
+ border-width: 1px;
+ border-style: solid;
+}
+
+
+
+#breadcrumbs{
+ background: #F0F0F0;
+ color: #000000;
+}
+
+#banner img {
+ behavior: url(css/png-fix.htc);
+}
Propchange: myfaces/orchestra/trunk/src/site/resources/css/site.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/orchestra/trunk/src/site/resources/css/site.css
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/orchestra/trunk/src/site/resources/css/site.css
------------------------------------------------------------------------------
svn:mime-type = text/css
Added: myfaces/orchestra/trunk/src/site/resources/images/easter.png
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/resources/images/easter.png?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/src/site/resources/images/easter.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: myfaces/orchestra/trunk/src/site/resources/images/h3.jpg
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/resources/images/h3.jpg?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/src/site/resources/images/h3.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: myfaces/orchestra/trunk/src/site/resources/images/myfaces-logo.png
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/resources/images/myfaces-logo.png?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/src/site/resources/images/myfaces-logo.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: myfaces/orchestra/trunk/src/site/resources/images/transparent.gif
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/resources/images/transparent.gif?view=auto&rev=547185
==============================================================================
Binary file - no diff available.
Propchange: myfaces/orchestra/trunk/src/site/resources/images/transparent.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: myfaces/orchestra/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/site.xml?view=auto&rev=547185
==============================================================================
--- myfaces/orchestra/trunk/src/site/site.xml (added)
+++ myfaces/orchestra/trunk/src/site/site.xml Thu Jun 14 01:59:56 2007
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project name="MyFaces Orchestra">
+
+ <bannerLeft>
+ <name>MyFaces Orchestra</name>
+ <src>images/myfaces-logo.png</src>
+ <href>http://myfaces.apache.org/</href>
+ </bannerLeft>
+ <bannerRight>
+ <name>Easter Island</name>
+ <src>images/easter.png</src>
+ <href>http://myfaces.apache.org/</href>
+ </bannerRight>
+
+ <body>
+
+ <links>
+ <item name="Apache" href="http://www.apache.org/"/>
+ <item name="MyFaces" href="../index.html"/>
+ <item name="API" href="../api/index.html"/>
+ <item name="Impl" href="../impl/index.html"/>
+ <item name="Tomahawk" href="../tomahawk/index.html"/>
+ <item name="Sandbox" href="../sandbox/index.html"/>
+ <item name="Tobago" href="http://myfaces.apache.org/tobago"/>
+ <item name="Orchestra" href="index.html"/>
+ </links>
+
+ <menu name="MyFaces Projects">
+ <item name="Overview" href="../index.html"/>
+ <item name="API" href="../api/index.html"/>
+ <item name="Impl" href="../impl/index.html"/>
+ <item name="Tomahawk" href="../tomahawk/index.html"/>
+ <item name="Sandbox" href="../sandbox/index.html"/>
+ <item name="Tobago" href="http://myfaces.apache.org/tobago"/>
+ <item name="Orchestra" href="index.html"/>
+ </menu>
+
+ <menu name="MyFaces Orchestra - Modules">
+ <item name="Core" href="myfaces-orchestra-core/index.html"/>
+ <item name="Core15" href="myfaces-orchestra-core15/index.html"/>
+ <item name="Examples" href="myfaces-orchestra-examples-project/index.html"/>
+ </menu>
+
+ ${reports}
+
+ </body>
+</project>
Propchange: myfaces/orchestra/trunk/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/orchestra/trunk/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/orchestra/trunk/src/site/site.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/orchestra/trunk/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/src/site/xdoc/index.xml?view=auto&rev=547185
==============================================================================
--- myfaces/orchestra/trunk/src/site/xdoc/index.xml (added)
+++ myfaces/orchestra/trunk/src/site/xdoc/index.xml Thu Jun 14 01:59:56 2007
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//Apache Software Foundation//DTD XDOC 1.0//EN"
+ "http://www.apache.org/dtd/xdoc.dtd">
+<document>
+ <properties>
+ <title>About Apache MyFaces Orchestra</title>
+ </properties>
+
+ <body>
+ <section name="Apache MyFaces Orchestra">
+
+ <p>
+ Are you fearing the dreaded LazyInitializationException?
+ <br/>
+ Or the ghastly NonUniqueObjectException?
+ <br/>
+ Read on to finally find a solution to such problems...
+ </p>
+ <p>
+ Apache MyFaces Orchestra aims to provide a simple way to combine a web-framework with a persistence
+ layer. Typically, an Apache MyFaces Orchestra stack might combine JavaServer Faces, Spring and
+ a JPA implementation like Toplink, Hibernate, etc.
+ <br/>
+ The underlying idea is to provide long persistence sessions to the web-developer - this is
+ done by associating these sessions with a conversational context.
+ <br/>
+ The conversational context is opened when the bean configured for this context is first loaded.
+ It can be manually closed by the programmer, plus a time-out can be configured as a global
+ parameter.
+ </p>
+
+ <p>Apache MyFaces Orchestra is the latest addition to the Apache MyFaces project family, but
+ has already been used in several real world projects. Check-out our demo-application if you
+ want to see more on how it works in the wild-life.
+ </p>
+
+ <subsection name="A small example">
+ in three parts.
+
+ First, you need to configure a conversation-scoped bean - do that
+ in standard Spring-syntax. Define the name of the scope by setting
+ the scope-attribute; usually you will want to put "conversation" here.
+ <br/>
+
+ Don't forget to add the child-element scoped-proxy - it makes sure
+ injected instances are re-checked (and if necessary, re-instantiated)
+ on every access to the instance.
+ <pre>
+<bean
+ name="ballotTopic"
+ class="org.apache.myfaces.examples.ballot.backings.BallotTopic"
+ scope="conversation"
+ autowire="byName">
+
+ <aop:scoped-proxy/>
+
+</bean>
+ </pre>
+ The bean named "ballotTopic" can now be used from the JSF-view.
+ It defines properties, methods and event-listeners as usual
+ managed-beans do.
+ <br/>
+ Then, there is the action-method - you define this method as
+ requiring a transaction with the @Transactional annotation
+ (with this, a commit will be executed at the end of the method).
+ Now do whatever you want to do with your beans - save business objects,
+ update them, play around and have fun.
+ When the conversation needs to be closed again, close it by calling
+ the invalidate method on the current conversational instance (the
+ action-method needs to be defined in the conversational bean itself).
+ <code><pre>
+@Transactional
+public String saveAction()
+{
+ topic.setOwner(getVoterDao().getByKey(getBallotState().getVoterId()));
+ topicDao.save(topic);
+
+ Conversation.getCurrentInstance().invalidate();
+
+ return "success";
+} </pre>
+ </code>
+
+ The developer keeps on defining DAO's as she is used to do
+ - here a simple example using the JPA-syntax with an
+ injected EntityManager.
+ <pre>
+public class VoterDao
+{
+ @PersistenceContext
+ private EntityManager entityManager;
+
+ public Voter getByKey(Long id)
+ {
+ return entityManager.find(Voter.class, id);
+ }
+}
+ </pre>
+
+ </subsection>
+
+ <subsection name="Highlights">
+ <ul>
+ <li>It works with a Java 1.4-compliant syntax, but you can optionally use annotations
+ (in the persistence layer - in the future, additional annotations for
+ Orchestra itself might be added).</li>
+ <li>It utilizes the powerful Spring bean configuration mechanism instead of JSF's
+ managed-bean facility.
+ Departing from Spring 2.0, it is possible to configure session and request-scoped
+ managed-beans in Spring - and you can easily use them from your JSF application.
+ We recommend doing so if you use Spring in your applications - you gain from having
+ one common syntax for defining the beans of your application, from the AOP-support Spring
+ provides, and from other advanced features Spring has included.
+ </li>
+ <li>A plus for integrating Orchestra into existing applications:
+ If you configure your application to use Orchestra, whenever the
+ conversational context is opened,
+ Spring configured DAOs and BOs automatically use the new context and gain
+ from the conversational features of Orchestra. Minimal effort for maximal results!</li>
+ <li>MyFaces Orchestra is know to be compatible to persistence frameworks
+ such as Toplink and Hibernate (and generally any JPA-implementation).
+ However, any persistence framework can be plugged into Orchestra.</li>
+ <li>The Orchestra API can be adapted to use other web frameworks than JSF.</li>
+ <li>Orchestra sports a very easy to use API - maximum 3 method calls, and you're ready to go.</li>
+ </ul>
+ </subsection>
+
+ <subsection name="Whats next?">
+ Move on to one of the Apache MyFaces Orchestra module
+ <ul>
+ <li><a href="myfaces-orchestra-core/index.html">core</a></li>
+ <li><a href="myfaces-orchestra-core15/index.html">core15</a></li>
+ </ul>
+ for further documentation.
+ </subsection>
+
+ </section>
+ </body>
+</document>
Propchange: myfaces/orchestra/trunk/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/orchestra/trunk/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/orchestra/trunk/src/site/xdoc/index.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml