Commit Graph

346 Commits

Author SHA1 Message Date
Rossen Stoyanchev
3a165ea879 Remove dependency on internal MyFaces class
Issue: SWF-1712
2017-12-15 15:48:55 -05:00
Rossen Stoyanchev
9595f7f83c Improve one time only runtime check if MyFaces is in use
Issue: SWF-1705
2017-07-31 13:32:10 +02:00
Rossen Stoyanchev
ae193ac6f7 One time only runtime check if MyFaces is in use
Issue: SWF-1698
2017-05-25 14:57:04 -04:00
Rossen Stoyanchev
7ade1b8c81 Catch up with the latest Spring Framework 5 snapshot 2017-02-02 14:02:15 -05:00
Rossen Stoyanchev
f7a81e695b Fix Javadoc error 2017-01-06 17:36:14 -05:00
Rossen Stoyanchev
ac03032fd4 Purge deprecated classes
Issue: SWF-1694
2017-01-06 16:47:57 -05:00
Rossen Stoyanchev
4fb1b99a8b Dependency updates
Spring Security 4.1.0  -> 4.2.1
Commons Logging 1.1.1  -> 1.2
Log4j           1.7.22 -> 2.7
Servlet API     3.0.1  -> 3.1.0
Tiles           3.0.5  -> 3.0.7
JUnit           4.1.11 -> 4.1.12

Issue: SWF-1692
2017-01-06 16:47:19 -05:00
Rossen Stoyanchev
3a0857496e Remove remaining Portlet references
Issue: SWF-1692
2017-01-06 16:47:06 -05:00
Rossen Stoyanchev
5b0df65be4 Fold spring-js + spring-js-tiles3 into spring-webflow
Issue: SWF-1693
2017-01-06 16:46:46 -05:00
Rossen Stoyanchev
deeaeab894 Shortest path to tests running with Spring Framework 5
Upgrade to Java 8+

Remove Portlet, Tiles2, and Hibernate 3 + 4 support

Issue: SWF-1692
2017-01-06 16:44:58 -05:00
Rossen Stoyanchev
e3f220bbae Add Mojarra present checks
For cases where isMyFacesInUse cannot properly detect due to issues in
dependent libraries (e.g. Tomahawk) we also check if Mojarra is
even present to strengthen those checks.

Issue: SWF-1687
2016-06-24 09:42:12 -04:00
Rossen Stoyanchev
b8ab19a467 Also check if MyFaces in use at runtime
Issue: SWF-1670
2016-06-17 11:38:52 -04:00
Rossen Stoyanchev
e03a71f64b Polish JsfRuntimeInformation 2016-06-17 11:27:16 -04:00
Rossen Stoyanchev
1ae4db6240 Fix issue with JSF 2.0 compatibility
Issue: SWF-1684
2016-06-17 06:41:54 -04:00
Rossen Stoyanchev
8a177518fa Ensure redirect URL is encoded
Issue: SWF-1686
2016-06-16 17:31:56 -04:00
Rossen Stoyanchev
2aa99ec0d0 isPostback preserved across redirect before render
The JSF com.sun.faces.facelets.tag.jsf.ComponentSupport in 2.2.7
started using FacesContext#isPostBack to check if a new component
tree is being built prior to attempting to find a child component.

In Web Flow where we redirect prior to rendering, and hence lose
the value of isPostback (because ResponseStateManagerImpl no longer
finds the parameter with the view state), it causes components to
be re-created and lose their local values.

This change overrides isPostback in FlowFacesContext in order to
return true in cases where the UIViewRoot has been restored from
flash scope and is fully built.

Issue: SWF-1645
2015-08-06 15:59:41 -04:00
Rossen Stoyanchev
764e965dcc Remove dependency on CompositeComponentStackManager
Issue: SWF-1667
2015-08-06 15:58:12 -04:00
Rossen Stoyanchev
f860d9e17a Improve isMyFacesInUse check
The check now accounts for the possibility of a FacesContextFactory
being wrapped.

Issue: SWF-1650
2015-08-06 15:51:05 -04:00
Rossen Stoyanchev
7c4d2e25ad Fix check for MyFaces
Issue: SWF-1650, SWF-1656
2015-06-04 16:21:41 -04:00
Rossen Stoyanchev
b51b30ed01 Upgrade to Spring Security 4 and Spring Framework 4.1
Issue: SWF-1657, SWF-1663
2015-06-04 15:18:28 -04:00
Andy Wilkinson
78e02ea6c1 Upgrade to Mojarra 2.2.10
Mojarra 2.2.10 generates responses that begin with an XML
declaration:

<?xml version='1.0' encoding='utf-8'?>

This change broke the expectation in JsfAjaxHandlerTests's
testSendAjaxRedirect. The test has been updated to expect the
XML declaration.

ResourcesBeanDefinitionParserTests has been updated to set up and
tear down the mock JDF infrastructure. This ensures that it does not
leave any side-effects that cause subsequent tests to fail on some
platforms.
2015-03-03 16:23:00 +00:00
Rossen Stoyanchev
9033b1f4d9 Refine check for use of MyFaces
Issue: SWF-1641
2014-09-04 15:56:06 -04:00
Rossen Stoyanchev
1941e65274 Polish and minor fix
The visitHints in publishPostRestoreStateEvent was always null hence
in JSF 2.1+ they wouldn't get passed to createVisitContext.
2014-08-01 10:31:13 -04:00
Rossen Stoyanchev
cd6f4104c2 Fix issue with evaluation of #{cc.XXX} expressions
Issue: SWF-1639
2014-08-01 10:17:08 -04:00
Rossen Stoyanchev
0df592a7c0 Upgrade to myfaces 2.1.14
Issue: SWF-1638
2014-07-29 13:45:16 -04:00
Rossen Stoyanchev
0558979ade Polish 2014-07-29 13:44:34 -04:00
Rossen Stoyanchev
b7a718ddaf Fix bug in SerializableListDataModel
This is a follow-up on an earlier commit:
97cc86b7c1

