Hi,
I'm new to orbeon and I am a littlebit stuck. I was hoping the mailing list people could help me out. What I want to achieve is the following : - per user, in their home directory, there is a directory for orbeon files - if one browses to e.g. http://myserver/user_x/mypages, orbeon should lookup the controller in the /home/user_x/ops/ directory For the moment, this works : page-flow.xml under WEB-INF/resources : <page path-info="/([^/]+)/([^/]+)/([^/]+)/*" matcher="oxf:perl5-matcher" model="file:///home/${1}/page-flow.xpl" view="file:///home/${1}/view.xslt"/> and the user just needs to put page-flow.xpl and a view.xslt in his directory. But how should I proceed if I want to use a controller so that the user has more possibilities ? If I'm right, I should specify the path-info, which changes for every user ? I think the examples work this way, but I don't understand the source code of this. In cocoon I know one can add the piece of the path, cocoon should add to the path, maybe something like this exists also in orbeon ? Any help or info is welcome ! thanks a lot Henk -- 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 |
Henk,
Why not remove the @view and pass all requests to a users page-flow.xpl and page-flow.xml this will give them full flexibility to create there own web application under there directory because they will have there own page-flow.xml Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Henk Schets [mailto:[hidden email]] >Sent: 10 January 2007 10:44 >To: [hidden email] >Subject: [ops-users] starting with ops : webpages in different >directories > >Hi, > >I'm new to orbeon and I am a littlebit stuck. I was hoping the >mailing list people could help me out. >What I want to achieve is the following : >- per user, in their home directory, there is a directory for >orbeon files >- if one browses to e.g. http://myserver/user_x/mypages, >orbeon should lookup the controller in the /home/user_x/ops/ directory > >For the moment, this works : > >page-flow.xml under WEB-INF/resources : ><page path-info="/([^/]+)/([^/]+)/([^/]+)/*" >matcher="oxf:perl5-matcher" >model="file:///home/${1}/page-flow.xpl" >view="file:///home/${1}/view.xslt"/> > >and the user just needs to put page-flow.xpl and a view.xslt >in his directory. >But how should I proceed if I want to use a controller so that >the user has more possibilities ? If I'm right, I should >specify the path-info, which changes for every user ? I think >the examples work this way, but I don't understand the source >code of this. >In cocoon I know one can add the piece of the path, cocoon >should add to the path, maybe something like this exists also >in orbeon ? > >Any help or info is welcome ! > >thanks a lot > >Henk > > -- 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 |
Hi Ryan,
thanks for your quick answer. So I change the page-flow.xml to this : <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" model="file:///home/${1}/page-flow.xml" /> But then my question is : what path info do I have to put in the page-flow.xml in the user directory ? E.g. if I have a request to http://myserver/home/user_x/test, will this work : <page id="test" path-info="/test" model="db.xpl"/> ? or is only this correct : <page id="test" path-info="/home/user_x/test" model="db.xpl"/> in other words, can I work with urls which are relative ? thanks Henk Ryan Puddephatt wrote: > Henk, > Why not remove the @view and pass all requests to a users > page-flow.xpl and page-flow.xml this will give them full flexibility to > create there own web application under there directory because they will > have there own page-flow.xml > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > >> -----Original Message----- >> From: Henk Schets [mailto:[hidden email]] >> Sent: 10 January 2007 10:44 >> To: [hidden email] >> Subject: [ops-users] starting with ops : webpages in different >> directories >> >> Hi, >> >> I'm new to orbeon and I am a littlebit stuck. I was hoping the >> mailing list people could help me out. >> What I want to achieve is the following : >> - per user, in their home directory, there is a directory for >> orbeon files >> - if one browses to e.g. http://myserver/user_x/mypages, >> orbeon should lookup the controller in the /home/user_x/ops/ directory >> >> For the moment, this works : >> >> page-flow.xml under WEB-INF/resources : >> <page path-info="/([^/]+)/([^/]+)/([^/]+)/*" >> matcher="oxf:perl5-matcher" >> model="file:///home/${1}/page-flow.xpl" >> view="file:///home/${1}/view.xslt"/> >> >> and the user just needs to put page-flow.xpl and a view.xslt >> in his directory. >> But how should I proceed if I want to use a controller so that >> the user has more possibilities ? If I'm right, I should >> specify the path-info, which changes for every user ? I think >> the examples work this way, but I don't understand the source >> code of this. >> In cocoon I know one can add the piece of the path, cocoon >> should add to the path, maybe something like this exists also >> in orbeon ? >> >> Any help or info is welcome ! >> >> thanks a lot >> >> Henk >> >> > > > > ------------------------------------------------------------------------ > > > -- > 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 Henk Schets Team Leader Product Development Royal Meteorological Institute of Belgium (R.M.I.B.) Ringlaan 3 B-1180 Brussels Belgium Tel: (+32) 2 3730597 Fax: (+32) 2 3757549 E-mail: [hidden email] WWW server: http://www.meteo.be -- 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 |
Henk,
Just including the page-flow.xml won't work, you will need to pass this through a page-flow processor. Relative paths won't work straight off, but if you passed the users page-flow through XSLT you could prefix them with the necessary path before passing them through the page-flow processor. Page-Flow: <page path-info="/home/([^/]+)/*" matcher="oxf:perl5-matcher" default-submission="user-pass-instance.xml" model="page-flow.xpl"> <setvalue ref="/instance/prefix" match="1"/> </page> User-pass-instance.xml <instance> <prefix/> </instance> I think you'll need to use xslt to create the config for url-generator processor to get the users page-flow.xml the parse that through xslt and match on c:page elements copying everything but the @path-info, concatenating the /instance/prefix with the existing @path-info. Pass this result through page-flow processor. This is how I would do it, but others may have better ideas Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Henk Schets [mailto:[hidden email]] >Sent: 10 January 2007 11:21 >To: [hidden email] >Subject: Re: [ops-users] starting with ops : webpages in >different directories > >Hi Ryan, > >thanks for your quick answer. > >So I change the page-flow.xml to this : ><page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >model="file:///home/${1}/page-flow.xml" /> > >But then my question is : what path info do I have to put in >the page-flow.xml in the user directory ? >E.g. if I have a request to http://myserver/home/user_x/test, >will this work : ><page id="test" path-info="/test" model="db.xpl"/> ? >or is only this correct : ><page id="test" path-info="/home/user_x/test" model="db.xpl"/> >in other words, can I work with urls which are relative ? > >thanks > >Henk > >Ryan Puddephatt wrote: >> Henk, >> Why not remove the @view and pass all requests to a users >> page-flow.xpl and page-flow.xml this will give them full flexibility >> to create there own web application under there directory >because they >> will have there own page-flow.xml >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> >> >> >>> -----Original Message----- >>> From: Henk Schets [mailto:[hidden email]] >>> Sent: 10 January 2007 10:44 >>> To: [hidden email] >>> Subject: [ops-users] starting with ops : webpages in different >>> directories >>> >>> Hi, >>> >>> I'm new to orbeon and I am a littlebit stuck. I was hoping the >>> mailing list people could help me out. >>> What I want to achieve is the following : >>> - per user, in their home directory, there is a directory >for orbeon >>> files >>> - if one browses to e.g. http://myserver/user_x/mypages, orbeon >>> should lookup the controller in the /home/user_x/ops/ directory >>> >>> For the moment, this works : >>> >>> page-flow.xml under WEB-INF/resources : >>> <page path-info="/([^/]+)/([^/]+)/([^/]+)/*" >>> matcher="oxf:perl5-matcher" >>> model="file:///home/${1}/page-flow.xpl" >>> view="file:///home/${1}/view.xslt"/> >>> >>> and the user just needs to put page-flow.xpl and a view.xslt in his >>> directory. >>> But how should I proceed if I want to use a controller so that the >>> user has more possibilities ? If I'm right, I should specify the >>> path-info, which changes for every user ? I think the >examples work >>> this way, but I don't understand the source code of this. >>> In cocoon I know one can add the piece of the path, cocoon >should add >>> to the path, maybe something like this exists also in orbeon ? >>> >>> Any help or info is welcome ! >>> >>> thanks a lot >>> >>> Henk >>> >>> >> >> >> >> >---------------------------------------------------------------------- >> -- >> >> >> -- >> 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 > >-- >Henk Schets > > Team Leader Product Development > > Royal Meteorological Institute of Belgium (R.M.I.B.) > Ringlaan 3 > B-1180 Brussels > Belgium > > Tel: (+32) 2 3730597 > Fax: (+32) 2 3757549 > E-mail: [hidden email] > > WWW server: http://www.meteo.be > > -- 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 |
Administrator
|
Ryan,
In fact, it has been possible to set a page flow file as a model for a while now. Although this is not yet documented, it is how the new directory hierarchy works. -Erik Ryan Puddephatt wrote: > Henk, > Just including the page-flow.xml won't work, you will need to pass > this through a page-flow processor. Relative paths won't work straight off, > but if you passed the users page-flow through XSLT you could prefix them > with the necessary path before passing them through the page-flow processor. > > > Page-Flow: > > <page path-info="/home/([^/]+)/*" > matcher="oxf:perl5-matcher" > default-submission="user-pass-instance.xml" > model="page-flow.xpl"> > <setvalue ref="/instance/prefix" match="1"/> > </page> > > User-pass-instance.xml > > <instance> > <prefix/> > </instance> > > I think you'll need to use xslt to create the config for url-generator > processor to get the users page-flow.xml the parse that through xslt and > match on c:page elements copying everything but the @path-info, > concatenating the /instance/prefix with the existing @path-info. Pass this > result through page-flow processor. > > This is how I would do it, but others may have better ideas > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > >> -----Original Message----- >> From: Henk Schets [mailto:[hidden email]] >> Sent: 10 January 2007 11:21 >> To: [hidden email] >> Subject: Re: [ops-users] starting with ops : webpages in >> different directories >> >> Hi Ryan, >> >> thanks for your quick answer. >> >> So I change the page-flow.xml to this : >> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >> model="file:///home/${1}/page-flow.xml" /> >> >> But then my question is : what path info do I have to put in >> the page-flow.xml in the user directory ? >> E.g. if I have a request to http://myserver/home/user_x/test, >> will this work : >> <page id="test" path-info="/test" model="db.xpl"/> ? >> or is only this correct : >> <page id="test" path-info="/home/user_x/test" model="db.xpl"/> >> in other words, can I work with urls which are relative ? >> >> thanks >> >> Henk >> >> Ryan Puddephatt wrote: >>> Henk, >>> Why not remove the @view and pass all requests to a users >>> page-flow.xpl and page-flow.xml this will give them full flexibility >>> to create there own web application under there directory >> because they >>> will have there own page-flow.xml >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>> >>> Teleflex Group - IT UK >>> 1 Michaelson Square >>> Livingston >>> West Lothian >>> Scotland >>> EH54 7DP >>> >>> e> [hidden email] >>> t> +44(0)1506 407 110 >>> f> +44(0)1506 407 108 >>> >>> >>> >>>> -----Original Message----- >>>> From: Henk Schets [mailto:[hidden email]] >>>> Sent: 10 January 2007 10:44 >>>> To: [hidden email] >>>> Subject: [ops-users] starting with ops : webpages in different >>>> directories >>>> >>>> Hi, >>>> >>>> I'm new to orbeon and I am a littlebit stuck. I was hoping the >>>> mailing list people could help me out. >>>> What I want to achieve is the following : >>>> - per user, in their home directory, there is a directory >> for orbeon >>>> files >>>> - if one browses to e.g. http://myserver/user_x/mypages, orbeon >>>> should lookup the controller in the /home/user_x/ops/ directory >>>> >>>> For the moment, this works : >>>> >>>> page-flow.xml under WEB-INF/resources : >>>> <page path-info="/([^/]+)/([^/]+)/([^/]+)/*" >>>> matcher="oxf:perl5-matcher" >>>> model="file:///home/${1}/page-flow.xpl" >>>> view="file:///home/${1}/view.xslt"/> >>>> >>>> and the user just needs to put page-flow.xpl and a view.xslt in his >>>> directory. >>>> But how should I proceed if I want to use a controller so that the >>>> user has more possibilities ? If I'm right, I should specify the >>>> path-info, which changes for every user ? I think the >> examples work >>>> this way, but I don't understand the source code of this. >>>> In cocoon I know one can add the piece of the path, cocoon >> should add >>>> to the path, maybe something like this exists also in orbeon ? >>>> >>>> Any help or info is welcome ! >>>> >>>> thanks a lot >>>> >>>> Henk >>>> >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >>> -- >>> >>> >>> -- >>> 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 >> -- >> Henk Schets >> >> Team Leader Product Development >> >> Royal Meteorological Institute of Belgium (R.M.I.B.) >> Ringlaan 3 >> B-1180 Brussels >> Belgium >> >> Tel: (+32) 2 3730597 >> Fax: (+32) 2 3757549 >> E-mail: [hidden email] >> >> WWW server: http://www.meteo.be >> >> > > > > ------------------------------------------------------------------------ > > > -- > 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 -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Henk Schets
Henk Schets wrote:
> Hi Ryan, > > thanks for your quick answer. > > So I change the page-flow.xml to this : > <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" > model="file:///home/${1}/page-flow.xml" /> > > But then my question is : what path info do I have to put in the > page-flow.xml in the user directory ? > E.g. if I have a request to http://myserver/home/user_x/test, will this > work : > <page id="test" path-info="/test" model="db.xpl"/> ? > or is only this correct : > <page id="test" path-info="/home/user_x/test" model="db.xpl"/> > in other words, can I work with urls which are relative ? context. Given your regexp, and independently from the Servlet context, you will have to match on things like this in the user page flow: /user_x/test /user_x/page1 /user_x/page2 In other words you have to include the part of the path that includes the username. I agree that this is not ideal. It would be possible in theory to change the system to allow a master page flow to communicate to a sub-page flow the part of the path to remove, but this would be only part of the equation, as then URL rewriting (for the URLs output by your pages) would also have to be changed. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ok, thanks a lot, I will try to use it this way then.
Henk Erik Bruchez wrote: > Henk Schets wrote: >> Hi Ryan, >> >> thanks for your quick answer. >> >> So I change the page-flow.xml to this : >> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >> model="file:///home/${1}/page-flow.xml" /> >> >> But then my question is : what path info do I have to put in the >> page-flow.xml in the user directory ? >> E.g. if I have a request to http://myserver/home/user_x/test, will >> this work : >> <page id="test" path-info="/test" model="db.xpl"/> ? >> or is only this correct : >> <page id="test" path-info="/home/user_x/test" model="db.xpl"/> >> in other words, can I work with urls which are relative ? > > Paths in the page flow match on the part of the path after the Servlet > context. Given your regexp, and independently from the Servlet context, > you will have to match on things like this in the user page flow: > > /user_x/test > /user_x/page1 > /user_x/page2 > > In other words you have to include the part of the path that includes > the username. I agree that this is not ideal. > > It would be possible in theory to change the system to allow a master > page flow to communicate to a sub-page flow the part of the path to > remove, but this would be only part of the equation, as then URL > rewriting (for the URLs output by your pages) would also have to be > changed. > > -Erik > -- 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 |
In reply to this post by Erik Bruchez
Hi Erik,
I tried this without luck : in my page-flow.xml under WEB-INF/resources : <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : <config xmlns="http://www.orbeon.com/oxf/controller"> <page path-info="/expo/test/welcome" view="view.xhtml"/> </config> If I then surf to http://localhost/ops/expo/test/welcome, I get nothing. If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get a page not found. There is nothing usefull in the logs either. Any ideas what this could be ? Thanks a lot Henk Erik Bruchez wrote: > Henk Schets wrote: >> Hi Ryan, >> >> thanks for your quick answer. >> >> So I change the page-flow.xml to this : >> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >> model="file:///home/${1}/page-flow.xml" /> >> >> But then my question is : what path info do I have to put in the >> page-flow.xml in the user directory ? >> E.g. if I have a request to http://myserver/home/user_x/test, will >> this work : >> <page id="test" path-info="/test" model="db.xpl"/> ? >> or is only this correct : >> <page id="test" path-info="/home/user_x/test" model="db.xpl"/> >> in other words, can I work with urls which are relative ? > > Paths in the page flow match on the part of the path after the Servlet > context. Given your regexp, and independently from the Servlet context, > you will have to match on things like this in the user page flow: > > /user_x/test > /user_x/page1 > /user_x/page2 > > In other words you have to include the part of the path that includes > the username. I agree that this is not ideal. > > It would be possible in theory to change the system to allow a master > page flow to communicate to a sub-page flow the part of the path to > remove, but this would be only part of the equation, as then URL > rewriting (for the URLs output by your pages) would also have to be > changed. > > -Erik > > > ----- -- 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 |
Henk
Just an idea, but does /expo/expo/test/welcome work, if so remove the /expo in the second page-flow.xml Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Henk Schets [mailto:[hidden email]] >Sent: 11 January 2007 14:38 >To: [hidden email] >Subject: Re: [ops-users] starting with ops : webpages in >different directories > >Hi Erik, > >I tried this without luck : > >in my page-flow.xml under WEB-INF/resources : > ><page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> > >file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : ><config xmlns="http://www.orbeon.com/oxf/controller"> > <page path-info="/expo/test/welcome" view="view.xhtml"/> </config> > >If I then surf to http://localhost/ops/expo/test/welcome, I >get nothing. >If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get a page >not found. >There is nothing usefull in the logs either. > >Any ideas what this could be ? > >Thanks a lot > >Henk > >Erik Bruchez wrote: >> Henk Schets wrote: >>> Hi Ryan, >>> >>> thanks for your quick answer. >>> >>> So I change the page-flow.xml to this : >>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>> model="file:///home/${1}/page-flow.xml" /> >>> >>> But then my question is : what path info do I have to put in the >>> page-flow.xml in the user directory ? >>> E.g. if I have a request to http://myserver/home/user_x/test, will >>> this work : >>> <page id="test" path-info="/test" model="db.xpl"/> ? >>> or is only this correct : >>> <page id="test" path-info="/home/user_x/test" model="db.xpl"/> in >>> other words, can I work with urls which are relative ? >> >> Paths in the page flow match on the part of the path after >the Servlet >> context. Given your regexp, and independently from the Servlet >> context, you will have to match on things like this in the >user page flow: >> >> /user_x/test >> /user_x/page1 >> /user_x/page2 >> >> In other words you have to include the part of the path that >includes >> the username. I agree that this is not ideal. >> >> It would be possible in theory to change the system to allow >a master >> page flow to communicate to a sub-page flow the part of the path to >> remove, but this would be only part of the equation, as then URL >> rewriting (for the URLs output by your pages) would also have to be >> changed. >> >> -Erik >> >> >> ----- > > -- 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 |
Ryan,
if I enter that, it says it does not found the file /home/henks/gurung/progs/xml/expo/expo/page-flow.xml, which is correct. If I revert to what I entered before, there is something I find strange : it does not complain, no errors, but it does not show output. This line : <page path-info="/expo/test/welcome" view="view.xhtml"/> should show me the html page, no ? FYI : this is the content of view.xhtml : <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://orbeon.org/oxf/xml/formatting"> <head> <title>Welcome to the Orbeon Forms Examples</title> </head> <body> <p> Welcome to the Orbeon Forms examples! Here you will find several examples illustrating the capabilities of Orbeon Forms. For more information about Orbeon Forms, please visit the following resources: </p> </body> </html> I am using Orbeon Forms 3.0.1. Henk Ryan Puddephatt wrote: > Henk > Just an idea, but does /expo/expo/test/welcome work, if so remove > the /expo in the second page-flow.xml > > Ryan > > Ryan Puddephatt > Software Engineer >> From: Henk Schets [mailto:[hidden email]] >> Sent: 11 January 2007 14:38 >> To: [hidden email] >> Subject: Re: [ops-users] starting with ops : webpages in >> different directories >> >> Hi Erik, >> >> I tried this without luck : >> >> in my page-flow.xml under WEB-INF/resources : >> >> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >> model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >> >> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : >> <config xmlns="http://www.orbeon.com/oxf/controller"> >> <page path-info="/expo/test/welcome" view="view.xhtml"/> </config> >> >> If I then surf to http://localhost/ops/expo/test/welcome, I >> get nothing. >> If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get a page >> not found. >> There is nothing usefull in the logs either. >> >> Any ideas what this could be ? >> >> Thanks a lot >> >> Henk >> >> Erik Bruchez wrote: >>> Henk Schets wrote: >>>> Hi Ryan, >>>> >>>> thanks for your quick answer. >>>> >>>> So I change the page-flow.xml to this : >>>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>>> model="file:///home/${1}/page-flow.xml" /> >>>> >>>> But then my question is : what path info do I have to put in the >>>> page-flow.xml in the user directory ? >>>> E.g. if I have a request to http://myserver/home/user_x/test, will >>>> this work : >>>> <page id="test" path-info="/test" model="db.xpl"/> ? >>>> or is only this correct : >>>> <page id="test" path-info="/home/user_x/test" model="db.xpl"/> in >>>> other words, can I work with urls which are relative ? >>> Paths in the page flow match on the part of the path after >> the Servlet >>> context. Given your regexp, and independently from the Servlet >>> context, you will have to match on things like this in the >> user page flow: >>> /user_x/test >>> /user_x/page1 >>> /user_x/page2 >>> >>> In other words you have to include the part of the path that >> includes >>> the username. I agree that this is not ideal. >>> >>> It would be possible in theory to change the system to allow >> a master >>> page flow to communicate to a sub-page flow the part of the path to >>> remove, but this would be only part of the equation, as then URL >>> rewriting (for the URLs output by your pages) would also have to be >>> changed. >>> >>> -Erik >>> >>> -- 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 |
Henk,
I meant in your url i.e. http://localhost:8080/context/expo/expo/test/welcome rather than changing the page-flow.xml Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Henk Schets [mailto:[hidden email]] >Sent: 11 January 2007 15:14 >To: [hidden email] >Subject: Re: [ops-users] starting with ops : webpages in >different directories > >Ryan, > >if I enter that, it says it does not found the file >/home/henks/gurung/progs/xml/expo/expo/page-flow.xml, which is correct. >If I revert to what I entered before, there is something I find strange >: it does not complain, no errors, but it does not show >output. This line : <page path-info="/expo/test/welcome" >view="view.xhtml"/> should show me the html page, no ? > >FYI : this is the content of view.xhtml : ><html xmlns="http://www.w3.org/1999/xhtml" >xmlns:f="http://orbeon.org/oxf/xml/formatting"> > <head> > <title>Welcome to the Orbeon Forms Examples</title> > </head> > <body> > <p> > Welcome to the Orbeon Forms examples! Here you >will find several examples illustrating the capabilities of > Orbeon Forms. For more information about Orbeon >Forms, please visit the following resources: > </p> > </body> ></html> > >I am using Orbeon Forms 3.0.1. > >Henk > >Ryan Puddephatt wrote: >> Henk >> Just an idea, but does /expo/expo/test/welcome work, if >so remove the >> /expo in the second page-flow.xml >> >> Ryan >> >> Ryan Puddephatt >> Software Engineer > >>> From: Henk Schets [mailto:[hidden email]] >>> Sent: 11 January 2007 14:38 >>> To: [hidden email] >>> Subject: Re: [ops-users] starting with ops : webpages in different >>> directories >>> >>> Hi Erik, >>> >>> I tried this without luck : >>> >>> in my page-flow.xml under WEB-INF/resources : >>> >>> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >>> >model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >>> >>> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : >>> <config xmlns="http://www.orbeon.com/oxf/controller"> >>> <page path-info="/expo/test/welcome" view="view.xhtml"/> >>> </config> >>> >>> If I then surf to http://localhost/ops/expo/test/welcome, I get >>> nothing. >>> If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get a page not >>> found. >>> There is nothing usefull in the logs either. >>> >>> Any ideas what this could be ? >>> >>> Thanks a lot >>> >>> Henk >>> >>> Erik Bruchez wrote: >>>> Henk Schets wrote: >>>>> Hi Ryan, >>>>> >>>>> thanks for your quick answer. >>>>> >>>>> So I change the page-flow.xml to this : >>>>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>>>> model="file:///home/${1}/page-flow.xml" /> >>>>> >>>>> But then my question is : what path info do I have to put in the >>>>> page-flow.xml in the user directory ? >>>>> E.g. if I have a request to >http://myserver/home/user_x/test, will >>>>> this work : >>>>> <page id="test" path-info="/test" model="db.xpl"/> ? >>>>> or is only this correct : >>>>> <page id="test" path-info="/home/user_x/test" model="db.xpl"/> in >>>>> other words, can I work with urls which are relative ? >>>> Paths in the page flow match on the part of the path after >>> the Servlet >>>> context. Given your regexp, and independently from the Servlet >>>> context, you will have to match on things like this in the >>> user page flow: >>>> /user_x/test >>>> /user_x/page1 >>>> /user_x/page2 >>>> >>>> In other words you have to include the part of the path that >>> includes >>>> the username. I agree that this is not ideal. >>>> >>>> It would be possible in theory to change the system to allow >>> a master >>>> page flow to communicate to a sub-page flow the part of >the path to >>>> remove, but this would be only part of the equation, as then URL >>>> rewriting (for the URLs output by your pages) would also >have to be >>>> changed. >>>> >>>> -Erik >>>> >>>> > > -- 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 |
Ryan,
that's what I did. But because of the regular expression, it looks for the page-flow.xml in the wrong directory. Henk Ryan Puddephatt wrote: > Henk, > I meant in your url i.e. > http://localhost:8080/context/expo/expo/test/welcome rather than changing > the page-flow.xml > > Ryan > > > >> -----Original Message----- >> From: Henk Schets [mailto:[hidden email]] >> Sent: 11 January 2007 15:14 >> To: [hidden email] >> Subject: Re: [ops-users] starting with ops : webpages in >> different directories >> >> Ryan, >> >> if I enter that, it says it does not found the file >> /home/henks/gurung/progs/xml/expo/expo/page-flow.xml, which is correct. >> If I revert to what I entered before, there is something I find strange >> : it does not complain, no errors, but it does not show >> output. This line : <page path-info="/expo/test/welcome" >> view="view.xhtml"/> should show me the html page, no ? >> >> FYI : this is the content of view.xhtml : >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:f="http://orbeon.org/oxf/xml/formatting"> >> <head> >> <title>Welcome to the Orbeon Forms Examples</title> >> </head> >> <body> >> <p> >> Welcome to the Orbeon Forms examples! Here you >> will find several examples illustrating the capabilities of >> Orbeon Forms. For more information about Orbeon >> Forms, please visit the following resources: >> </p> >> </body> >> </html> >> >> I am using Orbeon Forms 3.0.1. >> >> Henk >> >> Ryan Puddephatt wrote: >>> Henk >>> Just an idea, but does /expo/expo/test/welcome work, if >> so remove the >>> /expo in the second page-flow.xml >>> >>> Ryan >>> >>> Ryan Puddephatt >>> Software Engineer >>>> From: Henk Schets [mailto:[hidden email]] >>>> Sent: 11 January 2007 14:38 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] starting with ops : webpages in different >>>> directories >>>> >>>> Hi Erik, >>>> >>>> I tried this without luck : >>>> >>>> in my page-flow.xml under WEB-INF/resources : >>>> >>>> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >>>> >> model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >>>> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : >>>> <config xmlns="http://www.orbeon.com/oxf/controller"> >>>> <page path-info="/expo/test/welcome" view="view.xhtml"/> >>>> </config> >>>> >>>> If I then surf to http://localhost/ops/expo/test/welcome, I get >>>> nothing. >>>> If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get a page not >>>> found. >>>> There is nothing usefull in the logs either. >>>> >>>> Any ideas what this could be ? >>>> >>>> Thanks a lot >>>> >>>> Henk >>>> >>>> Erik Bruchez wrote: >>>>> Henk Schets wrote: >>>>>> Hi Ryan, >>>>>> >>>>>> thanks for your quick answer. >>>>>> >>>>>> So I change the page-flow.xml to this : >>>>>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>>>>> model="file:///home/${1}/page-flow.xml" /> >>>>>> >>>>>> But then my question is : what path info do I have to put in the >>>>>> page-flow.xml in the user directory ? >>>>>> E.g. if I have a request to >> http://myserver/home/user_x/test, will >>>>>> this work : >>>>>> <page id="test" path-info="/test" model="db.xpl"/> ? >>>>>> or is only this correct : >>>>>> <page id="test" path-info="/home/user_x/test" model="db.xpl"/> in >>>>>> other words, can I work with urls which are relative ? >>>>> Paths in the page flow match on the part of the path after >>>> the Servlet >>>>> context. Given your regexp, and independently from the Servlet >>>>> context, you will have to match on things like this in the >>>> user page flow: >>>>> /user_x/test >>>>> /user_x/page1 >>>>> /user_x/page2 >>>>> >>>>> In other words you have to include the part of the path that >>>> includes >>>>> the username. I agree that this is not ideal. >>>>> >>>>> It would be possible in theory to change the system to allow >>>> a master >>>>> page flow to communicate to a sub-page flow the part of >> the path to >>>>> remove, but this would be only part of the equation, as then URL >>>>> rewriting (for the URLs output by your pages) would also >> have to be >>>>> changed. >>>>> >>>>> -Erik >>>>> -- 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 |
Henk,
Leave the page-flow as <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> http://localhost/ops/expo/test/welcome But change the new page-flow.xml to <page path-info="/test/welcome" view="view.xhtml"/> Rather than <page path-info="/expo/test/welcome" view="view.xhtml"/> Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Henk Schets [mailto:[hidden email]] >Sent: 11 January 2007 15:45 >To: [hidden email] >Subject: Re: [ops-users] starting with ops : webpages in >different directories > >Ryan, > >that's what I did. But because of the regular expression, it >looks for the page-flow.xml in the wrong directory. > >Henk > > >Ryan Puddephatt wrote: >> Henk, >> I meant in your url i.e. >> http://localhost:8080/context/expo/expo/test/welcome rather than >> changing the page-flow.xml >> >> Ryan >> >> >> >>> -----Original Message----- >>> From: Henk Schets [mailto:[hidden email]] >>> Sent: 11 January 2007 15:14 >>> To: [hidden email] >>> Subject: Re: [ops-users] starting with ops : webpages in different >>> directories >>> >>> Ryan, >>> >>> if I enter that, it says it does not found the file >>> /home/henks/gurung/progs/xml/expo/expo/page-flow.xml, which >is correct. >>> If I revert to what I entered before, there is something I find >>> strange >>> : it does not complain, no errors, but it does not show >output. This >>> line : <page path-info="/expo/test/welcome" >>> view="view.xhtml"/> should show me the html page, no ? >>> >>> FYI : this is the content of view.xhtml : >>> <html xmlns="http://www.w3.org/1999/xhtml" >>> xmlns:f="http://orbeon.org/oxf/xml/formatting"> >>> <head> >>> <title>Welcome to the Orbeon Forms Examples</title> >>> </head> >>> <body> >>> <p> >>> Welcome to the Orbeon Forms examples! Here you >will find >>> several examples illustrating the capabilities of >>> Orbeon Forms. For more information about Orbeon Forms, >>> please visit the following resources: >>> </p> >>> </body> >>> </html> >>> >>> I am using Orbeon Forms 3.0.1. >>> >>> Henk >>> >>> Ryan Puddephatt wrote: >>>> Henk >>>> Just an idea, but does /expo/expo/test/welcome work, if >>> so remove the >>>> /expo in the second page-flow.xml >>>> >>>> Ryan >>>> >>>> Ryan Puddephatt >>>> Software Engineer >>>>> From: Henk Schets [mailto:[hidden email]] >>>>> Sent: 11 January 2007 14:38 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] starting with ops : webpages in >different >>>>> directories >>>>> >>>>> Hi Erik, >>>>> >>>>> I tried this without luck : >>>>> >>>>> in my page-flow.xml under WEB-INF/resources : >>>>> >>>>> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >>>>> >>> >model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >>>>> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : >>>>> <config xmlns="http://www.orbeon.com/oxf/controller"> >>>>> <page path-info="/expo/test/welcome" view="view.xhtml"/> >>>>> </config> >>>>> >>>>> If I then surf to http://localhost/ops/expo/test/welcome, I get >>>>> nothing. >>>>> If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get a page not >>>>> found. >>>>> There is nothing usefull in the logs either. >>>>> >>>>> Any ideas what this could be ? >>>>> >>>>> Thanks a lot >>>>> >>>>> Henk >>>>> >>>>> Erik Bruchez wrote: >>>>>> Henk Schets wrote: >>>>>>> Hi Ryan, >>>>>>> >>>>>>> thanks for your quick answer. >>>>>>> >>>>>>> So I change the page-flow.xml to this : >>>>>>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>>>>>> model="file:///home/${1}/page-flow.xml" /> >>>>>>> >>>>>>> But then my question is : what path info do I have to >put in the >>>>>>> page-flow.xml in the user directory ? >>>>>>> E.g. if I have a request to >>> http://myserver/home/user_x/test, will >>>>>>> this work : >>>>>>> <page id="test" path-info="/test" model="db.xpl"/> ? >>>>>>> or is only this correct : >>>>>>> <page id="test" path-info="/home/user_x/test" >model="db.xpl"/> in >>>>>>> other words, can I work with urls which are relative ? >>>>>> Paths in the page flow match on the part of the path after >>>>> the Servlet >>>>>> context. Given your regexp, and independently from the Servlet >>>>>> context, you will have to match on things like this in the >>>>> user page flow: >>>>>> /user_x/test >>>>>> /user_x/page1 >>>>>> /user_x/page2 >>>>>> >>>>>> In other words you have to include the part of the path that >>>>> includes >>>>>> the username. I agree that this is not ideal. >>>>>> >>>>>> It would be possible in theory to change the system to allow >>>>> a master >>>>>> page flow to communicate to a sub-page flow the part of >>> the path to >>>>>> remove, but this would be only part of the equation, as then URL >>>>>> rewriting (for the URLs output by your pages) would also >>> have to be >>>>>> changed. >>>>>> >>>>>> -Erik >>>>>> > > -- 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 |
Ryan,
I'm afraid this won't work either. Maybe this stuff with the page flow file as a model does not work in version 3.0.1 ? Thanks Henk Ryan Puddephatt wrote: > Henk, > Leave the page-flow as > <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" > model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> > > http://localhost/ops/expo/test/welcome > > But change the new page-flow.xml to > > <page path-info="/test/welcome" view="view.xhtml"/> > > Rather than > > <page path-info="/expo/test/welcome" view="view.xhtml"/> > > Ryan > > >> -----Original Message----- >> From: Henk Schets [mailto:[hidden email]] >> Sent: 11 January 2007 15:45 >> To: [hidden email] >> Subject: Re: [ops-users] starting with ops : webpages in >> different directories >> >> Ryan, >> >> that's what I did. But because of the regular expression, it >> looks for the page-flow.xml in the wrong directory. >> >> Henk >> >> >> Ryan Puddephatt wrote: >>> Henk, >>> I meant in your url i.e. >>> http://localhost:8080/context/expo/expo/test/welcome rather than >>> changing the page-flow.xml >>> >>> Ryan >>> >>> >>> >>>> -----Original Message----- >>>> From: Henk Schets [mailto:[hidden email]] >>>> Sent: 11 January 2007 15:14 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] starting with ops : webpages in different >>>> directories >>>> >>>> Ryan, >>>> >>>> if I enter that, it says it does not found the file >>>> /home/henks/gurung/progs/xml/expo/expo/page-flow.xml, which >> is correct. >>>> If I revert to what I entered before, there is something I find >>>> strange >>>> : it does not complain, no errors, but it does not show >> output. This >>>> line : <page path-info="/expo/test/welcome" >>>> view="view.xhtml"/> should show me the html page, no ? >>>> >>>> FYI : this is the content of view.xhtml : >>>> <html xmlns="http://www.w3.org/1999/xhtml" >>>> xmlns:f="http://orbeon.org/oxf/xml/formatting"> >>>> <head> >>>> <title>Welcome to the Orbeon Forms Examples</title> >>>> </head> >>>> <body> >>>> <p> >>>> Welcome to the Orbeon Forms examples! Here you >> will find >>>> several examples illustrating the capabilities of >>>> Orbeon Forms. For more information about Orbeon Forms, >>>> please visit the following resources: >>>> </p> >>>> </body> >>>> </html> >>>> >>>> I am using Orbeon Forms 3.0.1. >>>> >>>> Henk >>>> >>>> Ryan Puddephatt wrote: >>>>> Henk >>>>> Just an idea, but does /expo/expo/test/welcome work, if >>>> so remove the >>>>> /expo in the second page-flow.xml >>>>> >>>>> Ryan >>>>> >>>>> Ryan Puddephatt >>>>> Software Engineer >>>>>> From: Henk Schets [mailto:[hidden email]] >>>>>> Sent: 11 January 2007 14:38 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] starting with ops : webpages in >> different >>>>>> directories >>>>>> >>>>>> Hi Erik, >>>>>> >>>>>> I tried this without luck : >>>>>> >>>>>> in my page-flow.xml under WEB-INF/resources : >>>>>> >>>>>> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >>>>>> >> model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >>>>>> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : >>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"> >>>>>> <page path-info="/expo/test/welcome" view="view.xhtml"/> >>>>>> </config> >>>>>> >>>>>> If I then surf to http://localhost/ops/expo/test/welcome, I get >>>>>> nothing. >>>>>> If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get a page not >>>>>> found. >>>>>> There is nothing usefull in the logs either. >>>>>> >>>>>> Any ideas what this could be ? >>>>>> >>>>>> Thanks a lot >>>>>> >>>>>> Henk >>>>>> >>>>>> Erik Bruchez wrote: >>>>>>> Henk Schets wrote: >>>>>>>> Hi Ryan, >>>>>>>> >>>>>>>> thanks for your quick answer. >>>>>>>> >>>>>>>> So I change the page-flow.xml to this : >>>>>>>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>>>>>>> model="file:///home/${1}/page-flow.xml" /> >>>>>>>> >>>>>>>> But then my question is : what path info do I have to >> put in the >>>>>>>> page-flow.xml in the user directory ? >>>>>>>> E.g. if I have a request to >>>> http://myserver/home/user_x/test, will >>>>>>>> this work : >>>>>>>> <page id="test" path-info="/test" model="db.xpl"/> ? >>>>>>>> or is only this correct : >>>>>>>> <page id="test" path-info="/home/user_x/test" >> model="db.xpl"/> in >>>>>>>> other words, can I work with urls which are relative ? >>>>>>> Paths in the page flow match on the part of the path after >>>>>> the Servlet >>>>>>> context. Given your regexp, and independently from the Servlet >>>>>>> context, you will have to match on things like this in the >>>>>> user page flow: >>>>>>> /user_x/test >>>>>>> /user_x/page1 >>>>>>> /user_x/page2 >>>>>>> >>>>>>> In other words you have to include the part of the path that >>>>>> includes >>>>>>> the username. I agree that this is not ideal. >>>>>>> >>>>>>> It would be possible in theory to change the system to allow >>>>>> a master >>>>>>> page flow to communicate to a sub-page flow the part of >>>> the path to >>>>>>> remove, but this would be only part of the equation, as then URL >>>>>>> rewriting (for the URLs output by your pages) would also >>>> have to be >>>>>>> changed. >>>>>>> >>>>>>> -Erik >>>>>>> >> > -- 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 |
Henk,
Sorry I overlooked your version number earlier, this is a 3.5M1-nightly improvement, I suggest you get a nightly build from http://forge.objectweb.org/nightlybuilds/ops/ops/ Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Henk Schets [mailto:[hidden email]] >Sent: 12 January 2007 08:31 >To: [hidden email] >Subject: Re: [ops-users] starting with ops : webpages in >different directories > >Ryan, > >I'm afraid this won't work either. >Maybe this stuff with the page flow file as a model does not >work in version 3.0.1 ? > >Thanks > >Henk > >Ryan Puddephatt wrote: >> Henk, >> Leave the page-flow as >> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >> model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >> >> http://localhost/ops/expo/test/welcome >> >> But change the new page-flow.xml to >> >> <page path-info="/test/welcome" view="view.xhtml"/> >> >> Rather than >> >> <page path-info="/expo/test/welcome" view="view.xhtml"/> >> >> Ryan >> >> >>> -----Original Message----- >>> From: Henk Schets [mailto:[hidden email]] >>> Sent: 11 January 2007 15:45 >>> To: [hidden email] >>> Subject: Re: [ops-users] starting with ops : webpages in different >>> directories >>> >>> Ryan, >>> >>> that's what I did. But because of the regular expression, it looks >>> for the page-flow.xml in the wrong directory. >>> >>> Henk >>> >>> >>> Ryan Puddephatt wrote: >>>> Henk, >>>> I meant in your url i.e. >>>> http://localhost:8080/context/expo/expo/test/welcome rather than >>>> changing the page-flow.xml >>>> >>>> Ryan >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Henk Schets [mailto:[hidden email]] >>>>> Sent: 11 January 2007 15:14 >>>>> To: [hidden email] >>>>> Subject: Re: [ops-users] starting with ops : webpages in >different >>>>> directories >>>>> >>>>> Ryan, >>>>> >>>>> if I enter that, it says it does not found the file >>>>> /home/henks/gurung/progs/xml/expo/expo/page-flow.xml, which >>> is correct. >>>>> If I revert to what I entered before, there is something I find >>>>> strange >>>>> : it does not complain, no errors, but it does not show >>> output. This >>>>> line : <page path-info="/expo/test/welcome" >>>>> view="view.xhtml"/> should show me the html page, no ? >>>>> >>>>> FYI : this is the content of view.xhtml : >>>>> <html xmlns="http://www.w3.org/1999/xhtml" >>>>> xmlns:f="http://orbeon.org/oxf/xml/formatting"> >>>>> <head> >>>>> <title>Welcome to the Orbeon Forms Examples</title> >>>>> </head> >>>>> <body> >>>>> <p> >>>>> Welcome to the Orbeon Forms examples! Here you >>> will find >>>>> several examples illustrating the capabilities of >>>>> Orbeon Forms. For more information about >Orbeon Forms, >>>>> please visit the following resources: >>>>> </p> >>>>> </body> >>>>> </html> >>>>> >>>>> I am using Orbeon Forms 3.0.1. >>>>> >>>>> Henk >>>>> >>>>> Ryan Puddephatt wrote: >>>>>> Henk >>>>>> Just an idea, but does /expo/expo/test/welcome work, if >>>>> so remove the >>>>>> /expo in the second page-flow.xml >>>>>> >>>>>> Ryan >>>>>> >>>>>> Ryan Puddephatt >>>>>> Software Engineer >>>>>>> From: Henk Schets [mailto:[hidden email]] >>>>>>> Sent: 11 January 2007 14:38 >>>>>>> To: [hidden email] >>>>>>> Subject: Re: [ops-users] starting with ops : webpages in >>> different >>>>>>> directories >>>>>>> >>>>>>> Hi Erik, >>>>>>> >>>>>>> I tried this without luck : >>>>>>> >>>>>>> in my page-flow.xml under WEB-INF/resources : >>>>>>> >>>>>>> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >>>>>>> >>> >model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >>>>>>> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : >>>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"> >>>>>>> <page path-info="/expo/test/welcome" view="view.xhtml"/> >>>>>>> </config> >>>>>>> >>>>>>> If I then surf to http://localhost/ops/expo/test/welcome, I get >>>>>>> nothing. >>>>>>> If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get >a page not >>>>>>> found. >>>>>>> There is nothing usefull in the logs either. >>>>>>> >>>>>>> Any ideas what this could be ? >>>>>>> >>>>>>> Thanks a lot >>>>>>> >>>>>>> Henk >>>>>>> >>>>>>> Erik Bruchez wrote: >>>>>>>> Henk Schets wrote: >>>>>>>>> Hi Ryan, >>>>>>>>> >>>>>>>>> thanks for your quick answer. >>>>>>>>> >>>>>>>>> So I change the page-flow.xml to this : >>>>>>>>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>>>>>>>> model="file:///home/${1}/page-flow.xml" /> >>>>>>>>> >>>>>>>>> But then my question is : what path info do I have to >>> put in the >>>>>>>>> page-flow.xml in the user directory ? >>>>>>>>> E.g. if I have a request to >>>>> http://myserver/home/user_x/test, will >>>>>>>>> this work : >>>>>>>>> <page id="test" path-info="/test" model="db.xpl"/> ? >>>>>>>>> or is only this correct : >>>>>>>>> <page id="test" path-info="/home/user_x/test" >>> model="db.xpl"/> in >>>>>>>>> other words, can I work with urls which are relative ? >>>>>>>> Paths in the page flow match on the part of the path after >>>>>>> the Servlet >>>>>>>> context. Given your regexp, and independently from the Servlet >>>>>>>> context, you will have to match on things like this in the >>>>>>> user page flow: >>>>>>>> /user_x/test >>>>>>>> /user_x/page1 >>>>>>>> /user_x/page2 >>>>>>>> >>>>>>>> In other words you have to include the part of the path that >>>>>>> includes >>>>>>>> the username. I agree that this is not ideal. >>>>>>>> >>>>>>>> It would be possible in theory to change the system to allow >>>>>>> a master >>>>>>>> page flow to communicate to a sub-page flow the part of >>>>> the path to >>>>>>>> remove, but this would be only part of the equation, >as then URL >>>>>>>> rewriting (for the URLs output by your pages) would also >>>>> have to be >>>>>>>> changed. >>>>>>>> >>>>>>>> -Erik >>>>>>>> >>> >> > > -- 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 |
Allright ! It works now ! Thanks for your patience.
Henk Ryan Puddephatt wrote: > Henk, > Sorry I overlooked your version number earlier, this is a > 3.5M1-nightly improvement, I suggest you get a nightly build from > http://forge.objectweb.org/nightlybuilds/ops/ops/ > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > >> -----Original Message----- >> From: Henk Schets [mailto:[hidden email]] >> Sent: 12 January 2007 08:31 >> To: [hidden email] >> Subject: Re: [ops-users] starting with ops : webpages in >> different directories >> >> Ryan, >> >> I'm afraid this won't work either. >> Maybe this stuff with the page flow file as a model does not >> work in version 3.0.1 ? >> >> Thanks >> >> Henk >> >> Ryan Puddephatt wrote: >>> Henk, >>> Leave the page-flow as >>> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >>> model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >>> >>> http://localhost/ops/expo/test/welcome >>> >>> But change the new page-flow.xml to >>> >>> <page path-info="/test/welcome" view="view.xhtml"/> >>> >>> Rather than >>> >>> <page path-info="/expo/test/welcome" view="view.xhtml"/> >>> >>> Ryan >>> >>> >>>> -----Original Message----- >>>> From: Henk Schets [mailto:[hidden email]] >>>> Sent: 11 January 2007 15:45 >>>> To: [hidden email] >>>> Subject: Re: [ops-users] starting with ops : webpages in different >>>> directories >>>> >>>> Ryan, >>>> >>>> that's what I did. But because of the regular expression, it looks >>>> for the page-flow.xml in the wrong directory. >>>> >>>> Henk >>>> >>>> >>>> Ryan Puddephatt wrote: >>>>> Henk, >>>>> I meant in your url i.e. >>>>> http://localhost:8080/context/expo/expo/test/welcome rather than >>>>> changing the page-flow.xml >>>>> >>>>> Ryan >>>>> >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Henk Schets [mailto:[hidden email]] >>>>>> Sent: 11 January 2007 15:14 >>>>>> To: [hidden email] >>>>>> Subject: Re: [ops-users] starting with ops : webpages in >> different >>>>>> directories >>>>>> >>>>>> Ryan, >>>>>> >>>>>> if I enter that, it says it does not found the file >>>>>> /home/henks/gurung/progs/xml/expo/expo/page-flow.xml, which >>>> is correct. >>>>>> If I revert to what I entered before, there is something I find >>>>>> strange >>>>>> : it does not complain, no errors, but it does not show >>>> output. This >>>>>> line : <page path-info="/expo/test/welcome" >>>>>> view="view.xhtml"/> should show me the html page, no ? >>>>>> >>>>>> FYI : this is the content of view.xhtml : >>>>>> <html xmlns="http://www.w3.org/1999/xhtml" >>>>>> xmlns:f="http://orbeon.org/oxf/xml/formatting"> >>>>>> <head> >>>>>> <title>Welcome to the Orbeon Forms Examples</title> >>>>>> </head> >>>>>> <body> >>>>>> <p> >>>>>> Welcome to the Orbeon Forms examples! Here you >>>> will find >>>>>> several examples illustrating the capabilities of >>>>>> Orbeon Forms. For more information about >> Orbeon Forms, >>>>>> please visit the following resources: >>>>>> </p> >>>>>> </body> >>>>>> </html> >>>>>> >>>>>> I am using Orbeon Forms 3.0.1. >>>>>> >>>>>> Henk >>>>>> >>>>>> Ryan Puddephatt wrote: >>>>>>> Henk >>>>>>> Just an idea, but does /expo/expo/test/welcome work, if >>>>>> so remove the >>>>>>> /expo in the second page-flow.xml >>>>>>> >>>>>>> Ryan >>>>>>> >>>>>>> Ryan Puddephatt >>>>>>> Software Engineer >>>>>>>> From: Henk Schets [mailto:[hidden email]] >>>>>>>> Sent: 11 January 2007 14:38 >>>>>>>> To: [hidden email] >>>>>>>> Subject: Re: [ops-users] starting with ops : webpages in >>>> different >>>>>>>> directories >>>>>>>> >>>>>>>> Hi Erik, >>>>>>>> >>>>>>>> I tried this without luck : >>>>>>>> >>>>>>>> in my page-flow.xml under WEB-INF/resources : >>>>>>>> >>>>>>>> <page path-info="/expo/([^/]+)/.*" matcher="oxf:perl5-matcher" >>>>>>>> >> model="file:///home/henks/gurung/progs/xml/expo/${1}/page-flow.xml"/> >>>>>>>> file: /home/henks/gurung/progs/xml/expo/test/page-flow.xml : >>>>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"> >>>>>>>> <page path-info="/expo/test/welcome" view="view.xhtml"/> >>>>>>>> </config> >>>>>>>> >>>>>>>> If I then surf to http://localhost/ops/expo/test/welcome, I get >>>>>>>> nothing. >>>>>>>> If I change /expo/([^/]+)/.* to /expo/([^/]+)/*, I get >> a page not >>>>>>>> found. >>>>>>>> There is nothing usefull in the logs either. >>>>>>>> >>>>>>>> Any ideas what this could be ? >>>>>>>> >>>>>>>> Thanks a lot >>>>>>>> >>>>>>>> Henk >>>>>>>> >>>>>>>> Erik Bruchez wrote: >>>>>>>>> Henk Schets wrote: >>>>>>>>>> Hi Ryan, >>>>>>>>>> >>>>>>>>>> thanks for your quick answer. >>>>>>>>>> >>>>>>>>>> So I change the page-flow.xml to this : >>>>>>>>>> <page path-info="/([^/]+)/*" matcher="oxf:perl5-matcher" >>>>>>>>>> model="file:///home/${1}/page-flow.xml" /> >>>>>>>>>> >>>>>>>>>> But then my question is : what path info do I have to >>>> put in the >>>>>>>>>> page-flow.xml in the user directory ? >>>>>>>>>> E.g. if I have a request to >>>>>> http://myserver/home/user_x/test, will >>>>>>>>>> this work : >>>>>>>>>> <page id="test" path-info="/test" model="db.xpl"/> ? >>>>>>>>>> or is only this correct : >>>>>>>>>> <page id="test" path-info="/home/user_x/test" >>>> model="db.xpl"/> in >>>>>>>>>> other words, can I work with urls which are relative ? >>>>>>>>> Paths in the page flow match on the part of the path after >>>>>>>> the Servlet >>>>>>>>> context. Given your regexp, and independently from the Servlet >>>>>>>>> context, you will have to match on things like this in the >>>>>>>> user page flow: >>>>>>>>> /user_x/test >>>>>>>>> /user_x/page1 >>>>>>>>> /user_x/page2 >>>>>>>>> >>>>>>>>> In other words you have to include the part of the path that >>>>>>>> includes >>>>>>>>> the username. I agree that this is not ideal. >>>>>>>>> >>>>>>>>> It would be possible in theory to change the system to allow >>>>>>>> a master >>>>>>>>> page flow to communicate to a sub-page flow the part of >>>>>> the path to >>>>>>>>> remove, but this would be only part of the equation, >> as then URL >>>>>>>>> rewriting (for the URLs output by your pages) would also >>>>>> have to be >>>>>>>>> changed. >>>>>>>>> >>>>>>>>> -Erik >>>>>>>>> >> > > > > ------------------------------------------------------------------------ > > > -- > 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 Henk Schets Team Leader Product Development Royal Meteorological Institute of Belgium (R.M.I.B.) Ringlaan 3 B-1180 Brussels Belgium Tel: (+32) 2 3730597 Fax: (+32) 2 3757549 E-mail: [hidden email] WWW server: http://www.meteo.be -- 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 |
Administrator
|
In reply to this post by Henk Schets
Henk Schets wrote:
> Ryan, > > I'm afraid this won't work either. > Maybe this stuff with the page flow file as a model does not work in > version 3.0.1 ? You're right, it doesn't. It's partially our fault, as we still advertise 3.0.1 on the web site. We have now added a reference to nightly builds on the download page, and hopefully very soon 3.5 will replace 3.0.1! http://www.orbeon.com/forms/download -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |