Commit Graph

2320 Commits

Author SHA1 Message Date
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
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
Rossen Stoyanchev
b685f11050 SWF-1456 Update xsd versions in reference doc 2011-06-30 10:53:22 +00:00
Rossen Stoyanchev
2bd225692f SWF-1479 Remove jboss repository from booking-mvc sample 2011-06-30 10:45:11 +00:00
Rossen Stoyanchev
b3b466a088 SWF-1459 Ensure new FlowExecution instances are created with own copy of execution attributes map. 2011-06-30 10:04:09 +00:00
Rossen Stoyanchev
5b0cf929da SWF-1461 NPE when rendering a JSF view as part of non-webflow request. 2011-06-30 09:47:13 +00:00
Rossen Stoyanchev
0c69e6803e Fix publish-documentation targets to reflect change in host name to static.springsource.org 2011-02-28 18:08:59 +00:00
Rossen Stoyanchev
fd62cbf5fa Update release notes for 2.3.0 release 2011-02-28 14:22:53 +00:00
Rossen Stoyanchev
f828e94eb2 Upgrade PrimeFaces to 2.2.1 2011-02-28 11:51:59 +00:00
Rossen Stoyanchev
1f988e0c57 Update template.mf files to Spring 3.0.5.RELEASE 2011-02-28 11:39:58 +00:00
Rossen Stoyanchev
3f8d0c8ba0 Update dependencies in web flow modules to Spring 3.0.5 2011-02-28 11:33:39 +00:00
Rossen Stoyanchev
0cc2016a29 SWF-1447 2.3 documentation updates 2011-02-28 11:06:13 +00:00
Rossen Stoyanchev
34dbdb4322 SWF-1447 2.3 documentation updates 2011-02-28 10:56:37 +00:00
Rossen Stoyanchev
ed76ec0485 SWF-1424 Add Web Flow implementation of PartialViewContext to support render action in JSF 2 applications. 2011-02-20 21:32:19 +00:00
Rossen Stoyanchev
003377d6e1 SWF-1415 Add support for handling resource requests 2011-02-11 18:24:51 +00:00
Rossen Stoyanchev
780ff8f225 SWF-991 Replace ajax-driven flow attribute with mode=embedded flow input attribute. 2011-02-04 16:57:21 +00:00
Rossen Stoyanchev
5cb3ef0067 SWF-991, SWF-1413 - Add ajax-driven flow attribute and redirect-in-same-view-state flow execution attribute 2011-01-31 00:32:00 +00:00
Rossen Stoyanchev
b0e64468ae SWF-1446 Make it easy to install Maven-central style dependencies local dependencies 2011-01-24 11:15:17 +00:00
Rossen Stoyanchev
2f1ed2015f SWF-1446 Make it easy to install Maven-central style dependencies locally 2011-01-24 11:14:29 +00:00
Rossen Stoyanchev
e4cd0e0bb6 SWF-1437 Fix thread-safety issue with SpringELExpression class 2010-12-14 11:35:17 +00:00
Rossen Stoyanchev
1683f8c891 SWF-1435 Add top level pom.xml and Maven settings for verifying Maven configuration 2010-12-07 16:09:18 +00:00