Seam SVN: r9174 - trunk/examples/spring/resources/WEB-INF.
by seam-commits@lists.jboss.org
Author: jharting
Date: 2008-10-02 08:40:13 -0400 (Thu, 02 Oct 2008)
New Revision: 9174
Modified:
trunk/examples/spring/resources/WEB-INF/pages.xml
Log:
JBSEAM-3492
Modified: trunk/examples/spring/resources/WEB-INF/pages.xml
===================================================================
--- trunk/examples/spring/resources/WEB-INF/pages.xml 2008-10-02 09:17:59 UTC (rev 9173)
+++ trunk/examples/spring/resources/WEB-INF/pages.xml 2008-10-02 12:40:13 UTC (rev 9174)
@@ -71,7 +71,9 @@
<description>Book hotel: #{hotel.name}</description>
<navigation from-action="#{hotelBooking.setBookingDetails}">
- <redirect view-id="/confirm.xhtml"/>
+ <rule if="#{hotelBooking.bookingValid}">
+ <redirect view-id="/confirm.xhtml"/>
+ </rule>
</navigation>
</page>
16 years, 2 months
Seam SVN: r9173 - trunk.
by seam-commits@lists.jboss.org
Author: jharting
Date: 2008-10-02 05:17:59 -0400 (Thu, 02 Oct 2008)
New Revision: 9173
Modified:
trunk/release-process.txt
Log:
Updated expected directory listings in release-process.
Modified: trunk/release-process.txt
===================================================================
--- trunk/release-process.txt 2008-10-02 09:03:48 UTC (rev 9172)
+++ trunk/release-process.txt 2008-10-02 09:17:59 UTC (rev 9173)
@@ -98,6 +98,7 @@
build.properties
build.xml
changelog.txt
+ dependency-report.txt
doc
examples
extras
@@ -109,6 +110,7 @@
seam-text.g
seam.bat
seam2migration.txt
+ seam21migration.txt
src
ui
@@ -123,6 +125,7 @@
pdf
remoting
resteasy
+ rss
test
wicket
16 years, 2 months
Seam SVN: r9172 - in branches/enterprise/JBPAPP_4_2_CP01/examples: numberguess/src/org/jboss/seam/example/numberguess and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2008-10-02 05:03:48 -0400 (Thu, 02 Oct 2008)
New Revision: 9172
Modified:
branches/enterprise/JBPAPP_4_2_CP01/examples/drools/src/org/jboss/seam/example/numberguess/RandomNumber.java
branches/enterprise/JBPAPP_4_2_CP01/examples/numberguess/src/org/jboss/seam/example/numberguess/NumberGuess.java
Log:
JBPAPP-1093
Modified: branches/enterprise/JBPAPP_4_2_CP01/examples/drools/src/org/jboss/seam/example/numberguess/RandomNumber.java
===================================================================
--- branches/enterprise/JBPAPP_4_2_CP01/examples/drools/src/org/jboss/seam/example/numberguess/RandomNumber.java 2008-10-02 05:45:27 UTC (rev 9171)
+++ branches/enterprise/JBPAPP_4_2_CP01/examples/drools/src/org/jboss/seam/example/numberguess/RandomNumber.java 2008-10-02 09:03:48 UTC (rev 9172)
@@ -16,7 +16,7 @@
@Create
public void begin()
{
- randomNumber = new Random().nextInt(100);
+ randomNumber = new Random().nextInt(100) + 1;
}
public int getValue()
Modified: branches/enterprise/JBPAPP_4_2_CP01/examples/numberguess/src/org/jboss/seam/example/numberguess/NumberGuess.java
===================================================================
--- branches/enterprise/JBPAPP_4_2_CP01/examples/numberguess/src/org/jboss/seam/example/numberguess/NumberGuess.java 2008-10-02 05:45:27 UTC (rev 9171)
+++ branches/enterprise/JBPAPP_4_2_CP01/examples/numberguess/src/org/jboss/seam/example/numberguess/NumberGuess.java 2008-10-02 09:03:48 UTC (rev 9172)
@@ -26,7 +26,7 @@
@Create
public void begin()
{
- randomNumber = new Random().nextInt(100);
+ randomNumber = new Random().nextInt(100) + 1;
guessCount = 0;
biggest = 100;
smallest = 1;
16 years, 2 months
Seam SVN: r9171 - trunk/src/excel/META-INF.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-10-02 01:45:27 -0400 (Thu, 02 Oct 2008)
New Revision: 9171
Modified:
trunk/src/excel/META-INF/faces-config.xml
Log:
Ngh. Fixing fix of command refactoring. Forgot faces-config in previous commit.
Modified: trunk/src/excel/META-INF/faces-config.xml
===================================================================
--- trunk/src/excel/META-INF/faces-config.xml 2008-10-02 03:48:58 UTC (rev 9170)
+++ trunk/src/excel/META-INF/faces-config.xml 2008-10-02 05:45:27 UTC (rev 9171)
@@ -53,12 +53,12 @@
<component-class>org.jboss.seam.excel.ui.UIFormula</component-class>
</component>
<component>
- <component-type>org.jboss.seam.excel.ui.UIGroupColumns</component-type>
- <component-class>org.jboss.seam.excel.ui.UIGroupColumns</component-class>
+ <component-type>org.jboss.seam.excel.ui.command.UIGroupColumns</component-type>
+ <component-class>org.jboss.seam.excel.ui.command.UIGroupColumns</component-class>
</component>
<component>
- <component-type>org.jboss.seam.excel.ui.UIGroupRows</component-type>
- <component-class>org.jboss.seam.excel.ui.UIGroupRows</component-class>
+ <component-type>org.jboss.seam.excel.ui.command.UIGroupRows</component-type>
+ <component-class>org.jboss.seam.excel.ui.command.UIGroupRows</component-class>
</component>
<component>
<component-type>org.jboss.seam.excel.ui.validation.UIListValidation</component-type>
@@ -69,8 +69,8 @@
<component-class>org.jboss.seam.excel.ui.validation.UIListValidationItem</component-class>
</component>
<component>
- <component-type>org.jboss.seam.excel.ui.UIMergeCells</component-type>
- <component-class>org.jboss.seam.excel.ui.UIMergeCells</component-class>
+ <component-type>org.jboss.seam.excel.ui.command.UIMergeCells</component-type>
+ <component-class>org.jboss.seam.excel.ui.command.UIMergeCells</component-class>
</component>
<component>
<component-type>org.jboss.seam.excel.ui.validation.UINumericValidation</component-type>
@@ -81,8 +81,8 @@
<component-class>org.jboss.seam.excel.ui.validation.UIRangeValidation</component-class>
</component>
<component>
- <component-type>org.jboss.seam.excel.ui.UIRowPageBreak</component-type>
- <component-class>org.jboss.seam.excel.ui.UIRowPageBreak</component-class>
+ <component-type>org.jboss.seam.excel.ui.command.UIRowPageBreak</component-type>
+ <component-class>org.jboss.seam.excel.ui.command.UIRowPageBreak</component-class>
</component>
<component>
<component-type>org.jboss.seam.excel.ui.UIExcelExport</component-type>
@@ -91,5 +91,5 @@
<component>
<component-type>org.jboss.seam.excel.ui.UILink</component-type>
<component-class>org.jboss.seam.excel.ui.UILink</component-class>
- </component>
+ </component>
</faces-config>
16 years, 2 months
Seam SVN: r9170 - in trunk/examples/seambay: src/org/jboss/seam/example/seambay and 1 other directory.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2008-10-01 23:48:58 -0400 (Wed, 01 Oct 2008)
New Revision: 9170
Modified:
trunk/examples/seambay/resources/WEB-INF/pages.xml
trunk/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java
Log:
control conversation propagation from the view
Modified: trunk/examples/seambay/resources/WEB-INF/pages.xml
===================================================================
--- trunk/examples/seambay/resources/WEB-INF/pages.xml 2008-10-02 03:47:46 UTC (rev 9169)
+++ trunk/examples/seambay/resources/WEB-INF/pages.xml 2008-10-02 03:48:58 UTC (rev 9170)
@@ -28,7 +28,6 @@
<param name="id" value="#{auctionDetail.selectedAuctionId}"/>
<navigation from-action="#{bidAction.placeBid}">
- <begin-conversation join="true" conversation="PlaceBid"/>
<redirect view-id="/bid.xhtml"/>
</navigation>
</page>
Modified: trunk/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java
===================================================================
--- trunk/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java 2008-10-02 03:47:46 UTC (rev 9169)
+++ trunk/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java 2008-10-02 03:48:58 UTC (rev 9170)
@@ -32,6 +32,7 @@
private String outcome;
+ @Begin(join = true)
public void placeBid()
{
if (auction.getStatus() != Auction.STATUS_LIVE ||
16 years, 2 months
Seam SVN: r9169 - trunk/ui/src/main/java/org/jboss/seam/ui/component.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2008-10-01 23:47:46 -0400 (Wed, 01 Oct 2008)
New Revision: 9169
Modified:
trunk/ui/src/main/java/org/jboss/seam/ui/component/UIConversationName.java
Log:
embed the natural conversation id instead of the name
Modified: trunk/ui/src/main/java/org/jboss/seam/ui/component/UIConversationName.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/component/UIConversationName.java 2008-10-02 03:46:37 UTC (rev 9168)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/component/UIConversationName.java 2008-10-02 03:47:46 UTC (rev 9169)
@@ -1,32 +1,15 @@
-/**
- * License Agreement.
- *
- * Ajax4jsf 1.1 - Natural Ajax for Java Server Faces (JSF)
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
package org.jboss.seam.ui.component;
import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
+import org.jboss.seam.navigation.ConversationIdParameter;
+import org.jboss.seam.navigation.Pages;
+
/**
- * JSF component class
+ * Embeds the natural conversation ID into the request.
*
+ * @author Shane Bryzak
*/
public abstract class UIConversationName extends UIParameter {
@@ -38,6 +21,13 @@
return "conversationName";
}
+ @Override
+ public Object getValue()
+ {
+ ConversationIdParameter param = Pages.instance().getConversationIdParameter(super.getValue().toString());
+ return param != null ? param.getConversationId() : null;
+ }
+
public static UIConversationName newInstance() {
return (UIConversationName) FacesContext.getCurrentInstance().getApplication().createComponent(COMPONENT_TYPE);
}
16 years, 2 months
Seam SVN: r9168 - in trunk/src/main/org/jboss/seam: navigation and 1 other directory.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2008-10-01 23:46:37 -0400 (Wed, 01 Oct 2008)
New Revision: 9168
Modified:
trunk/src/main/org/jboss/seam/core/ConversationPropagation.java
trunk/src/main/org/jboss/seam/core/Manager.java
trunk/src/main/org/jboss/seam/navigation/NaturalConversationIdParameter.java
Log:
restore natural conversation from conversation name request parameter
Modified: trunk/src/main/org/jboss/seam/core/ConversationPropagation.java
===================================================================
--- trunk/src/main/org/jboss/seam/core/ConversationPropagation.java 2008-10-02 03:44:15 UTC (rev 9167)
+++ trunk/src/main/org/jboss/seam/core/ConversationPropagation.java 2008-10-02 03:46:37 UTC (rev 9168)
@@ -52,7 +52,6 @@
*/
public void restoreConversationId(Map parameters)
{
- getConversationNameFromRequestParameters(parameters);
restoreNaturalConversationId(parameters);
restoreSyntheticConversationId(parameters);
restorePageContextConversationId();
@@ -93,14 +92,19 @@
log.debug("Found conversation id in request parameter: " + conversationId);
}
}
-
- private void getConversationNameFromRequestParameters(Map parameters)
- {
- conversationName = getRequestParameterValue(parameters, CONVERSATION_NAME_PARAMETER);
- }
private void restoreNaturalConversationId(Map parameters)
{
+ conversationName = getRequestParameterValue(parameters, CONVERSATION_NAME_PARAMETER);
+
+ if (conversationName != null && conversationName.contains(":"))
+ {
+ int idx = conversationName.indexOf(':');
+ conversationId = conversationName;
+ conversationName = conversationName.substring(0, idx);
+ return;
+ }
+
//First, try to get the conversation id from the request parameter defined for the page
String viewId = Pages.getCurrentViewId();
if ( viewId!=null )
Modified: trunk/src/main/org/jboss/seam/core/Manager.java
===================================================================
--- trunk/src/main/org/jboss/seam/core/Manager.java 2008-10-02 03:44:15 UTC (rev 9167)
+++ trunk/src/main/org/jboss/seam/core/Manager.java 2008-10-02 03:46:37 UTC (rev 9168)
@@ -97,6 +97,12 @@
*/
public void updateCurrentConversationId(String id)
{
+ if (id != null && id.equals(currentConversationId))
+ {
+ // the conversation id hasn't changed, do nothing
+ return;
+ }
+
if ( ConversationEntries.instance().getConversationIds().contains(id) )
{
throw new IllegalStateException("Conversation id is already in use: " + id);
@@ -128,8 +134,7 @@
if (pos != -1)
{
currentConversationIdStack.set(pos, id);
- }
-
+ }
}
for (int i=0; i<names.length; i++)
Modified: trunk/src/main/org/jboss/seam/navigation/NaturalConversationIdParameter.java
===================================================================
--- trunk/src/main/org/jboss/seam/navigation/NaturalConversationIdParameter.java 2008-10-02 03:44:15 UTC (rev 9167)
+++ trunk/src/main/org/jboss/seam/navigation/NaturalConversationIdParameter.java 2008-10-02 03:46:37 UTC (rev 9168)
@@ -5,7 +5,6 @@
import org.jboss.seam.core.ConversationPropagation;
import org.jboss.seam.core.Expressions;
import org.jboss.seam.core.Expressions.ValueExpression;
-import org.jboss.seam.util.Id;
/**
* A conversation parameter strategy for "natural" conversation ids.
16 years, 2 months
Seam SVN: r9167 - trunk/src/remoting/org/jboss/seam/remoting.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2008-10-01 23:44:15 -0400 (Wed, 01 Oct 2008)
New Revision: 9167
Modified:
trunk/src/remoting/org/jboss/seam/remoting/remote.js
Log:
JBSEAM-3459
Modified: trunk/src/remoting/org/jboss/seam/remoting/remote.js
===================================================================
--- trunk/src/remoting/org/jboss/seam/remoting/remote.js 2008-10-01 21:43:10 UTC (rev 9166)
+++ trunk/src/remoting/org/jboss/seam/remoting/remote.js 2008-10-02 03:44:15 UTC (rev 9167)
@@ -590,7 +590,9 @@
{
if (Seam.Remoting.pendingCalls.isEmpty())
Seam.Remoting.hideLoadingMessage();
- call.asyncReq.onreadystatechange = function() {};
+ window.setTimeout(function() {
+ call.asyncReq.onreadystatechange = function() {};
+ }, 0);
call.asyncReq.abort();
}
}
@@ -634,9 +636,11 @@
var rcb = Seam.Remoting.requestCallback;
- asyncReq.onreadystatechange = function() {
+ window.setTimeout(function() {
+ asyncReq.onreadystatechange = function() {
if (rcb) rcb(asyncReq, callback);
- }
+ }
+ }, 0);
if (Seam.Remoting.encodedSessionId)
{
@@ -660,7 +664,10 @@
var inScope = typeof(Seam) == "undefined" ? false : true;
if (inScope) Seam.Remoting.hideLoadingMessage();
- req.onreadystatechange = function() {};
+
+ window.setTimeout(function() {
+ req.onreadystatechange = function() {};
+ }, 0);
if (req.status == 200)
{
16 years, 2 months
Seam SVN: r9166 - trunk/examples/dvdstore.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2008-10-01 17:43:10 -0400 (Wed, 01 Oct 2008)
New Revision: 9166
Modified:
trunk/examples/dvdstore/readme.txt
Log:
JBSEAM-3477
Modified: trunk/examples/dvdstore/readme.txt
===================================================================
--- trunk/examples/dvdstore/readme.txt 2008-10-01 21:21:05 UTC (rev 9165)
+++ trunk/examples/dvdstore/readme.txt 2008-10-01 21:43:10 UTC (rev 9166)
@@ -1,6 +1,7 @@
Seam DVD Store Example
======================
This example demonstrates the use of Seam with jBPM pageflow and
-business process management. It runs on JBoss AS and Tomcat.
+business process management. It runs on JBoss AS and Tomcat
+with embedded JBoss.
-example.name=dvd
\ No newline at end of file
+example.name=dvd
16 years, 2 months
Seam SVN: r9165 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: youngm
Date: 2008-10-01 17:21:05 -0400 (Wed, 01 Oct 2008)
New Revision: 9165
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Configuration.xml
Log:
JBSEAM-1922
Modified: trunk/doc/Seam_Reference_Guide/en-US/Configuration.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Configuration.xml 2008-10-01 18:05:49 UTC (rev 9164)
+++ trunk/doc/Seam_Reference_Guide/en-US/Configuration.xml 2008-10-01 21:21:05 UTC (rev 9165)
@@ -48,7 +48,25 @@
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>]]></programlisting>
-
+
+ <para>
+ There is a minor gray area in the JSF specification regarding the mutability of view state values. Since
+ Seam uses the JSF view state to back its PAGE scope this can become an issue in some cases. If you're
+ using server side state saving with the JSF-RI and you want a PAGE scoped bean to keep its exact value
+ for a given view of a page you will need to specify the following context-param. Otherwise if a user
+ uses the "back" button a PAGE scoped component will have the latest value if it has changed not the
+ value of the "back" page. (see
+ <ulink url="https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=295">
+ Spec Issue
+ </ulink>
+ ). This setting is not enabled by default because of the performance hit of serializing the JSF view
+ with every request.
+ </para>
+
+ <programlisting role="XML"><![CDATA[<context-param>
+ <param-name>com.sun.faces.serializeServerState</param-name>
+ <param-value>true</param-value>
+</context-param>]]></programlisting>
</sect2>
<sect2>
16 years, 2 months