Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-2193

org.jboss.arquillian.warp.jsf.enricher.ManagedPropertyTestEnricher getting null JSF context

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.4.0.Final
    • Extension - Warp
    • None

      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.

      	@PostConstruct
      	public void init() {
      		int logtoken = Log.inicio("GestiĆ³n Solicitudes Bean - Init");
      		FacesContext ctx = FacesContext.getCurrentInstance();
      		
      		Log.info("Context: " + ctx); //<-- Not null
      

      After that, following method is called:

          private Object resolveValueExpression(ManagedProperty property, Class<?> expectedType, Object injectionPoint) {
      
              FacesContext context = FacesContext.getCurrentInstance(); // <-- Getting null
              String expression = property.value();
      
      

              Unassigned Unassigned
              jlp01_jira Jesus Lunar Perez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: