Page-Flow Problem

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

Page-Flow Problem

Ryan Puddephatt

Hi,

I’m having a problem using the page-flow with regexp. I have a page /index which uses /page/action/result/@page to forward to a page with a regexp. When it does this the page-flow takes /(dev|admin)/problem and creates a url which ends up as http://localhost:8080/peaUtilities/(dev|admin)/problem. This doesn’t match anything. I’m not good with regexp or using the page-flow to achieve what I need, attached is a sample of what I require.

 

Is anyone able to help with this?

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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

page-flow.xml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Page-Flow Problem

Erik Bruchez
Administrator
Ryan,

The Logic for redirection paths when you use matchers requires you to
use <setvalue> and a submission. This is documented here:

http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matchers-pages

Best,

-Erik

Ryan Puddephatt wrote:
 > Hi,
 >
 > I'm having a problem using the page-flow with regexp. I have a page
 > /index which uses /page/action/result/@page to forward to a page with a
 > regexp. When it does this the page-flow takes /(dev|admin)/problem and
 > creates a url which ends up as
 > http://localhost:8080/peaUtilities/(dev|admin)/problem
 > <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This doesn't
 > match anything. I'm not good with regexp or using the page-flow to
 > achieve what I need, attached is a sample of what I require.
 >
 >
 >
 > Is anyone able to help with this?
 >
 >
 >
 > Thanks
 >
 >
 >
 > Ryan
 >
 >
 >
 > *Ryan Puddephatt*
 >
 > Software Engineer
 >
 > TFX Group - IT UK
 >
 > 1 Michaelson Square
 >
 > Livingston
 >
 > West Lothian
 >
 > Scotand
 >
 > EH54 7DP
 >
 >
 >
 > * [hidden email]
 >
 > ( 01506 407 110
 >
 > 7  01506 407 108
 >
 >
 >
 >
 >
 >
 > ------------------------------------------------------------------------
 >
 > <config xmlns="http://www.orbeon.com/oxf/controller"
 >         xmlns:xu="http://www.xmldb.org/xupdate"
 >         xmlns:oxf="http://www.orbeon.com/oxf/processors">
 >
 >     <!-- Files to serve directly -->
 >     <files path-info="*.gif"/>
 >     <files path-info="*.css"/>
 >     <files path-info="*.pdf"/>
 >     <files path-info="*.js"/>
 >     <files path-info="*.png"/>
 >     <files path-info="*.jpg"/>
 >     <files path-info="*.xsd"/>
 >     <files path-info="*.xml" mime-type="application/xml"/>
 >     <files path-info="*.html" mime-type="text/html"/>
 >     <files path-info="*.java" mime-type="text/plain"/>
 >     <files path-info="*.txt" mime-type="text/plain"/>
 >     <files path-info="*.xq" mime-type="text/plain"/>
 >
 >     <page id="test1" path-info="/index">
 >         <action>
 >             <result page="problempage"/>
 >         </action>
 >     </page>
 >
 >     <page id="test2" path-info="/(dev|admin)/index">
 >         <action>
 >             <result page="problempage"/>
 >         </action>
 >     </page>
 >
 >     <page id="problempage" path-info="/(dev|admin)/problem"
matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
 >
 > </config>

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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: Page-Flow Problem

Ryan Puddephatt
Thanks Erik,
        I'll try changing my page flow to suit this

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
>Sent: 09 July 2006 16:15
>To: [hidden email]
>Subject: Re: [ops-users] Page-Flow Problem
>
>Ryan,
>
>The Logic for redirection paths when you use matchers requires you to
>use <setvalue> and a submission. This is documented here:
>
>http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matchers-
>pages
>
>Best,
>
>-Erik
>
>Ryan Puddephatt wrote:
> > Hi,
> >
> > I'm having a problem using the page-flow with regexp. I have a page
> > /index which uses /page/action/result/@page to forward to a page with a
> > regexp. When it does this the page-flow takes /(dev|admin)/problem and
> > creates a url which ends up as
> > http://localhost:8080/peaUtilities/(dev|admin)/problem
> > <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This doesn't
> > match anything. I'm not good with regexp or using the page-flow to
> > achieve what I need, attached is a sample of what I require.
> >
> >
> >
> > Is anyone able to help with this?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Ryan
> >
> >
> >
> > *Ryan Puddephatt*
> >
> > Software Engineer
> >
> > TFX Group - IT UK
> >
> > 1 Michaelson Square
> >
> > Livingston
> >
> > West Lothian
> >
> > Scotand
> >
> > EH54 7DP
> >
> >
> >
> > * [hidden email]
> >
> > ( 01506 407 110
> >
> > 7  01506 407 108
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > <config xmlns="http://www.orbeon.com/oxf/controller"
> >         xmlns:xu="http://www.xmldb.org/xupdate"
> >         xmlns:oxf="http://www.orbeon.com/oxf/processors">
> >
> >     <!-- Files to serve directly -->
> >     <files path-info="*.gif"/>
> >     <files path-info="*.css"/>
> >     <files path-info="*.pdf"/>
> >     <files path-info="*.js"/>
> >     <files path-info="*.png"/>
> >     <files path-info="*.jpg"/>
> >     <files path-info="*.xsd"/>
> >     <files path-info="*.xml" mime-type="application/xml"/>
> >     <files path-info="*.html" mime-type="text/html"/>
> >     <files path-info="*.java" mime-type="text/plain"/>
> >     <files path-info="*.txt" mime-type="text/plain"/>
> >     <files path-info="*.xq" mime-type="text/plain"/>
> >
> >     <page id="test1" path-info="/index">
> >         <action>
> >             <result page="problempage"/>
> >         </action>
> >     </page>
> >
> >     <page id="test2" path-info="/(dev|admin)/index">
> >         <action>
> >             <result page="problempage"/>
> >         </action>
> >     </page>
> >
> >     <page id="problempage" path-info="/(dev|admin)/problem"
>matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
> >
> > </config>
>
>--
>Orbeon - XForms Everywhere:
>http://www.orbeon.com/blog/




--
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: Page-Flow Problem

Ryan Puddephatt
Erik,
        I have tried this, but it still isn't working as I would expect. In
my page-flow I have

    <page id="referIndexUserLevelPage"
        path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage"
        path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"/>

When I call the first /dev/ I want /dev/index this is not the case and it
gives me 404

I can see the redirection carried out, but it doesn't seem to apply a match
or anything

Any ideas how to get around this?

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: Ryan Puddephatt [mailto:[hidden email]]
Sent: 09 July 2006 17:13
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Thanks Erik,
        I'll try changing my page flow to suit this

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>Bruchez
>Sent: 09 July 2006 16:15
>To: [hidden email]
>Subject: Re: [ops-users] Page-Flow Problem
>
>Ryan,
>
>The Logic for redirection paths when you use matchers requires you to
>use <setvalue> and a submission. This is documented here:
>
>http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matcher
>s-
>pages
>
>Best,
>
>-Erik
>
>Ryan Puddephatt wrote:
> > Hi,
> >
> > I'm having a problem using the page-flow with regexp. I have a page
> > /index which uses /page/action/result/@page to forward to a page
> > with a regexp. When it does this the page-flow takes
> > /(dev|admin)/problem and creates a url which ends up as
> > http://localhost:8080/peaUtilities/(dev|admin)/problem
> > <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
> > doesn't match anything. I'm not good with regexp or using the
> > page-flow to achieve what I need, attached is a sample of what I
require.

> >
> >
> >
> > Is anyone able to help with this?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Ryan
> >
> >
> >
> > *Ryan Puddephatt*
> >
> > Software Engineer
> >
> > TFX Group - IT UK
> >
> > 1 Michaelson Square
> >
> > Livingston
> >
> > West Lothian
> >
> > Scotand
> >
> > EH54 7DP
> >
> >
> >
> > * [hidden email]
> >
> > ( 01506 407 110
> >
> > 7  01506 407 108
> >
> >
> >
> >
> >
> >
> > --------------------------------------------------------------------
> > ----
> >
> > <config xmlns="http://www.orbeon.com/oxf/controller"
> >         xmlns:xu="http://www.xmldb.org/xupdate"
> >         xmlns:oxf="http://www.orbeon.com/oxf/processors">
> >
> >     <!-- Files to serve directly -->
> >     <files path-info="*.gif"/>
> >     <files path-info="*.css"/>
> >     <files path-info="*.pdf"/>
> >     <files path-info="*.js"/>
> >     <files path-info="*.png"/>
> >     <files path-info="*.jpg"/>
> >     <files path-info="*.xsd"/>
> >     <files path-info="*.xml" mime-type="application/xml"/>
> >     <files path-info="*.html" mime-type="text/html"/>
> >     <files path-info="*.java" mime-type="text/plain"/>
> >     <files path-info="*.txt" mime-type="text/plain"/>
> >     <files path-info="*.xq" mime-type="text/plain"/>
> >
> >     <page id="test1" path-info="/index">
> >         <action>
> >             <result page="problempage"/>
> >         </action>
> >     </page>
> >
> >     <page id="test2" path-info="/(dev|admin)/index">
> >         <action>
> >             <result page="problempage"/>
> >         </action>
> >     </page>
> >
> >     <page id="problempage" path-info="/(dev|admin)/problem"
>matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
> >
> > </config>
>
>--
>Orbeon - XForms Everywhere:
>http://www.orbeon.com/blog/






--
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: Page-Flow Problem

Erik Bruchez
Administrator
This is probably a typo:

<result page="indexPage"/>

I assume it is:

<result page="indexUserLevelPage"/>

This said, you destination page must have a default-submission and
<setvalue> as well.

-Erik

Ryan Puddephatt wrote:

> Erik,
> I have tried this, but it still isn't working as I would expect. In
> my page-flow I have
>
>     <page id="referIndexUserLevelPage"
>         path-info="/(dev|admin|user)/"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>         <action>
>             <result page="indexPage"/>
>         </action>
>     </page>
>     <page id="indexUserLevelPage"
>         path-info="/(dev|admin|user)/index"
>         model="oxf:/pages/model.xpl"
>         view="oxf:/pages/index.xsl"
>         matcher="oxf:perl5-matcher"/>
>
> When I call the first /dev/ I want /dev/index this is not the case and it
> gives me 404
>
> I can see the redirection carried out, but it doesn't seem to apply a match
> or anything
>
> Any ideas how to get around this?
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 09 July 2006 17:13
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Thanks Erik,
> I'll try changing my page flow to suit this
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: 09 July 2006 16:15
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> Ryan,
>>
>> The Logic for redirection paths when you use matchers requires you to
>> use <setvalue> and a submission. This is documented here:
>>
>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matcher
>> s-
>> pages
>>
>> Best,
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> Hi,
>>>
>>> I'm having a problem using the page-flow with regexp. I have a page
>>> /index which uses /page/action/result/@page to forward to a page
>>> with a regexp. When it does this the page-flow takes
>>> /(dev|admin)/problem and creates a url which ends up as
>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>> doesn't match anything. I'm not good with regexp or using the
>>> page-flow to achieve what I need, attached is a sample of what I
> require.
>>>
>>>
>>> Is anyone able to help with this?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Ryan
>>>
>>>
>>>
>>> *Ryan Puddephatt*
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>>
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7  01506 407 108
>>>
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>
>>>     <!-- Files to serve directly -->
>>>     <files path-info="*.gif"/>
>>>     <files path-info="*.css"/>
>>>     <files path-info="*.pdf"/>
>>>     <files path-info="*.js"/>
>>>     <files path-info="*.png"/>
>>>     <files path-info="*.jpg"/>
>>>     <files path-info="*.xsd"/>
>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>     <files path-info="*.html" mime-type="text/html"/>
>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>
>>>     <page id="test1" path-info="/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>> </config>
>> --
>> Orbeon - XForms Everywhere:
>> http://www.orbeon.com/blog/
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/



--
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: Page-Flow Problem

Ryan Puddephatt
Erik,
It was a typo, but I've added the setvalue and it doesn't work

    <page id="referIndexUserLevelPage"
        path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexUserLevelPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage"
        path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
    </page>

The user-level-sub.xml has

<form>
        <user-level>user</user-level>
</form>

Any ideas?

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 17 July 2006 14:35
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

This is probably a typo:

<result page="indexPage"/>

I assume it is:

<result page="indexUserLevelPage"/>

This said, you destination page must have a default-submission and
<setvalue> as well.

-Erik

Ryan Puddephatt wrote:

> Erik,
> I have tried this, but it still isn't working as I would expect. In
> my page-flow I have
>
>     <page id="referIndexUserLevelPage"
>         path-info="/(dev|admin|user)/"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>         <action>
>             <result page="indexPage"/>
>         </action>
>     </page>
>     <page id="indexUserLevelPage"
>         path-info="/(dev|admin|user)/index"
>         model="oxf:/pages/model.xpl"
>         view="oxf:/pages/index.xsl"
>         matcher="oxf:perl5-matcher"/>
>
> When I call the first /dev/ I want /dev/index this is not the case and
> it gives me 404
>
> I can see the redirection carried out, but it doesn't seem to apply a
> match or anything
>
> Any ideas how to get around this?
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 09 July 2006 17:13
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Thanks Erik,
> I'll try changing my page flow to suit this
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: 09 July 2006 16:15
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> Ryan,
>>
>> The Logic for redirection paths when you use matchers requires you to
>> use <setvalue> and a submission. This is documented here:
>>
>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
>> er
>> s-
>> pages
>>
>> Best,
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> Hi,
>>>
>>> I'm having a problem using the page-flow with regexp. I have a page
>>> /index which uses /page/action/result/@page to forward to a page
>>> with a regexp. When it does this the page-flow takes
>>> /(dev|admin)/problem and creates a url which ends up as
>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>> doesn't match anything. I'm not good with regexp or using the
>>> page-flow to achieve what I need, attached is a sample of what I
> require.
>>>
>>>
>>> Is anyone able to help with this?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Ryan
>>>
>>>
>>>
>>> *Ryan Puddephatt*
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>>
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7  01506 407 108
>>>
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>
>>>     <!-- Files to serve directly -->
>>>     <files path-info="*.gif"/>
>>>     <files path-info="*.css"/>
>>>     <files path-info="*.pdf"/>
>>>     <files path-info="*.js"/>
>>>     <files path-info="*.png"/>
>>>     <files path-info="*.jpg"/>
>>>     <files path-info="*.xsd"/>
>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>     <files path-info="*.html" mime-type="text/html"/>
>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>
>>>     <page id="test1" path-info="/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>> </config>
>> --
>> Orbeon - XForms Everywhere:
>> http://www.orbeon.com/blog/
>
>
>
>
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/





--
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: Page-Flow Problem

Ryan Puddephatt
Hi all,
        I think I might have overcome my little problem with the page flow,
I can now get it to forward on and set the urls as required. One thing I
notice is that the url doesn't physically change in the browser. Is there an
easy way to do this in the page-flow or am I looking at an XPL?

Thanks

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: Ryan Puddephatt [mailto:[hidden email]]
Sent: 17 July 2006 15:09
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Erik,
It was a typo, but I've added the setvalue and it doesn't work

    <page id="referIndexUserLevelPage"
        path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexUserLevelPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage"
        path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
    </page>

The user-level-sub.xml has

<form>
        <user-level>user</user-level>
</form>

Any ideas?

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 17 July 2006 14:35
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

This is probably a typo:

<result page="indexPage"/>

I assume it is:

<result page="indexUserLevelPage"/>

This said, you destination page must have a default-submission and
<setvalue> as well.

-Erik

Ryan Puddephatt wrote:

> Erik,
> I have tried this, but it still isn't working as I would expect. In
> my page-flow I have
>
>     <page id="referIndexUserLevelPage"
>         path-info="/(dev|admin|user)/"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>         <action>
>             <result page="indexPage"/>
>         </action>
>     </page>
>     <page id="indexUserLevelPage"
>         path-info="/(dev|admin|user)/index"
>         model="oxf:/pages/model.xpl"
>         view="oxf:/pages/index.xsl"
>         matcher="oxf:perl5-matcher"/>
>
> When I call the first /dev/ I want /dev/index this is not the case and
> it gives me 404
>
> I can see the redirection carried out, but it doesn't seem to apply a
> match or anything
>
> Any ideas how to get around this?
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 09 July 2006 17:13
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Thanks Erik,
> I'll try changing my page flow to suit this
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: 09 July 2006 16:15
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> Ryan,
>>
>> The Logic for redirection paths when you use matchers requires you to
>> use <setvalue> and a submission. This is documented here:
>>
>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
>> er
>> s-
>> pages
>>
>> Best,
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> Hi,
>>>
>>> I'm having a problem using the page-flow with regexp. I have a page
>>> /index which uses /page/action/result/@page to forward to a page
>>> with a regexp. When it does this the page-flow takes
>>> /(dev|admin)/problem and creates a url which ends up as
>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>> doesn't match anything. I'm not good with regexp or using the
>>> page-flow to achieve what I need, attached is a sample of what I
> require.
>>>
>>>
>>> Is anyone able to help with this?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Ryan
>>>
>>>
>>>
>>> *Ryan Puddephatt*
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>>
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7  01506 407 108
>>>
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>
>>>     <!-- Files to serve directly -->
>>>     <files path-info="*.gif"/>
>>>     <files path-info="*.css"/>
>>>     <files path-info="*.pdf"/>
>>>     <files path-info="*.js"/>
>>>     <files path-info="*.png"/>
>>>     <files path-info="*.jpg"/>
>>>     <files path-info="*.xsd"/>
>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>     <files path-info="*.html" mime-type="text/html"/>
>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>
>>>     <page id="test1" path-info="/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>> </config>
>> --
>> Orbeon - XForms Everywhere:
>> http://www.orbeon.com/blog/
>
>
>
>
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/







--
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: Page-Flow Problem

Ryan Puddephatt
Hi all,
        After reading more into the documentation I now know I can use
c:config/@instance-passing="redirect" in my page-flow to do this

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: Ryan Puddephatt [mailto:[hidden email]]
Sent: 19 July 2006 10:52
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Hi all,
        I think I might have overcome my little problem with the page flow,
I can now get it to forward on and set the urls as required. One thing I
notice is that the url doesn't physically change in the browser. Is there an
easy way to do this in the page-flow or am I looking at an XPL?

Thanks

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: Ryan Puddephatt [mailto:[hidden email]]
Sent: 17 July 2006 15:09
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Erik,
It was a typo, but I've added the setvalue and it doesn't work

    <page id="referIndexUserLevelPage"
        path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexUserLevelPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage"
        path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
    </page>

The user-level-sub.xml has

<form>
        <user-level>user</user-level>
</form>

Any ideas?

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 17 July 2006 14:35
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

This is probably a typo:

<result page="indexPage"/>

I assume it is:

<result page="indexUserLevelPage"/>

This said, you destination page must have a default-submission and
<setvalue> as well.

-Erik

Ryan Puddephatt wrote:

> Erik,
> I have tried this, but it still isn't working as I would expect. In
> my page-flow I have
>
>     <page id="referIndexUserLevelPage"
>         path-info="/(dev|admin|user)/"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>         <action>
>             <result page="indexPage"/>
>         </action>
>     </page>
>     <page id="indexUserLevelPage"
>         path-info="/(dev|admin|user)/index"
>         model="oxf:/pages/model.xpl"
>         view="oxf:/pages/index.xsl"
>         matcher="oxf:perl5-matcher"/>
>
> When I call the first /dev/ I want /dev/index this is not the case and
> it gives me 404
>
> I can see the redirection carried out, but it doesn't seem to apply a
> match or anything
>
> Any ideas how to get around this?
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 09 July 2006 17:13
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Thanks Erik,
> I'll try changing my page flow to suit this
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: 09 July 2006 16:15
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> Ryan,
>>
>> The Logic for redirection paths when you use matchers requires you to
>> use <setvalue> and a submission. This is documented here:
>>
>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
>> er
>> s-
>> pages
>>
>> Best,
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> Hi,
>>>
>>> I'm having a problem using the page-flow with regexp. I have a page
>>> /index which uses /page/action/result/@page to forward to a page
>>> with a regexp. When it does this the page-flow takes
>>> /(dev|admin)/problem and creates a url which ends up as
>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>> doesn't match anything. I'm not good with regexp or using the
>>> page-flow to achieve what I need, attached is a sample of what I
> require.
>>>
>>>
>>> Is anyone able to help with this?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Ryan
>>>
>>>
>>>
>>> *Ryan Puddephatt*
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>>
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7  01506 407 108
>>>
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>
>>>     <!-- Files to serve directly -->
>>>     <files path-info="*.gif"/>
>>>     <files path-info="*.css"/>
>>>     <files path-info="*.pdf"/>
>>>     <files path-info="*.js"/>
>>>     <files path-info="*.png"/>
>>>     <files path-info="*.jpg"/>
>>>     <files path-info="*.xsd"/>
>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>     <files path-info="*.html" mime-type="text/html"/>
>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>
>>>     <page id="test1" path-info="/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>> </config>
>> --
>> Orbeon - XForms Everywhere:
>> http://www.orbeon.com/blog/
>
>
>
>
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/









--
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: Page-Flow Problem

Ryan Puddephatt
I'm not trying to do:

<c:result page="${2}View" transform="oxf:xslt">

Where ${2} is the second match of the path-info, but it doesn't seem to
evaluate it and I get the error:

Cannot find page with id '${2}View'

I take it this isn't possible, any idea how hard it would be or a good work
around?

Thanks

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: Ryan Puddephatt [mailto:[hidden email]]
Sent: 19 July 2006 13:41
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Hi all,
        After reading more into the documentation I now know I can use
c:config/@instance-passing="redirect" in my page-flow to do this

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: Ryan Puddephatt [mailto:[hidden email]]
Sent: 19 July 2006 10:52
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Hi all,
        I think I might have overcome my little problem with the page flow,
I can now get it to forward on and set the urls as required. One thing I
notice is that the url doesn't physically change in the browser. Is there an
easy way to do this in the page-flow or am I looking at an XPL?

Thanks

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: Ryan Puddephatt [mailto:[hidden email]]
Sent: 17 July 2006 15:09
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Erik,
It was a typo, but I've added the setvalue and it doesn't work

    <page id="referIndexUserLevelPage"
        path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexUserLevelPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage"
        path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
    </page>

The user-level-sub.xml has

<form>
        <user-level>user</user-level>
</form>

Any ideas?

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 17 July 2006 14:35
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

This is probably a typo:

<result page="indexPage"/>

I assume it is:

<result page="indexUserLevelPage"/>

This said, you destination page must have a default-submission and
<setvalue> as well.

-Erik

Ryan Puddephatt wrote:

> Erik,
> I have tried this, but it still isn't working as I would expect. In
> my page-flow I have
>
>     <page id="referIndexUserLevelPage"
>         path-info="/(dev|admin|user)/"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>         <action>
>             <result page="indexPage"/>
>         </action>
>     </page>
>     <page id="indexUserLevelPage"
>         path-info="/(dev|admin|user)/index"
>         model="oxf:/pages/model.xpl"
>         view="oxf:/pages/index.xsl"
>         matcher="oxf:perl5-matcher"/>
>
> When I call the first /dev/ I want /dev/index this is not the case and
> it gives me 404
>
> I can see the redirection carried out, but it doesn't seem to apply a
> match or anything
>
> Any ideas how to get around this?
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 09 July 2006 17:13
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Thanks Erik,
> I'll try changing my page flow to suit this
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: 09 July 2006 16:15
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> Ryan,
>>
>> The Logic for redirection paths when you use matchers requires you to
>> use <setvalue> and a submission. This is documented here:
>>
>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
>> er
>> s-
>> pages
>>
>> Best,
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> Hi,
>>>
>>> I'm having a problem using the page-flow with regexp. I have a page
>>> /index which uses /page/action/result/@page to forward to a page
>>> with a regexp. When it does this the page-flow takes
>>> /(dev|admin)/problem and creates a url which ends up as
>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>> doesn't match anything. I'm not good with regexp or using the
>>> page-flow to achieve what I need, attached is a sample of what I
> require.
>>>
>>>
>>> Is anyone able to help with this?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Ryan
>>>
>>>
>>>
>>> *Ryan Puddephatt*
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>>
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7  01506 407 108
>>>
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>
>>>     <!-- Files to serve directly -->
>>>     <files path-info="*.gif"/>
>>>     <files path-info="*.css"/>
>>>     <files path-info="*.pdf"/>
>>>     <files path-info="*.js"/>
>>>     <files path-info="*.png"/>
>>>     <files path-info="*.jpg"/>
>>>     <files path-info="*.xsd"/>
>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>     <files path-info="*.html" mime-type="text/html"/>
>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>
>>>     <page id="test1" path-info="/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>         <action>
>>>             <result page="problempage"/>
>>>         </action>
>>>     </page>
>>>
>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>> </config>
>> --
>> Orbeon - XForms Everywhere:
>> http://www.orbeon.com/blog/
>
>
>
>
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/











--
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: Page-Flow Problem

Larry T. Chen
In reply to this post by Ryan Puddephatt
I'm trying to use instance-passing="redirect" in my page-flow as well.  I have

        <action>
             <result page="view" transform="oxf:xslt" instance-passing="redirect">
                  <parameters xsl:version="2.0">
                      <xsl:attribute name="id" select="doc('input:instance')/*/@id"/>
                  </parameters>
             </result>
        </action>

However, when I post to this page, OPS gives me an error:

Malformed URL: %24instance=X2y6DZ%2F6qm2DXU6OpIpogkzazGNNNk1n6DAU5XAQSwdmuAVGld% .....

I'm basically trying to redirect to another page while passing a parameter (id) on the URL.  Is there another way to do this?

Larry T. Chen
Software Engineer
Intelenet Communications, Inc.

Ryan Puddephatt wrote:
Hi all,
	After reading more into the documentation I now know I can use
c:config/@instance-passing="redirect" in my page-flow to do this

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: Ryan Puddephatt [[hidden email]] 
Sent: 19 July 2006 10:52
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Hi all,
	I think I might have overcome my little problem with the page flow,
I can now get it to forward on and set the urls as required. One thing I
notice is that the url doesn't physically change in the browser. Is there an
easy way to do this in the page-flow or am I looking at an XPL?

Thanks

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: Ryan Puddephatt [[hidden email]]
Sent: 17 July 2006 15:09
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Erik,
It was a typo, but I've added the setvalue and it doesn't work

    <page id="referIndexUserLevelPage" 
        path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher" 
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexUserLevelPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage" 
        path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
    </page>

The user-level-sub.xml has

<form>
	<user-level>user</user-level>
</form>

Any ideas? 

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: Erik Bruchez [[hidden email]] On Behalf Of Erik Bruchez
Sent: 17 July 2006 14:35
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

This is probably a typo:

<result page="indexPage"/>

I assume it is:

<result page="indexUserLevelPage"/>

This said, you destination page must have a default-submission and
<setvalue> as well.

-Erik

Ryan Puddephatt wrote:
  
Erik,
	I have tried this, but it still isn't working as I would expect. In 
my page-flow I have

    <page id="referIndexUserLevelPage" 
        path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher" 
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage" 
        path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"/>

When I call the first /dev/ I want /dev/index this is not the case and 
it gives me 404

I can see the redirection carried out, but it doesn't seem to apply a 
match or anything

Any ideas how to get around this?

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: Ryan Puddephatt [[hidden email]]
Sent: 09 July 2006 17:13
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Thanks Erik,
	I'll try changing my page flow to suit this

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

    
-----Original Message-----
From: Erik Bruchez [[hidden email]] On Behalf Of Erik 
Bruchez
Sent: 09 July 2006 16:15
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

Ryan,

The Logic for redirection paths when you use matchers requires you to 
use <setvalue> and a submission. This is documented here:

http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
er
s-
pages

Best,

-Erik

Ryan Puddephatt wrote:
      
Hi,

I'm having a problem using the page-flow with regexp. I have a page 
/index which uses /page/action/result/@page to forward to a page 
with a regexp. When it does this the page-flow takes 
/(dev|admin)/problem and creates a url which ends up as 
http://localhost:8080/peaUtilities/(dev|admin)/problem
<http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This 
doesn't match anything. I'm not good with regexp or using the 
page-flow to achieve what I need, attached is a sample of what I
        
require.
    
Is anyone able to help with this?



Thanks



Ryan



*Ryan Puddephatt*

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP



* [hidden email]

( 01506 407 110

7  01506 407 108






--------------------------------------------------------------------
----

<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate"
        xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- Files to serve directly -->
    <files path-info="*.gif"/>
    <files path-info="*.css"/>
    <files path-info="*.pdf"/>
    <files path-info="*.js"/>
    <files path-info="*.png"/>
    <files path-info="*.jpg"/>
    <files path-info="*.xsd"/>
    <files path-info="*.xml" mime-type="application/xml"/>
    <files path-info="*.html" mime-type="text/html"/>
    <files path-info="*.java" mime-type="text/plain"/>
    <files path-info="*.txt" mime-type="text/plain"/>
    <files path-info="*.xq" mime-type="text/plain"/>

    <page id="test1" path-info="/index">
        <action>
            <result page="problempage"/>
        </action>
    </page>

    <page id="test2" path-info="/(dev|admin)/index">
        <action>
            <result page="problempage"/>
        </action>
    </page>

    <page id="problempage" path-info="/(dev|admin)/problem"
        
matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
      
</config>
        
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/
      




----------------------------------------------------------------------
--


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


--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/







  

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



--
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: Page-Flow Problem

Erik Bruchez
Administrator
In reply to this post by Ryan Puddephatt
Ryan,

You cannot specify a page id dynamically like you would like to do. You
can maybe use the oxf:redirect processor to do this manually. It is a
workaround, although probably not a "good" one ;-)

-Erik

Ryan Puddephatt wrote:

> I'm not trying to do:
>
> <c:result page="${2}View" transform="oxf:xslt">
>
> Where ${2} is the second match of the path-info, but it doesn't seem to
> evaluate it and I get the error:
>
> Cannot find page with id '${2}View'
>
> I take it this isn't possible, any idea how hard it would be or a good work
> around?
>
> Thanks
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 19 July 2006 13:41
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Hi all,
> After reading more into the documentation I now know I can use
> c:config/@instance-passing="redirect" in my page-flow to do this
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 19 July 2006 10:52
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Hi all,
> I think I might have overcome my little problem with the page flow,
> I can now get it to forward on and set the urls as required. One thing I
> notice is that the url doesn't physically change in the browser. Is there an
> easy way to do this in the page-flow or am I looking at an XPL?
>
> Thanks
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 17 July 2006 15:09
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Erik,
> It was a typo, but I've added the setvalue and it doesn't work
>
>     <page id="referIndexUserLevelPage"
>         path-info="/(dev|admin|user)/"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>         <action>
>             <result page="indexUserLevelPage"/>
>         </action>
>     </page>
>     <page id="indexUserLevelPage"
>         path-info="/(dev|admin|user)/index"
>         model="oxf:/pages/model.xpl"
>         view="oxf:/pages/index.xsl"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>     </page>
>
> The user-level-sub.xml has
>
> <form>
> <user-level>user</user-level>
> </form>
>
> Any ideas?
>
> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: 17 July 2006 14:35
> To: [hidden email]
> Subject: Re: [ops-users] Page-Flow Problem
>
> This is probably a typo:
>
> <result page="indexPage"/>
>
> I assume it is:
>
> <result page="indexUserLevelPage"/>
>
> This said, you destination page must have a default-submission and
> <setvalue> as well.
>
> -Erik
>
> Ryan Puddephatt wrote:
>> Erik,
>> I have tried this, but it still isn't working as I would expect. In
>> my page-flow I have
>>
>>     <page id="referIndexUserLevelPage"
>>         path-info="/(dev|admin|user)/"
>>         matcher="oxf:perl5-matcher"
>>         default-submission="oxf:/xml/user-level-sub.xml">
>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>         <action>
>>             <result page="indexPage"/>
>>         </action>
>>     </page>
>>     <page id="indexUserLevelPage"
>>         path-info="/(dev|admin|user)/index"
>>         model="oxf:/pages/model.xpl"
>>         view="oxf:/pages/index.xsl"
>>         matcher="oxf:perl5-matcher"/>
>>
>> When I call the first /dev/ I want /dev/index this is not the case and
>> it gives me 404
>>
>> I can see the redirection carried out, but it doesn't seem to apply a
>> match or anything
>>
>> Any ideas how to get around this?
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 09 July 2006 17:13
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Thanks Erik,
>> I'll try changing my page flow to suit this
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>> TFX Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotand
>> EH54 7DP
>>  
>> * [hidden email]
>> ( 01506 407 110
>> 7  01506 407 108
>>  
>>
>>> -----Original Message-----
>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>> Bruchez
>>> Sent: 09 July 2006 16:15
>>> To: [hidden email]
>>> Subject: Re: [ops-users] Page-Flow Problem
>>>
>>> Ryan,
>>>
>>> The Logic for redirection paths when you use matchers requires you to
>>> use <setvalue> and a submission. This is documented here:
>>>
>>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
>>> er
>>> s-
>>> pages
>>>
>>> Best,
>>>
>>> -Erik
>>>
>>> Ryan Puddephatt wrote:
>>>> Hi,
>>>>
>>>> I'm having a problem using the page-flow with regexp. I have a page
>>>> /index which uses /page/action/result/@page to forward to a page
>>>> with a regexp. When it does this the page-flow takes
>>>> /(dev|admin)/problem and creates a url which ends up as
>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>> doesn't match anything. I'm not good with regexp or using the
>>>> page-flow to achieve what I need, attached is a sample of what I
>> require.
>>>>
>>>> Is anyone able to help with this?
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> Ryan
>>>>
>>>>
>>>>
>>>> *Ryan Puddephatt*
>>>>
>>>> Software Engineer
>>>>
>>>> TFX Group - IT UK
>>>>
>>>> 1 Michaelson Square
>>>>
>>>> Livingston
>>>>
>>>> West Lothian
>>>>
>>>> Scotand
>>>>
>>>> EH54 7DP
>>>>
>>>>
>>>>
>>>> * [hidden email]
>>>>
>>>> ( 01506 407 110
>>>>
>>>> 7  01506 407 108
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> ----
>>>>
>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>
>>>>     <!-- Files to serve directly -->
>>>>     <files path-info="*.gif"/>
>>>>     <files path-info="*.css"/>
>>>>     <files path-info="*.pdf"/>
>>>>     <files path-info="*.js"/>
>>>>     <files path-info="*.png"/>
>>>>     <files path-info="*.jpg"/>
>>>>     <files path-info="*.xsd"/>
>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>
>>>>     <page id="test1" path-info="/index">
>>>>         <action>
>>>>             <result page="problempage"/>
>>>>         </action>
>>>>     </page>
>>>>
>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>         <action>
>>>>             <result page="problempage"/>
>>>>         </action>
>>>>     </page>
>>>>
>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>> </config>
>>> --
>>> Orbeon - XForms Everywhere:
>>> http://www.orbeon.com/blog/
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> --
>>
>>
>> --
>> 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 - XForms Everywhere:
> http://www.orbeon.com/blog/
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/



--
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: Page-Flow Problem

Ryan Puddephatt
Erik,
        How would I pass an instance using the redirect processor?

Thanks

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 19 July 2006 21:08
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

Ryan,

You cannot specify a page id dynamically like you would like to do. You can
maybe use the oxf:redirect processor to do this manually. It is a
workaround, although probably not a "good" one ;-)

-Erik

Ryan Puddephatt wrote:

> I'm not trying to do:
>
> <c:result page="${2}View" transform="oxf:xslt">
>
> Where ${2} is the second match of the path-info, but it doesn't seem
> to evaluate it and I get the error:
>
> Cannot find page with id '${2}View'
>
> I take it this isn't possible, any idea how hard it would be or a good
> work around?
>
> Thanks
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 19 July 2006 13:41
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Hi all,
> After reading more into the documentation I now know I can use
> c:config/@instance-passing="redirect" in my page-flow to do this
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 19 July 2006 10:52
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Hi all,
> I think I might have overcome my little problem with the page flow,
I

> can now get it to forward on and set the urls as required. One thing I
> notice is that the url doesn't physically change in the browser. Is
> there an easy way to do this in the page-flow or am I looking at an XPL?
>
> Thanks
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
> Sent: 17 July 2006 15:09
> To: [hidden email]
> Subject: RE: [ops-users] Page-Flow Problem
>
> Erik,
> It was a typo, but I've added the setvalue and it doesn't work
>
>     <page id="referIndexUserLevelPage"
>         path-info="/(dev|admin|user)/"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>         <action>
>             <result page="indexUserLevelPage"/>
>         </action>
>     </page>
>     <page id="indexUserLevelPage"
>         path-info="/(dev|admin|user)/index"
>         model="oxf:/pages/model.xpl"
>         view="oxf:/pages/index.xsl"
>         matcher="oxf:perl5-matcher"
>         default-submission="oxf:/xml/user-level-sub.xml">
>         <setvalue ref="/form/user-level" matcher-group="1"/>
>     </page>
>
> The user-level-sub.xml has
>
> <form>
> <user-level>user</user-level>
> </form>
>
> Any ideas?
>
> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
> Bruchez
> Sent: 17 July 2006 14:35
> To: [hidden email]
> Subject: Re: [ops-users] Page-Flow Problem
>
> This is probably a typo:
>
> <result page="indexPage"/>
>
> I assume it is:
>
> <result page="indexUserLevelPage"/>
>
> This said, you destination page must have a default-submission and
> <setvalue> as well.
>
> -Erik
>
> Ryan Puddephatt wrote:
>> Erik,
>> I have tried this, but it still isn't working as I would expect. In
>> my page-flow I have
>>
>>     <page id="referIndexUserLevelPage"
>>         path-info="/(dev|admin|user)/"
>>         matcher="oxf:perl5-matcher"
>>         default-submission="oxf:/xml/user-level-sub.xml">
>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>         <action>
>>             <result page="indexPage"/>
>>         </action>
>>     </page>
>>     <page id="indexUserLevelPage"
>>         path-info="/(dev|admin|user)/index"
>>         model="oxf:/pages/model.xpl"
>>         view="oxf:/pages/index.xsl"
>>         matcher="oxf:perl5-matcher"/>
>>
>> When I call the first /dev/ I want /dev/index this is not the case
>> and it gives me 404
>>
>> I can see the redirection carried out, but it doesn't seem to apply a
>> match or anything
>>
>> Any ideas how to get around this?
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 09 July 2006 17:13
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Thanks Erik,
>> I'll try changing my page flow to suit this
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>> TFX Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotand
>> EH54 7DP
>>  
>> * [hidden email]
>> ( 01506 407 110
>> 7  01506 407 108
>>  
>>
>>> -----Original Message-----
>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>> Bruchez
>>> Sent: 09 July 2006 16:15
>>> To: [hidden email]
>>> Subject: Re: [ops-users] Page-Flow Problem
>>>
>>> Ryan,
>>>
>>> The Logic for redirection paths when you use matchers requires you
>>> to use <setvalue> and a submission. This is documented here:
>>>
>>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matc
>>> h
>>> er
>>> s-
>>> pages
>>>
>>> Best,
>>>
>>> -Erik
>>>
>>> Ryan Puddephatt wrote:
>>>> Hi,
>>>>
>>>> I'm having a problem using the page-flow with regexp. I have a page
>>>> /index which uses /page/action/result/@page to forward to a page
>>>> with a regexp. When it does this the page-flow takes
>>>> /(dev|admin)/problem and creates a url which ends up as
>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>> doesn't match anything. I'm not good with regexp or using the
>>>> page-flow to achieve what I need, attached is a sample of what I
>> require.
>>>>
>>>> Is anyone able to help with this?
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> Ryan
>>>>
>>>>
>>>>
>>>> *Ryan Puddephatt*
>>>>
>>>> Software Engineer
>>>>
>>>> TFX Group - IT UK
>>>>
>>>> 1 Michaelson Square
>>>>
>>>> Livingston
>>>>
>>>> West Lothian
>>>>
>>>> Scotand
>>>>
>>>> EH54 7DP
>>>>
>>>>
>>>>
>>>> * [hidden email]
>>>>
>>>> ( 01506 407 110
>>>>
>>>> 7  01506 407 108
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> -
>>>> ----
>>>>
>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>
>>>>     <!-- Files to serve directly -->
>>>>     <files path-info="*.gif"/>
>>>>     <files path-info="*.css"/>
>>>>     <files path-info="*.pdf"/>
>>>>     <files path-info="*.js"/>
>>>>     <files path-info="*.png"/>
>>>>     <files path-info="*.jpg"/>
>>>>     <files path-info="*.xsd"/>
>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>
>>>>     <page id="test1" path-info="/index">
>>>>         <action>
>>>>             <result page="problempage"/>
>>>>         </action>
>>>>     </page>
>>>>
>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>         <action>
>>>>             <result page="problempage"/>
>>>>         </action>
>>>>     </page>
>>>>
>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>> </config>
>>> --
>>> Orbeon - XForms Everywhere:
>>> http://www.orbeon.com/blog/
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> -
>> --
>>
>>
>> --
>> 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 - XForms Everywhere:
> http://www.orbeon.com/blog/
>
>
>
>
>
>
>
>
>
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/





--
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: Page-Flow Problem

Ryan Puddephatt
All,
        Does anyone know of a way of passing the instance across using the
redirect processor? Or a combination with the page-flow?

Thanks

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: Ryan Puddephatt [mailto:[hidden email]]
>Sent: 20 July 2006 10:31
>To: [hidden email]
>Subject: RE: [ops-users] Page-Flow Problem
>
>Erik,
> How would I pass an instance using the redirect processor?
>
>Thanks
>
>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: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 19 July 2006 21:08
>To: [hidden email]
>Subject: Re: [ops-users] Page-Flow Problem
>
>Ryan,
>
>You cannot specify a page id dynamically like you would like
>to do. You can maybe use the oxf:redirect processor to do this
>manually. It is a workaround, although probably not a "good" one ;-)
>
>-Erik
>
>Ryan Puddephatt wrote:
>> I'm not trying to do:
>>
>> <c:result page="${2}View" transform="oxf:xslt">
>>
>> Where ${2} is the second match of the path-info, but it doesn't seem
>> to evaluate it and I get the error:
>>
>> Cannot find page with id '${2}View'
>>
>> I take it this isn't possible, any idea how hard it would be
>or a good
>> work around?
>>
>> Thanks
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 19 July 2006 13:41
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Hi all,
>> After reading more into the documentation I now know I can use
>> c:config/@instance-passing="redirect" in my page-flow to do this
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 19 July 2006 10:52
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Hi all,
>> I think I might have overcome my little problem with
>the page flow,
>I
>> can now get it to forward on and set the urls as required.
>One thing I
>> notice is that the url doesn't physically change in the browser. Is
>> there an easy way to do this in the page-flow or am I
>looking at an XPL?
>>
>> Thanks
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 17 July 2006 15:09
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Erik,
>> It was a typo, but I've added the setvalue and it doesn't work
>>
>>     <page id="referIndexUserLevelPage"
>>         path-info="/(dev|admin|user)/"
>>         matcher="oxf:perl5-matcher"
>>         default-submission="oxf:/xml/user-level-sub.xml">
>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>         <action>
>>             <result page="indexUserLevelPage"/>
>>         </action>
>>     </page>
>>     <page id="indexUserLevelPage"
>>         path-info="/(dev|admin|user)/index"
>>         model="oxf:/pages/model.xpl"
>>         view="oxf:/pages/index.xsl"
>>         matcher="oxf:perl5-matcher"
>>         default-submission="oxf:/xml/user-level-sub.xml">
>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>     </page>
>>
>> The user-level-sub.xml has
>>
>> <form>
>> <user-level>user</user-level>
>> </form>
>>
>> Any ideas?
>>
>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: 17 July 2006 14:35
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> This is probably a typo:
>>
>> <result page="indexPage"/>
>>
>> I assume it is:
>>
>> <result page="indexUserLevelPage"/>
>>
>> This said, you destination page must have a default-submission and
>> <setvalue> as well.
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> Erik,
>>> I have tried this, but it still isn't working as I
>would expect. In
>>> my page-flow I have
>>>
>>>     <page id="referIndexUserLevelPage"
>>>         path-info="/(dev|admin|user)/"
>>>         matcher="oxf:perl5-matcher"
>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>         <action>
>>>             <result page="indexPage"/>
>>>         </action>
>>>     </page>
>>>     <page id="indexUserLevelPage"
>>>         path-info="/(dev|admin|user)/index"
>>>         model="oxf:/pages/model.xpl"
>>>         view="oxf:/pages/index.xsl"
>>>         matcher="oxf:perl5-matcher"/>
>>>
>>> When I call the first /dev/ I want /dev/index this is not the case
>>> and it gives me 404
>>>
>>> I can see the redirection carried out, but it doesn't seem
>to apply a
>>> match or anything
>>>
>>> Any ideas how to get around this?
>>>
>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 09 July 2006 17:13
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Thanks Erik,
>>> I'll try changing my page flow to suit this
>>>
>>> Ryan
>>>
>>> Ryan Puddephatt
>>> Software Engineer
>>> TFX Group - IT UK
>>> 1 Michaelson Square
>>> Livingston
>>> West Lothian
>>> Scotand
>>> EH54 7DP
>>>  
>>> * [hidden email]
>>> ( 01506 407 110
>>> 7  01506 407 108
>>>  
>>>
>>>> -----Original Message-----
>>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>> Bruchez
>>>> Sent: 09 July 2006 16:15
>>>> To: [hidden email]
>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>
>>>> Ryan,
>>>>
>>>> The Logic for redirection paths when you use matchers requires you
>>>> to use <setvalue> and a submission. This is documented here:
>>>>
>>>>
>http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matc
>>>> h
>>>> er
>>>> s-
>>>> pages
>>>>
>>>> Best,
>>>>
>>>> -Erik
>>>>
>>>> Ryan Puddephatt wrote:
>>>>> Hi,
>>>>>
>>>>> I'm having a problem using the page-flow with regexp. I
>have a page
>>>>> /index which uses /page/action/result/@page to forward to a page
>>>>> with a regexp. When it does this the page-flow takes
>>>>> /(dev|admin)/problem and creates a url which ends up as
>>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>>> doesn't match anything. I'm not good with regexp or using the
>>>>> page-flow to achieve what I need, attached is a sample of what I
>>> require.
>>>>>
>>>>> Is anyone able to help with this?
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> Ryan
>>>>>
>>>>>
>>>>>
>>>>> *Ryan Puddephatt*
>>>>>
>>>>> Software Engineer
>>>>>
>>>>> TFX Group - IT UK
>>>>>
>>>>> 1 Michaelson Square
>>>>>
>>>>> Livingston
>>>>>
>>>>> West Lothian
>>>>>
>>>>> Scotand
>>>>>
>>>>> EH54 7DP
>>>>>
>>>>>
>>>>>
>>>>> * [hidden email]
>>>>>
>>>>> ( 01506 407 110
>>>>>
>>>>> 7  01506 407 108
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>-------------------------------------------------------------------
>>>>> -
>>>>> ----
>>>>>
>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>>
>>>>>     <!-- Files to serve directly -->
>>>>>     <files path-info="*.gif"/>
>>>>>     <files path-info="*.css"/>
>>>>>     <files path-info="*.pdf"/>
>>>>>     <files path-info="*.js"/>
>>>>>     <files path-info="*.png"/>
>>>>>     <files path-info="*.jpg"/>
>>>>>     <files path-info="*.xsd"/>
>>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>>
>>>>>     <page id="test1" path-info="/index">
>>>>>         <action>
>>>>>             <result page="problempage"/>
>>>>>         </action>
>>>>>     </page>
>>>>>
>>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>>         <action>
>>>>>             <result page="problempage"/>
>>>>>         </action>
>>>>>     </page>
>>>>>
>>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>>> </config>
>>>> --
>>>> Orbeon - XForms Everywhere:
>>>> http://www.orbeon.com/blog/
>>>
>>>
>>>
>>>
>>>
>>>
>---------------------------------------------------------------------
>>> -
>>> --
>>>
>>>
>>> --
>>> 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 - XForms Everywhere:
>> http://www.orbeon.com/blog/
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>----------------------------------------------------------------------
>> --
>>
>>
>> --
>> 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 - XForms Everywhere:
>http://www.orbeon.com/blog/
>
>
>
>



--
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: Page-Flow Problem

Erik Bruchez
Administrator
Ryan,

It all comes down to doing an XML submission to a certain URL. The PFC
uses the internal "oxf:instance-to-parameters" processor to convert an
XML document into a serialized string. This allows it to either do a
client-side redirect or a server-side forward (although optimally in the
case of a forward we should simulate a POST).

You can try that processor: pass it an XML document on its "instance"
input, an empty document on its "filter" input, and look at the "data"
output which will contain a parameter called "$instance". Be sure you do
a server-side redirect (forward), as a client-side one will likely fail
if the document is too large.

-Erik

Ryan Puddephatt wrote:

> All,
> Does anyone know of a way of passing the instance across using the
> redirect processor? Or a combination with the page-flow?
>
> Thanks
>
> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 20 July 2006 10:31
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Erik,
>> How would I pass an instance using the redirect processor?
>>
>> Thanks
>>
>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>> Erik Bruchez
>> Sent: 19 July 2006 21:08
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> Ryan,
>>
>> You cannot specify a page id dynamically like you would like
>> to do. You can maybe use the oxf:redirect processor to do this
>> manually. It is a workaround, although probably not a "good" one ;-)
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> I'm not trying to do:
>>>
>>> <c:result page="${2}View" transform="oxf:xslt">
>>>
>>> Where ${2} is the second match of the path-info, but it doesn't seem
>>> to evaluate it and I get the error:
>>>
>>> Cannot find page with id '${2}View'
>>>
>>> I take it this isn't possible, any idea how hard it would be
>> or a good
>>> work around?
>>>
>>> Thanks
>>>
>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 19 July 2006 13:41
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Hi all,
>>> After reading more into the documentation I now know I can use
>>> c:config/@instance-passing="redirect" in my page-flow to do this
>>>
>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 19 July 2006 10:52
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Hi all,
>>> I think I might have overcome my little problem with
>> the page flow,
>> I
>>> can now get it to forward on and set the urls as required.
>> One thing I
>>> notice is that the url doesn't physically change in the browser. Is
>>> there an easy way to do this in the page-flow or am I
>> looking at an XPL?
>>> Thanks
>>>
>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 17 July 2006 15:09
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Erik,
>>> It was a typo, but I've added the setvalue and it doesn't work
>>>
>>>     <page id="referIndexUserLevelPage"
>>>         path-info="/(dev|admin|user)/"
>>>         matcher="oxf:perl5-matcher"
>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>         <action>
>>>             <result page="indexUserLevelPage"/>
>>>         </action>
>>>     </page>
>>>     <page id="indexUserLevelPage"
>>>         path-info="/(dev|admin|user)/index"
>>>         model="oxf:/pages/model.xpl"
>>>         view="oxf:/pages/index.xsl"
>>>         matcher="oxf:perl5-matcher"
>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>     </page>
>>>
>>> The user-level-sub.xml has
>>>
>>> <form>
>>> <user-level>user</user-level>
>>> </form>
>>>
>>> Any ideas?
>>>
>>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>> Bruchez
>>> Sent: 17 July 2006 14:35
>>> To: [hidden email]
>>> Subject: Re: [ops-users] Page-Flow Problem
>>>
>>> This is probably a typo:
>>>
>>> <result page="indexPage"/>
>>>
>>> I assume it is:
>>>
>>> <result page="indexUserLevelPage"/>
>>>
>>> This said, you destination page must have a default-submission and
>>> <setvalue> as well.
>>>
>>> -Erik
>>>
>>> Ryan Puddephatt wrote:
>>>> Erik,
>>>> I have tried this, but it still isn't working as I
>> would expect. In
>>>> my page-flow I have
>>>>
>>>>     <page id="referIndexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/"
>>>>         matcher="oxf:perl5-matcher"
>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>         <action>
>>>>             <result page="indexPage"/>
>>>>         </action>
>>>>     </page>
>>>>     <page id="indexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/index"
>>>>         model="oxf:/pages/model.xpl"
>>>>         view="oxf:/pages/index.xsl"
>>>>         matcher="oxf:perl5-matcher"/>
>>>>
>>>> When I call the first /dev/ I want /dev/index this is not the case
>>>> and it gives me 404
>>>>
>>>> I can see the redirection carried out, but it doesn't seem
>> to apply a
>>>> match or anything
>>>>
>>>> Any ideas how to get around this?
>>>>
>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>> Sent: 09 July 2006 17:13
>>>> To: [hidden email]
>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>
>>>> Thanks Erik,
>>>> I'll try changing my page flow to suit this
>>>>
>>>> Ryan
>>>>
>>>> Ryan Puddephatt
>>>> Software Engineer
>>>> TFX Group - IT UK
>>>> 1 Michaelson Square
>>>> Livingston
>>>> West Lothian
>>>> Scotand
>>>> EH54 7DP
>>>>  
>>>> * [hidden email]
>>>> ( 01506 407 110
>>>> 7  01506 407 108
>>>>  
>>>>
>>>>> -----Original Message-----
>>>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>>> Bruchez
>>>>> Sent: 09 July 2006 16:15
>>>>> To: [hidden email]
>>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>>
>>>>> Ryan,
>>>>>
>>>>> The Logic for redirection paths when you use matchers requires you
>>>>> to use <setvalue> and a submission. This is documented here:
>>>>>
>>>>>
>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matc
>>>>> h
>>>>> er
>>>>> s-
>>>>> pages
>>>>>
>>>>> Best,
>>>>>
>>>>> -Erik
>>>>>
>>>>> Ryan Puddephatt wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I'm having a problem using the page-flow with regexp. I
>> have a page
>>>>>> /index which uses /page/action/result/@page to forward to a page
>>>>>> with a regexp. When it does this the page-flow takes
>>>>>> /(dev|admin)/problem and creates a url which ends up as
>>>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>>>> doesn't match anything. I'm not good with regexp or using the
>>>>>> page-flow to achieve what I need, attached is a sample of what I
>>>> require.
>>>>>> Is anyone able to help with this?
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>> Ryan
>>>>>>
>>>>>>
>>>>>>
>>>>>> *Ryan Puddephatt*
>>>>>>
>>>>>> Software Engineer
>>>>>>
>>>>>> TFX Group - IT UK
>>>>>>
>>>>>> 1 Michaelson Square
>>>>>>
>>>>>> Livingston
>>>>>>
>>>>>> West Lothian
>>>>>>
>>>>>> Scotand
>>>>>>
>>>>>> EH54 7DP
>>>>>>
>>>>>>
>>>>>>
>>>>>> * [hidden email]
>>>>>>
>>>>>> ( 01506 407 110
>>>>>>
>>>>>> 7  01506 407 108
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>> -------------------------------------------------------------------
>>>>>> -
>>>>>> ----
>>>>>>
>>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>>>
>>>>>>     <!-- Files to serve directly -->
>>>>>>     <files path-info="*.gif"/>
>>>>>>     <files path-info="*.css"/>
>>>>>>     <files path-info="*.pdf"/>
>>>>>>     <files path-info="*.js"/>
>>>>>>     <files path-info="*.png"/>
>>>>>>     <files path-info="*.jpg"/>
>>>>>>     <files path-info="*.xsd"/>
>>>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>>>
>>>>>>     <page id="test1" path-info="/index">
>>>>>>         <action>
>>>>>>             <result page="problempage"/>
>>>>>>         </action>
>>>>>>     </page>
>>>>>>
>>>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>>>         <action>
>>>>>>             <result page="problempage"/>
>>>>>>         </action>
>>>>>>     </page>
>>>>>>
>>>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>>>> </config>
>>>>> --
>>>>> Orbeon - XForms Everywhere:
>>>>> http://www.orbeon.com/blog/
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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: Page-Flow Problem

Ryan Puddephatt
Erik,
        I don't think this will work for me, because I have to do a
client-side redirect because of relative urls in the result page.
I'll have another look at the page-flow and see if I can implement my
problem there

Thanks for your help

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 24 July 2006 12:38
>To: [hidden email]
>Subject: Re: [ops-users] Page-Flow Problem
>
>Ryan,
>
>It all comes down to doing an XML submission to a certain URL.
>The PFC uses the internal "oxf:instance-to-parameters"
>processor to convert an XML document into a serialized string.
>This allows it to either do a client-side redirect or a
>server-side forward (although optimally in the case of a
>forward we should simulate a POST).
>
>You can try that processor: pass it an XML document on its "instance"
>input, an empty document on its "filter" input, and look at the "data"
>output which will contain a parameter called "$instance". Be
>sure you do a server-side redirect (forward), as a client-side
>one will likely fail if the document is too large.
>
>-Erik
>
>Ryan Puddephatt wrote:
>> All,
>> Does anyone know of a way of passing the instance
>across using the
>> redirect processor? Or a combination with the page-flow?
>>
>> Thanks
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 20 July 2006 10:31
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Erik,
>>> How would I pass an instance using the redirect processor?
>>>
>>> Thanks
>>>
>>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>> Bruchez
>>> Sent: 19 July 2006 21:08
>>> To: [hidden email]
>>> Subject: Re: [ops-users] Page-Flow Problem
>>>
>>> Ryan,
>>>
>>> You cannot specify a page id dynamically like you would like to do.
>>> You can maybe use the oxf:redirect processor to do this
>manually. It
>>> is a workaround, although probably not a "good" one ;-)
>>>
>>> -Erik
>>>
>>> Ryan Puddephatt wrote:
>>>> I'm not trying to do:
>>>>
>>>> <c:result page="${2}View" transform="oxf:xslt">
>>>>
>>>> Where ${2} is the second match of the path-info, but it
>doesn't seem
>>>> to evaluate it and I get the error:
>>>>
>>>> Cannot find page with id '${2}View'
>>>>
>>>> I take it this isn't possible, any idea how hard it would be
>>> or a good
>>>> work around?
>>>>
>>>> Thanks
>>>>
>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>> Sent: 19 July 2006 13:41
>>>> To: [hidden email]
>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>
>>>> Hi all,
>>>> After reading more into the documentation I now know I can use
>>>> c:config/@instance-passing="redirect" in my page-flow to do this
>>>>
>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>> Sent: 19 July 2006 10:52
>>>> To: [hidden email]
>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>
>>>> Hi all,
>>>> I think I might have overcome my little problem with
>>> the page flow,
>>> I
>>>> can now get it to forward on and set the urls as required.
>>> One thing I
>>>> notice is that the url doesn't physically change in the
>browser. Is
>>>> there an easy way to do this in the page-flow or am I
>>> looking at an XPL?
>>>> Thanks
>>>>
>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>> Sent: 17 July 2006 15:09
>>>> To: [hidden email]
>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>
>>>> Erik,
>>>> It was a typo, but I've added the setvalue and it doesn't work
>>>>
>>>>     <page id="referIndexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/"
>>>>         matcher="oxf:perl5-matcher"
>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>         <action>
>>>>             <result page="indexUserLevelPage"/>
>>>>         </action>
>>>>     </page>
>>>>     <page id="indexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/index"
>>>>         model="oxf:/pages/model.xpl"
>>>>         view="oxf:/pages/index.xsl"
>>>>         matcher="oxf:perl5-matcher"
>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>     </page>
>>>>
>>>> The user-level-sub.xml has
>>>>
>>>> <form>
>>>> <user-level>user</user-level>
>>>> </form>
>>>>
>>>> Any ideas?
>>>>
>>>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>> Bruchez
>>>> Sent: 17 July 2006 14:35
>>>> To: [hidden email]
>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>
>>>> This is probably a typo:
>>>>
>>>> <result page="indexPage"/>
>>>>
>>>> I assume it is:
>>>>
>>>> <result page="indexUserLevelPage"/>
>>>>
>>>> This said, you destination page must have a default-submission and
>>>> <setvalue> as well.
>>>>
>>>> -Erik
>>>>
>>>> Ryan Puddephatt wrote:
>>>>> Erik,
>>>>> I have tried this, but it still isn't working as I
>>> would expect. In
>>>>> my page-flow I have
>>>>>
>>>>>     <page id="referIndexUserLevelPage"
>>>>>         path-info="/(dev|admin|user)/"
>>>>>         matcher="oxf:perl5-matcher"
>>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>>         <action>
>>>>>             <result page="indexPage"/>
>>>>>         </action>
>>>>>     </page>
>>>>>     <page id="indexUserLevelPage"
>>>>>         path-info="/(dev|admin|user)/index"
>>>>>         model="oxf:/pages/model.xpl"
>>>>>         view="oxf:/pages/index.xsl"
>>>>>         matcher="oxf:perl5-matcher"/>
>>>>>
>>>>> When I call the first /dev/ I want /dev/index this is not
>the case
>>>>> and it gives me 404
>>>>>
>>>>> I can see the redirection carried out, but it doesn't seem
>>> to apply a
>>>>> match or anything
>>>>>
>>>>> Any ideas how to get around this?
>>>>>
>>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>>> Sent: 09 July 2006 17:13
>>>>> To: [hidden email]
>>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>>
>>>>> Thanks Erik,
>>>>> I'll try changing my page flow to suit this
>>>>>
>>>>> Ryan
>>>>>
>>>>> Ryan Puddephatt
>>>>> Software Engineer
>>>>> TFX Group - IT UK
>>>>> 1 Michaelson Square
>>>>> Livingston
>>>>> West Lothian
>>>>> Scotand
>>>>> EH54 7DP
>>>>>  
>>>>> * [hidden email]
>>>>> ( 01506 407 110
>>>>> 7  01506 407 108
>>>>>  
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>>>> Bruchez
>>>>>> Sent: 09 July 2006 16:15
>>>>>> To: [hidden email]
>>>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>>>
>>>>>> Ryan,
>>>>>>
>>>>>> The Logic for redirection paths when you use matchers
>requires you
>>>>>> to use <setvalue> and a submission. This is documented here:
>>>>>>
>>>>>>
>>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-matc
>>>>>> h
>>>>>> er
>>>>>> s-
>>>>>> pages
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> -Erik
>>>>>>
>>>>>> Ryan Puddephatt wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm having a problem using the page-flow with regexp. I
>>> have a page
>>>>>>> /index which uses /page/action/result/@page to forward
>to a page
>>>>>>> with a regexp. When it does this the page-flow takes
>>>>>>> /(dev|admin)/problem and creates a url which ends up as
>>>>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>>>>>
><http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>>>>> doesn't match anything. I'm not good with regexp or using the
>>>>>>> page-flow to achieve what I need, attached is a sample of what I
>>>>> require.
>>>>>>> Is anyone able to help with this?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Ryan
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *Ryan Puddephatt*
>>>>>>>
>>>>>>> Software Engineer
>>>>>>>
>>>>>>> TFX Group - IT UK
>>>>>>>
>>>>>>> 1 Michaelson Square
>>>>>>>
>>>>>>> Livingston
>>>>>>>
>>>>>>> West Lothian
>>>>>>>
>>>>>>> Scotand
>>>>>>>
>>>>>>> EH54 7DP
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> * [hidden email]
>>>>>>>
>>>>>>> ( 01506 407 110
>>>>>>>
>>>>>>> 7  01506 407 108
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>> -------------------------------------------------------------------
>>>>>>> -
>>>>>>> ----
>>>>>>>
>>>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>>>>
>>>>>>>     <!-- Files to serve directly -->
>>>>>>>     <files path-info="*.gif"/>
>>>>>>>     <files path-info="*.css"/>
>>>>>>>     <files path-info="*.pdf"/>
>>>>>>>     <files path-info="*.js"/>
>>>>>>>     <files path-info="*.png"/>
>>>>>>>     <files path-info="*.jpg"/>
>>>>>>>     <files path-info="*.xsd"/>
>>>>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>>>>
>>>>>>>     <page id="test1" path-info="/index">
>>>>>>>         <action>
>>>>>>>             <result page="problempage"/>
>>>>>>>         </action>
>>>>>>>     </page>
>>>>>>>
>>>>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>>>>         <action>
>>>>>>>             <result page="problempage"/>
>>>>>>>         </action>
>>>>>>>     </page>
>>>>>>>
>>>>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>>>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>>>>> </config>
>>>>>> --
>>>>>> Orbeon - XForms Everywhere:
>>>>>> http://www.orbeon.com/blog/
>
>--
>Orbeon - XForms Everywhere:
>http://www.orbeon.com/blog/
>
>



--
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: Page-Flow Problem

Erik Bruchez
Administrator
In reply to this post by Larry T. Chen
The issue may simply be that the URL is too long. That's typical with
passing data on URLs, as browsers severely limit their length (2K or 4K,
IIRC).

-Erik

Larry T. Chen wrote:

> I'm trying to use instance-passing="redirect" in my page-flow as well.  
> I have
>
>         <action>
>              <result page="view" transform="oxf:xslt"
> instance-passing="redirect">
>                   <parameters xsl:version="2.0">
>                       <xsl:attribute name="id"
> select="doc('input:instance')/*/@id"/>
>                   </parameters>
>              </result>
>         </action>
>
> However, when I post to this page, OPS gives me an error:
>
> Malformed URL:
> %24instance=X2y6DZ%2F6qm2DXU6OpIpogkzazGNNNk1n6DAU5XAQSwdmuAVGld% .....
>
> I'm basically trying to redirect to another page while passing a
> parameter (id) on the URL.  Is there another way to do this?
>
> Larry T. Chen
> Software Engineer
> Intelenet Communications, Inc.
>
> Ryan Puddephatt wrote:
>> Hi all,
>> After reading more into the documentation I now know I can use
>> c:config/@instance-passing="redirect" in my page-flow to do this
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 19 July 2006 10:52
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Hi all,
>> I think I might have overcome my little problem with the page flow,
>> I can now get it to forward on and set the urls as required. One thing I
>> notice is that the url doesn't physically change in the browser. Is there an
>> easy way to do this in the page-flow or am I looking at an XPL?
>>
>> Thanks
>>
>> 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: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: 17 July 2006 15:09
>> To: [hidden email]
>> Subject: RE: [ops-users] Page-Flow Problem
>>
>> Erik,
>> It was a typo, but I've added the setvalue and it doesn't work
>>
>>     <page id="referIndexUserLevelPage"
>>         path-info="/(dev|admin|user)/"
>>         matcher="oxf:perl5-matcher"
>>         default-submission="oxf:/xml/user-level-sub.xml">
>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>         <action>
>>             <result page="indexUserLevelPage"/>
>>         </action>
>>     </page>
>>     <page id="indexUserLevelPage"
>>         path-info="/(dev|admin|user)/index"
>>         model="oxf:/pages/model.xpl"
>>         view="oxf:/pages/index.xsl"
>>         matcher="oxf:perl5-matcher"
>>         default-submission="oxf:/xml/user-level-sub.xml">
>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>     </page>
>>
>> The user-level-sub.xml has
>>
>> <form>
>> <user-level>user</user-level>
>> </form>
>>
>> Any ideas?
>>
>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
>> Sent: 17 July 2006 14:35
>> To: [hidden email]
>> Subject: Re: [ops-users] Page-Flow Problem
>>
>> This is probably a typo:
>>
>> <result page="indexPage"/>
>>
>> I assume it is:
>>
>> <result page="indexUserLevelPage"/>
>>
>> This said, you destination page must have a default-submission and
>> <setvalue> as well.
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>  
>>> Erik,
>>> I have tried this, but it still isn't working as I would expect. In
>>> my page-flow I have
>>>
>>>     <page id="referIndexUserLevelPage"
>>>         path-info="/(dev|admin|user)/"
>>>         matcher="oxf:perl5-matcher"
>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>         <action>
>>>             <result page="indexPage"/>
>>>         </action>
>>>     </page>
>>>     <page id="indexUserLevelPage"
>>>         path-info="/(dev|admin|user)/index"
>>>         model="oxf:/pages/model.xpl"
>>>         view="oxf:/pages/index.xsl"
>>>         matcher="oxf:perl5-matcher"/>
>>>
>>> When I call the first /dev/ I want /dev/index this is not the case and
>>> it gives me 404
>>>
>>> I can see the redirection carried out, but it doesn't seem to apply a
>>> match or anything
>>>
>>> Any ideas how to get around this?
>>>
>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 09 July 2006 17:13
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Thanks Erik,
>>> I'll try changing my page flow to suit this
>>>
>>> Ryan
>>>
>>> Ryan Puddephatt
>>> Software Engineer
>>> TFX Group - IT UK
>>> 1 Michaelson Square
>>> Livingston
>>> West Lothian
>>> Scotand
>>> EH54 7DP
>>>  
>>> * [hidden email]
>>> ( 01506 407 110
>>> 7  01506 407 108
>>>  
>>>
>>>    
>>>> -----Original Message-----
>>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>> Bruchez
>>>> Sent: 09 July 2006 16:15
>>>> To: [hidden email]
>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>
>>>> Ryan,
>>>>
>>>> The Logic for redirection paths when you use matchers requires you to
>>>> use <setvalue> and a submission. This is documented here:
>>>>
>>>> http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
>>>> er
>>>> s-
>>>> pages
>>>>
>>>> Best,
>>>>
>>>> -Erik
>>>>
>>>> Ryan Puddephatt wrote:
>>>>      
>>>>> Hi,
>>>>>
>>>>> I'm having a problem using the page-flow with regexp. I have a page
>>>>> /index which uses /page/action/result/@page to forward to a page
>>>>> with a regexp. When it does this the page-flow takes
>>>>> /(dev|admin)/problem and creates a url which ends up as
>>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>>> doesn't match anything. I'm not good with regexp or using the
>>>>> page-flow to achieve what I need, attached is a sample of what I
>>>>>        
>>> require.
>>>    
>>>>> Is anyone able to help with this?
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> Ryan
>>>>>
>>>>>
>>>>>
>>>>> *Ryan Puddephatt*
>>>>>
>>>>> Software Engineer
>>>>>
>>>>> TFX Group - IT UK
>>>>>
>>>>> 1 Michaelson Square
>>>>>
>>>>> Livingston
>>>>>
>>>>> West Lothian
>>>>>
>>>>> Scotand
>>>>>
>>>>> EH54 7DP
>>>>>
>>>>>
>>>>>
>>>>> * [hidden email]
>>>>>
>>>>> ( 01506 407 110
>>>>>
>>>>> 7  01506 407 108
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --------------------------------------------------------------------
>>>>> ----
>>>>>
>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>>
>>>>>     <!-- Files to serve directly -->
>>>>>     <files path-info="*.gif"/>
>>>>>     <files path-info="*.css"/>
>>>>>     <files path-info="*.pdf"/>
>>>>>     <files path-info="*.js"/>
>>>>>     <files path-info="*.png"/>
>>>>>     <files path-info="*.jpg"/>
>>>>>     <files path-info="*.xsd"/>
>>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>>
>>>>>     <page id="test1" path-info="/index">
>>>>>         <action>
>>>>>             <result page="problempage"/>
>>>>>         </action>
>>>>>     </page>
>>>>>
>>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>>         <action>
>>>>>             <result page="problempage"/>
>>>>>         </action>
>>>>>     </page>
>>>>>
>>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>>>>        
>>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>>      
>>>>> </config>
>>>>>        
>>>> --
>>>> Orbeon - XForms Everywhere:
>>>> http://www.orbeon.com/blog/
>>>>      
>>>
>>>
>>>
>>>
>>> ----------------------------------------------------------------------
>>> --
>>>
>>>
>>> --
>>> 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 - XForms Everywhere:
>> http://www.orbeon.com/blog/
>>
>>
>>
>>
>>
>>
>>
>>  
>> ------------------------------------------------------------------------
>>
>>
>> --
>> 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
>>  
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/



--
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: Page-Flow Problem

Ryan Puddephatt
Erik,
        I have the following page:

    <c:page id="RACPass-ARCC"
        path-info="/(dev|admin)/checkAll/authRulesConsistencyCheck"
        model="oxf:/pages/checkAll/pass.xpl"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <c:setvalue ref="/form/user" matcher-group="1"/>
        <c:action>
            <c:result page="ARCCView"/>
        </c:action>
    </c:page>

It is passed XML which it needs to run through the model and forward to
ARCCView page, also taking the dev or admin match with it.

The ARCC page is like so

    <c:page id="ARCCView"
        path-info="/dev/authRulesConsistencyCheck/"
        view="oxf:/pages/authRulesConsistencyCheck/view.xsl"
        default-submission="oxf:/xml/user-level-sub.xml"
        matcher="oxf:perl5-matcher">
        <c:setvalue ref="/form/user-level" matcher-group="1"/>
    </c:page>

The result is the content of user-level-sub.xml, which is incorrect because
it should be the output of the original model. Any ideas how to do this?

Thanks

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: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 24 July 2006 13:43
>To: [hidden email]
>Subject: Re: [ops-users] Page-Flow Problem
>
>The issue may simply be that the URL is too long. That's
>typical with passing data on URLs, as browsers severely limit
>their length (2K or 4K, IIRC).
>
>-Erik
>
>Larry T. Chen wrote:
>> I'm trying to use instance-passing="redirect" in my
>page-flow as well.  
>> I have
>>
>>         <action>
>>              <result page="view" transform="oxf:xslt"
>> instance-passing="redirect">
>>                   <parameters xsl:version="2.0">
>>                       <xsl:attribute name="id"
>> select="doc('input:instance')/*/@id"/>
>>                   </parameters>
>>              </result>
>>         </action>
>>
>> However, when I post to this page, OPS gives me an error:
>>
>> Malformed URL:
>>
>%24instance=X2y6DZ%2F6qm2DXU6OpIpogkzazGNNNk1n6DAU5XAQSwdmuAVGld% .....
>>
>> I'm basically trying to redirect to another page while passing a
>> parameter (id) on the URL.  Is there another way to do this?
>>
>> Larry T. Chen
>> Software Engineer
>> Intelenet Communications, Inc.
>>
>> Ryan Puddephatt wrote:
>>> Hi all,
>>> After reading more into the documentation I now know I can use
>>> c:config/@instance-passing="redirect" in my page-flow to do this
>>>
>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 19 July 2006 10:52
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Hi all,
>>> I think I might have overcome my little problem with
>the page flow,
>>> I can now get it to forward on and set the urls as required. One
>>> thing I notice is that the url doesn't physically change in the
>>> browser. Is there an easy way to do this in the page-flow
>or am I looking at an XPL?
>>>
>>> Thanks
>>>
>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>> Sent: 17 July 2006 15:09
>>> To: [hidden email]
>>> Subject: RE: [ops-users] Page-Flow Problem
>>>
>>> Erik,
>>> It was a typo, but I've added the setvalue and it doesn't work
>>>
>>>     <page id="referIndexUserLevelPage"
>>>         path-info="/(dev|admin|user)/"
>>>         matcher="oxf:perl5-matcher"
>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>         <action>
>>>             <result page="indexUserLevelPage"/>
>>>         </action>
>>>     </page>
>>>     <page id="indexUserLevelPage"
>>>         path-info="/(dev|admin|user)/index"
>>>         model="oxf:/pages/model.xpl"
>>>         view="oxf:/pages/index.xsl"
>>>         matcher="oxf:perl5-matcher"
>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>     </page>
>>>
>>> The user-level-sub.xml has
>>>
>>> <form>
>>> <user-level>user</user-level>
>>> </form>
>>>
>>> Any ideas?
>>>
>>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>> Bruchez
>>> Sent: 17 July 2006 14:35
>>> To: [hidden email]
>>> Subject: Re: [ops-users] Page-Flow Problem
>>>
>>> This is probably a typo:
>>>
>>> <result page="indexPage"/>
>>>
>>> I assume it is:
>>>
>>> <result page="indexUserLevelPage"/>
>>>
>>> This said, you destination page must have a default-submission and
>>> <setvalue> as well.
>>>
>>> -Erik
>>>
>>> Ryan Puddephatt wrote:
>>>  
>>>> Erik,
>>>> I have tried this, but it still isn't working as I
>would expect. In
>>>> my page-flow I have
>>>>
>>>>     <page id="referIndexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/"
>>>>         matcher="oxf:perl5-matcher"
>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>         <action>
>>>>             <result page="indexPage"/>
>>>>         </action>
>>>>     </page>
>>>>     <page id="indexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/index"
>>>>         model="oxf:/pages/model.xpl"
>>>>         view="oxf:/pages/index.xsl"
>>>>         matcher="oxf:perl5-matcher"/>
>>>>
>>>> When I call the first /dev/ I want /dev/index this is not the case
>>>> and it gives me 404
>>>>
>>>> I can see the redirection carried out, but it doesn't seem
>to apply
>>>> a match or anything
>>>>
>>>> Any ideas how to get around this?
>>>>
>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>> Sent: 09 July 2006 17:13
>>>> To: [hidden email]
>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>
>>>> Thanks Erik,
>>>> I'll try changing my page flow to suit this
>>>>
>>>> Ryan
>>>>
>>>> Ryan Puddephatt
>>>> Software Engineer
>>>> TFX Group - IT UK
>>>> 1 Michaelson Square
>>>> Livingston
>>>> West Lothian
>>>> Scotand
>>>> EH54 7DP
>>>>  
>>>> * [hidden email]
>>>> ( 01506 407 110
>>>> 7  01506 407 108
>>>>  
>>>>
>>>>    
>>>>> -----Original Message-----
>>>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>>> Bruchez
>>>>> Sent: 09 July 2006 16:15
>>>>> To: [hidden email]
>>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>>
>>>>> Ryan,
>>>>>
>>>>> The Logic for redirection paths when you use matchers
>requires you
>>>>> to use <setvalue> and a submission. This is documented here:
>>>>>
>>>>>
>http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-mat
>>>>> ch
>>>>> er
>>>>> s-
>>>>> pages
>>>>>
>>>>> Best,
>>>>>
>>>>> -Erik
>>>>>
>>>>> Ryan Puddephatt wrote:
>>>>>      
>>>>>> Hi,
>>>>>>
>>>>>> I'm having a problem using the page-flow with regexp. I have a
>>>>>> page /index which uses /page/action/result/@page to forward to a
>>>>>> page with a regexp. When it does this the page-flow takes
>>>>>> /(dev|admin)/problem and creates a url which ends up as
>>>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>>>> <http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>>>> doesn't match anything. I'm not good with regexp or using the
>>>>>> page-flow to achieve what I need, attached is a sample of what I
>>>>>>        
>>>> require.
>>>>    
>>>>>> Is anyone able to help with this?
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>> Ryan
>>>>>>
>>>>>>
>>>>>>
>>>>>> *Ryan Puddephatt*
>>>>>>
>>>>>> Software Engineer
>>>>>>
>>>>>> TFX Group - IT UK
>>>>>>
>>>>>> 1 Michaelson Square
>>>>>>
>>>>>> Livingston
>>>>>>
>>>>>> West Lothian
>>>>>>
>>>>>> Scotand
>>>>>>
>>>>>> EH54 7DP
>>>>>>
>>>>>>
>>>>>>
>>>>>> * [hidden email]
>>>>>>
>>>>>> ( 01506 407 110
>>>>>>
>>>>>> 7  01506 407 108
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>------------------------------------------------------------------
>>>>>> --
>>>>>> ----
>>>>>>
>>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>>>
>>>>>>     <!-- Files to serve directly -->
>>>>>>     <files path-info="*.gif"/>
>>>>>>     <files path-info="*.css"/>
>>>>>>     <files path-info="*.pdf"/>
>>>>>>     <files path-info="*.js"/>
>>>>>>     <files path-info="*.png"/>
>>>>>>     <files path-info="*.jpg"/>
>>>>>>     <files path-info="*.xsd"/>
>>>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>>>
>>>>>>     <page id="test1" path-info="/index">
>>>>>>         <action>
>>>>>>             <result page="problempage"/>
>>>>>>         </action>
>>>>>>     </page>
>>>>>>
>>>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>>>         <action>
>>>>>>             <result page="problempage"/>
>>>>>>         </action>
>>>>>>     </page>
>>>>>>
>>>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>>>>>        
>>>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>>>      
>>>>>> </config>
>>>>>>        
>>>>> --
>>>>> Orbeon - XForms Everywhere:
>>>>> http://www.orbeon.com/blog/
>>>>>      
>>>>
>>>>
>>>>
>>>>
>>>>
>--------------------------------------------------------------------
>>>> --
>>>> --
>>>>
>>>>
>>>> --
>>>> 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 - XForms Everywhere:
>>> http://www.orbeon.com/blog/
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>---------------------------------------------------------------------
>>> ---
>>>
>>>
>>> --
>>> 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
>>>  
>>
>>
>>
>----------------------------------------------------------------------
>> --
>>
>>
>> --
>> 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 - XForms Everywhere:
>http://www.orbeon.com/blog/
>
>



--
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: Page-Flow Problem

Ryan Puddephatt
Erik,
        The @path-info for ARCCView should be
/(dev|admin|user)/authRuleConsistencyCheck/ and the setvalue/@ref should
match, doing this and it still doesn't work!

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: Ryan Puddephatt [mailto:[hidden email]]
>Sent: 24 July 2006 15:18
>To: [hidden email]
>Subject: RE: [ops-users] Page-Flow Problem
>
>Erik,
> I have the following page:
>
>    <c:page id="RACPass-ARCC"
>        path-info="/(dev|admin)/checkAll/authRulesConsistencyCheck"
>        model="oxf:/pages/checkAll/pass.xpl"
>        matcher="oxf:perl5-matcher"
>        default-submission="oxf:/xml/user-level-sub.xml">
>        <c:setvalue ref="/form/user" matcher-group="1"/>
>        <c:action>
>            <c:result page="ARCCView"/>
>        </c:action>
>    </c:page>
>
>It is passed XML which it needs to run through the model and
>forward to ARCCView page, also taking the dev or admin match with it.
>
>The ARCC page is like so
>
>    <c:page id="ARCCView"
>        path-info="/dev/authRulesConsistencyCheck/"
>        view="oxf:/pages/authRulesConsistencyCheck/view.xsl"
>        default-submission="oxf:/xml/user-level-sub.xml"
>        matcher="oxf:perl5-matcher">
>        <c:setvalue ref="/form/user-level" matcher-group="1"/>
>    </c:page>
>
>The result is the content of user-level-sub.xml, which is
>incorrect because it should be the output of the original
>model. Any ideas how to do this?
>
>Thanks
>
>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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>Bruchez
>>Sent: 24 July 2006 13:43
>>To: [hidden email]
>>Subject: Re: [ops-users] Page-Flow Problem
>>
>>The issue may simply be that the URL is too long. That's typical with
>>passing data on URLs, as browsers severely limit their length (2K or
>>4K, IIRC).
>>
>>-Erik
>>
>>Larry T. Chen wrote:
>>> I'm trying to use instance-passing="redirect" in my
>>page-flow as well.  
>>> I have
>>>
>>>         <action>
>>>              <result page="view" transform="oxf:xslt"
>>> instance-passing="redirect">
>>>                   <parameters xsl:version="2.0">
>>>                       <xsl:attribute name="id"
>>> select="doc('input:instance')/*/@id"/>
>>>                   </parameters>
>>>              </result>
>>>         </action>
>>>
>>> However, when I post to this page, OPS gives me an error:
>>>
>>> Malformed URL:
>>>
>>%24instance=X2y6DZ%2F6qm2DXU6OpIpogkzazGNNNk1n6DAU5XAQSwdmuAVG
>ld% .....
>>>
>>> I'm basically trying to redirect to another page while passing a
>>> parameter (id) on the URL.  Is there another way to do this?
>>>
>>> Larry T. Chen
>>> Software Engineer
>>> Intelenet Communications, Inc.
>>>
>>> Ryan Puddephatt wrote:
>>>> Hi all,
>>>> After reading more into the documentation I now know I can use
>>>> c:config/@instance-passing="redirect" in my page-flow to do this
>>>>
>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>> Sent: 19 July 2006 10:52
>>>> To: [hidden email]
>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>
>>>> Hi all,
>>>> I think I might have overcome my little problem with
>>the page flow,
>>>> I can now get it to forward on and set the urls as required. One
>>>> thing I notice is that the url doesn't physically change in the
>>>> browser. Is there an easy way to do this in the page-flow
>>or am I looking at an XPL?
>>>>
>>>> Thanks
>>>>
>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>> Sent: 17 July 2006 15:09
>>>> To: [hidden email]
>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>
>>>> Erik,
>>>> It was a typo, but I've added the setvalue and it doesn't work
>>>>
>>>>     <page id="referIndexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/"
>>>>         matcher="oxf:perl5-matcher"
>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>         <action>
>>>>             <result page="indexUserLevelPage"/>
>>>>         </action>
>>>>     </page>
>>>>     <page id="indexUserLevelPage"
>>>>         path-info="/(dev|admin|user)/index"
>>>>         model="oxf:/pages/model.xpl"
>>>>         view="oxf:/pages/index.xsl"
>>>>         matcher="oxf:perl5-matcher"
>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>     </page>
>>>>
>>>> The user-level-sub.xml has
>>>>
>>>> <form>
>>>> <user-level>user</user-level>
>>>> </form>
>>>>
>>>> Any ideas?
>>>>
>>>> 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: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>> Bruchez
>>>> Sent: 17 July 2006 14:35
>>>> To: [hidden email]
>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>
>>>> This is probably a typo:
>>>>
>>>> <result page="indexPage"/>
>>>>
>>>> I assume it is:
>>>>
>>>> <result page="indexUserLevelPage"/>
>>>>
>>>> This said, you destination page must have a default-submission and
>>>> <setvalue> as well.
>>>>
>>>> -Erik
>>>>
>>>> Ryan Puddephatt wrote:
>>>>  
>>>>> Erik,
>>>>> I have tried this, but it still isn't working as I
>>would expect. In
>>>>> my page-flow I have
>>>>>
>>>>>     <page id="referIndexUserLevelPage"
>>>>>         path-info="/(dev|admin|user)/"
>>>>>         matcher="oxf:perl5-matcher"
>>>>>         default-submission="oxf:/xml/user-level-sub.xml">
>>>>>         <setvalue ref="/form/user-level" matcher-group="1"/>
>>>>>         <action>
>>>>>             <result page="indexPage"/>
>>>>>         </action>
>>>>>     </page>
>>>>>     <page id="indexUserLevelPage"
>>>>>         path-info="/(dev|admin|user)/index"
>>>>>         model="oxf:/pages/model.xpl"
>>>>>         view="oxf:/pages/index.xsl"
>>>>>         matcher="oxf:perl5-matcher"/>
>>>>>
>>>>> When I call the first /dev/ I want /dev/index this is not
>the case
>>>>> and it gives me 404
>>>>>
>>>>> I can see the redirection carried out, but it doesn't seem
>>to apply
>>>>> a match or anything
>>>>>
>>>>> Any ideas how to get around this?
>>>>>
>>>>> 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: Ryan Puddephatt [mailto:[hidden email]]
>>>>> Sent: 09 July 2006 17:13
>>>>> To: [hidden email]
>>>>> Subject: RE: [ops-users] Page-Flow Problem
>>>>>
>>>>> Thanks Erik,
>>>>> I'll try changing my page flow to suit this
>>>>>
>>>>> Ryan
>>>>>
>>>>> Ryan Puddephatt
>>>>> Software Engineer
>>>>> TFX Group - IT UK
>>>>> 1 Michaelson Square
>>>>> Livingston
>>>>> West Lothian
>>>>> Scotand
>>>>> EH54 7DP
>>>>>  
>>>>> * [hidden email]
>>>>> ( 01506 407 110
>>>>> 7  01506 407 108
>>>>>  
>>>>>
>>>>>    
>>>>>> -----Original Message-----
>>>>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>>>>> Bruchez
>>>>>> Sent: 09 July 2006 16:15
>>>>>> To: [hidden email]
>>>>>> Subject: Re: [ops-users] Page-Flow Problem
>>>>>>
>>>>>> Ryan,
>>>>>>
>>>>>> The Logic for redirection paths when you use matchers
>>requires you
>>>>>> to use <setvalue> and a submission. This is documented here:
>>>>>>
>>>>>>
>>http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-mat
>>>>>> ch
>>>>>> er
>>>>>> s-
>>>>>> pages
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> -Erik
>>>>>>
>>>>>> Ryan Puddephatt wrote:
>>>>>>      
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm having a problem using the page-flow with regexp. I have a
>>>>>>> page /index which uses /page/action/result/@page to
>forward to a
>>>>>>> page with a regexp. When it does this the page-flow takes
>>>>>>> /(dev|admin)/problem and creates a url which ends up as
>>>>>>> http://localhost:8080/peaUtilities/(dev|admin)/problem
>>>>>>>
><http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This
>>>>>>> doesn't match anything. I'm not good with regexp or using the
>>>>>>> page-flow to achieve what I need, attached is a sample of what I
>>>>>>>        
>>>>> require.
>>>>>    
>>>>>>> Is anyone able to help with this?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Ryan
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *Ryan Puddephatt*
>>>>>>>
>>>>>>> Software Engineer
>>>>>>>
>>>>>>> TFX Group - IT UK
>>>>>>>
>>>>>>> 1 Michaelson Square
>>>>>>>
>>>>>>> Livingston
>>>>>>>
>>>>>>> West Lothian
>>>>>>>
>>>>>>> Scotand
>>>>>>>
>>>>>>> EH54 7DP
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> * [hidden email]
>>>>>>>
>>>>>>> ( 01506 407 110
>>>>>>>
>>>>>>> 7  01506 407 108
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>------------------------------------------------------------------
>>>>>>> --
>>>>>>> ----
>>>>>>>
>>>>>>> <config xmlns="http://www.orbeon.com/oxf/controller"
>>>>>>>         xmlns:xu="http://www.xmldb.org/xupdate"
>>>>>>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>>>>>>
>>>>>>>     <!-- Files to serve directly -->
>>>>>>>     <files path-info="*.gif"/>
>>>>>>>     <files path-info="*.css"/>
>>>>>>>     <files path-info="*.pdf"/>
>>>>>>>     <files path-info="*.js"/>
>>>>>>>     <files path-info="*.png"/>
>>>>>>>     <files path-info="*.jpg"/>
>>>>>>>     <files path-info="*.xsd"/>
>>>>>>>     <files path-info="*.xml" mime-type="application/xml"/>
>>>>>>>     <files path-info="*.html" mime-type="text/html"/>
>>>>>>>     <files path-info="*.java" mime-type="text/plain"/>
>>>>>>>     <files path-info="*.txt" mime-type="text/plain"/>
>>>>>>>     <files path-info="*.xq" mime-type="text/plain"/>
>>>>>>>
>>>>>>>     <page id="test1" path-info="/index">
>>>>>>>         <action>
>>>>>>>             <result page="problempage"/>
>>>>>>>         </action>
>>>>>>>     </page>
>>>>>>>
>>>>>>>     <page id="test2" path-info="/(dev|admin)/index">
>>>>>>>         <action>
>>>>>>>             <result page="problempage"/>
>>>>>>>         </action>
>>>>>>>     </page>
>>>>>>>
>>>>>>>     <page id="problempage" path-info="/(dev|admin)/problem"
>>>>>>>        
>>>>>> matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
>>>>>>      
>>>>>>> </config>
>>>>>>>        
>>>>>> --
>>>>>> Orbeon - XForms Everywhere:
>>>>>> http://www.orbeon.com/blog/
>>>>>>      
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>--------------------------------------------------------------------
>>>>> --
>>>>> --
>>>>>
>>>>>
>>>>> --
>>>>> 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 - XForms Everywhere:
>>>> http://www.orbeon.com/blog/
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>  
>>>>
>>---------------------------------------------------------------------
>>>> ---
>>>>
>>>>
>>>> --
>>>> 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
>>>>  
>>>
>>>
>>>
>>----------------------------------------------------------------------
>>> --
>>>
>>>
>>> --
>>> 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 - XForms Everywhere:
>>http://www.orbeon.com/blog/
>>
>>
>
>
>



--
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
|

Redirect with dynamic URL parameters ... was "Page-Flow Problem"

Larry T. Chen
In reply to this post by Erik Bruchez
Thanks Erik,

What I'm really trying to do is simply redirect to a page while passing a parameter on the URL line.  For example,
/Customer/edit?id=300    where ?id=300 is generated dynamically based on data from the prior XML submission.

After reading some of your prior responses to other threads ... I'm thinking it may be possible to use the redirect processor
by transforming the input to the redirect processor using XSLT first to supply the dynamic URL parameter. 
I was hoping there was an easier way to do it.  Seems like a lot of code just to do a simple redirect to a URL with dynamic parameters.
In JSP, PHP, or other similar server-side scripting languages, something like this would only take one line of code.

Larry T. Chen
Software Engineer
Intelenet Communications, Inc.



Erik Bruchez wrote:
The issue may simply be that the URL is too long. That's typical with passing data on URLs, as browsers severely limit their length (2K or 4K, IIRC).

-Erik

Larry T. Chen wrote:
I'm trying to use instance-passing="redirect" in my page-flow as well.  I have

        <action>
             <result page="view" transform="oxf:xslt" instance-passing="redirect">
                  <parameters xsl:version="2.0">
                      <xsl:attribute name="id" select="doc('input:instance')/*/@id"/>
                  </parameters>
             </result>
        </action>

However, when I post to this page, OPS gives me an error:

Malformed URL: %24instance=X2y6DZ%2F6qm2DXU6OpIpogkzazGNNNk1n6DAU5XAQSwdmuAVGld% .....

I'm basically trying to redirect to another page while passing a parameter (id) on the URL.  Is there another way to do this?

Larry T. Chen
Software Engineer
Intelenet Communications, Inc.

Ryan Puddephatt wrote:
Hi all,
    After reading more into the documentation I now know I can use
c:config/@instance-passing="redirect" in my page-flow to do this

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: Ryan Puddephatt [[hidden email]] Sent: 19 July 2006 10:52
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Hi all,
    I think I might have overcome my little problem with the page flow,
I can now get it to forward on and set the urls as required. One thing I
notice is that the url doesn't physically change in the browser. Is there an
easy way to do this in the page-flow or am I looking at an XPL?

Thanks

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: Ryan Puddephatt [[hidden email]]
Sent: 17 July 2006 15:09
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Erik,
It was a typo, but I've added the setvalue and it doesn't work

    <page id="referIndexUserLevelPage"         path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher"         default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexUserLevelPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage"         path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"
        default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
    </page>

The user-level-sub.xml has

<form>
    <user-level>user</user-level>
</form>

Any ideas?
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: Erik Bruchez [[hidden email]] On Behalf Of Erik Bruchez
Sent: 17 July 2006 14:35
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

This is probably a typo:

<result page="indexPage"/>

I assume it is:

<result page="indexUserLevelPage"/>

This said, you destination page must have a default-submission and
<setvalue> as well.

-Erik

Ryan Puddephatt wrote:
 
Erik,
    I have tried this, but it still isn't working as I would expect. In my page-flow I have

    <page id="referIndexUserLevelPage"         path-info="/(dev|admin|user)/"
        matcher="oxf:perl5-matcher"         default-submission="oxf:/xml/user-level-sub.xml">
        <setvalue ref="/form/user-level" matcher-group="1"/>
        <action>
            <result page="indexPage"/>
        </action>
    </page>
    <page id="indexUserLevelPage"         path-info="/(dev|admin|user)/index"
        model="oxf:/pages/model.xpl"
        view="oxf:/pages/index.xsl"
        matcher="oxf:perl5-matcher"/>

When I call the first /dev/ I want /dev/index this is not the case and it gives me 404

I can see the redirection carried out, but it doesn't seem to apply a match or anything

Any ideas how to get around this?

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: Ryan Puddephatt [[hidden email]]
Sent: 09 July 2006 17:13
To: [hidden email]
Subject: RE: [ops-users] Page-Flow Problem

Thanks Erik,
    I'll try changing my page flow to suit this

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

   
-----Original Message-----
From: Erik Bruchez [[hidden email]] On Behalf Of Erik Bruchez
Sent: 09 July 2006 16:15
To: [hidden email]
Subject: Re: [ops-users] Page-Flow Problem

Ryan,

The Logic for redirection paths when you use matchers requires you to use <setvalue> and a submission. This is documented here:

http://www.orbeon.com/ops/doc/reference-page-flow#navigating-to-match
er
s-
pages

Best,

-Erik

Ryan Puddephatt wrote:
     
Hi,

I'm having a problem using the page-flow with regexp. I have a page /index which uses /page/action/result/@page to forward to a page with a regexp. When it does this the page-flow takes /(dev|admin)/problem and creates a url which ends up as http://localhost:8080/peaUtilities/(dev|admin)/problem
<http://localhost:8080/peaUtilities/(dev%7Cadmin)/problem>. This doesn't match anything. I'm not good with regexp or using the page-flow to achieve what I need, attached is a sample of what I
       
require.
   
Is anyone able to help with this?



Thanks



Ryan



*Ryan Puddephatt*

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP



* [hidden email]

( 01506 407 110

7  01506 407 108






--------------------------------------------------------------------
----

<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate"
        xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- Files to serve directly -->
    <files path-info="*.gif"/>
    <files path-info="*.css"/>
    <files path-info="*.pdf"/>
    <files path-info="*.js"/>
    <files path-info="*.png"/>
    <files path-info="*.jpg"/>
    <files path-info="*.xsd"/>
    <files path-info="*.xml" mime-type="application/xml"/>
    <files path-info="*.html" mime-type="text/html"/>
    <files path-info="*.java" mime-type="text/plain"/>
    <files path-info="*.txt" mime-type="text/plain"/>
    <files path-info="*.xq" mime-type="text/plain"/>

    <page id="test1" path-info="/index">
        <action>
            <result page="problempage"/>
        </action>
    </page>

    <page id="test2" path-info="/(dev|admin)/index">
        <action>
            <result page="problempage"/>
        </action>
    </page>

    <page id="problempage" path-info="/(dev|admin)/problem"
       
matcher="oxf:perl5-matcher" view="oxf:/xml/settings.xml"/>
     
</config>
       
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/
     




----------------------------------------------------------------------
--


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


--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/







  ------------------------------------------------------------------------


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


------------------------------------------------------------------------


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



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



--
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: Page-Flow Problem

Alessandro  Vernet
Administrator
In reply to this post by Ryan Puddephatt
On 7/24/06, Ryan Puddephatt <[hidden email]> wrote:
> The result is the content of user-level-sub.xml, which is incorrect because
> it should be the output of the original model. Any ideas how to do this?

Hi Ryan,

If you want to pass an instance from the first page to the second one,
it looks to me like you are missing something that copies the instance
in the <result> element. For instance:

<result page="ARCCView">
    <xu:update select="/">
        <xu:copy-of select="doc('input:instance')/*"/>
    </xu:update>
</result>

Also the redirection happens before the model is executed. If you want
to run XPL before the redirection, it needs to be in an action.xpl.
You can then access in XUpdate or XSLT inside the <result> element the
output from the action ('data' output) with doc('input:action').

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
12