Commit Graph

2339 Commits

Author SHA1 Message Date
Rossen Stoyanchev
a770fa3492 Rename a couple of test classes to match convention 2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
29445b6a73 Add Eclipse import script based on Gradle build 2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
4146871862 Add spring-js-resources to Gradle build 2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
50a1cf1def Add reference docs tasks to Gradle build
- Move spring-webflow-reference to src/reference
- Upgrade to Docbook 5
- Apply docbook plugin
- Add tasks for generating distribution zip files
2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
4e81930b72 Add Gradle build
- Add gradle build script
- Remove spring-build/
- Remove build-spring-webflow/
- Remove ivy.xml, pom.xml, template.mf
- Remove eclipse  metadata
- Remove RichFacesAjaxHandler.java
- Create src/dist and add changelog.txt, readme.txt

Dependency changes:
- EBR dependency -> Maven-central dependencies
- el-api 1.0 -> 2.2.0
- ognl 2.6.9 -> 2.6.11
- org.jboss.el -> tomcat-jasper-el 7.0.27
2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
b4847ef49b Remove spring-webflow-samples directory
The new home for the samples will be:
https://github.com/SpringSource/spring-webflow-samples
2012-05-25 16:54:15 -04:00
Phillip Webb
bcb5a8d2a7 Revert use of putAll for JSF spec compliance
Issues: SWF-1532
2012-04-12 17:48:49 -07:00
Phil Webb
93912002fa Merge pull request #7 from philwebb/SWF-1532-3
Deprecate CompositeIterator in favor Spring core.
    
Deprecate existing class and refactor internal code to use the org.spring.util version that 
has been available since Spring 3.0
    
Issues: SWF-1532
2012-04-12 09:08:24 -07:00
Phillip Webb
b7342dbc20 Deprecate CompositeIterator in favor Spring core.
Deprecate existing class and refactor internal code to use the org.spring.util version that 
has been available since Spring 3.0

Issues: SWF-1532
2012-04-12 09:05:12 -07:00
Rossen Stoyanchev
22289e4bf3 Polish
Issues: SWF-1532
2012-04-06 10:36:49 -04:00
Phillip Webb
54a300e009 Change signatures to make use of Java 5 varargs
Issues: SWF-1532
2012-04-05 16:23:38 -07:00
Phillip Webb
53384adca9 Update dates in copyright notice to 2004-2012
Issues: SWF-1532
2012-04-05 16:02:01 -07:00
Phillip Webb
34f4837ebd Replace use of Iterator with Java 5 foreach loops
Issues: SWF-1532
2012-04-05 15:52:09 -07:00
Phillip Webb
22b018e95a Make use of Java 5 auto boxing
Reviewed and replaced when possible:
- new Integer
- intValue()
- new Boolean
- booleanValue()
- Boolean.TRUE
- Boolean.FALSE
- new Long
- longValue()

Issues: SWF-1532
2012-04-05 14:07:58 -07:00
Phillip Webb
d3ff99c239 Remove backport concurrency code
Backport concurrency code is no longer needed as JDK 1.5 is now a minimum requirement.  Removing JdkBackportConcurrentConversationLock has also 
removed the need for the package scoped ConversationLockFactory interface, 
this has been replaced with a factory method in
SessionBindingConversationManager.

Issues: SWF-1532
2012-04-05 12:24:12 -07:00
Phillip Webb
ca20e95b98 Remove all calls to JdkVersion
Java 5 is now a minimum requirement of Web Flow

Issues: SWF-1532
2012-04-05 11:02:38 -07:00
Phillip Webb
58936414e4 Replace StringBuffe with StringBuilder
Issues: SWF-1532
2012-04-05 10:48:49 -07:00
Phillip Webb
3f1c40188c Update dates in copyright notice to 2004-2012
Issues: SWF-1532
2012-04-05 10:39:26 -07:00
Phil Webb
4d008f3f09 Refactor code to use Java 5 features
- Apply and use Generics
- Remove JdkVersion.isAtLeastJava15() conditionals
- Replace iterator loops with foreach syntax
- Switch on warning in eclipse

Issues: SWF-1532
2012-03-29 21:02:07 -07:00
Rossen Stoyanchev
619249b52b Merge branch '2.3.x' 2012-03-27 18:02:45 -04:00
Rossen Stoyanchev
bca605d24a Spring Web Flow 2.3.1 release 2012-03-27 15:59:02 -04:00
Rossen Stoyanchev
ce8a12ad40 Update repository information in docs 2012-03-27 14:09:51 -04:00
Rossen Stoyanchev
dddcf7a258 Upgrade to Spring 3.1.1 2012-03-26 18:20:09 -04:00
Rossen Stoyanchev
8aec740bd8 Updates to readme, javadoc, and sample poms.
Issues: SWF-1507
2012-03-26 16:27:53 -04:00
Rossen Stoyanchev
b82884aff2 Correct spring-binding/.classpath to use IVY_CACHE 2012-03-26 12:36:24 -04:00
Rossen Stoyanchev
3b1af34482 Check request param to recognize JSF 2 Ajax requests
Previously we checked the "Faces-Request" header only.
Now we try to delegate the call to
PartialViewContext.isAjaxRequest() first. If a FacesContext
is unavailble for some reason we also check the
"javax.faces.partial.ajax" request parameter.
2012-03-14 12:27:04 -04:00
Rossen Stoyanchev
da15ce8138 Upgrade sample to PrimeFaces 3.1.1
Issues: SWF-1523
2012-03-07 05:30:57 -05:00
Phil Webb
27cd5cca31 Add support for PostRestoreStateEvent
A PostRestoreStateEvent should be delivered whenever a JSF view is
restored. Typically we rely on JSF to generate required events but
in this case since WebFlow handles the RESTORE_VIEW phase itself,
we need to deliver this event ourselves.

