The example below will work whether your XForms model is static or dynamically generated, as long as you provide the "/form/book-id" element in the model.

-Erik

Justin Makeig wrote:

What if I'm building the XForms dynamically and need to send a param to the
xforms pipeline? Is there a way to do this?

Justin

--
Product Manager
Center for Document Engineering
http://cde.berkeley.edu/
University of California, Berkeley
[EMAIL PROTECTED]



On 9/30/03 9:01 PM, "Erik Bruchez" <[EMAIL PROTECTED]> wrote:


Great example. Note that when using XForms, you can also tell the Web App
Controller to put request parameters into your XForms instance, given a match
on a regular expression. For example:

<page path-info="/books/(.*)" matcher="oxf/processor/perl5-matcher"
     xforms="oxf:/form/book.xml"
     model="oxf:/model/books.xpl"
     view="oxf:/page/books.xsl">
  <param ref="/form/book-id"/>
</page>

With a setup like this, when an URL of the form /books/123 is requested,
/form/book-id will be set to "123". This is a good way of using parts of your
URL as parameters without using the request generator.

-Erik


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to