Seam SVN: r9636 - trunk/examples/jpa/src/org/jboss/seam/example/jpa.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 23:51:13 -0500 (Mon, 24 Nov 2008)
New Revision: 9636
Modified:
trunk/examples/jpa/src/org/jboss/seam/example/jpa/HotelSearchingAction.java
Log:
make class serializable
Modified: trunk/examples/jpa/src/org/jboss/seam/example/jpa/HotelSearchingAction.java
===================================================================
--- trunk/examples/jpa/src/org/jboss/seam/example/jpa/HotelSearchingAction.java 2008-11-25 04:50:44 UTC (rev 9635)
+++ trunk/examples/jpa/src/org/jboss/seam/example/jpa/HotelSearchingAction.java 2008-11-25 04:51:13 UTC (rev 9636)
@@ -1,6 +1,8 @@
//$Id$
package org.jboss.seam.example.jpa;
+import java.io.Serializable;
+
import java.util.List;
import javax.persistence.EntityManager;
@@ -14,7 +16,7 @@
@Name("hotelSearch")
@Scope(ScopeType.SESSION)
-public class HotelSearchingAction
+public class HotelSearchingAction implements Serializable
{
@In
16 years
Seam SVN: r9635 - trunk/examples/jee5/remoting/nbproject.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 23:50:44 -0500 (Mon, 24 Nov 2008)
New Revision: 9635
Modified:
trunk/examples/jee5/remoting/nbproject/project.xml
Log:
correct project name
Modified: trunk/examples/jee5/remoting/nbproject/project.xml
===================================================================
--- trunk/examples/jee5/remoting/nbproject/project.xml 2008-11-25 04:50:00 UTC (rev 9634)
+++ trunk/examples/jee5/remoting/nbproject/project.xml 2008-11-25 04:50:44 UTC (rev 9635)
@@ -4,7 +4,7 @@
<configuration>
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
<!-- Do not use Project Properties customizer when editing this file manually. -->
- <name>Glassfish Booking</name>
+ <name>Seam Remoting Example</name>
<properties/>
<folders>
<source-folder>
16 years
Seam SVN: r9634 - in trunk/examples: booking/view/css and 16 other directories.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 23:50:00 -0500 (Mon, 24 Nov 2008)
New Revision: 9634
Modified:
trunk/examples/booking/view/css/screen.css
trunk/examples/booking/view/home.xhtml
trunk/examples/groovybooking/view/css/screen.css
trunk/examples/groovybooking/view/home.xhtml
trunk/examples/hibernate/view/css/screen.css
trunk/examples/hibernate/view/home.xhtml
trunk/examples/icefaces/view/css/screen.css
trunk/examples/icefaces/view/home.xhtml
trunk/examples/jee5/booking/view/css/screen.css
trunk/examples/jee5/booking/view/home.xhtml
trunk/examples/jpa/view/css/screen.css
trunk/examples/jpa/view/home.xhtml
trunk/examples/nestedbooking/view/css/screen.css
trunk/examples/nestedbooking/view/home.xhtml
trunk/examples/spring/view/css/screen.css
trunk/examples/spring/view/home.xhtml
trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Home.html
trunk/examples/wicket/view/css/screen.css
Log:
add hints on how to login to the booking application
Modified: trunk/examples/booking/view/css/screen.css
===================================================================
--- trunk/examples/booking/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/booking/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -138,6 +138,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/booking/view/home.xhtml
===================================================================
--- trunk/examples/booking/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/booking/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -31,6 +31,13 @@
<div class="errors"><h:messages id="messages" globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/groovybooking/view/css/screen.css
===================================================================
--- trunk/examples/groovybooking/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/groovybooking/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -133,6 +133,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/groovybooking/view/home.xhtml
===================================================================
--- trunk/examples/groovybooking/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/groovybooking/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -31,6 +31,13 @@
<div class="errors"><h:messages globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/hibernate/view/css/screen.css
===================================================================
--- trunk/examples/hibernate/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/hibernate/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -133,6 +133,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/hibernate/view/home.xhtml
===================================================================
--- trunk/examples/hibernate/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/hibernate/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -31,6 +31,13 @@
<div class="errors"><h:messages globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/icefaces/view/css/screen.css
===================================================================
--- trunk/examples/icefaces/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/icefaces/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -141,6 +141,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/icefaces/view/home.xhtml
===================================================================
--- trunk/examples/icefaces/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/icefaces/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -33,6 +33,13 @@
<div class="buttonBox"><ice:commandButton id="login" action="#{identity.login}" value="Account Login"
styleClass="button"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/jee5/booking/view/css/screen.css
===================================================================
--- trunk/examples/jee5/booking/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/jee5/booking/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -133,6 +133,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/jee5/booking/view/home.xhtml
===================================================================
--- trunk/examples/jee5/booking/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/jee5/booking/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -31,6 +31,13 @@
<div class="errors"><h:messages globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/jpa/view/css/screen.css
===================================================================
--- trunk/examples/jpa/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/jpa/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -133,6 +133,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/jpa/view/home.xhtml
===================================================================
--- trunk/examples/jpa/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/jpa/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -31,6 +31,13 @@
<div class="errors"><h:messages id="messages" globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/nestedbooking/view/css/screen.css
===================================================================
--- trunk/examples/nestedbooking/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/nestedbooking/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -133,6 +133,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/nestedbooking/view/home.xhtml
===================================================================
--- trunk/examples/nestedbooking/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/nestedbooking/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -31,6 +31,13 @@
<div class="errors"><h:messages globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/spring/view/css/screen.css
===================================================================
--- trunk/examples/spring/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/spring/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -133,6 +133,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
Modified: trunk/examples/spring/view/home.xhtml
===================================================================
--- trunk/examples/spring/view/home.xhtml 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/spring/view/home.xhtml 2008-11-25 04:50:00 UTC (rev 9634)
@@ -31,6 +31,13 @@
<div class="errors"><h:messages globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login" action="#{login.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</h:form>
</div>
Modified: trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Home.html
===================================================================
--- trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Home.html 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/wicket/src/web/org/jboss/seam/example/wicket/Home.html 2008-11-25 04:50:00 UTC (rev 9634)
@@ -27,6 +27,13 @@
<div class="errors" wicket:id="messages" />
<div class="buttonBox"><input id="login" type="submit" value="Account Login"/></div>
<div class="notes"><a id="register" wicket:id="register">Register New User</a></div>
+ <div class="subnotes">
+ Or use a demo account:
+ <ul>
+ <li>gavin/foobar</li>
+ <li>demo/demo</li>
+ </ul>
+ </div>
</fieldset>
</form>
</div>
Modified: trunk/examples/wicket/view/css/screen.css
===================================================================
--- trunk/examples/wicket/view/css/screen.css 2008-11-25 02:01:43 UTC (rev 9633)
+++ trunk/examples/wicket/view/css/screen.css 2008-11-25 04:50:00 UTC (rev 9634)
@@ -138,6 +138,10 @@
text-align: center;
font-size: small;
}
+.subnotes {
+ margin-top: 1em;
+ font-size: small;
+}
.errors {
font-size: small;
font-weight: bold;
16 years
Seam SVN: r9633 - trunk/examples/remoting/gwt/view.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2008-11-24 21:01:43 -0500 (Mon, 24 Nov 2008)
New Revision: 9633
Added:
trunk/examples/remoting/gwt/view/index.html
Log:
JBSEAM-3734
Added: trunk/examples/remoting/gwt/view/index.html
===================================================================
--- trunk/examples/remoting/gwt/view/index.html (rev 0)
+++ trunk/examples/remoting/gwt/view/index.html 2008-11-25 02:01:43 UTC (rev 9633)
@@ -0,0 +1,5 @@
+<html>
+<head>
+ <meta http-equiv="Refresh" content="0; URL=HelloWorld.html">
+</head>
+</html>
\ No newline at end of file
16 years
Seam SVN: r9632 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2008-11-24 19:43:50 -0500 (Mon, 24 Nov 2008)
New Revision: 9632
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Gwt.xml
Log:
JBSEAM-3736
Modified: trunk/doc/Seam_Reference_Guide/en-US/Gwt.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Gwt.xml 2008-11-24 23:06:55 UTC (rev 9631)
+++ trunk/doc/Seam_Reference_Guide/en-US/Gwt.xml 2008-11-25 00:43:50 UTC (rev 9632)
@@ -75,9 +75,12 @@
}
}]]></programlisting>
- <para>
- The methods that should be made accessible via GWT need to be annotated with the
- <literal>@WebRemote</literal> annotation, which is required for all web-remoteable methods.
+ <para>
+ The name of the seam component <emphasis>must</emphasis> match the fully
+ qualified name of the GWT client interface (as shown), or the seam
+ resource servlet will not be able to find it when a client makes a GWT
+ call. The methods that are to be made accessible via GWT also need to be
+ annotated with the <literal>@WebRemote</literal> annotation.
</para>
</section>
16 years
Seam SVN: r9631 - in trunk/examples/excel/view: css and 1 other directory.
by seam-commits@lists.jboss.org
Author: danielc.roth
Date: 2008-11-24 18:06:55 -0500 (Mon, 24 Nov 2008)
New Revision: 9631
Modified:
trunk/examples/excel/view/css/screen.css
trunk/examples/excel/view/home.xhtml
Log:
JBSEAM-3735
Modified: trunk/examples/excel/view/css/screen.css
===================================================================
--- trunk/examples/excel/view/css/screen.css 2008-11-24 19:58:26 UTC (rev 9630)
+++ trunk/examples/excel/view/css/screen.css 2008-11-24 23:06:55 UTC (rev 9631)
@@ -40,4 +40,8 @@
.subheader {
font-size: 14px;
+}
+
+.plain {
+ font-size: 12px;
}
\ No newline at end of file
Modified: trunk/examples/excel/view/home.xhtml
===================================================================
--- trunk/examples/excel/view/home.xhtml 2008-11-24 19:58:26 UTC (rev 9630)
+++ trunk/examples/excel/view/home.xhtml 2008-11-24 23:06:55 UTC (rev 9631)
@@ -86,6 +86,8 @@
<br />
<h:outputText value="Repeat and inline value" styleClass="subheader"></h:outputText>
+ <br/>
+ <h:outputText value="(Shows that you can use ui:repeat inside a cell.)" styleClass="plain"></h:outputText>
<br />
<h:outputLink value="repeat.seam">
16 years
Seam SVN: r9630 - tags.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2008-11-24 14:58:26 -0500 (Mon, 24 Nov 2008)
New Revision: 9630
Added:
tags/JBPAPP_4_3_CP03_FP_CR1a/
Log:
Copied: tags/JBPAPP_4_3_CP03_FP_CR1a (from rev 9629, branches/enterprise/JBPAPP_4_3_FP01)
16 years
Seam SVN: r9629 - trunk/seam-gen/build-scripts.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 14:00:03 -0500 (Mon, 24 Nov 2008)
New Revision: 9629
Modified:
trunk/seam-gen/build-scripts/build-war.xml
trunk/seam-gen/build-scripts/build.xml
Log:
move XCSS into classpath so they work on JBoss AS 5
Modified: trunk/seam-gen/build-scripts/build-war.xml
===================================================================
--- trunk/seam-gen/build-scripts/build-war.xml 2008-11-24 18:28:13 UTC (rev 9628)
+++ trunk/seam-gen/build-scripts/build-war.xml 2008-11-24 19:00:03 UTC (rev 9629)
@@ -212,6 +212,11 @@
<fileset dir="${basedir}/resources">
<include name="**/*.xcss"/>
</fileset>
+ <!-- move XCSS into classpath for now
+ loading from web context only works in JBoss AS 4 -->
+ <fileset dir="${basedir}/view">
+ <include name="**/*.xcss"/>
+ </fileset>
</copy>
<copy todir="${war.dir}/WEB-INF/classes">
Modified: trunk/seam-gen/build-scripts/build.xml
===================================================================
--- trunk/seam-gen/build-scripts/build.xml 2008-11-24 18:28:13 UTC (rev 9628)
+++ trunk/seam-gen/build-scripts/build.xml 2008-11-24 19:00:03 UTC (rev 9629)
@@ -195,6 +195,11 @@
<fileset dir="${basedir}/resources">
<include name="**/*.xcss"/>
</fileset>
+ <!-- move XCSS into classpath for now
+ loading from web context only works in JBoss AS 4 -->
+ <fileset dir="${basedir}/view">
+ <include name="**/*.xcss"/>
+ </fileset>
</copy>
<copy todir="${war.dir}/WEB-INF/classes">
<fileset dir="${basedir}/resources">
16 years
Seam SVN: r9628 - in trunk/src: main/org/jboss/seam/navigation and 3 other directories.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 13:28:13 -0500 (Mon, 24 Nov 2008)
New Revision: 9628
Modified:
trunk/src/main/org/jboss/seam/init/Initialization.java
trunk/src/main/org/jboss/seam/navigation/Pages.java
trunk/src/main/org/jboss/seam/pageflow/Page.java
trunk/src/main/org/jboss/seam/servlet/SeamCharacterEncodingFilter.java
trunk/src/test/unit/org/jboss/seam/test/unit/MailTest.java
Log:
JBSEAM-3747
Modified: trunk/src/main/org/jboss/seam/init/Initialization.java
===================================================================
--- trunk/src/main/org/jboss/seam/init/Initialization.java 2008-11-24 17:43:23 UTC (rev 9627)
+++ trunk/src/main/org/jboss/seam/init/Initialization.java 2008-11-24 18:28:13 UTC (rev 9628)
@@ -438,7 +438,7 @@
}
ScopeType scope = scopeName == null ? ScopeType.UNSPECIFIED : ScopeType.valueOf(scopeName
.toUpperCase());
- boolean autoCreate = "true".equals(factory.attributeValue("auto-create"));
+ boolean autoCreate = Boolean.parseBoolean(factory.attributeValue("auto-create"));
factoryDescriptors.add(new FactoryDescriptor(name, scope, method, value, autoCreate));
}
@@ -457,7 +457,7 @@
{
String installText = component.attributeValue("installed");
boolean installed = false;
- if (installText == null || "true".equals(replace(installText, replacements)))
+ if (installText == null || Boolean.parseBoolean(replace(installText, replacements)))
{
installed = true;
}
@@ -468,9 +468,9 @@
int precedence = precedenceString==null ? Install.APPLICATION : Integer.valueOf(precedenceString);
ScopeType scope = scopeName == null ? null : ScopeType.valueOf(scopeName.toUpperCase());
String autocreateAttribute = component.attributeValue("auto-create");
- Boolean autoCreate = autocreateAttribute==null ? null : "true".equals(autocreateAttribute);
+ Boolean autoCreate = autocreateAttribute==null ? null : Boolean.parseBoolean(autocreateAttribute);
String startupAttribute = component.attributeValue("startup");
- Boolean startup = startupAttribute==null ? null : "true".equals(startupAttribute);
+ Boolean startup = startupAttribute==null ? null : Boolean.parseBoolean(startupAttribute);
String startupDependsAttribute = component.attributeValue("startupDepends");
String[] startupDepends = startupDependsAttribute==null ? new String[0] : startupDependsAttribute.split(" ");
Modified: trunk/src/main/org/jboss/seam/navigation/Pages.java
===================================================================
--- trunk/src/main/org/jboss/seam/navigation/Pages.java 2008-11-24 17:43:23 UTC (rev 9627)
+++ trunk/src/main/org/jboss/seam/navigation/Pages.java 2008-11-24 18:28:13 UTC (rev 9628)
@@ -1199,8 +1199,8 @@
{
page.setNoConversationViewId(Expressions.instance().createValueExpression(noConversationViewIdString, String.class));
}
- page.setConversationRequired("true".equals(element.attributeValue("conversation-required")));
- page.setLoginRequired("true".equals(element.attributeValue("login-required")));
+ page.setConversationRequired(Boolean.parseBoolean(element.attributeValue("conversation-required")));
+ page.setLoginRequired(Boolean.parseBoolean(element.attributeValue("login-required")));
page.setScheme(element.attributeValue("scheme"));
String expiresValue = element.attributeValue("expires");
@@ -1290,8 +1290,8 @@
if ( endConversation!=null )
{
control.setEndConversation(true);
- control.setEndConversationBeforeRedirect( "true".equals( endConversation.attributeValue("before-redirect") ) );
- control.setEndRootConversation( "true".equals( endConversation.attributeValue("root") ) );
+ control.setEndConversationBeforeRedirect( Boolean.parseBoolean( endConversation.attributeValue("before-redirect") ) );
+ control.setEndRootConversation( Boolean.parseBoolean( endConversation.attributeValue("root") ) );
String expression = endConversation.attributeValue("if");
if (expression!=null)
{
@@ -1305,8 +1305,8 @@
if ( beginConversation!=null )
{
control.setBeginConversation(true);
- control.setJoin( "true".equals( beginConversation.attributeValue("join") ) );
- control.setNested( "true".equals( beginConversation.attributeValue("nested") ) );
+ control.setJoin( Boolean.parseBoolean( beginConversation.attributeValue("join") ) );
+ control.setNested( Boolean.parseBoolean( beginConversation.attributeValue("nested") ) );
control.setPageflow( beginConversation.attributeValue("pageflow") );
control.setConversationName( beginConversation.attributeValue("conversation") );
String flushMode = beginConversation.attributeValue("flush-mode");
@@ -1500,7 +1500,7 @@
{
param.setValidatorValueExpression(Expressions.instance().createValueExpression(validatorExpression));
}
- param.setRequired( "true".equals( element.attributeValue("required") ) );
+ param.setRequired( Boolean.parseBoolean( element.attributeValue("required") ) );
return param;
}
Modified: trunk/src/main/org/jboss/seam/pageflow/Page.java
===================================================================
--- trunk/src/main/org/jboss/seam/pageflow/Page.java 2008-11-24 17:43:23 UTC (rev 9627)
+++ trunk/src/main/org/jboss/seam/pageflow/Page.java 2008-11-24 18:28:13 UTC (rev 9628)
@@ -61,7 +61,7 @@
if ( endConversationElement!=null )
{
isConversationEnd = true;
- isConversationEndBeforeRedirect = "true".equals( endConversationElement.attributeValue("before-redirect") );
+ isConversationEndBeforeRedirect = Boolean.parseBoolean( endConversationElement.attributeValue("before-redirect") );
processToCreate = endConversationElement.attributeValue("create-process");
}
Element endTaskElement = pageElement.element("end-task");
@@ -70,7 +70,7 @@
isTaskEnd = true;
transition = endTaskElement.attributeValue("transition");
}
- redirect = "true".equals( pageElement.attributeValue("redirect") );
+ redirect = Boolean.parseBoolean( pageElement.attributeValue("redirect") );
if ( pageElement.element("redirect")!=null )
{
redirect = true;
Modified: trunk/src/main/org/jboss/seam/servlet/SeamCharacterEncodingFilter.java
===================================================================
--- trunk/src/main/org/jboss/seam/servlet/SeamCharacterEncodingFilter.java 2008-11-24 17:43:23 UTC (rev 9627)
+++ trunk/src/main/org/jboss/seam/servlet/SeamCharacterEncodingFilter.java 2008-11-24 18:28:13 UTC (rev 9628)
@@ -22,7 +22,7 @@
{
super.init(config);
setEncoding( config.getInitParameter("encoding") );
- setOverrideClient( "true".equals( config.getInitParameter("overrideClient") ) );
+ setOverrideClient( Boolean.parseBoolean( config.getInitParameter("overrideClient") ) );
}
Modified: trunk/src/test/unit/org/jboss/seam/test/unit/MailTest.java
===================================================================
--- trunk/src/test/unit/org/jboss/seam/test/unit/MailTest.java 2008-11-24 17:43:23 UTC (rev 9627)
+++ trunk/src/test/unit/org/jboss/seam/test/unit/MailTest.java 2008-11-24 18:28:13 UTC (rev 9628)
@@ -162,7 +162,7 @@
// JNDI
}
- assert "true".equals(session.getProperty("mail.smtp.auth"));
+ assert Boolean.parseBoolean(session.getProperty("mail.smtp.auth"));
// TODO Check authentication
@@ -337,7 +337,7 @@
// JNDI
}
- assert "true".equals(session.getProperty("mail.smtps.auth"));
+ assert Boolean.parseBoolean(session.getProperty("mail.smtps.auth"));
assert session.getProperty("mail.smtp.auth") == null;
// TODO Check authentication
16 years
Seam SVN: r9627 - in trunk: ui/src/main/java/org/jboss/seam/ui/renderkit and 1 other directories.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-11-24 12:43:23 -0500 (Mon, 24 Nov 2008)
New Revision: 9627
Modified:
trunk/src/wicket/org/jboss/seam/wicket/ModelValidator.java
trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java
trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java
Log:
JBSEAM-3746
Modified: trunk/src/wicket/org/jboss/seam/wicket/ModelValidator.java
===================================================================
--- trunk/src/wicket/org/jboss/seam/wicket/ModelValidator.java 2008-11-24 17:43:05 UTC (rev 9626)
+++ trunk/src/wicket/org/jboss/seam/wicket/ModelValidator.java 2008-11-24 17:43:23 UTC (rev 9627)
@@ -1,6 +1,5 @@
package org.jboss.seam.wicket;
-import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.validation.IValidatable;
import org.apache.wicket.validation.IValidationError;
Modified: trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java 2008-11-24 17:43:05 UTC (rev 9626)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/CacheRendererBase.java 2008-11-24 17:43:23 UTC (rev 9627)
@@ -1,19 +1,18 @@
package org.jboss.seam.ui.renderkit;
-import org.jboss.seam.cache.CacheProvider;
-import org.jboss.seam.log.LogProvider;
-import org.jboss.seam.log.Logging;
-import org.jboss.seam.ui.component.UICache;
-import org.jboss.seam.ui.util.cdk.RendererBase;
+import java.io.IOException;
+import java.io.StringWriter;
+import java.util.Calendar;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
-import java.io.IOException;
-import java.io.StringWriter;
-import java.util.Calendar;
-import java.util.GregorianCalendar;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
+import org.jboss.seam.ui.component.UICache;
+import org.jboss.seam.ui.util.cdk.RendererBase;
+
public class CacheRendererBase extends RendererBase {
private static final LogProvider log = Logging.getLogProvider(UICache.class);
Modified: trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java 2008-11-24 17:43:05 UTC (rev 9626)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java 2008-11-24 17:43:23 UTC (rev 9627)
@@ -13,7 +13,6 @@
import javax.faces.validator.MethodExpressionValidator;
import javax.faces.webapp.UIComponentELTag;
-import org.jboss.seam.log.Log;
import org.jboss.seam.log.LogProvider;
import org.jboss.seam.log.Logging;
16 years