Navigation between pages

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Navigation between pages

StephR
Hi,

I have followed the same idea as Orbeon: one principale page-flow that dispatches the requests to apps/name_of_application/page-flow. I have a little problem in one of thoses page-flow (not the principale).

The following will work fine:

<page id="projectsSummary" path-info="/projectsSummary/projects" model="projectsList-model.xpl" view="projectsList-view.xsl">
    <action when="/project/action='view'" action="updateInstance.xpl" > 
        <result id="instance-updated" page="projectsSummary"/>
    </action>
</page>

But now, when updateInstance.xpl has done its job, I would like to redirect to a page of another application. So I replace "projectsSummary" but the path to the other page-flow. But apparently, as soon as I modify projectsSummary for anything else (but it doesn't figure in the page-flow I'm working at the moment), I will have an HTTP Error 500 as soon as I want to see the page projectsSummary. As a workaround, I added a redirect processor in my updateInstance and removed the line <result ... ./> . But I wish to do the navigation between pages only in the page-flow. What am I doing wrong? I thought that when you have the result line, the principale page-flow will be called... but apparently not ????




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Navigation between pages

StephR
I should have added :

I know that I can replace projectsSummary by other name like "news"...  and then add a new line : <page id="news" etc...> on the same page-flow... I would like to understand why we can't to that directly ?

Steph



Stephane Ruchet a écrit :
Hi,

I have followed the same idea as Orbeon: one principale page-flow that dispatches the requests to apps/name_of_application/page-flow. I have a little problem in one of thoses page-flow (not the principale).

The following will work fine:

<page id="projectsSummary" path-info="/projectsSummary/projects" model="projectsList-model.xpl" view="projectsList-view.xsl">
    <action when="/project/action='view'" action="updateInstance.xpl" > 
        <result id="instance-updated" page="projectsSummary"/>
    </action>
</page>

But now, when updateInstance.xpl has done its job, I would like to redirect to a page of another application. So I replace "projectsSummary" but the path to the other page-flow. But apparently, as soon as I modify projectsSummary for anything else (but it doesn't figure in the page-flow I'm working at the moment), I will have an HTTP Error 500 as soon as I want to see the page projectsSummary. As a workaround, I added a redirect processor in my updateInstance and removed the line <result ... ./> . But I wish to do the navigation between pages only in the page-flow. What am I doing wrong? I thought that when you have the result line, the principale page-flow will be called... but apparently not ????




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws