Commit Graph

2340 Commits

Author SHA1 Message Date
Spring Buildmaster
b0e0911232 Release version 2.3.4.BUILD 2014-05-29 19:55:22 -07:00
Rossen Stoyanchev
665033839a Fix issue in FlowExternalContext
This is a follow-on fix for commit:
034dbf12fe

Issue: SWF-1634
2014-05-29 22:42:18 -04:00
Rossen Stoyanchev
034dbf12fe Fix JSF < 2.2 compatibility issues
Issue: SWF-1634
2014-05-22 16:43:15 -04:00
Rossen Stoyanchev
3d8330f1cb Fix JSF < 2.1 compatibility issue
Issue: SWF-1622
2014-05-22 16:04:49 -04:00
Rossen Stoyanchev
103829c2ca Move xsl file under src/main/resources
Issue: SWF-1621
2014-05-22 14:48:16 -04:00
Rossen Stoyanchev
0636499121 Move state saving to getUserEventState()
Update JsfView so that state saving no longer occurs during
processUserEvent(). This is required to ensure that Mojarra's
StateContext.release(...) method is not called too early.

Prior to Mojarra 2.1.16 multiple calls to saveView had no side effects,
but the fix to JAVASERVERFACES-2609 changed this behavior.

In order to retain the fix for SWF-1577 the saveState() method is now
called from getUserEventState(). This should ensure that the
StateContext$AddRemoveListerner is still removed, even when WebFlow
bypasses the usual state saving for certain flow redirects.

Issue: SWF-1631
2014-05-22 14:23:05 -04:00
Rossen Stoyanchev
840a41464d Ensure spring-js-resources -sources and -javadoc jars
Apparently Maven central requires them:
https://docs.sonatype.org/display/Repository/Central+Sync+Requirements

Bintray validates that rule.
2014-01-24 16:46:42 -05:00
Rossen Stoyanchev
cce5244722 Move xsd files under src/main/resources 2014-01-24 09:11:43 -05:00
Rossen Stoyanchev
c896ca8417 Polish 2014-01-24 08:57:50 -05:00
Rossen Stoyanchev
23a64d3a4a Upgrade to Tiles 2.2.2 (min for Spring Frmwrk 4) 2014-01-23 16:04:51 -05:00
Rossen Stoyanchev
0d99f72391 Upgrade to JSF/Mojarra 2.2
Issue: SWF-1613
2014-01-21 21:07:12 -05:00
Rossen Stoyanchev
25ac1cc797 Upgrade to Spring Security 3.2.0 2013-12-31 13:46:03 -05:00
Rossen Stoyanchev
f6bfa15565 Polish 2013-12-18 14:43:46 -05:00
Rossen Stoyanchev
42863a3b62 Upgrade to Spring Framework 4.0
The build now compiles with Servlet API 3.0 and JPA 2.0 both of which
are required with Spring Framework 4.0. However there are no hard
dependencies in Web Flow on either.

Issue: SWF-1600
2013-12-18 14:36:54 -05:00
Rossen Stoyanchev
ac57904bf8 Fix location of overview.html 2013-12-16 16:42:16 -05:00
Rossen Stoyanchev
cc4506d921 Replace Ant build with gradle
The master branch has been using Gradle for a while. The expectation
at the time was that minor maintenance releases can be done on 2.3.x
with the existing Ant build. However that is no longer possible to
perform a release and we need to perform a 2.3.3 release.

The change mirrors similar changes on the master branch:

4e81930b72
50a1cf1def

Issue: SWF-1615
2013-12-16 16:29:42 -05:00
Rossen Stoyanchev
9915b5b6aa Remove Eclipse settings from samples 2013-01-31 18:03:11 -05:00
Rossen Stoyanchev
1fc7c6d689 Update release version for 2.3.3.BUILD-SNAPSHOT 2013-01-31 17:38:11 -05:00
Rossen Stoyanchev
b270880d81 Release version 2.3.2 2013-01-31 17:12:28 -05:00
Rossen Stoyanchev
8974263f8c Add reference guide section on JSF file uploads
Issue: SWF-1482
2013-01-30 09:27:34 -05:00
Phillip Webb
9f17ee57cc Fix issue with RichFaces file upload
Change JsfView.userEventQueued() to check for 'javax.faces.ViewState'
via the FacesContext rather than the RequestContext. This allows
potential multi-part request submissions to be processed by JSF rather
than Spring.

Issue: SWF-1482
2013-01-29 10:32:38 -05:00
Rossen Stoyanchev
15bda17902 Replace ${ with #{ in spring-webflow schema comments
Issue: SWF-1555
2013-01-28 17:58:46 -05:00
Rossen Stoyanchev
3a1f475f02 Add support for spring:eval JSP tag
Issue: SWF-1462
2013-01-28 17:58:41 -05:00
Phillip Webb
64ef54a2e7 Additional FacesConversionService constructor
Add the inherited constructor allowing a delegate ConversionService
to be used

Issue: SWF-1562
2013-01-28 17:24:18 -05:00
Rossen Stoyanchev
a766f1544e Upgrade to Spring Framework 3.2.1 2013-01-28 11:44:47 -05:00
Rossen Stoyanchev
a10c0d683c Upgrade Spring Security and switch to snapshot label
Issue: SWF-1581
2012-12-21 15:37:58 -05:00
Rossen Stoyanchev
43b3862854 Upgrade to Spring Framework 3.2
Issue: SPR-1580
2012-12-21 11:56:36 -05:00
Phillip Webb
09be84ae5f Skip iteration delivering PostRestoreStateEvent
Recent updates to Mojarra added a SKIP_ITERATION hint when delivering
the PostRestoreStateEvent.  Web Flow should follow the same logic.

Issue: SWF-1549
Backport-Commit: cd3d8be819
2012-11-14 18:05:39 -08:00
Rossen Stoyanchev
540aa090d3 Avoid releasing FacesContext in PropertyAccessor
Issue: SPR-1558
2012-10-23 19:14:17 -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
Rossen Stoyanchev
dae30d0436 Update README.md 2012-01-06 16:30:54 -05:00
Rossen Stoyanchev
e5f17df95b Increment version to 2.3.1.BUILD-SNAPSHOT. 2011-12-29 13:24:39 -05:00
Rossen Stoyanchev
63bc6f2660 Add missing (empty) source folders. 2011-12-29 10:51:20 -05:00