Hello,
I have a problem with url and pageflow. Fox example:
folder:
/apps/a/page-flow.xml
/a/b/page-flow.xml
/a/b/c/page-flow.xml
url: http://localhost:8080/ops/a --> /apps/a/page-flow.xml
url: http://localhost:8080/ops/a/b --> /apps/a/b/page-flow.xml
url: http://localhost:8080/ops/a/b/c --> /apps/a/b/c/page-flow.xml
url: http://localhost:8080/ops/a/d/x --> /apps/a/page-flow.xml(because /apps/a/d/x and /apps/a/d no page-flow.xml)
How can I do that?
-- 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 |
Administrator
|
On 10/24/07, hechengrong <[hidden email]> wrote:
> > Hello, > I have a problem with url and pageflow. Fox example: > folder: > /apps/a/page-flow.xml > /a/b/page-flow.xml > /a/b/c/page-flow.xml > > url: http://localhost:8080/ops/a --> /apps/a/page-flow.xml > url: http://localhost:8080/ops/a/b --> /apps/a/b/page-flow.xml > url: http://localhost:8080/ops/a/b/c --> /apps/a/b/c/page-flow.xml > url: http://localhost:8080/ops/a/d/x --> /apps/a/page-flow.xml(because /apps/a/d/x and /apps/a/d no page-flow.xml) can easily do the first 3, but the last one would require you to know that there is no a/d and a/d/x on disk. You could do this in a pipeline that uses the Directory scanner (see page linked below for more info on the Directory scanner), but this is more involved than just matching on paths with regexps in a page flow and delegating to another page flow processor. http://www.orbeon.com/ops/doc/processors-directory-scanner Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.com/ -- 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 |
Administrator
|
In reply to this post by hcr
Stephane,
On 10/25/07, Stephane Ruchet <[hidden email]> wrote: > If I'm not mistaking, the only way I see how to do so is to use the oxf:redirect processor... Another way to do this is to run another page flow processor from a pipeline. The other page flow again looks at the URL and decides what to run based on its configuration. This enabled you to create "sub-page flows". And if you specify a page flow configuration in the model attribute of page flow configuration, the PFC is "clever enough" to notice this is page flow and it runs it with the PFC. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.com/ -- 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 |
In reply to this post by hcr
Thank you for all!
I have a way to do that!
1. modify oxf:/page-flow.xml
form:
<page id="apps" path-info="/([^/]+)/.*" matcher="oxf:perl5-matcher" model="apps/${1}/page-flow.xml"/>
to:
<page id="apps" path-info="/([^/]+)/.*" matcher="oxf:perl5-matcher" model="dipatch.xpl"/>
2. dispath.xpl content:
<p:processor name="justep:generator-pageflow">
<p:output name="data" id="pageflow"/> </p:processor> <p:processor name="oxf:page-flow"> <p:input name="controller" href="#pageflow"/> </p:processor> 3. justep:generator-pageflow content: see GeneratorPageFlowProcessor.java detail
在2007-10-25,"Stephane Ruchet" <[hidden email]> 写道: Hi,
-- 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 GeneratorPageFlowProcessor.java (3K) Download Attachment dispatch.xpl (572 bytes) Download Attachment page-flow.xml (2K) Download Attachment |
Free forum by Nabble | Edit this page |