Commit Graph

286 Commits

Author SHA1 Message Date
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
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
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
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
a10c0d683c Upgrade Spring Security and switch to snapshot label
Issue: SWF-1581
2012-12-21 15:37:58 -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
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
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
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
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
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
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
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
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
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
155649fd40 SWF-1407 Update mvc.JsfView to re-use FacesContext if available such as when used from Web Flow 2010-10-27 08:48:02 +00:00
Rossen Stoyanchev
e70bca23fb SWF-1406 Fix regression in iterating faces messages 2010-10-27 08:01:40 +00:00
Rossen Stoyanchev
bc2ca0351c SWF-1402 Add missing delegation methods to FlowViewResponseStateManager and add check for Web Flow request i FlowRenderKit 2010-10-01 09:56:54 +00:00
Rossen Stoyanchev
7b2ab7587c Fixes after testing with Apache MyFaces 2 2010-09-21 12:10:47 +00:00
Rossen Stoyanchev
a89f24d954 Fix test setup issue 2010-09-15 08:47:46 +00:00
Rossen Stoyanchev
5d158abce7 SWF-1375 Add <faces:resources /> element, JsfFlowHandlerAdapter, and provide useful error message when FacesContext is null. 2010-09-14 12:26:24 +00:00
Rossen Stoyanchev
9e2137d3c6 SWF-1379 Remove dependency on the Portlet bridge for JSF and provide basic support within Web Flow for working Portlets and JSF. Update portlet samples 2010-09-13 14:57:14 +00:00
Rossen Stoyanchev
7fbc016215 SWF-1333 Create JSF 1.2 and 2.0 versions of the Spring Security tag library and remove springsecurity.taglib.xml 2010-09-02 17:56:16 +00:00
Rossen Stoyanchev
a5798b8ff7 Minor fix to ensure compilation with Java 1.5 JDK 2010-08-31 23:12:07 +00:00
Rossen Stoyanchev
d9fa61c892 SWF-1333 Add Spring Security facelets tag library 2010-08-31 10:12:15 +00:00
Rossen Stoyanchev
f3e613e7ad SWF-1383 Fix issue with processing during non-SWF requests 2010-08-25 15:19:19 +00:00
Rossen Stoyanchev
2fa0c6b930 SWF-1378 Create FlowResourceResolver for JSF 1.2 and 2.0 environments 2010-08-25 15:13:43 +00:00
Rossen Stoyanchev
6157e3dd5b SWF-1313 Honor disabled attribute by rendering a commandLink as a span element 2010-08-03 23:04:55 +00:00
Rossen Stoyanchev
ce99354c42 SWF-1365 Missed a couple of files in last checkin. 2010-08-03 23:01:57 +00:00
Rossen Stoyanchev
6a56e9678a SWF-1365 Add support for partial state saving in JSF 2, ensure one FacesContext instance per request, avoid redirect by default when remaining in same view state (originally introduced in commit point 2365. 2010-08-03 11:15:20 +00:00
Rossen Stoyanchev
fe9229cf15 SWF-1367 Add support for JSF 2 Ajax requests, update booking-faces sample (JSF 2 based Ajax, jsr-303 validation), add chained delegation to AjaxHandlers, other miscellaneous improvements 2010-07-28 12:56:24 +00:00
Rossen Stoyanchev
507fec3edf SWF-1366 Add RequestHandler for JSF resource requests and update sample config 2010-07-22 11:39:32 +00:00
Rossen Stoyanchev
98dbf4b5a8 SWF-1263 Split out a JSF 2 specific version of FlowFacesContext 2010-07-14 10:18:47 +00:00
Rossen Stoyanchev
50cd595762 SWF-1261 Move methods that belong to FlowApplication from Jsf2FlowApplication 2010-06-24 16:29:11 +00:00
Rossen Stoyanchev
f9f9fd094b SWF-1243 Comprehensive update to spring-faces for JSF 2.0 support 2010-06-02 19:48:10 +00:00
Rossen Stoyanchev
dcf9ad24b3 SWF-1245 Invoke after phase listeners in reverse order 2010-06-02 05:55:04 +00:00
Rossen Stoyanchev
0f84b153b5 SWF-1194 Upgrade to JSF 2 2010-05-17 10:23:15 +00:00
Rossen Stoyanchev
de75aefc63 SWF-1234 Integration with Spring 3 type conversion 2010-05-04 11:12:32 +00:00
Rossen Stoyanchev
7372b31184 SWF-1136 Make Spring EL the default expression language used. The current implementation is functionally equivalent except it ignores the configured Web Flow ConversionService and uses the Spring 3 conversion system instead. 2010-04-27 14:45:39 +00:00
Rossen Stoyanchev
5c5d1c322f SWF-1187 Applied patch attached to JIRA issue, polished unit test a little, and did some testing. 2010-04-07 18:52:27 +00:00
Jeremy Grelle
fe86e080c1 SWF-1133 - Endless Redirects happens when more then one request Parameter is present on redirect 2009-08-05 22:37:19 +00:00
Jeremy Grelle
688d3f7f4e SWF-1115 - Id handling of Spring AjaxViewRoot causes problems to RichFaces AjaxViewRoot 2009-08-03 22:05:12 +00:00
Jeremy Grelle
534c0c06da SWF-1114 - Consider making ViewActionStateHolder and ViewRootHolder put in flash scope Serializable 2009-06-24 22:12:43 +00:00
Jeremy Grelle
65a932c766 SWF-1112 - JSF 1.2-specific call to StateManager.saveView should be replaced with saveSerializedView for JSF 1.1 compatibiliy 2009-04-23 13:58:42 +00:00