[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3771) URL Rewriting Not Occurring
Dave Everson (JIRA)
jira-events at lists.jboss.org
Sun Dec 28 21:18:54 EST 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12444175#action_12444175 ]
Dave Everson commented on JBSEAM-3771:
--------------------------------------
I have also seen problems elsewhere. I will attach these to this entry.
I have this defined in pages.xml (note the login-required):
<page view-id="/pages/registration/dashboard.xhtml" login-required="true">
<rewrite pattern="/registration/dashboard/{rid}" />
<param name="rid" value="#{programDashboard.rid}"/>
<begin-conversation/>
<action execute="#{programDashboard.onLoad}"/>
</page>
In components.xml, I have
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.security.postAuthenticate">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
if I try to access this page using the /registration/dashboard/44 URL and I am NOT logged in, I am properly taken to the login page. After providing userid/password, I taken to the page I want to go to, however rather than seeing the rewritten clean URL, I see
https://localhost/a/pages/registration/dashboard.seam?rid=44&cid=1
> URL Rewriting Not Occurring
> ---------------------------
>
> Key: JBSEAM-3771
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3771
> Project: Seam
> Issue Type: Bug
> Affects Versions: 2.1.1.CR1
> Environment: Windows Vista, JBoss 4.2.0, JRockit 1.5
> Reporter: Dave Everson
> Assignee: Norman Richards
>
> We have just updated Seam to 2.1.1CR1
> We started to use the rewrite functionality within pages.xml.
> We have the following pages defined:
> <page view-id="/pages/account/check.xhtml">
> <rewrite pattern="/newFamilyAccount" />
> <begin-conversation join="true"/>
> <action execute="#{registerFamily.startEdit}"/>
> <navigation from-action="#{registerFamily.doAccountCheck}">
> <rule if-outcome="exists">
> <redirect view-id="/pages/account/existing.xhtml"/>
> </rule>
> <rule if-outcome="new">
> <redirect view-id="/pages/account/new.xhtml"/>
> </rule>
> </navigation>
> </page>
> <page view-id="/pages/account/existing.xhtml">
> <rewrite pattern="/existingAccounts" />
> <begin-conversation join="true"/>
> </page>
> We are able to access /newFamilyAccount without issue and a conversation is started
> After entering data that already exists in the database, we should be taken to the /existingAccounts (/pages/account/existing.xhtml) view. We are taken to the view, however the URL shows: https://localhost/a/pages/account/existing.seam?cid=9.
> We have tried several things and can't see to ever have the rewritten URL appear. Does anyone have any suggestions on what we are doing incorrectly. Thanks.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list