newbie question

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

newbie question

Tibor Veres
Hi all,

i must be missing something really obvious here

made a "test" directory under resources,
added <page path-info="/test*" model="/test/page-flow.xml"/> to main
page-flow file
test/page-flow.xml:
<config xmlns="http://www.orbeon.com/oxf/controller">
    <page path-info="/test" view="view.xhtml"/>
    <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

view.xhml copied from hello-world example

http://myhost/ops/test/ returns an empty file

what am i missing here?



--
Tibor Veres
  [hidden email]



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: newbie question

patrick.seiffert
Hi Tibor.

In the main page-flow file (under /resources) try passing a .xpl-file
instead of the page-flow.xml like:

  <page path-info="/test*" model="/test/page-flow.xpl"/>

and in this .xpl-file configure the PFC with an XML file (page-flow.xml)
like this:

  <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
            xmlns:oxf="http://www.orbeon.com/oxf/processors">
      <p:processor name="oxf:page-flow">
          <p:input name="controller" href="page-flow.xml"/>
      </p:processor>
  </p:config>

This should work.

Regards,
Patrick

Tibor Veres schrieb:

> Hi all,
>
> i must be missing something really obvious here
>
> made a "test" directory under resources,
> added <page path-info="/test*" model="/test/page-flow.xml"/> to main
> page-flow file
> test/page-flow.xml:
> <config xmlns="http://www.orbeon.com/oxf/controller">
>    <page path-info="/test" view="view.xhtml"/>
>    <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> view.xhml copied from hello-world example
>
> http://myhost/ops/test/ returns an empty file
>
> what am i missing here?
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Patrick Seiffert
Deutschland



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws