0 Replies Latest reply on Oct 30, 2008 12:45 PM by Tobias Reese

    Problems accessing request values

    Tobias Reese Newbie

      Hi,


      I'am unsure if this problem is really seam related but I will raise my problem anyway here. I have a running seam application using SEAM 1.2.1 GA. In one of my pages I try to access the values normally contained in a HTTPServletRequest Object.


      Following the EL Expression language Documentation there should be an object #{pageContext.request} providing these informations. For example #{pageContext.request.contextPath}.


      When I try to access this object I get the following Exception which doesn't say to much to me:


      javax.el.ELException: /ap1/download.xhtml: Bean: org.jboss.seam.contexts.PageContext, property: request
              at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:48)
              at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.j
      ava:39)
              at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSu
      pport.java:232)
              at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSu
      pport.java:239)
              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.jav
      a:580)
              at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
      a:63)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
      a:49)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
      a:49)
      ...
      


      Please note that this is not the full exception. If you think this is necessary I'll post the full stack trace. After debugging this a bit it seemed to me that the Page Context does not hold any objects...


      Could you please tell me if the pageContext is depending on some extra configuration or even tell me any other way of getting the request url to construct links in my page.


      Many thanks in advance,
      Tobias