ParentId problem

Splash Forums PrettyFaces Users ParentId problem

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17934

    RedShadow
    Participant

    I am working with GF 3.1.1(Mojarra 2.1.1) and the latest snapshot of PrettyFaces and I face the following problem:

    My mappings look like this after using parentId:

    <url-mapping id=”cmsStart”>

    <pattern value=”/admin/” />

    <view-id>#{authentificationBean.getViewPath}</view-id>

    </url-mapping>

    <!– Index –>

    <url-mapping id=”moduleIndex1″ parentId=”cmsStart”>

    <pattern value=”#{indexModuleBean.moduleName}/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    <action>#{indexModuleBean.standardEntriesPerPage}</action>

    <action>#{indexModuleBean.standardPage}</action>

    </url-mapping>

    <url-mapping id=”moduleIndex2″ parentId=”moduleIndex1″>

    <pattern value=”index/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    <action>#{indexModuleBean.standardEntriesPerPage}</action>

    <action>#{indexModuleBean.standardPage}</action>

    </url-mapping>

    <url-mapping id=”moduleIndex3″ parentId=”cmsStart”>

    <pattern value=”#{indexModuleBean.moduleName}/index/#{indexModuleBean.entriesPerPage}/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    <action>#{indexModuleBean.standardPage}</action>

    </url-mapping>

    <url-mapping id=”moduleIndex4″ parentId=”cmsStart”>

    <pattern value=”#{indexModuleBean.moduleName}/index/#{indexModuleBean.entriesPerPage}/#{indexModuleBean.page}/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    </url-mapping>

    Calling “/admin/user/” works but “/admin/user/index/” and the other mappings does not work(Resource not found “/admin/user/index/index.xhtml”). The old mapping does work!

    url-mapping id=”cmsStart”>

    <pattern value=”/admin/” />

    <view-id>#{authentificationBean.getViewPath}</view-id>

    </url-mapping>

    <!– Index –>

    <url-mapping id=”moduleIndex1″>

    <pattern value=”/admin/#{indexModuleBean.moduleName}/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    <action>#{indexModuleBean.standardEntriesPerPage}</action>

    <action>#{indexModuleBean.standardPage}</action>

    </url-mapping>

    <url-mapping id=”moduleIndex2″>

    <pattern value=”/admin/#{indexModuleBean.moduleName}/index/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    <action>#{indexModuleBean.standardEntriesPerPage}</action>

    <action>#{indexModuleBean.standardPage}</action>

    </url-mapping>

    <url-mapping id=”moduleIndex3″>

    <pattern value=”/admin/#{indexModuleBean.moduleName}/index/#{indexModuleBean.entriesPerPage}/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    <action>#{indexModuleBean.standardPage}</action>

    </url-mapping>

    <url-mapping id=”moduleIndex4″>

    <pattern value=”/admin/#{indexModuleBean.moduleName}/index/#{indexModuleBean.entriesPerPage}/#{indexModuleBean.page}/” />

    <view-id>#{indexModuleBean.getViewPath}</view-id>

    </url-mapping>

    #20966

    Could you please verify that you are using the most recent snapshot as we fixed something similar 2 days ago…

    The latest snapshot for JSF2 is:

    prettyfaces-jsf2-3.3.0-20110520.061658-13.jar

    MD5: d0dd6b19cd3e88c7f22155e884705841

    Thanks

    #20967

    RedShadow
    Participant

    what is the version for maven to get this snapshot?

    #20968

    Version: 3.3.0-SNAPSHOT

    See all details here:

    https://github.com/ocpsoft/prettyfaces/wiki/Snapshots

    #20969

    Currently 3.3.0-SNAPSHOT

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

You must be logged in to reply to this topic.

Comments are closed.