[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1128) Calling getPage outside of a JSF request causes NPE
Gavin King (JIRA)
jira-events at lists.jboss.org
Wed May 30 00:14:08 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1128?page=all ]
Gavin King closed JBSEAM-1128.
------------------------------
Fix Version/s: 1.3.0.ALPHA
(was: 1.3.0.BETA1)
Resolution: Done
Yep, the bug is fixed in current RI versions (from 03), so I removed this code.
> Calling getPage outside of a JSF request causes NPE
> ---------------------------------------------------
>
> Key: JBSEAM-1128
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1128
> Project: JBoss Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.6.GA
> Environment: Any
> Reporter: Mike Quilleash
> Assigned To: Gavin King
> Priority: Minor
> Fix For: 1.3.0.ALPHA
>
>
> During Seam startup I have a component that scans installed components and programatically builds page entries (page actions etc). I use getPage() as this returns a new blank page if the.
> However calling getPage() outside of a JSF request throws NPE as Pages.getSuffix() calls
> FacesContext.getCurrentInstance().getExternalContext().getInitParameter(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);
> The check in my case is unnecessary (the comment mentions something about a bug in the JSF RI, I am using RI 1.2_02) as the view id already has the correct suffix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list