Seam SVN: r9616 - in trunk/seam-gen/view: layout and 1 other directory.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 12:10:52 -0500 (Mon, 24 Nov 2008)
New Revision: 9616
Modified:
trunk/seam-gen/view/layout/menu.xhtml.ftl
trunk/seam-gen/view/list.xhtml.ftl
Log:
make use of usePageParams="false" rather than valueless <f:param> tags
Modified: trunk/seam-gen/view/layout/menu.xhtml.ftl
===================================================================
--- trunk/seam-gen/view/layout/menu.xhtml.ftl 2008-11-24 17:09:07 UTC (rev 9615)
+++ trunk/seam-gen/view/layout/menu.xhtml.ftl 2008-11-24 17:10:52 UTC (rev 9616)
@@ -12,9 +12,8 @@
<#foreach entity in c2j.getPOJOIterator(cfg.classMappings)>
<s:link view="/${entity.shortName}List.xhtml"
value="${entity.shortName} List"
- propagation="none">
- <f:param name="from"/>
- </s:link>
+includePageParams="false"
+ propagation="none"/>
</#foreach>
<!-- @newMenuItem@ -->
<rich:toolBarGroup location="right">
Modified: trunk/seam-gen/view/list.xhtml.ftl
===================================================================
--- trunk/seam-gen/view/list.xhtml.ftl 2008-11-24 17:09:07 UTC (rev 9615)
+++ trunk/seam-gen/view/list.xhtml.ftl 2008-11-24 17:10:52 UTC (rev 9616)
@@ -52,11 +52,7 @@
<div class="actionButtons">
<h:commandButton id="search" value="Search" action="/${listPageName}.xhtml"/>
- <s:button id="reset" value="Reset">
-<#list searchParamNames as paramName>
- <f:param name="${paramName}"/>
-</#list>
- </s:button>
+ <s:button id="reset" value="Reset" includePageParams="false"/>
</div>
</h:form>
16 years
Seam SVN: r9615 - trunk/seam-gen/resources.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 12:09:07 -0500 (Mon, 24 Nov 2008)
New Revision: 9615
Modified:
trunk/seam-gen/resources/components-dev.properties
trunk/seam-gen/resources/components-prod.properties
trunk/seam-gen/resources/components-test.properties
Log:
correct comment
backslash unnecessary
Modified: trunk/seam-gen/resources/components-dev.properties
===================================================================
--- trunk/seam-gen/resources/components-dev.properties 2008-11-24 17:07:49 UTC (rev 9614)
+++ trunk/seam-gen/resources/components-dev.properties 2008-11-24 17:09:07 UTC (rev 9615)
@@ -1,4 +1,3 @@
-# The pattern in components.xml is replaced by an application server specific value in the ant build. This value is used for running tests
-
-jndiPattern @projectName@/\#{ejbName}/local
-debug true
+# These properties are used to replace Ant-style tokens in the component descriptor (components.xml) at runtime.
+jndiPattern=@projectName@/#{ejbName}/local
+debug=true
Modified: trunk/seam-gen/resources/components-prod.properties
===================================================================
--- trunk/seam-gen/resources/components-prod.properties 2008-11-24 17:07:49 UTC (rev 9614)
+++ trunk/seam-gen/resources/components-prod.properties 2008-11-24 17:09:07 UTC (rev 9615)
@@ -1,4 +1,3 @@
-# The pattern in components.xml is replaced by an application server specific value in the ant build. This value is used for running tests
-
-jndiPattern @projectName@/\#{ejbName}/local
-debug false
+# These properties are used to replace Ant-style tokens in the component descriptor (components.xml) at runtime.
+jndiPattern=@projectName@/#{ejbName}/local
+debug=false
Modified: trunk/seam-gen/resources/components-test.properties
===================================================================
--- trunk/seam-gen/resources/components-test.properties 2008-11-24 17:07:49 UTC (rev 9614)
+++ trunk/seam-gen/resources/components-test.properties 2008-11-24 17:09:07 UTC (rev 9615)
@@ -1,4 +1,3 @@
-# The pattern in components.xml is replaced by an application server specific value in the ant build. This value is used for running tests
-
-jndiPattern \#{ejbName}/local
-debug true
+# These properties are used to replace Ant-style tokens in the component descriptor (components.xml) at runtime.
+jndiPattern=#{ejbName}/local
+debug=true
16 years
Seam SVN: r9614 - in trunk/seam-gen: resources/WEB-INF and 1 other directory.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 12:07:49 -0500 (Mon, 24 Nov 2008)
New Revision: 9614
Modified:
trunk/seam-gen/icefaces/resources/WEB-INF/components-war.xml
trunk/seam-gen/icefaces/resources/WEB-INF/components.xml
trunk/seam-gen/icefaces/resources/WEB-INF/web.xml
trunk/seam-gen/resources/WEB-INF/components-war.xml
trunk/seam-gen/resources/WEB-INF/components.xml
trunk/seam-gen/resources/WEB-INF/web.xml
Log:
whitespace
Modified: trunk/seam-gen/icefaces/resources/WEB-INF/components-war.xml
===================================================================
--- trunk/seam-gen/icefaces/resources/WEB-INF/components-war.xml 2008-11-24 17:06:36 UTC (rev 9613)
+++ trunk/seam-gen/icefaces/resources/WEB-INF/components-war.xml 2008-11-24 17:07:49 UTC (rev 9614)
@@ -7,54 +7,54 @@
xmlns:security="http://jboss.com/products/seam/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
- "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
- http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
+ "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
+ http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
<core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
-
+
<component scope="APPLICATION" auto-create="true" name="renderManager" class="com.icesoft.faces.async.render.RenderManager" />
- <core:manager concurrent-request-timeout="500"
- conversation-timeout="120000"
+ <core:manager concurrent-request-timeout="500"
+ conversation-timeout="120000"
conversation-id-parameter="cid"
parent-conversation-id-parameter="pid"/>
<component name="org.jboss.seam.debug.hotDeployFilter">
<property name="urlPattern">*.seam</property>
</component>
-
+
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
entity-manager-factory="#{@projectName@EntityManagerFactory}"/>
- <persistence:entity-manager-factory name="@projectName@EntityManagerFactory"
+ <persistence:entity-manager-factory name="@projectName@EntityManagerFactory"
persistence-unit-name="@projectName@"/>
-
+
<drools:rule-base name="securityRules">
<drools:rule-files><value>/security.drl</value></drools:rule-files>
</drools:rule-base>
- <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
+ <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
<security:identity authenticate-method="#{authenticator.authenticate}"
remember-me="true"/>
-
+
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
-
+
<!-- For use with jBPM pageflow or process management -->
- <!--
+ <!--
<bpm:jbpm>
<bpm:process-definitions></bpm:process-definitions>
<bpm:pageflow-definitions></bpm:pageflow-definitions>
</bpm:jbpm>
-->
-
+
</components>
Modified: trunk/seam-gen/icefaces/resources/WEB-INF/components.xml
===================================================================
--- trunk/seam-gen/icefaces/resources/WEB-INF/components.xml 2008-11-24 17:06:36 UTC (rev 9613)
+++ trunk/seam-gen/icefaces/resources/WEB-INF/components.xml 2008-11-24 17:07:49 UTC (rev 9614)
@@ -7,26 +7,26 @@
xmlns:security="http://jboss.com/products/seam/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
- "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
- http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
+ "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
+ http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
<core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
-
+
<component scope="APPLICATION" auto-create="true" name="renderManager" class="com.icesoft.faces.async.render.RenderManager" />
- <core:manager concurrent-request-timeout="500"
- conversation-timeout="120000"
+ <core:manager concurrent-request-timeout="500"
+ conversation-timeout="120000"
conversation-id-parameter="cid"
parent-conversation-id-parameter="pid"/>
<component name="org.jboss.seam.debug.hotDeployFilter">
<property name="urlPattern">*.seam</property>
</component>
-
+
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
persistence-unit-jndi-name="java:/@projectName@EntityManagerFactory"/>
@@ -37,23 +37,23 @@
</drools:rule-files>
</drools:rule-base>
- <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
-
+ <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
+
<security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
-
+
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
-
+
<!-- For use with jBPM pageflow or process management -->
- <!--
+ <!--
<bpm:jbpm>
<bpm:process-definitions></bpm:process-definitions>
<bpm:pageflow-definitions></bpm:pageflow-definitions>
</bpm:jbpm>
-->
-
+
</components>
Modified: trunk/seam-gen/icefaces/resources/WEB-INF/web.xml
===================================================================
--- trunk/seam-gen/icefaces/resources/WEB-INF/web.xml 2008-11-24 17:06:36 UTC (rev 9613)
+++ trunk/seam-gen/icefaces/resources/WEB-INF/web.xml 2008-11-24 17:07:49 UTC (rev 9614)
@@ -3,59 +3,59 @@
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
-
+
<!-- Seam (using Icefaces) generated project-->
-
- <!-- listeners required for this application -->
+
+ <!-- listeners required for this application -->
<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>
-
+
<listener>
<listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
</listener>
-
+
<!-- filters -->
<filter>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
</filter>
-
+
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-
+
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
-
+
<!-- Facelets development mode (disable in production) -->
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>@debug@</param-value>
</context-param>
-
+
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
-
+
<context-param>
<param-name>com.icesoft.faces.actionURLSuffix</param-name>
<param-value>.seam</param-value>
</context-param>
-
+
<context-param>
<param-name>com.icesoft.faces.synchronousUpdate</param-name>
<param-value>false</param-value>
</context-param>
- <context-param>
+ <context-param>
<param-name>com.icesoft.faces.doJSFStateManagement</param-name>
<param-value>true</param-value>
- </context-param>
+ </context-param>
<context-param>
<param-name>org.icesoft.examples.serverClock</param-name>
@@ -66,19 +66,19 @@
<param-name>com.icesoft.faces.standardRequestScope</param-name>
<param-value>true</param-value>
</context-param>
-
+
<!-- servlets -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-
+
<servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
</servlet>
-
+
<servlet>
<servlet-name>Persistent Faces Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
@@ -88,32 +88,32 @@
<servlet-name>Blocking Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
- </servlet>
-
+ </servlet>
+
<!-- servlet mappings -->
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
-
+
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>
-
+
<!-- Blocking Servlet Mapping -->
<servlet-mapping>
<servlet-name>Blocking Servlet</servlet-name>
<url-pattern>/block/*</url-pattern>
</servlet-mapping>
-
+
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
-
- <security-constraint>
+
+ <security-constraint>
<display-name>Restrict raw XHTML Documents</display-name>
<web-resource-collection>
<web-resource-name>XHTML</web-resource-name>
@@ -121,5 +121,5 @@
</web-resource-collection>
<auth-constraint/>
</security-constraint>
-
+
</web-app>
Modified: trunk/seam-gen/resources/WEB-INF/components-war.xml
===================================================================
--- trunk/seam-gen/resources/WEB-INF/components-war.xml 2008-11-24 17:06:36 UTC (rev 9613)
+++ trunk/seam-gen/resources/WEB-INF/components-war.xml 2008-11-24 17:07:49 UTC (rev 9614)
@@ -8,8 +8,8 @@
xmlns:mail="http://jboss.com/products/seam/mail"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
- "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
- http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
+ "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
+ http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
@@ -21,42 +21,42 @@
<component name="org.jboss.seam.debug.hotDeployFilter">
<property name="urlPattern">*.seam</property>
</component>
-
- <core:manager concurrent-request-timeout="500"
- conversation-timeout="120000"
+
+ <core:manager concurrent-request-timeout="500"
+ conversation-timeout="120000"
conversation-id-parameter="cid"
parent-conversation-id-parameter="pid"/>
-
+
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
entity-manager-factory="#{@projectName@EntityManagerFactory}"/>
- <persistence:entity-manager-factory name="@projectName@EntityManagerFactory"
+ <persistence:entity-manager-factory name="@projectName@EntityManagerFactory"
persistence-unit-name="@projectName@"/>
-
+
<drools:rule-base name="securityRules">
<drools:rule-files><value>/security.drl</value></drools:rule-files>
</drools:rule-base>
- <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
+ <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
<security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
-
+
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
-
+
<mail:mail-session host="localhost" port="2525" username="test" password="test" />
-
+
<!-- For use with jBPM pageflow or process management -->
- <!--
+ <!--
<bpm:jbpm>
<bpm:process-definitions></bpm:process-definitions>
<bpm:pageflow-definitions></bpm:pageflow-definitions>
</bpm:jbpm>
-->
-
+
</components>
Modified: trunk/seam-gen/resources/WEB-INF/components.xml
===================================================================
--- trunk/seam-gen/resources/WEB-INF/components.xml 2008-11-24 17:06:36 UTC (rev 9613)
+++ trunk/seam-gen/resources/WEB-INF/components.xml 2008-11-24 17:07:49 UTC (rev 9614)
@@ -8,8 +8,8 @@
xmlns:mail="http://jboss.com/products/seam/mail"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
- "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
- http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
+ "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
+ http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
@@ -17,20 +17,20 @@
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
<core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
-
- <core:manager concurrent-request-timeout="500"
- conversation-timeout="120000"
+
+ <core:manager concurrent-request-timeout="500"
+ conversation-timeout="120000"
conversation-id-parameter="cid"
parent-conversation-id-parameter="pid"/>
-
+
<component name="org.jboss.seam.debug.hotDeployFilter">
<property name="urlPattern">*.seam</property>
</component>
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
- persistence-unit-jndi-name="java:/@projectName@EntityManagerFactory"/>
+ persistence-unit-jndi-name="java:/@projectName@EntityManagerFactory"/>
<drools:rule-base name="securityRules">
<drools:rule-files>
@@ -38,25 +38,25 @@
</drools:rule-files>
</drools:rule-base>
- <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
-
+ <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
+
<security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
-
+
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
-
+
<mail:mail-session host="localhost" port="2525" username="test" password="test" />
-
+
<!-- For use with jBPM pageflow or process management -->
- <!--
+ <!--
<bpm:jbpm>
<bpm:process-definitions></bpm:process-definitions>
<bpm:pageflow-definitions></bpm:pageflow-definitions>
</bpm:jbpm>
-->
-
+
</components>
Modified: trunk/seam-gen/resources/WEB-INF/web.xml
===================================================================
--- trunk/seam-gen/resources/WEB-INF/web.xml 2008-11-24 17:06:36 UTC (rev 9613)
+++ trunk/seam-gen/resources/WEB-INF/web.xml 2008-11-24 17:07:49 UTC (rev 9614)
@@ -1,11 +1,11 @@
<?xml version="1.0" ?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<!-- RichFaces -->
-
+
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>@skin@</param-value>
@@ -34,13 +34,13 @@
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
-
+
<!-- Seam -->
-
+
<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>
-
+
<filter>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
@@ -50,26 +50,26 @@
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-
+
<servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
</servlet>
-
+
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
-
+
<!-- Facelets development mode (disable in production) -->
-
+
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
-
+
<!-- JSF -->
-
+
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
@@ -80,13 +80,13 @@
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-
+
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
-
- <security-constraint>
+
+ <security-constraint>
<display-name>Restrict raw XHTML Documents</display-name>
<web-resource-collection>
<web-resource-name>XHTML</web-resource-name>
@@ -94,5 +94,5 @@
</web-resource-collection>
<auth-constraint/>
</security-constraint>
-
+
</web-app>
16 years
Seam SVN: r9613 - trunk/seam-gen/hibernatetools.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 12:06:36 -0500 (Mon, 24 Nov 2008)
New Revision: 9613
Modified:
trunk/seam-gen/hibernatetools/seam-gen.reveng.xml
Log:
private some samples to help guide a new user to get started with reveng
Modified: trunk/seam-gen/hibernatetools/seam-gen.reveng.xml
===================================================================
--- trunk/seam-gen/hibernatetools/seam-gen.reveng.xml 2008-11-24 14:32:38 UTC (rev 9612)
+++ trunk/seam-gen/hibernatetools/seam-gen.reveng.xml 2008-11-24 17:06:36 UTC (rev 9613)
@@ -2,7 +2,34 @@
<!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
- <!-- This file is intentionally generated empty by seam-gen -->
- <!-- You can add any filtering/setup you want for your app -->
+ <!-- Use this file to customize the generation of JPA entities from database
+ tables performed either by `seam generate' or the Generate Entities task
+ in JBoss Tools. You can find detailed instructions on controlling
+ reverse engineering in the JBoss Tools reference documentation:
+ http://docs.jboss.org/tools/3.0.0.Beta1/en/hibernatetools/html/index.html
+ -->
-</hibernate-reverse-engineering>
\ No newline at end of file
+ <!-- Uncomment the next line if you want to begin by excluding all tables,
+ then selectively including tables -->
+ <!--<table-filter match-name="*.*" exclude="true"/>-->
+
+ <!-- Uncomment one of the next two lines to include or exclude a single table -->
+ <!--<table-filter match-name="TABLE_NAME" exclude="true"/>-->
+ <!--<table-filter match-name="TABLE_NAME" exclude="false"/>-->
+
+ <!-- An example of a mapping customization -->
+ <!--
+ <table name="TABLE_PREFIX_BILL" class="org.example.model.Bill">
+ <meta attribute="class-code">
+// Code appended to the end of the generated class
+public float calculateTotal() {
+ return this.rate * this.hours;
+}
+ </meta/>
+ <column name="BILL_ID" property="id" type="java.lang.Long"/>
+ <column name="RTE" property="rate"/>
+ <column name="HRS" property="hours"/>
+ </table>
+ -->
+
+</hibernate-reverse-engineering>
16 years
Seam SVN: r9612 - branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2008-11-24 09:32:38 -0500 (Mon, 24 Nov 2008)
New Revision: 9612
Modified:
branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java
Log:
JBPAPP-1442
Modified: branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java 2008-11-23 23:52:31 UTC (rev 9611)
+++ branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java 2008-11-24 14:32:38 UTC (rev 9612)
@@ -60,7 +60,7 @@
String pathInfo = request.getPathInfo().substring(getResourcePath().length() + 1,
request.getPathInfo().lastIndexOf("."));
ImageWrapper image = GraphicImageStore.instance().remove(pathInfo);
- if (image != null)
+ if (image != null && image.getImage() != null)
{
response.setContentType(image.getContentType().getMimeType());
response.setStatus(HttpServletResponse.SC_OK);
16 years
Seam SVN: r9611 - in branches/enterprise/JBPAPP_4_3_FP01: seam-gen/resources/WEB-INF and 5 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2008-11-23 18:52:31 -0500 (Sun, 23 Nov 2008)
New Revision: 9611
Added:
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/ConcurrentRequestTimeoutException.java
Modified:
branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Conversations.xml
branches/enterprise/JBPAPP_4_3_FP01/seam-gen/resources/WEB-INF/pages.xml
branches/enterprise/JBPAPP_4_3_FP01/seam-gen/view/layout/template.xhtml
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Conversation.java
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/ConversationEntry.java
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Manager.java
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/faces/FacesManager.java
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Page.java
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Pages.java
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.dtd
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.xsd
Log:
JBPAPP-1444
Modified: branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Conversations.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Conversations.xml 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Conversations.xml 2008-11-23 23:52:31 UTC (rev 9611)
@@ -1038,11 +1038,12 @@
</para>
<para>
- Therefore Seam queues the action event for a period of time (the
- concurrent request timeout); if it can't process the event in time, it
- creates a temporary conversation and prints out a message to the user to
- let them know what's going on. It's therefore very important not to
- flood the server with AJAX events!
+ Therefore, when you are working inside a long running conversation,
+ Seam queues the action event for a period of time (the concurrent
+ request timeout); if it can't process the event in time, it creates a
+ temporary conversation and prints out a message to the user to let them
+ know what's going on. It's therefore very important not to flood the
+ server with AJAX events!
</para>
<para>
@@ -1051,18 +1052,19 @@
</para>
<programlisting role="XML"><![CDATA[<core:manager concurrent-request-timeout="500" />]]></programlisting>
- <!-- TODO -->
- <!-- <para>
- We can also fine tune the concurrent request timeout for a request:
+
+ <para>
+ We can also fine tune the concurrent request timeout on a page-by-page
+ basis:
</para>
- <programlisting role="JAVA"><![CDATA[public void getTotal() {
- Manager.instance().setConcurrentRequestTimeout(1000);
- return someReallyComplicatedCalculation();
-}]]></programlisting>-->
+ <programlisting role="XML"><![CDATA[<page view-id="/book.xhtml"
+ conversation-required="true"
+ login-required="true"
+ concurrent-request-timeout="2000" />]]></programlisting>
<para>
- So far we've discussed "synchronous" AJAX requests - the client tells the
+ So far we've discussed serial AJAX requests - the client tells the
server that an event has occur, and then rerenders part of the page based
on the result. This approach is great when the AJAX request is
lightweight (the methods called are simple e.g. calculating the sum of a
@@ -1078,9 +1080,8 @@
be dropped as duplicates, or to timeout).
</para>
- <para>
- <emphasis>How should we design our conversational AJAX application?</emphasis>
- </para>
+ <section>
+ <title>How should we design our conversational AJAX application?</title>
<para>
Well first, you need to decide whether you want to use the simpler
@@ -1128,61 +1129,118 @@
public int getTotal() {
return total;
}]]></programlisting>
-
- <section>
- <title>RichFaces Ajax</title>
-
- <para>
- RichFaces Ajax is the AJAX library most commonly used with Seam, and
- provides all the controls discussed above:
- </para>
+ </section>
- <itemizedlist>
- <listitem>
+ <section>
+ <title>Dealing with errors</title>
+
+ <para>
+ However carefully you design your application to queue concurrent
+ requests to your conversational component, there is a risk that the
+ server will become overloaded and be unable to process all the
+ requests before the request will have to wait longer than the
+ <literal>concurrent-request-timeout</literal>. In this case Seam will
+ throw a <literal>ConcurrentRequestTimeoutException</literal> which can
+ be handled in <literal>pages.xml</literal>. We recommend sending an
+ HTTP 503 error:
+ </para>
+
+ <programlisting role="XML"><![CDATA[ <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" logLevel="trace">
+ <http-error error-code="503" />
+ </exception>]]></programlisting>
+
+ <note>
+ <title>503 Service Unavailable (HTTP/1.1 RFC)</title>
+
<para>
- <literal>eventsQueue</literal> — provide a queue in which
- events are placed. All events are queued and requests are sent to
- the server serially. This is useful if the request can to the
- server can take some time to execute (e.g. heavy computation,
- retrieving information from a slow source) as the server isn't
- flooded.
+ The server is currently unable to handle the request due to a
+ temporary overloading or maintenance of the server. The implication
+ is that this is a temporary condition which will be alleviated after
+ some delay.
</para>
- </listitem>
- <listitem>
- <para>
- <literal>ignoreDupResponses</literal> — ignore the response
- produced by the request if a more recent 'similar' request is
- already in the queue. ignoreDupResponses="true" does <emphasis>not
- cancel</emphasis> the the processing of the request on the server
- side — just prevents unnecessary updates on the client side.
- </para>
- <para>
- This option should be used with care with Seam's conversations as
- it allows multiple concurrent requests to be made.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>requestDelay</literal> — defines the time (in ms.)
- that the request will be remain on the queue. If the request has
- not been processed by after this time the request will be sent
- (regardless of whether a response has been received) or discarded
- (if there is a more recent similar event on the queue).
- </para>
- <para>
- This option should be used with care with Seam's conversations as
- it allows multiple concurrent requests to be made. You need to be
- sure that the delay you set (in combination with the concurrent
- request timeout) is longer than the action will take to execute.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal><a:poll reRender="total" interval="1000" /></literal> —
- Polls the server, and rerenders an area as needed
- </para>
- </listitem>
- </itemizedlist>
- </section>
+ </note>
+
+ <para>
+ Alternatively you could redirect to an error page:
+ </para>
+
+ <programlisting role="XML"><![CDATA[<exception class="org.jboss.seam.ConcurrentRequestTimeoutException" logLevel="trace">
+ <end-conversation/>
+ <redirect view-id="/error.xhtml">
+ <message>The server is too busy to process your request, please try again later</message>
+ </redirect>
+</exception>]]></programlisting>
+
+ <para>
+ ICEfaces, RichFaces Ajax and Seam Remoting can all handle HTTP error
+ codes. Seam Remoting will pop up a dialog box showing the HTTP error
+ and ICEfaces will indicate the error in it's connection status
+ component. RichFaces Ajax provides the most complete support for
+ handling HTTP errors by providing a user definable callback. For
+ example, to show the error message to the user:
+ </para>
+
+ <programlisting><![CDATA[<script type="text/javascript">
+ A4J.AJAX.onError = function(req,status,message) {
+ alert("message");
+ };
+</script>]]></programlisting>
+ </section>
+
+ <section>
+ <title>RichFaces Ajax</title>
+
+ <para>
+ RichFaces Ajax is the AJAX library most commonly used with Seam, and
+ provides all the controls discussed above:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>eventsQueue</literal> — provide a queue in which
+ events are placed. All events are queued and requests are sent to
+ the server serially. This is useful if the request can to the
+ server can take some time to execute (e.g. heavy computation,
+ retrieving information from a slow source) as the server isn't
+ flooded.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>ignoreDupResponses</literal> — ignore the response
+ produced by the request if a more recent 'similar' request is
+ already in the queue. ignoreDupResponses="true" does <emphasis>not
+ cancel</emphasis> the the processing of the request on the server
+ side — just prevents unnecessary updates on the client side.
+ </para>
+ <para>
+ This option should be used with care with Seam's conversations as
+ it allows multiple concurrent requests to be made.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>requestDelay</literal> — defines the time (in ms.)
+ that the request will be remain on the queue. If the request has
+ not been processed by after this time the request will be sent
+ (regardless of whether a response has been received) or discarded
+ (if there is a more recent similar event on the queue).
+ </para>
+ <para>
+ This option should be used with care with Seam's conversations as
+ it allows multiple concurrent requests to be made. You need to be
+ sure that the delay you set (in combination with the concurrent
+ request timeout) is longer than the action will take to execute.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal><a:poll reRender="total" interval="1000" /></literal> —
+ Polls the server, and rerenders an area as needed
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
</chapter>
\ No newline at end of file
Modified: branches/enterprise/JBPAPP_4_3_FP01/seam-gen/resources/WEB-INF/pages.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/seam-gen/resources/WEB-INF/pages.xml 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/seam-gen/resources/WEB-INF/pages.xml 2008-11-23 23:52:31 UTC (rev 9611)
@@ -50,6 +50,10 @@
<message>Your session has timed out, please try again</message>
</redirect>
</exception>
+
+ <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" logLevel="trace">
+ <http-error error-code="503" />
+ </exception>
<exception>
<redirect view-id="/error.xhtml">
Modified: branches/enterprise/JBPAPP_4_3_FP01/seam-gen/view/layout/template.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/seam-gen/view/layout/template.xhtml 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/seam-gen/view/layout/template.xhtml 2008-11-23 23:52:31 UTC (rev 9611)
@@ -9,6 +9,12 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>@projectName@</title>
<link href="stylesheet/theme.css" rel="stylesheet" type="text/css" />
+ <script type="text/javascript">
+ A4J.AJAX.onError = function(req,status,message) {
+ alert(message);
+
+ };
+ </script>
</head>
<body>
Added: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/ConcurrentRequestTimeoutException.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/ConcurrentRequestTimeoutException.java (rev 0)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/ConcurrentRequestTimeoutException.java 2008-11-23 23:52:31 UTC (rev 9611)
@@ -0,0 +1,29 @@
+/**
+ *
+ */
+package org.jboss.seam;
+
+public class ConcurrentRequestTimeoutException extends RuntimeException
+{
+
+ public ConcurrentRequestTimeoutException()
+ {
+ super();
+ }
+
+ public ConcurrentRequestTimeoutException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public ConcurrentRequestTimeoutException(String message)
+ {
+ super(message);
+ }
+
+ public ConcurrentRequestTimeoutException(Throwable cause)
+ {
+ super(cause);
+ }
+
+}
Property changes on: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/ConcurrentRequestTimeoutException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Conversation.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Conversation.java 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Conversation.java 2008-11-23 23:52:31 UTC (rev 9611)
@@ -31,6 +31,7 @@
{
private static final long serialVersionUID = -6131304128727444876L;
private Integer timeout;
+ private Integer concurrentRequestTimeout;
String description;
String viewId;
@@ -54,6 +55,16 @@
this.timeout = timeout;
}
+ public Integer getConcurrentRequestTimeout()
+ {
+ return concurrentRequestTimeout == null ? Manager.instance().getCurrentConversationConcurrentRequestTimeout() : concurrentRequestTimeout;
+ }
+
+ public void setConcurrentRequestTimeout(Integer concurrentRequestTimeout)
+ {
+ this.concurrentRequestTimeout = concurrentRequestTimeout;
+ }
+
/**
* Get the conversation id.
*/
@@ -136,6 +147,11 @@
entry.setTimeout(timeout);
}
+ if (concurrentRequestTimeout != null)
+ {
+ entry.setConcurrentRequestTimeout(concurrentRequestTimeout);
+ }
+
description = null;
viewId = null;
timeout = null;
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/ConversationEntry.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/ConversationEntry.java 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/ConversationEntry.java 2008-11-23 23:52:31 UTC (rev 9611)
@@ -25,6 +25,7 @@
private String viewId;
private List<String> conversationIdStack;
private Integer timeout;
+ private Integer concurrentRequestTimeout;
private boolean removeAfterRedirect;
private boolean ended;
@@ -176,6 +177,17 @@
this.timeout = conversationTimeout;
}
+ public Integer getConcurrentRequestTimeout()
+ {
+ return concurrentRequestTimeout == null ? Manager.instance().getConcurrentRequestTimeout() : concurrentRequestTimeout;
+ }
+
+ void setConcurrentRequestTimeout(Integer concurrentRequestTimeout)
+ {
+ entries.setDirty(this.concurrentRequestTimeout, concurrentRequestTimeout);
+ this.concurrentRequestTimeout = concurrentRequestTimeout;
+ }
+
public boolean isRemoveAfterRedirect()
{
return removeAfterRedirect;
@@ -201,7 +213,7 @@
{
try
{
- return lock.tryLock( Manager.instance().getConcurrentRequestTimeout(), TimeUnit.MILLISECONDS );
+ return lock.tryLock( getConcurrentRequestTimeout(), TimeUnit.MILLISECONDS );
}
catch (InterruptedException ie)
{
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Manager.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Manager.java 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Manager.java 2008-11-23 23:52:31 UTC (rev 9611)
@@ -16,6 +16,7 @@
import java.util.Map;
import org.jboss.seam.Component;
+import org.jboss.seam.ConcurrentRequestTimeoutException;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Name;
@@ -196,6 +197,13 @@
return ce.getViewId();
}
+ public Integer getCurrentConversationConcurrentRequestTimeout()
+ {
+ ConversationEntry ce = getCurrentConversationEntry();
+ if (ce == null) return null;
+ return ce.getConcurrentRequestTimeout();
+ }
+
public String getParentConversationViewId()
{
ConversationEntry conversationEntry = ConversationEntries.instance().getConversationEntry(getParentConversationId());
@@ -487,7 +495,15 @@
private boolean restoreAndLockConversation(ConversationEntry ce)
{
- if ( ce!=null && ce.lock() )
+ if ( ce == null )
+ {
+ //there was no id in either place, so there is no
+ //long-running conversation to restore
+ log.debug("No stored conversation");
+ initializeTemporaryConversation();
+ return false;
+ }
+ else if ( ce.lock() )
{
// do this ASAP, since there is a window where conversationTimeout() might
// try to destroy the conversation, even if he cannot obtain the lock!
@@ -511,11 +527,8 @@
}
else
{
- //there was no id in either place, so there is no
- //long-running conversation to restore
- log.debug("No stored conversation, or concurrent call to the stored conversation");
- initializeTemporaryConversation();
- return false;
+ log.debug("Concurrent call to conversation");
+ throw new ConcurrentRequestTimeoutException("Concurrent call to conversation");
}
}
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/faces/FacesManager.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/faces/FacesManager.java 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/faces/FacesManager.java 2008-11-23 23:52:31 UTC (rev 9611)
@@ -271,7 +271,7 @@
{
conversation.setDescription( pageEntry.renderDescription() );
}
- conversation.setTimeout( pages.getTimeout(viewId) );
+ conversation.setConcurrentRequestTimeout( pages.getConcurrentRequestTimeout(viewId) );
}
}
else
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Page.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Page.java 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Page.java 2008-11-23 23:52:31 UTC (rev 9611)
@@ -29,6 +29,7 @@
private List<Input> inputs = new ArrayList<Input>();
private List<Action> actions = new ArrayList<Action>();
private Map<String, Navigation> navigations = new HashMap<String, Navigation>();
+ private Integer concurrentRequestTimeout;
private Navigation defaultNavigation;
private boolean conversationRequired;
private boolean loginRequired;
@@ -119,6 +120,16 @@
return timeout;
}
+ public void setConcurrentRequestTimeout(Integer concurrentRequestTimeout)
+ {
+ this.concurrentRequestTimeout = concurrentRequestTimeout;
+ }
+
+ public Integer getConcurrentRequestTimeout()
+ {
+ return concurrentRequestTimeout;
+ }
+
public void setNoConversationViewId(String noConversationViewId)
{
this.noConversationViewId = noConversationViewId;
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Pages.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Pages.java 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/navigation/Pages.java 2008-11-23 23:52:31 UTC (rev 9611)
@@ -914,6 +914,26 @@
return Manager.instance().getConversationTimeout();
}
+ /**
+ * Search for a defined concurrent request timeout, beginning with
+ * the most specific view id, then wildcarded view ids, and
+ * finally the global setting from Manager
+ */
+ public Integer getConcurrentRequestTimeout(String viewId)
+ {
+ List<Page> stack = getPageStack(viewId);
+ for (int i=stack.size()-1; i>=0; i--)
+ {
+ Page page = stack.get(i);
+ Integer concurrentRequestTimeout = page.getConcurrentRequestTimeout();
+ if (concurrentRequestTimeout!=null)
+ {
+ return concurrentRequestTimeout;
+ }
+ }
+ return Manager.instance().getConcurrentRequestTimeout();
+ }
+
public static String getSuffix()
{
String defaultSuffix = FacesContext.getCurrentInstance().getExternalContext()
@@ -1060,7 +1080,13 @@
page.setTimeout(Integer.parseInt(timeoutString));
}
- page.setNoConversationViewId( element.attributeValue("no-conversation-view-id") );
+ String concurrentRequestTimeoutString = element.attributeValue("concurrent-request-timeout");
+ if (concurrentRequestTimeoutString!=null)
+ {
+ page.setConcurrentRequestTimeout(Integer.parseInt(concurrentRequestTimeoutString));
+ }
+
+ page.setNoConversationViewId( element.attributeValue("no-conversation-view-id") );
page.setConversationRequired( "true".equals( element.attributeValue("conversation-required") ) );
page.setLoginRequired( "true".equals( element.attributeValue("login-required") ) );
page.setScheme( element.attributeValue("scheme") );
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.dtd
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.dtd 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.dtd 2008-11-23 23:52:31 UTC (rev 9611)
@@ -27,6 +27,7 @@
<!ATTLIST page login-required (true|false) "false">
<!ATTLIST page scheme CDATA #IMPLIED>
<!ATTLIST page timeout CDATA #IMPLIED>
+<!ATTLIST page concurrent-request-timeout CDATA #IMPLIED>
<!ATTLIST page bundle CDATA #IMPLIED>
<!ATTLIST page conversation CDATA #IMPLIED>
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.xsd
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.xsd 2008-11-21 20:06:57 UTC (rev 9610)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pages-2.0.xsd 2008-11-23 23:52:31 UTC (rev 9611)
@@ -95,6 +95,16 @@
</xs:attribute>
<xs:attribute name="scheme"/>
<xs:attribute name="timeout"/>
+ <xs:attribute name="concurrent-request-timeout">
+ <xs:annotation>
+ <xs:documentation>
+ Requests to conversations are serialized by default, and if
+ a lock cannot be acquired in time, the request will be
+ dropped. You can set the timeout on a page-by-page basis
+ here.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
<xs:attribute name="bundle"/>
<xs:attribute name="conversation"/>
</xs:attributeGroup>
16 years
Seam SVN: r9610 - trunk/seam-gen.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-21 15:06:57 -0500 (Fri, 21 Nov 2008)
New Revision: 9610
Modified:
trunk/seam-gen/build.xml
Log:
pull validate.xml from the correct location
Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml 2008-11-21 19:10:24 UTC (rev 9609)
+++ trunk/seam-gen/build.xml 2008-11-21 20:06:57 UTC (rev 9610)
@@ -696,9 +696,7 @@
file="${templates.dir}/build-scripts/build.xml">
<filterset refid="project"/>
</copy>
- <copy todir="${project.home}" overwrite="true">
- <fileset file="${seam.dir}/validate.xml"/>
- </copy>
+ <copy file="${seam.dir}/build/validate.xml" todir="${project.home}" overwrite="true"/>
<copy todir="${project.home}/resources">
<fileset dir="${templates.dir}/resources/">
<include name="META-INF/application.xml"/>
16 years
Seam SVN: r9609 - trunk/src/main/org/jboss/seam.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2008-11-21 14:10:24 -0500 (Fri, 21 Nov 2008)
New Revision: 9609
Modified:
trunk/src/main/org/jboss/seam/pages-2.1.xsd
Log:
JBSEAM-3741
Modified: trunk/src/main/org/jboss/seam/pages-2.1.xsd
===================================================================
--- trunk/src/main/org/jboss/seam/pages-2.1.xsd 2008-11-20 21:53:00 UTC (rev 9608)
+++ trunk/src/main/org/jboss/seam/pages-2.1.xsd 2008-11-21 19:10:24 UTC (rev 9609)
@@ -397,7 +397,7 @@
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.render">
- <xs:attribute name="view-id" type="pages:view-id" />
+ <xs:attribute name="view-id" type="pages:view-id-expression" />
</xs:attributeGroup>
<xs:element name="redirect">
@@ -414,8 +414,8 @@
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.redirect">
- <xs:attribute name="view-id" type="pages:view-id" />
- <xs:attribute name="url" type="pages:url" />
+ <xs:attribute name="view-id" type="pages:view-id-expression" />
+ <xs:attribute name="url" type="pages:url-expression" />
<xs:attribute name="include-page-params" type="pages:tf-boolean" />
</xs:attributeGroup>
@@ -458,10 +458,14 @@
</xs:element>
<xs:simpleType name="url">
- <xs:restriction base="xs:token">
+ <xs:restriction base="xs:anyURI">
<xs:pattern value="http://.*|https://.*"/>
</xs:restriction>
</xs:simpleType>
+
+ <xs:simpleType name="url-expression">
+ <xs:union memberTypes="pages:url pages:method-expression"></xs:union>
+ </xs:simpleType>
<xs:simpleType name="schemes">
<xs:restriction base="xs:token">
@@ -475,6 +479,10 @@
<xs:pattern value="(/.*)|\*"/>
</xs:restriction>
</xs:simpleType>
+
+ <xs:simpleType name="view-id-expression">
+ <xs:union memberTypes="pages:view-id pages:method-expression"></xs:union>
+ </xs:simpleType>
<xs:simpleType name="ableness">
<xs:restriction base="xs:token">
16 years
Seam SVN: r9608 - trunk/build.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2008-11-20 16:53:00 -0500 (Thu, 20 Nov 2008)
New Revision: 9608
Modified:
trunk/build/build.xml
Log:
releaseSeam target fails for dvdstore
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2008-11-19 13:37:02 UTC (rev 9607)
+++ trunk/build/build.xml 2008-11-20 21:53:00 UTC (rev 9608)
@@ -54,7 +54,7 @@
<deployWithSources pom="${wicket.pom}" jar="${lib.dir}/jboss-seam-wicket.jar" repositoryId="offline.repository.jboss.org" srcjar="${lib.dir}/src/jboss-seam-wicket-sources.jar"/>
<deployExample name="booking" repositoryId="offline.repository.jboss.org"/>
<deployExampleNoDs name="numberguess" repositoryId="offline.repository.jboss.org"/>
- <deployExample name="dvd" path="${seam.dir}/examples/dvdstore" repositoryId="offline.repository.jboss.org"/>
+ <deployExample name="dvdstore" path="${seam.dir}/examples/dvdstore" repositoryId="offline.repository.jboss.org"/>
</target>
16 years
Seam SVN: r9607 - tags/JBPAPP_4_3_CP03_FP_CR1/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2008-11-19 08:37:02 -0500 (Wed, 19 Nov 2008)
New Revision: 9607
Modified:
tags/JBPAPP_4_3_CP03_FP_CR1/build/root.pom.xml
Log:
port of r9606
Modified: tags/JBPAPP_4_3_CP03_FP_CR1/build/root.pom.xml
===================================================================
--- tags/JBPAPP_4_3_CP03_FP_CR1/build/root.pom.xml 2008-11-19 13:22:29 UTC (rev 9606)
+++ tags/JBPAPP_4_3_CP03_FP_CR1/build/root.pom.xml 2008-11-19 13:37:02 UTC (rev 9607)
@@ -332,8 +332,8 @@
<version>3.0.0.GA</version>
<exclusions>
<exclusion>
- <groupId>hibernate</groupId>
- <artifactId>hibernate3</artifactId>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate</artifactId>
</exclusion>
</exclusions>
</dependency>
16 years