Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The reason is probably that the request goes through the SeamFilter, as you supposed. I think it's not the SeamFilter itself that buffer the data stream from your servlet but the Ajax4Jsf filter that is invoked in the filter chain.</p> <p>If you have RichFaces in the classpath there is a seam component that registers the Ajax4jsf filter in the chain. Namely, the Seam component is <code>org.jboss.seam.web.ajax4jsfFilter</code>.</p> <p>If you don't need RichFaces try removing it from the classpath. If you need it, I suggest that you override <code>org.jboss.seam.web.ajax4jsfFilter</code> in order to skip the Ajax4Jsf filter for requests directed to your servlet.</p> <p>Another possible solution is converting your servlet in a filter as a Seam component (see @Filter annotation) and positioning it at the beginning of the chain with the around attribute. Something like:</p> <pre><code>@Name("FormerServlet") @Scope(STATELESS) @BypassInterceptors @Filter(around = "org.jboss.seam.web.ajax4jsfFilterInstantiator") public class FormerServletFilter implements Filter { protected void init(FilterConfig filterConfig) throws Exception { } protected void doDestroy() { } /** * Performs the filtering for a request. */ protected void doFilter(final HttpServletRequest request, final HttpServletResponse response, final FilterChain chain) throws Exception { if (thisRequestShoudBeManagedByMyServlet(request) ) { // do here what you previously did in the servlet } else { // go ahead with the Seam lifecycle chain.doFilter(request, response); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload