Commit Graph

2307 Commits

Author SHA1 Message Date
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
Rossen Stoyanchev
6d035c4299 SWF-1414 Switch samples to Maven central dependencies, Maven Eclipse plugin, and provide top level pom in samples directory. 2010-12-07 12:18:47 +00:00
Rossen Stoyanchev
3a97ce08bf SWF-1408 Remove use of persistence context in samples 2010-12-06 12:13:34 +00:00
Rossen Stoyanchev
55db452771 SWF-1421 Move dojo.require to the ElementDecoration constructor to ensure that happens ahead of dojo.addOnLoad() 2010-12-06 11:01:22 +00:00
Rossen Stoyanchev
8a4038ac13 SWF-1432 Make sure content type is set when sending a redirect instruction during JSF Ajax request 2010-12-03 14:51:45 +00:00
Rossen Stoyanchev
a3b696e7a6 SWF-759 Enable ability to configure a custom ConversationManager 2010-12-03 12:47:04 +00:00
Rossen Stoyanchev
42bba0094c SWF-1416 Update JavaDoc and schema doc with regards to setting max-snapshots=0 2010-12-02 19:46:57 +00:00
Rossen Stoyanchev
df7f3406a0 SWF-1419 Add ability to plug in custom Spring Validator via FlowBuilderServices to support JSR-303 validation 2010-12-02 13:54:00 +00:00
Rossen Stoyanchev
8928b6d7ff SWF-1247 Fix issues relating error codes in MessageContextErrors 2010-12-01 12:45:34 +00:00
Rossen Stoyanchev
41b5680b56 SWF-360 Update docs for flow managed persistence propagation 2010-10-29 08:15:20 +00:00
Rossen Stoyanchev
a82ca929ee SWF-360 Add flow managed persistence context propagation 2010-10-28 17:21:12 +00:00
Rossen Stoyanchev
aadddb0918 Update versions to 2.3.0 throughout 2010-10-28 16:43:41 +00:00
Rossen Stoyanchev
0bb8cd260b Create Spring Web Flow 2.3 branch 2010-10-28 16:35:35 +00:00
Rossen Stoyanchev
74299358d1 Update changelog for 2.2.1 release 2010-10-28 15:07:00 +00:00