Form action is not rewritten correctly?

Splash Forums PrettyFaces Users Form action is not rewritten correctly?

This topic contains 0 replies, has 1 voice, and was last updated by  RedShadow 6 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #18000

    RedShadow
    Participant

    When i make a call to, let’s say /admin/test/ and the rendered view is located in /admin/modules/test/test.xhtml then the problem occurs.

    The form which is on the view gets the action with the value “/admin/modules/test/test.xhtml” instead of “/admin/test/”.

    Is there any solution or have i forgotten something?

    The rules:

    <!– Only append slash if the request does not look like an file request–>

    <rewrite match=”^((?!.*.w*).)*$” trailingSlash=”append” toCase=”lowercase”/>

    <!– This rule is for the login page to display the value of the substitute attribute in the form action –>

    <rewrite match=”^/admin/login.xhtml$” substitute=”/admin/” inbound=”false”/>

    <rewrite match=”^/admin/admin.xhtml$” substitute=”/admin/” inbound=”false”/>

    <url-mapping id=”cmsStart”>

    <pattern value=”/admin/” />

    <view-id>#{userSessionBean.getAdminViewPath}</view-id>

    </url-mapping>

    <url-mapping id=”menue” parentId=”cmsStart”>

    <pattern value=”#{menueEntryName : navigationBean.menueEntryName}/” />

    <view-id>#{userSessionBean.hacking}</view-id>

    <action>#{userSessionBean.checkAuthorizationAndLoginRedirect}</action>

    <action>#{navigationBean.getViewPath}</action>

    </url-mapping>

    <url-mapping id=”menueSecondLevel” parentId=”menue”>

    <pattern value=”#{secondLevelMenueEntryName : navigationBean.secondLevelMenueEntryName}/” />

    <view-id>#{userSessionBean.hacking}</view-id>

    <action>#{userSessionBean.checkAuthorizationAndLoginRedirect}</action>

    <action>#{navigationBean.getViewPath}</action>

    </url-mapping>

    <url-mapping id=”menueParameters” parentId=”menueSecondLevel”>

    <pattern value=”#{ /.*/ parameters : navigationBean.parameters}/” />

    <view-id>#{userSessionBean.hacking}</view-id>

    <action>#{userSessionBean.checkAuthorizationAndLoginRedirect}</action>

    <action>#{navigationBean.getViewPath}</action>

    </url-mapping>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.