Commit Graph

2476 Commits

Author SHA1 Message Date
Rossen Stoyanchev
ee58d02cbf Use thread-safe list to store conversations
While the methods manipulating or accessing the list are synchronized,
the ConversationContainer class is also subject to serialization.

Issue: SWF-1668
2015-08-19 18:17:53 -04:00
Rossen Stoyanchev
f4d07d8826 Fix line endings 2015-08-19 18:11:09 -04:00
Rossen Stoyanchev
3d402728b6 Polish ConversationContainer 2015-08-19 18:10:21 -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
12f081508e Upgrade to Spring Framework 4.2.0.RELEASE 2015-08-06 15:48:33 -04:00
Andy Wilkinson
99d975c0f1 Make tests compatible with Spring Framework 4.2
Spring Framework 4.2 removes the queryForInt method on JdbcTemplate in
favour of queryForObject which is also available in earlier versions.
This commit replaces calls to queryForInt with queryForObject, thereby
allowing the tests to be run against Spring Framework 4.1 (the default)
and Spring Framework 4.2 (for Spring IO Platform 2.0 compatibility
testing).
2015-07-10 05:32:25 -04:00
Rossen Stoyanchev
af05256dd2 Merge pull request #37 from wilkinsona/new-spring-io-plugin
Use the latest version of the Spring IO Plugin
2015-07-08 12:55:26 -04:00
Andy Wilkinson
811427ab1a Use the latest version of the Spring IO Plugin
Spring IO Platform 2.0 will remove the managed versions .properties
file as support for it has been removed in Spring Boot 1.3.

This commit moves the build onto a new version of the Spring IO Plugin
that uses the Maven bom rather than the properties file.
2015-07-08 14:25:30 +01:00
Rossen Stoyanchev
6719d26d66 Add final keyword to SpringElExpression fields 2015-06-04 22:06:09 -04:00
Rossen Stoyanchev
ecad31d686 Remove file 2015-06-04 22:05:17 -04:00
Rossen Stoyanchev
61291fbdab Detect changes in parent flow definitions
Issue: SWF-1662
2015-06-04 22:04:19 -04:00
Rossen Stoyanchev
3438a65378 Support flow id based on path for VfsResource
Issue: SWF-1651
2015-06-04 16:40:28 -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
Rossen Stoyanchev
b28616e6af Update build plugins and scripts 2015-06-03 17:57:23 -04:00
Rossen Stoyanchev
67ff02f943 Upgrade to gradle 2.4 2015-06-03 17:47:37 -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
02ac30d598 Minor javadoc update 2014-10-28 10:33:37 -04:00
Spring Buildmaster
5d8d6355bc 2014-09-04 13:14:54 -07:00
Rossen Stoyanchev
9033b1f4d9 Refine check for use of MyFaces
Issue: SWF-1641
2014-09-04 15:56:06 -04:00
Rossen Stoyanchev
f7d85ea6f6 Merge pull request #33 from kryger/patch-1
Update README.md
2014-09-04 14:22:20 -04:00
Lukasz Kryger
9cf927eec5 Update README.md
Up-to-date links to javadocs and reference documentation
2014-09-02 23:13:24 +01: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
f72b03af2f Update Spring Framework and Spring Security versions 2014-07-30 16:00:01 -04:00
Rossen Stoyanchev
ab1efea0d0 Fix Javadoc in Action
Issue: SWF-1636
2014-07-29 15:33:18 -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
34d9fcc050 Fix issue with Hibernate 3 compatibility
Issue: SWF-1637
2014-06-12 10:45:25 -04:00
Spring Buildmaster
6866c004da Next development version 2014-05-29 18:14:28 -07: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
46b9807c3c Revert "Release 2.4.0"
This reverts commit de267e907c.

Found an issue with staged release
2014-05-29 13:49:57 -04:00
Spring Buildmaster
de267e907c Release 2.4.0 2014-05-29 05:37:19 -07: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
bdd3b4afe4 Add sub-section on scopes to reference
Issue: SWF-1466
2014-05-21 17:08:34 -04:00
Rossen Stoyanchev
546ec7a78e Mention exception-handler element in documentation
Issue: SWF-1465
2014-05-21 16:48:01 -04:00
Rossen Stoyanchev
42d22d30f1 Fix empty map initialization to in java config
Issue: SWF-1632
2014-05-21 16:20:25 -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
8680d09fbc Merge pull request #30 from wilkinsona/add-io-plugin
Add the Spring IO plugin
2014-05-20 13:55:53 -04:00
Andy Wilkinson
3c5adecb91 Add the Spring IO plugin
Configure the Spring IO plugin such that it's only applied when the
build is run with -PplatformVersion=<version>. This platformVersion
property is used to determine the version of the Platform that will
be used when running the springIoCheck task. The plugin can be used
by running a build as follows:

./gradlew clean springIoCheck -PplatformVersion=1.0.0.BUILD-SNAPSHOT -PJDK7_HOME=… -PJDK8_HOME=…

This will test the project on JDK7 and JDK 8 using the dependencies
defined in the latest snapshot of Spring IO Platform 1.0.0.

The Spring IO test tasks have been configured to exclude the Tiles 2
tests as Spring IO uses Tiles 3.
2014-05-14 16:34:54 +01:00
Rossen Stoyanchev
8abfde0384 Merge pull request #29 from wilkinsona/jsp-api
Update coordinates of JSP API dependency
2014-05-08 14:59:46 -04:00
Andy Wilkinson
b0581706be Update coordinates of JSP API dependency
Update to use the new JSP API coordinates that make 2.2.1 available
2014-05-08 17:44:05 +01:00
Rossen Stoyanchev
c09a77d815 Update readme and remove changelog 2014-04-02 10:43:49 -04:00
Rossen Stoyanchev
70cf66111c Add protected method to SpringELExpression
Issue: SWF-1476
2014-03-31 21:46:17 -04:00
Rossen Stoyanchev
dbf71490c3 Polish 2014-03-31 21:41:39 -04:00
Rossen Stoyanchev
3aac995f21 Update Spring Faces chapter with Java config 2014-03-31 21:19:29 -04:00