Seam SVN: r12021 - in branches/enterprise/JBPAPP_5_0: src/resteasy/org/jboss/seam/resteasy and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-09 07:45:34 -0500 (Tue, 09 Feb 2010)
New Revision: 12021
Modified:
branches/enterprise/JBPAPP_5_0/build/resteasy.pom.xml
branches/enterprise/JBPAPP_5_0/build/root.pom.xml
branches/enterprise/JBPAPP_5_0/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java
Log:
JBPAPP-3694 downgraded resteasy to 1.1_CP01
Modified: branches/enterprise/JBPAPP_5_0/build/resteasy.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/resteasy.pom.xml 2010-02-09 12:27:26 UTC (rev 12020)
+++ branches/enterprise/JBPAPP_5_0/build/resteasy.pom.xml 2010-02-09 12:45:34 UTC (rev 12021)
@@ -30,11 +30,16 @@
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxb-provider</artifactId>
</dependency>
-
+
<dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>resteasy-jettison-provider</artifactId>
+ <groupId>sun-fi</groupId>
+ <artifactId>FastInfoset</artifactId>
</dependency>
+
+<!-- <dependency>-->
+<!-- <groupId>org.jboss.resteasy</groupId>-->
+<!-- <artifactId>resteasy-jettison-provider</artifactId>-->
+<!-- </dependency>-->
<dependency>
<groupId>org.jboss.resteasy</groupId>
Modified: branches/enterprise/JBPAPP_5_0/build/root.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2010-02-09 12:27:26 UTC (rev 12020)
+++ branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2010-02-09 12:45:34 UTC (rev 12021)
@@ -39,7 +39,7 @@
<name>EAP5 Central Repository</name>
<url>http://repository.jboss.org/maven2-brew</url>
</repository>
-
+<!-- -->
<!-- <repository> -->
<!-- <id>maven_central</id>-->
<!-- <name>Maven Central Repository</name>-->
@@ -53,7 +53,7 @@
<version.richfaces>3.3.1.GA</version.richfaces>
<version.drools>5.0.1</version.drools>
<version.testng>5.9</version.testng>
- <version.resteasy>1.2.1.GA</version.resteasy>
+ <version.resteasy>1.1.GA_CP01</version.resteasy>
</properties>
<dependencyManagement>
@@ -367,10 +367,20 @@
<groupId>com.sun.xml.stream</groupId>
<artifactId>sjsxp</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>com.sun.xml.fastinfoset</groupId>
+ <artifactId>FastInfoset</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
+ <groupId>sun-fi</groupId>
+ <artifactId>FastInfoset</artifactId>
+ <version>1.2.7</version>
+ </dependency>
+
+ <dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jettison-provider</artifactId>
<version>${version.resteasy}</version>
Modified: branches/enterprise/JBPAPP_5_0/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java 2010-02-09 12:27:26 UTC (rev 12020)
+++ branches/enterprise/JBPAPP_5_0/src/resteasy/org/jboss/seam/resteasy/ResourceHome.java 2010-02-09 12:45:34 UTC (rev 12021)
@@ -292,7 +292,8 @@
*/
private T2 unmarshallId(String id)
{
- StringParameterInjector injector = new StringParameterInjector(getEntityIdClass(), getEntityIdClass(), "id", PathParam.class, null, null, new Annotation[] {pathParamAnnotation}, SeamResteasyProviderFactory.getInstance());
+ //StringParameterInjector injector = new StringParameterInjector(getEntityIdClass(), getEntityIdClass(), "id", PathParam.class, null, null, new Annotation[] {pathParamAnnotation}, SeamResteasyProviderFactory.getInstance());
+ StringParameterInjector injector = new StringParameterInjector(getEntityIdClass(), getEntityIdClass(), "id", PathParam.class, null, null, SeamResteasyProviderFactory.getInstance());
return (T2) injector.extractValue(id);
}
14 years, 10 months
Seam SVN: r12020 - branches/enterprise/JBPAPP_5_0.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-09 07:27:26 -0500 (Tue, 09 Feb 2010)
New Revision: 12020
Modified:
branches/enterprise/JBPAPP_5_0/build.xml
Log:
added tasks unit test into testexamples target
Modified: branches/enterprise/JBPAPP_5_0/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build.xml 2010-02-09 06:48:55 UTC (rev 12019)
+++ branches/enterprise/JBPAPP_5_0/build.xml 2010-02-09 12:27:26 UTC (rev 12020)
@@ -448,6 +448,7 @@
<testexample name="hibernate" />
<testexample name="jpa" />
<testexample name="quartz" />
+ <testexample name="tasks" />
</target>
<!-- ########################## 'ALL' TARGETS ##########################-->
14 years, 10 months
Seam SVN: r12019 - in modules/remoting/trunk/src/main/java/org/jboss/seam/remoting: model and 1 other directory.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2010-02-09 01:48:55 -0500 (Tue, 09 Feb 2010)
New Revision: 12019
Modified:
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/ExecutionHandler.java
modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/model/ModelHandler.java
Log:
fix compiler errors
Modified: modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/ExecutionHandler.java
===================================================================
--- modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/ExecutionHandler.java 2010-02-08 21:10:22 UTC (rev 12018)
+++ modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/ExecutionHandler.java 2010-02-09 06:48:55 UTC (rev 12019)
@@ -6,6 +6,7 @@
import java.io.StringReader;
import java.util.Iterator;
+import javax.enterprise.context.ContextNotActiveException;
import javax.enterprise.context.Conversation;
import javax.enterprise.inject.spi.BeanManager;
import javax.inject.Inject;
@@ -76,9 +77,16 @@
// Extract the calls from the request
Call call = unmarshalCall(env);
call.execute();
-
+
// Store the conversation ID in the outgoing context
- ctx.setConversationId(conversation.getId());
+ try
+ {
+ ctx.setConversationId(conversation.getId());
+ }
+ catch (ContextNotActiveException ex)
+ {
+ // No active conversation context, ignore
+ }
// Package up the response
marshalResponse(call, ctx, response.getOutputStream());
Modified: modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/model/ModelHandler.java
===================================================================
--- modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/model/ModelHandler.java 2010-02-08 21:10:22 UTC (rev 12018)
+++ modules/remoting/trunk/src/main/java/org/jboss/seam/remoting/model/ModelHandler.java 2010-02-09 06:48:55 UTC (rev 12019)
@@ -83,13 +83,15 @@
if (ctx.getConversationId() != null && !ctx.getConversationId().isEmpty())
{
- conversationContext.setBeanStore(new ConversationBeanStore(request.getSession(), ctx.getConversationId()));
+ conversationContext.setBeanStore(new ConversationBeanStore(
+ request.getSession(), false, ctx.getConversationId()));
conversationContext.setActive(true);
conversationManager.beginOrRestoreConversation(ctx.getConversationId());
}
else
{
- conversationContext.setBeanStore(new ConversationBeanStore(request.getSession(),
+ conversationContext.setBeanStore(new ConversationBeanStore(
+ request.getSession(), false,
((org.jboss.weld.conversation.ConversationImpl) conversation).getUnderlyingId()));
conversationContext.setActive(true);
}
14 years, 10 months
Seam SVN: r12018 - branches/enterprise/JBPAPP_5_0/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-08 16:10:22 -0500 (Mon, 08 Feb 2010)
New Revision: 12018
Modified:
branches/enterprise/JBPAPP_5_0/build/root.pom.xml
Log:
JBPAPP-3694 upgrade of jbosscache-core
Modified: branches/enterprise/JBPAPP_5_0/build/root.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2010-02-08 11:41:37 UTC (rev 12017)
+++ branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2010-02-08 21:10:22 UTC (rev 12018)
@@ -299,7 +299,7 @@
<dependency>
<groupId>org.jboss.cache</groupId>
<artifactId>jbosscache-core</artifactId>
- <version>3.2.1.GA</version>
+ <version>3.2.2.GA</version>
<exclusions>
<exclusion>
<groupId>org.jboss</groupId>
14 years, 10 months
Seam SVN: r12017 - branches/enterprise/JBPAPP_5_0/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-08 06:41:37 -0500 (Mon, 08 Feb 2010)
New Revision: 12017
Modified:
branches/enterprise/JBPAPP_5_0/build/core.pom.xml
branches/enterprise/JBPAPP_5_0/build/root.pom.xml
Log:
JBPAPP-3694 upgraded hibernate dependencies
Modified: branches/enterprise/JBPAPP_5_0/build/core.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/core.pom.xml 2010-02-08 10:13:30 UTC (rev 12016)
+++ branches/enterprise/JBPAPP_5_0/build/core.pom.xml 2010-02-08 11:41:37 UTC (rev 12017)
@@ -46,8 +46,14 @@
<artifactId>hibernate-search</artifactId>
<optional>true</optional>
</dependency>
-
+
<dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-core</artifactId>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<optional>true</optional>
Modified: branches/enterprise/JBPAPP_5_0/build/root.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2010-02-08 10:13:30 UTC (rev 12016)
+++ branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2010-02-08 11:41:37 UTC (rev 12017)
@@ -385,7 +385,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
- <version>3.3.2.GA</version>
+ <version>3.3.2.GA_CP01</version>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
@@ -413,7 +413,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
- <version>3.4.0.GA</version>
+ <version>3.4.0.GA_CP01</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
@@ -437,7 +437,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
- <version>3.4.0.GA</version>
+ <version>3.4.0.GA_CP01</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
@@ -473,8 +473,14 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
- <version>3.1.1.GA</version>
+ <version>3.1.1.GA_CP01</version>
</dependency>
+
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-core</artifactId>
+ <version>2.4.1</version>
+ </dependency>
<dependency>
<groupId>com.sun.facelets</groupId>
14 years, 10 months
Seam SVN: r12016 - modules/remoting/trunk/docs/en-US.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2010-02-08 05:13:30 -0500 (Mon, 08 Feb 2010)
New Revision: 12016
Modified:
modules/remoting/trunk/docs/en-US/remoting-model.xml
Log:
added section to model chapter
Modified: modules/remoting/trunk/docs/en-US/remoting-model.xml
===================================================================
--- modules/remoting/trunk/docs/en-US/remoting-model.xml 2010-02-07 22:07:42 UTC (rev 12015)
+++ modules/remoting/trunk/docs/en-US/remoting-model.xml 2010-02-08 10:13:30 UTC (rev 12016)
@@ -3,5 +3,448 @@
<chapter id="remoting-model">
<title>Seam Remoting - Model API</title>
+
+ <section>
+ <title>Introduction</title>
+ <para>
+ The Model API builds on top of Seam Remoting's object serialization features to provide a
+ <emphasis>component-based</emphasis> approach to working with a server-side object model, as
+ opposed to the <emphasis>RPC-based</emphasis> approach provided by the standard Remoting API.
+ This allows a client-side representation of a server-side object graph to be modified ad hoc
+ by the client, after which the changes made to the objects in the graph can be
+ <emphasis>applied</emphasis> to the corresponding server-side objects. When applying the
+ changes the client determines exactly which objects have been modified by recursively walking
+ the client-side object tree and generating a delta by comparing the original property values
+ of the objects with their new property values.
+ </para>
+
+ <para>
+ This approach, when used in conjunction with the extended persistence context provided by Seam
+ elegantly solves a number of problems faced by AJAX developers when working remotely with
+ persistent objects. A persistent, managed object graph can be loaded at the start of
+ a new conversation, and then across multiple requests (and within the same transaction) the client
+ can fetch the objects, make changes to them and apply those changes to the same managed objects after
+ which the long-running transaction can be committed when the conversation ends.
+ </para>
+
+ <para>
+ One other useful feature of the Model API is its ability to <emphasis>expand</emphasis> a model.
+ For example, if you are working with entities with lazy-loaded associations it is usually not a good idea
+ to blindly fetch the associated objects (which may in turn themselves contain associations
+ to other entities, ad nauseum), as you may inadvertently end up fetching the bulk of your database.
+ Seam Remoting already knows how to deal with lazy-loaded associations by automatically excluding
+ them when marshalling instances of entity beans, and assigning them a client-side value of
+ <literal>undefined</literal> (which is a special JavaScript value, distinct from <literal>null</literal>).
+ The Model API goes one step further by giving the client the option of manipulating the associated objects
+ also. By providing an <emphasis>expand</emphasis> operation, it allows for the initialization of a
+ previously-uninitialized object property (such as a lazy-loaded collection), by dynamically "grafting"
+ the initialized value onto the object graph. By <emphasis>expanding</emphasis> the model in this way,
+ we have at our disposal a powerful tool for building dynamic client interfaces.
+ </para>
+ </section>
+
+ <section>
+ <title>Model Operations</title>
+
+ <para>
+ For the methods of the Model API that accept action parameters, an instance of
+ <literal>Seam.Action</literal> should be used. The constructor for
+ <literal>Seam.Action</literal> takes no parameters:
+ </para>
+
+ <programlisting><![CDATA[ var action = new Seam.Action();]]></programlisting>
+
+ <para>
+ The following table lists the methods used to define the action.
+ </para>
+
+ <table>
+ <title>Seam.Action method reference</title>
+
+ <tgroup cols="2">
+ <colspec colnum="1" colwidth="2*" />
+ <colspec colnum="2" colwidth="3*" />
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Method</para>
+ </entry>
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>
+ <para>
+ <literal>setBeanType(beanType)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Sets the class name of the bean to be invoked.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>beanType</literal> - the fully qualified class name of the bean type to be invoked.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>
+ <literal>setQualifiers(qualifiers)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Sets the qualifiers for the bean to be invoked.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>qualifiers</literal> - a comma-separated list of bean qualifier names.
+ The names may either be the simple or fully qualified names of the qualifier classes.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>
+ <literal>setMethod(method)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Sets the name of the bean method.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>method</literal> - the name of the bean method to invoke.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>
+ <literal>addParam(param)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Adds a parameter value for the action method. This method should be called once for
+ each parameter value to be added, in the correct parameter order.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>param</literal> - the parameter value to add.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>
+ The following table describes the methods provided by the <literal>Seam.Model</literal> object. To work with
+ the Model API in JavaScript you must first create a new Model object:
+ </para>
+
+ <programlisting><![CDATA[ var model = new Seam.Model();]]></programlisting>
+
+ <table>
+ <title>Seam.Model method reference</title>
+
+ <tgroup cols="2">
+ <colspec colnum="1" colwidth="2*" />
+ <colspec colnum="2" colwidth="3*" />
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Method</para>
+ </entry>
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>
+ <para>
+ <literal>addBean(alias, bean, qualifiers)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Adds a bean value to the model. When the model is fetched, the value of the specified bean
+ will be read and placed into the model, where it may be accessed by using the
+ <literal>getValue()</literal> method with the specified alias.
+ </para>
+
+ <para>
+ Can only be used before the model is fetched.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>alias</literal> - the local alias for the bean value.
+ </listitem>
+ <listitem>
+ <literal>bean</literal> - the name of the bean, either specified by the <literal>@Named</literal>
+ annotation or the fully qualified class name.
+ </listitem>
+ <listitem>
+ <literal>qualifiers</literal> (optional) - a list of bean qualifiers.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>
+ <literal>addBeanProperty(alias, bean, property, qualifiers)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Adds a bean property value to the model. When the model is fetched, the value of the specified
+ property on the specified bean will be read and placed into the model, where it may be accessed
+ by using the <literal>getValue()</literal> method with the specified alias.
+ </para>
+
+ <para>
+ Can only be used before the model is fetched.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>alias</literal> - the local alias for the bean value.
+ </listitem>
+ <listitem>
+ <literal>bean</literal> - the name of the bean, either specified by the <literal>@Named</literal>
+ annotation or the fully qualified class name.
+ </listitem>
+ <listitem>
+ <literal>property</literal> - the name of the bean property.
+ </listitem>
+ <listitem>
+ <literal>qualifiers</literal> (optional) - a list of bean qualifiers.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>
+ <literal>fetch(action, callback)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Fetches the model - this operation causes an asynchronous request to be sent to the server.
+ The request contains a list of the beans and bean properties (set by calling the
+ <literal>addBean()</literal> and <literal>addBeanProperty()</literal> methods) for which values
+ will be returned. Once the response is received, the callback method (if specified) will be
+ invoked, passing in a reference to the model as a parameter.
+ </para>
+
+ <para>
+ A model should only be fetched once.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>action</literal> (optional) - a <literal>Seam.Action</literal> instance representing
+ the bean action to invoke before the model values are read and stored in the model.
+ </listitem>
+ <listitem>
+ <literal>callback</literal> (optional) - a reference to a JavaScript function that will be
+ invoked after the model has been fetched. A reference to the model instance is passed to
+ the callback method as a parameter.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>
+ <literal>getValue(alias)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ This method returns the value of the object with the specified alias.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>alias</literal> - the alias of the value to return.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>
+ <literal>expand(value, property, callback)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Expands the model by initializing a property value that was previously uninitialized. This
+ operation causes an asynchronous request to be sent to the server, where the uninitialized
+ property value (such as a lazy-loaded collection within an entity bean association) is
+ initialized and the resulting value is returned to the client. Once the response is received,
+ the callback method (if specified) will be invoked, passing in a reference to the model as a
+ parameter.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>value</literal> - a reference to the value containing the uninitialized property
+ to fetch. This can be any value within the model, and does not need to be a "root" value
+ (i.e. it doesn't need to be a value specified by <literal>addBean()</literal> or
+ <literal>addBeanProperty()</literal>, it can exist anywhere within the object graph.
+ </listitem>
+ <listitem>
+ <literal>property</literal> - the name of the uninitialized property to be initialized.
+ </listitem>
+ <listitem>
+ <literal>callback</literal> (optional) - a reference to a JavaScript function that will be
+ invoked after the model has been expanded. A reference to the model instance is passed to
+ the callback method as a parameter.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>
+ <literal>applyUpdates(action, callback)</literal>
+ </para>
+ </entry>
+ <entry>
+ <para>
+ Applies the changes made to the objects contained in the model. This method causes an
+ asynchronous request to be sent to the server containing a delta consisting of
+ a list of the changes made to the client-side objects.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <literal>action</literal> (optional) - a <literal>Seam.Action</literal> instance representing
+ a bean method to be invoked after the client-side model changes have been applied to their
+ corresponding server-side objects.
+ </listitem>
+ <listitem>
+ <literal>callback</literal> (optional) - a reference to a JavaScript function that will be
+ invoked after the updates have been applied. A reference to the model instance is passed to
+ the callback method as a parameter.
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+
+ </table>
+
+ <para>
+
+ </para>
+ </section>
+
+ <section>
+ <title>Fetching a model</title>
+
+ <para>
+ To fetch a model, one or more values must first be specified using <literal>addBean()</literal> or
+ <literal>addBeanProperty()</literal> before invoking the <literal>fetch()</literal> operation.
+ </para>
+
+ <para>
+ Let's look at an example.
+ </para>
+
+ <programlisting><![CDATA[@Entity Customer implements Serializable {
+ private Integer customerId;
+ private String firstName;
+ private String lastName;
+
+ @Id @GeneratedValue public Integer getCustomerId() {
+ return customerId;
+ }
+
+ public void setCustomerId(Integer customerId) {
+ this.customerId = customerId;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+}]]></programlisting>
+
+ <programlisting><![CDATA[@ConversationScoped @Named
+public class CustomerAction {
+ @Inject Conversation conversation;
+ @PersistenceContext EntityManager entityManager;
+ private Customer customer;
+
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ public void createCustomer() {
+ customer = new Customer();
+ conversation.begin();
+ }
+}]]></programlisting>
+ </section>
+
+ <section>
+ <title>Expanding a model</title>
+
+
+ </section>
+
+ <section>
+ <title>Applying Changes</title>
+
+
+ </section>
+
+
</chapter>
14 years, 10 months
Seam SVN: r12015 - branches/community/Seam_2_2/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-07 17:07:42 -0500 (Sun, 07 Feb 2010)
New Revision: 12015
Modified:
branches/community/Seam_2_2/build/root.pom.xml
Log:
JBSEAM-3035 upgrade to spring 2.5.5
Modified: branches/community/Seam_2_2/build/root.pom.xml
===================================================================
--- branches/community/Seam_2_2/build/root.pom.xml 2010-02-05 11:46:40 UTC (rev 12014)
+++ branches/community/Seam_2_2/build/root.pom.xml 2010-02-07 22:07:42 UTC (rev 12015)
@@ -881,7 +881,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
- <version>2.0.6</version>
+ <version>2.5.5</version>
<exclusions>
<!-- Prevent the insanity which is commons-logging pom introducing dependencies on weird stuff -->
<exclusion>
14 years, 10 months
Seam SVN: r12014 - branches/community/Seam_2_2/src/main/org/jboss/seam/init.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-05 06:46:40 -0500 (Fri, 05 Feb 2010)
New Revision: 12014
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/init/Initialization.java
Log:
JBSEAM-3996
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/init/Initialization.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/init/Initialization.java 2010-02-04 19:28:38 UTC (rev 12013)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/init/Initialization.java 2010-02-05 11:46:40 UTC (rev 12014)
@@ -599,10 +599,16 @@
}
}
- throw new IllegalStateException("Two components with the same name and precedence - " +
- "component name: " + name + ", component classes: " +
- descriptor.getComponentClass().getName() + ", " +
- (other != null ? other.getComponentClass().getName() : "<unknown>"));
+ // for the same component name and the same class in classpath don't throw exception,
+ // use the first in classpath as standard order - JBSEAM-3996
+ Class clazz = descriptor.getComponentClass();
+ if (!clazz.equals(other.getComponentClass()))
+ {
+ throw new IllegalStateException("Two components with the same name and precedence - " +
+ "component name: " + name + ", component classes: " +
+ descriptor.getComponentClass().getName() + ", " +
+ (other != null ? other.getComponentClass().getName() : "<unknown>"));
+ }
}
}
14 years, 10 months
Seam SVN: r12013 - branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/facelet.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-04 14:28:38 -0500 (Thu, 04 Feb 2010)
New Revision: 12013
Modified:
branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/facelet/RendererRequest.java
Log:
rolling back changes in ui/src/main/java/org/jboss/seam/ui/facelet/RendererRequest.java for JBSEAM-3769
Modified: branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/facelet/RendererRequest.java
===================================================================
--- branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/facelet/RendererRequest.java 2010-02-04 18:36:58 UTC (rev 12012)
+++ branches/community/Seam_2_2/ui/src/main/java/org/jboss/seam/ui/facelet/RendererRequest.java 2010-02-04 19:28:38 UTC (rev 12013)
@@ -48,19 +48,10 @@
response = new MockHttpServletResponse();
setContextClassLoader();
-
- // If a FacesContext isn't available, set one up
- if (FacesContext.getCurrentInstance() == null)
- {
- facesContext = RendererFacesContextFactory.instance().getFacesContext(request, response);
- }
- else
- {
- facesContext = FacesContext.getCurrentInstance();
- }
// Generate the FacesContext from the JSF FacesContextFactory
originalFacesContext = FacesContext.getCurrentInstance();
+ facesContext = RendererFacesContextFactory.instance().getFacesContext(request, response);
DelegatingFacesContext.setCurrentInstance(facesContext);
// Create the viewRoot
14 years, 10 months
Seam SVN: r12012 - branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-02-04 13:36:58 -0500 (Thu, 04 Feb 2010)
New Revision: 12012
Modified:
branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Events.xml
Log:
JBSEAM-4495 - warning about implicit navigation in JSF 2
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Events.xml
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Events.xml 2010-02-04 18:23:13 UTC (rev 12011)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Events.xml 2010-02-04 18:36:58 UTC (rev 12012)
@@ -606,6 +606,13 @@
</page>]]></programlisting>
+ <warning> In case you are using JSF RI 2,
+ you have to define navigation rule for each of the possible
+ non-null outcome values from a page action, or else implicit navigation
+ is going to render. It is annoying, hopefully will be fixed in the next
+ maintenance version release of JSF 2.
+ </warning>
+
<para>
The view-id may be given as a JSF EL expression:
</para>
14 years, 10 months