[ 
https://issues.apache.org/jira/browse/TAP5-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade updated TAP5-1191:
---------------------------------

    Labels: bulk-close-candidate  (was: )

This issue has been last updated about 1.5 years ago, has no assignee, affects 
an old version of Tapestry that is not actively developed anymore, and is 
therefore prone to be bulk-closed in the near future.

If the issue still persists with the most recent development preview of 
Tapestry (5.4-beta-6, which is available from Maven Central), please update it 
as soon as possible. In the case of a feature request, please discuss it with 
the Tapestry developer community on the [email protected] mailing list 
first.


> How to use PageTester with web apps using tapestry-spring and Spring 3.0
> ------------------------------------------------------------------------
>
>                 Key: TAP5-1191
>                 URL: https://issues.apache.org/jira/browse/TAP5-1191
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-test
>    Affects Versions: 5.2
>            Reporter: Thomas Wintergerst
>            Priority: Minor
>              Labels: bulk-close-candidate
>
> We am using Tapestry for a provisioning portal. The web portal is only a part 
> of the complete application. The application uses Spring 3.0. As the web 
> portal must use some of the core libraries we must use Tapestry 
> v5.2.0-SNAPSHOT (hoping for a release soon), as only 
> tapestry-spring-5.2.0-SNAPSHOT is compatible with Spring 3.0.
> I would like to use the PageTester to perform some tests relating to pages of 
> the web portal. But unfortunately it seems not to be possible to instanciate 
> pages that require injected Spring beans (in fact all pages in our web portal 
> are based on Spring beans).
> The PageTester provides the method provideExtraModuleDefs() that perhaps 
> could be used in a derived class to add an instance of SpringModuleDef (that 
> is flagged "internal", of course). But the SpringModuleDef class requires a 
> ServletContext as a constructor parameter. Within the context of the 
> PageTester I have no access to such an object.
> Also adding SpringModule.class as the 4th parameter of the PageTester 
> constructor does not work.
> Am I missing some point here? Or is it currently really not possible to use 
> PageTester for page classes requiring injected Spring beans?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to