Hi there,
I use an reg-exp matcher and a default-submission to get some data from
an URL:
<page id="entity-worker-read-all"
path-info="/projects/entities/Worker/all/?(\d*)/?(\d*)"
matcher="ox:perl5-matcher"
default-submission="entities/submission-paging.xml"
model="datasource.xml" view="entities/read-all-worker.xpl">
<setvalue ref="/entities/@page-size" matcher-group="1"/>
<setvalue ref="/entities/@page" matcher-group="2"/>
</page>
The default submission looks like this (20 and 1 are my paging default
values):
<entities page-size="20" page="1"/>
For this URL:
/projects/entities/Worker/all/1/1
I expect to get this:
<entities page-size="1" page="1"/>
But: this doesn't seem to work, if I use attributes in the submission.
The values are not set in the document.
When I changed the submission document to
<entities>
<page/>
</page-size>
</entities>
and the page-flow to:
<page id="entity-worker-read-all"
path-info="/projects/entities/Worker/all/?(\d*)/?(\d*)"
matcher="ox:perl5-matcher"
default-submission="entities/submission-paging.xml"
model="datasource.xml" view="entities/read-all-worker.xpl">
<setvalue ref="/entities/page-size" matcher-group="1"/>
<setvalue ref="/entities/page" matcher-group="2"/>
</page>
it works perfectly. If the REF attribute uses a "normal" XPath
expression, this must be a bug, or am I wrong...?
:oliver
--
-----------------------
oliver charlet
software development
11-041 Olsztyn, Poland
[hidden email]
-----------------------
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws