2 Replies Latest reply on Nov 6, 2008 3:13 AM by prakash.parvath

    Disabling urlEncoding for JAR resources

    prakash.parvath

      Hi
      how to disable the urlEncoding is done by the ResourceBuilderImpl.java ,
      the <session-aware/> attribute helps for the custom components but for RichFaces / Ajax4jsf standard componets the static resources (css / gif etc) are getting urlEncoded by which they are getting downloaded for each unique session.

      please provide pointers , as this is impacting performance of my application which needs to be moved to production.

      Thanks,
      Prakash.

        • 1. Re: Disabling urlEncoding for JAR resources
          nbelaevski

          Prakash,

          In fact they should be session-aware because they can depend on session data (e.g. session-scoped bean defining current skin).

          You can create your implementation of InternetResourceBuilder (use standard services mechanism - create META-INF/services/org.ajax4jsf.resource.InternetResourceBuilder file) and extend org.ajax4jsf.resource.ResourceBuilderImpl.createJarResource(Object, String) by providing your own renderer for XCSS files (create one by extending org.ajax4jsf.resource.TemplateCSSRenderer - return false from requireFacesContext()).

          • 2. Re: Disabling urlEncoding for JAR resources
            prakash.parvath

            nbelaevski, thanks a lot for the info.

            sure it helps.