Ignore common resources like javax.faces.resources, primefaces.js.xhtml…

Splash Forums PrettyFaces Users Ignore common resources like javax.faces.resources, primefaces.js.xhtml…

This topic contains 1 reply, has 2 voices, and was last updated by  Lincoln Baxter III 4 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18892

    LataGreemimax
    Participant

    Hello again

    I’ve defined two params and i’m just getting the crap of resources as value but the resources doesn’t reach the client anymore.

    The output from the url actions calls with one request.

    CatalogIndex.loadOffererAndCatalog() start
    javax.faces.resource
    primefaces.css.xhtml
    CatalogIndex.loadOffererAndCatalog() finish

    CatalogIndex.loadOffererAndCatalog() start
    javax.faces.resource
    primefaces.js.xhtml
    CatalogIndex.loadOffererAndCatalog() finish

    CatalogIndex.loadOffererAndCatalog() start
    javax.faces.resource
    theme.css.xhtml
    CatalogIndex.loadOffererAndCatalog() finish

    CatalogIndex.loadOfferer() start
    favicon.ico
    CatalogIndex.loadOfferer() finish

    pretty-config.xml

    <rewrite match="^((?!primefaces).)*$" redirect="301"/>
    <rewrite match="^((?!javax).)*$" redirect="301"/>
    <rewrite match="^((?!favicon).)*$" redirect="301"/>
    <url-mapping id="home">
    <pattern value="/" />
    <view-id value="/public/index.xhtml" />
    </url-mapping>
    <url-mapping id="home-offerer">
    <pattern value="/#{catalogIndex.offerer}" />
    <view-id value="/public/index.xhtml" />
    <action>#{catalogIndex.loadOfferer}</action>
    </url-mapping>
    <url-mapping id="home-offerer-catalog">
    <pattern value="/#{catalogIndex.offerer}/#{catalogIndex.catalog}" />
    <view-id value="/public/index.xhtml" />
    <action>#{catalogIndex.loadOffererAndCatalog}</action>
    </url-mapping>

    Thanks!

    #23174

    What are you trying to achieve with those <rewrite /> rules? It looks like they don’t do anything. If you are trying to keep your very general URL mappings from also intercepting the resources URLs, you need to do something like this: http://ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html/Configuration.html#config.pathparams.regex

    Let me know if I’ve interpreted your situation correctly,

    Thanks.

    Lincoln

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.