[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3633) @RequestParameter fails in mixed JSF/non-JSF applications
Tim Otten (JIRA)
jira-events at lists.jboss.org
Mon Oct 27 06:23:21 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Otten updated JBSEAM-3633:
------------------------------
Description:
If an application includes both JSF pages and servlets, then @RequestParameter injection cannot succeed consistently.
@RequestParameter injection relies on a "Parameters" component. There are two alternative implementations of this component:
* org.jboss.seam.faces.Parameters which supports JSF pages
* org.jboss.seam.web.Parameters which supports traditional servlets
Only one of these implementations can be used at run time. If the developer or deployer chooses to use the JSF variant, then @RequestParameter injection will break for servlet-based pages. If the developer instead chooses the servlet variant, then @RequestParameter injection will break for JSF-based pages.
(Note: The relevant code in trunk [r9424] appears to be the same as the code in 2.0.2.SP1, so newer releases are probably affected.)
was:
If an application includes both JSF pages and servlets, then @RequestParameter injection cannot succeed.
Currently, there are two alternative classes which resolve request parameters:
* org.jboss.seam.faces.Parameters which supports JSF pages
* org.jboss.seam.web.Parameters which supports traditional servlets
Only one of these classes can be used at run time.
(Note: The relevant code in trunk [r9424] appears to be the same as the code in 2.0.2.SP1, so newer releases are probably affected.)
> @RequestParameter fails in mixed JSF/non-JSF applications
> ---------------------------------------------------------
>
> Key: JBSEAM-3633
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3633
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.2.SP1
> Reporter: Tim Otten
> Attachments: Parameters.java
>
>
> If an application includes both JSF pages and servlets, then @RequestParameter injection cannot succeed consistently.
> @RequestParameter injection relies on a "Parameters" component. There are two alternative implementations of this component:
> * org.jboss.seam.faces.Parameters which supports JSF pages
> * org.jboss.seam.web.Parameters which supports traditional servlets
> Only one of these implementations can be used at run time. If the developer or deployer chooses to use the JSF variant, then @RequestParameter injection will break for servlet-based pages. If the developer instead chooses the servlet variant, then @RequestParameter injection will break for JSF-based pages.
> (Note: The relevant code in trunk [r9424] appears to be the same as the code in 2.0.2.SP1, so newer releases are probably affected.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list