[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1730) Injecting uiComponent with required = false fails with NPE if FacesContext is not available
Norman Richards (JIRA)
jira-events at lists.jboss.org
Fri Jul 27 16:52:47 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1730?page=all ]
Norman Richards closed JBSEAM-1730.
-----------------------------------
Resolution: Done
Done.
> Injecting uiComponent with required = false fails with NPE if FacesContext is not available
> -------------------------------------------------------------------------------------------
>
> Key: JBSEAM-1730
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1730
> Project: JBoss Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0.BETA1
> Reporter: Daniel Young
> Assigned To: Gavin King
> Priority: Critical
> Fix For: 2.0.0.CR1
>
>
> If you inject a UIComponent into a bean as follows:
> @In(required = false, value = "#{uiComponent['XXX']}")
> It fails for any method call that occurs with no FacesContext present (eg: in my case, a WebRemote method).
> I think if the faces context is null, then UiComponent.get() should just return null, in a similar way to the JBSEAM-1628 change that added the catch statement for IllegalArgumentException from the Sun RI.
--
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