Hi, now that I have the separate deployment of Orbeon working and my jsps are processed by Orbeon, I realized that accessing doc('input:instance') in my XForms no longer returns anything. I created my forms in the resources directory of Orbeon, using Orbeon, and now I have tried to use them through a JSP and can't get URL parameters. When using page-flow, the parameters have to be defined in page-flow.xml, but with Java, there is no page-flow... how can URL parameters be passed in?
I can think of two ways but they are both terrible: to use request.getParameter() in the boparameter.xhtmldy of the XHTML/JSP; however, my JSP loads XHTML from a database, and then just spits it out, so this wouldn't work. The other solution is ugly; do a string search and replace in the XHTML returned by the database. I have attached my XHTML file. For testing as a JSP, I simply change the file extension to .jsp. I hope there is some way my XForms can still access input:instance... |
Administrator
|
On Thu, May 22, 2008 at 3:26 PM, fitek <[hidden email]> wrote:
> Hi, now that I have the separate deployment of Orbeon working and my jsps are > processed by Orbeon, I realized that accessing doc('input:instance') in my > XForms no longer returns anything. I created my forms in the resources > directory of Orbeon, using Orbeon, and now I have tried to use them through > a JSP and can't get URL parameters. Am I right to assume that you were using something like <setvalue ref="/submission/first" parameter="first"/> in your page flow to set some value in the instance, and then accessing this instance in XForms with "input:instance"? If this is the case, you could now use xxforms:get-request-parameter() in XForms, or have the instance inline in the JSP and use JSP tags to insert the request parameters into elements or attributes of the instance. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Alex you are correct, I used setvalue in the page-flow file. Inline code won't work easily because the XHTML returned by the database is arbitrary. I tried googling for xxforms:get-request-parameter() and it looks like its only available in 3.7; I am using 3.6. If these are the only options I suppose I will need to do a string search/replace on the XHTML returned by the DB for now.
-Peter
|
Administrator
|
Peter,
On Thu, May 22, 2008 at 4:27 PM, fitek <[hidden email]> wrote: > Alex you are correct, I used setvalue in the page-flow file. Inline code > won't work easily because the XHTML returned by the database is arbitrary. So the database returns XHTML+XForms which the JSP inserts into the page; right? > I tried googling for xxforms:get-request-parameter() and it looks like its > only available in 3.7; I am using 3.6. If these are the only options I > suppose I will need to do a string search/replace on the XHTML returned by > the DB for now. Right, xxforms:get-request-parameter() has been added recently and you would have to upgrade to a nightly build. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |