important problem with per15-matcher

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

important problem with per15-matcher

julien.bittard
Hello

In my page-flow.xml I use per15-matcher like this:

<page id="rech-tiers" path-info="/glob/rech-tiers/([^(result)].*)?" matcher="oxf:perl5-matcher" xforms="xforms-model.xml" model="scope-formid.xpl" view="view.xsl">
<param ref="/form/formId"/>

When the path-info is : "/glob/rech-tiers/ancien-combattant" it's ok, it match this page.
But when the path-info is : "/glob/rech-tiers/sportives-civiles" it's not ok. It don't match the page !!

An other strange case is when I modify the matcher like this:
path-info="/glob/rech-tiers/([^(ddzdzdgf)].*)?" , then the second path-info example run and match this page !!

I don't understand !!

Have you an idea ?

thank you.

PS: I use tomcat 5.0.28, jdk 1.4.2 and OPS 2.8







--
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: important problem with per15-matcher

julien.bittard
In my page-flow I have too this page:
<page id="rech-tier-result" path-info="/glob/rech-tiers/result" xforms="xforms-model.xml" model="model.xpl" view="view.xsl">

When I put in the first page "([^dddd].*)?" and in the second "dddd", it's run...

But if I put "resultat" It does'nt work !!
   



--
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: important problem with per15-matcher

Alessandro  Vernet
Administrator
In reply to this post by julien.bittard
Hi Julien,

You are getting this because [^(result)] exclude the letters "r", "e",
"s", "u", "l", and "t".

1) "/glob/rech-tiers/ancien-combattant" is good because the last part
of the path starts with "a".
2) "/glob/rech-tiers/sportives-civiles" is not because the last part
of the path starts with the letter "s".

Ah, regular expressions are so much fun! ;)

Alex

On 11/15/05, [hidden email] <[hidden email]> wrote:

> Hello
>
> In my page-flow.xml I use per15-matcher like this:
>
> <page id="rech-tiers" path-info="/glob/rech-tiers/([^(result)].*)?" matcher="oxf:perl5-matcher" xforms="xforms-model.xml" model="scope-formid.xpl" view="view.xsl">
> <param ref="/form/formId"/>
>
> When the path-info is : "/glob/rech-tiers/ancien-combattant" it's ok, it match this page.
> But when the path-info is : "/glob/rech-tiers/sportives-civiles" it's not ok. It don't match the page !!
>
> An other strange case is when I modify the matcher like this:
> path-info="/glob/rech-tiers/([^(ddzdzdgf)].*)?" , then the second path-info example run and match this page !!
>
> I don't understand !!
>
> Have you an idea ?
>
> thank you.
>
> PS: I use tomcat 5.0.28, jdk 1.4.2 and OPS 2.8
>
>
>
>
>
>
>
>
> --
> 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
>
>
>

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: important problem with per15-matcher

julien.bittard
Ok thanks.

I understand now.



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