Using a literal string with <setvalue> in page-flow.xml

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

Using a literal string with <setvalue> in page-flow.xml

Jeff Jones
I'm using <setvalue> in a <page> element of page-flow.xml, as
documented, to pass information from the request URL into the model
pipeline via the submission document. That's working fine. However, I'd
also like to pass a literal string, different for every <page>, to the
model, and I thought the submission document would be the right way to
do that. My first thought was something like this:

<page
default-submission="a_document_with_appropriately_named_empty_elements.xml"
...>
     <setvalue ref="/form/foo" param="foo"/> <!-- this works -->
     <setvalue ref="/form/bar">Literal string</setvalue>
</page>

This apparently isn't valid, though. Is there some other way I can pass
a literal string from a <page> element to to a model pipeline, either
through the submission document or otherwise?

(This is OPS 3.0 beta 2, Tomcat 5.5, Java 5, under Linux.)

Thanks for your help in advance...

Jeff Jones
The Weather Channel Interactive



--
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: Using a literal string with <setvalue> in page-flow.xml

Erik Bruchez
Administrator
Jeff Jones wrote:

> I'm using <setvalue> in a <page> element of page-flow.xml, as
> documented, to pass information from the request URL into the model
> pipeline via the submission document. That's working fine. However, I'd
> also like to pass a literal string, different for every <page>, to the
> model, and I thought the submission document would be the right way to
> do that. My first thought was something like this:
>
> <page
> default-submission="a_document_with_appropriately_named_empty_elements.xml"
> ...>
>     <setvalue ref="/form/foo" param="foo"/> <!-- this works -->
>     <setvalue ref="/form/bar">Literal string</setvalue>
> </page>
>
> This apparently isn't valid, though. Is there some other way I can pass
> a literal string from a <page> element to to a model pipeline, either
> through the submission document or otherwise?
>
> (This is OPS 3.0 beta 2, Tomcat 5.5, Java 5, under Linux.)
>
> Thanks for your help in advance...
This is not possible as of yet. I am entering an RFE to track this:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=303872&group_id=168&atid=350210

What you can do though is store the default value in
a_document_with_appropriately_named_empty_elements.xml.

-Erik



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