Issues: SWF-1500
2012-03-06 17:20:55 -05:00
Rossen Stoyanchev
8e1aa91b40 JSF view root to survive redirect in same state
For JSF 2.0.x Spring Web Flow the view root could not be preserved
across redirects in the same state (e.g. following validation)
because a JSF state saving listener held on to the FacesContext,
which Web Flow releases before the redirect.

This issue was addressed in JSF 2.1
http://java.net/jira/browse/JAVASERVERFACES-1604
which means we can allow the view root to survive the redirect.

Note that the behavior can also be controlled with the
redirect-in-same state flow execution attribute.

Issues: SWF-1502
2012-02-29 15:36:14 -05:00
Rossen Stoyanchev
63151acb8d Minor fix in FlowPartialViewContext
The fix ensures that getRenderIds returns a mutable collection as
stated in the contract for the method in PartialViewContext.

Issues: SWF-1480
2012-02-29 12:21:07 -05:00
Rossen Stoyanchev
3430771c30 Minor fixes
- Add versions to schema references in samples
- Documentation fix
- Remove unused package import
2012-02-28 18:59:32 -05:00
Rossen Stoyanchev
3a36fedb5b Make AbstractMvcView.shouldValidate() protected
Issues: SWF-1458
2012-02-28 18:25:18 -05:00
Rossen Stoyanchev
d616e6bed8 Fix "embedded" mode to be flow session local.
The "embedded" mode flag, which is used to suppress redirects so
that a flow can be embedded on a surrounding page, was previously
stored as a flow execution attribute. The idea was that a flow can
be launched in embedded mode simply by passing a flow input rather
than having that decision fixed through a static flow definition.

However flow execution attributes are not a suitable place to store
the embedded mode flag since they are globally shared. Instead this
information is now stored a flow session attribute, which means that
each individual session (including subflows) can have be in embedded
mode or not without affecting others
2012-02-28 17:59:57 -05:00
Rossen Stoyanchev
df649084ab Fix for bean validation messages in BindingResult
Previously Web Flow's BindingResult implementation distinguished
object from field-level errors by checking if the source of the
error is null or otherwise a String. However, class-level bean
validation errors have a field source represented by an empty
String. After this change object and field-level errors are
recognized by checking for String-based field source that is
neither null nor empty.

This commit also contains a fix for spring-faces tests where
in JSF 2.1 the presence of an unreleased FacesContext may
cause some tests to fail.
2012-02-28 13:27:16 -05:00
Rossen Stoyanchev
85d8d73c1d Update Jsf2FlowFacesContext.isValidationFailed()
Previously isValidationFailed() merely delegated to the wrapped
FacesContext ignoring any errors that may have been added to
Web Flow's MessageContext. After the change isValidationFailed()
checks and returns true if the MessageContext contains errors
or otherwise it delegates.

Issues: SWF-1490
2012-02-28 10:47:47 -05:00
Rossen Stoyanchev
f764120279 Upgrade JSF Mojarra to version 2.1.7 2012-02-27 17:06:33 -05:00
Phil Webb
962b123d73 Ensure required test directory is created in GIT and remove javadoc refs to missing home dir 2012-01-18 17:57:36 -05:00
Phil Webb
d960e85250 Update primefaces repository 2012-01-18 17:57:27 -05:00
Phil Webb
6a49144843 Ensure required test directory is created in GIT and remove javadoc refs to missing home dir 2012-01-17 17:00:41 -08:00
Phil Webb
e11b92f1e4 Update primefaces repository 2012-01-17 16:12:21 -08:00
Rossen Stoyanchev
dae30d0436 Update README.md 2012-01-06 16:30:54 -05:00
Rossen Stoyanchev
4b92a8cd55 More README updates 2012-01-06 16:27:33 -05:00
Rossen Stoyanchev
1946186569 More README updates 2012-01-06 16:25:11 -05:00
Rossen Stoyanchev
f163734f29 More README updates 2012-01-06 16:16:24 -05:00
Rossen Stoyanchev
739cde3383 Update README.md 2012-01-06 16:04:03 -05:00
Rossen Stoyanchev
316373cf7b Replace readme.txt with README.md 2011-12-29 16:09:42 -05:00
Rossen Stoyanchev
e5f17df95b Increment version to 2.3.1.BUILD-SNAPSHOT. 2011-12-29 13:24:39 -05:00
Rossen Stoyanchev
dc5aa386fa Increment version to 2.4.0.BUILD-SNAPSHOT. 2011-12-29 13:09:27 -05:00
Rossen Stoyanchev
63bc6f2660 Add missing (empty) source folders. 2011-12-29 10:51:20 -05:00
Rossen Stoyanchev
2f44e7dd57 Add spring-build 2.5.2
spring-build was previously included via an svn:external. Adding
directly to the source tree under Git to avoid the need for a git
submodule.

In order to build from any earlier commit, it is recommended to
export spring-build or symlink an existing copy into the root
of the spring-framework project and then build normally.

$ svn export https://src.springsource.org/svn/spring-build/tags/project-build-2.5.2 spring-build
2011-12-27 20:03:21 -05:00