[JBoss JIRA] (ARQ-2193) org.jboss.arquillian.warp.jsf.enricher.ManagedPropertyTestEnricher getting null JSF context
by Jesus Lunar Perez (JIRA)
Jesus Lunar Perez created ARQ-2193:
--------------------------------------
Summary: org.jboss.arquillian.warp.jsf.enricher.ManagedPropertyTestEnricher getting null JSF context
Key: ARQ-2193
URL: https://issues.jboss.org/browse/ARQ-2193
Project: Arquillian
Issue Type: Bug
Components: Extension - Warp
Affects Versions: 1.4.0.Final
Reporter: Jesus Lunar Perez
resolveValueExpression method in org.jboss.arquillian.warp.jsf.enricher.ManagedPropertyTestEnricher is getting null JSF context.
If I debug, my managed bean @PostConstruct is getting a valid FacesContext.getCurrentInstance(); but after that, same call at ManagedPropertyTestEnricher is getting null.
Im running in WLS 12.2.1.2 using arquillian-wls-remote-rest.
{code:java}
@PostConstruct
public void init() {
int logtoken = Log.inicio("Gestión Solicitudes Bean - Init");
FacesContext ctx = FacesContext.getCurrentInstance();
Log.info("Context: " + ctx); //<-- Not null
{code}
After that, following method is called:
{code:java}
private Object resolveValueExpression(ManagedProperty property, Class<?> expectedType, Object injectionPoint) {
FacesContext context = FacesContext.getCurrentInstance(); // <-- Getting null
String expression = property.value();
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)