2 Replies Latest reply on Oct 17, 2008 5:30 PM by nicolasr

    Chart generation fails with URL rewriting

    nicolasr
      I have a problem to include charts in my html page when cookies are disabled (the server uses URL-Rewriting). I use the barchart tag and seam in version 2_0_2_SP1.
      The image URL for the chart does not contain the jsessionid. Debugging showed that the chart is actually generated and stored in the graphics store but the lookup via the image url fails because the graphics store is re-created. The old one obviously cannot be found because of the missing jsessionid (wrong scope).
      Is this a bug or can annyone help me?
      Thanks!
        • 1. Re: Chart generation fails with URL rewriting
          norman

          Are you saying that without URL rewriting this works correctly?  Can you show your rewrite rules?

          • 2. Re: Chart generation fails with URL rewriting
            nicolasr
            I didn't mean that I defined any complicated rewrite rules. I just used the <Context cookies="false"/> option to tell the JBoss not to use cookies but to append ;jsessionid=... to every URL.
            The chart is shown if I append the jsessionid manually.
            I already did a patch in the UIChart class, line 316:
            I added this line to enable URL-Rewriting.

            url = ((javax.servlet.http.HttpServletResponse)context.getExternalContext().getResponse()).encodeRedirectURL(url);

            It seems to work.