Issue: SWF-1510
2014-05-29 20:53:31 -04:00
Rossen Stoyanchev
59b0938e04 Fix NPE issue with JSF/Portlet support 2014-05-29 17:01:06 -04:00
Rossen Stoyanchev
7a3019b27b Fix issue with JSF < 2.1 compatibility
Issue: SWF-1622
2014-05-22 21:06:32 -04:00
Phillip Webb
51537e8c06 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 13:37:34 -04:00
Rossen Stoyanchev
1c67a0dc08 Revert "Prevent NPE in Mojarra when creating initial view"
This reverts commit d31900e5f9.

The fix for SWF-1571 reported against Mojarra 2.1.8 seems to be
problematic when Web Flow's ResponseStateManager is not used as
reported in SWF-1630.

Testing with Mojarra 2.1.20 I can no longer reproduce SWF-1571
and originally it was suspected to be a Mojarra issue. Hence
this revert.

Issue: SWF-1571, SWF-1630
2014-05-20 16:19:14 -04:00
Rossen Stoyanchev
cce1515a17 Support providing validator in faces builder serivces
Issue: SWF-1494
2014-03-31 17:28:31 -04:00
Rossen Stoyanchev
a7035acc2d Support validation hints in FlowActionListener
Issue: SWF-1626
2014-03-31 09:42:01 -04:00
Rossen Stoyanchev
68ef60f7c7 Add ~Aware interface to AbstractFacesFlowConfiguration 2014-02-26 16:23:12 -05:00
Rossen Stoyanchev
921220be27 Add Java config option for configuring Spring Web Flow
Issue: SWF-1548
2014-02-25 21:34:10 -05:00
Stevo Slavic
c296298b01 Consolidate SWF security tags with SEC taglibs
Before this change, SWF had its own faclets security tag library with
hierarchy root in AbstractAuthorizeTag.

As of this change SWF facelets security tag library inherits Spring SEC
AbstractAuthorizeTag instead, consolidating the two frameworks making
it easier to maintain, extend and reuse. This is made possible by
adding Spring security taglibs module as optional SWF facelets
dependecy. Because the dependency is optional, existing SWF facelets
security tag library users will have to explicitly add Spring Security
taglibs module as dependency.

Issue: SWF-1557
2014-02-19 15:56:38 -05:00
Rossen Stoyanchev
217f838008 Upgrade Mojara to version 2.2.4
Issue: SWF-1613
2013-12-20 14:54:39 -05:00
Rossen Stoyanchev
0076cb5c53 Add cache to SelectionTrackingActionListener
Issue: SWF-1614
2013-12-18 16:18:08 -05:00
Rossen Stoyanchev
8729ffb5f3 Update changelog for 2.4 M1 release 2013-01-31 18:25:50 -05:00
Phillip Webb
0d17de3aad Ensure saveState() is always called
Update JsfView to ensure that saveState() called when processing
events. This is required to ensure that the Mojarra StateContext
will unsubscribe listeners from the UIViewRoot.

Issue: SWF-1577
2013-01-30 13:56:24 -08:00
Phillip Webb
787fb7dc89 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 09:55:56 -05:00
Rossen Stoyanchev
d6c0813b15 Upgrade Spring Framework and Spring Security
Spring Framework 3.1.1 -> 3.2.0
Spring Security  3.0.7 -> 3.1.3

Issue: SPR-1580, SPR-1581
2012-12-21 16:17:47 -05:00
Rossen Stoyanchev
508d6a7dfb Add support for partial JSR-303 bean validation
This change makes it possible to use validation hints in conjunction
with declarative, JSR-303 validation. Such hints may be defined in an
attribute of the view state where the view state id itself is also
interpeted as a hint. A custom ValidationHintResolver can be plugged
in if necessary.

Issue: SWF-1453
2012-11-29 17:24:31 -05:00
Phillip Webb
d31900e5f9 Prevent NPE in Mojarra when creating initial view
Refactor JsfViewFactory to only attempt a restoreView when state is
available. This prevents a NullPointerException from being thrown
when using Mojarra with partial state saving disabled. This change
also makes Web Flow behave in a similar way to the standard
FacesServlet.

Issue: SWF-1571
2012-11-16 14:18:53 -08:00
Phillip Webb
47e6c00485 Polish 2012-11-16 13:43:41 -08:00
Phillip Webb
97cc86b7c1 SerializableListDataModel extends ListDataModel
Update SerializableListDataModel to extend the JSF ListDataModel
class. This is primarily to allow sorting operations to work with
PrimeFaces

Issue: SWF-1510
2012-11-15 11:36:29 -08:00
Phillip Webb
cd3d8be819 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
2012-11-14 17:44:12 -08:00
Phillip Webb
e2e5ee97d8 Additional FacesConversionService constructor
Add the inherited constructor allowing a delegate ConversionService
to be used

Issue: SWF-1562
2012-11-14 16:00:17 -08:00
Phillip Webb
c7ffb7a14a Moved non-java resources to src/main/resources
Moved all non-java files from src/main/java to src/main/resources.
Primarily to ensure resources are packaged into released jars but
also to conform with standard layout conventions.
2012-11-13 19:50:28 -08:00
Phillip Webb
313621b06c Polish package level Javadoc
Replace all package.html files with package-info.java
2012-11-13 19:38:21 -08:00