]
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: