Hi All,
I Developed sample form application using Orbeon form Builder. I got form code in orbeon exist database.
I saved that code as view.xhtml and i run in ops it is giving error like :
Undeclared variable in a standalone expression: $form-resources
call stack:
plz help me how to solve this problem.
thanks in advance,
LaxmiNarayana.
-- 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 |
Administrator
|
That's because the forms created by Form Builder need the runtime
environment to run. -Erik On Jun 4, 2008, at 10:49 AM, Laxmi Narayana wrote: > Hi All, > I Developed sample form application using Orbeon form Builder. I got > form code in orbeon exist database. > I saved that code as view.xhtml and i run in ops it is giving error > like : > > Undeclared variable in a standalone expression: $form-resources > > call stack: > > Resource URL > Line > Column > Description > XML Element > oxf:/config/xforms-widgets.xsl > 27 > N/A > preparing XPath expression > expression → $form-resources/control-2/label > pushing XForms control binding > <xforms:label ref="$form-resources/control-2/label" id="xforms- > element-20"/> > oxf:/ops/pfc/xforms-epilogue.xpl > 127 > 68 > reading processor output > name → document > id → xhtml-data > <p:output name="document" id="xhtml-data"/> > oxf:/ops/pfc/xforms-epilogue.xpl > 133 > 67 > reading processor output > name → data > ref → xformed-data > <p:output name="data" ref="xformed-data"/> > oxf:/config/epilogue.xpl > 44 > 58 > reading processor output > name → xformed-data > id → xformed-data > <p:output name="xformed-data" id="xformed-data"/> > oxf:/config/epilogue-servlet.xpl > 31 > 48 > reading processor output > name → xformed-data > <p:param type="input" name="xformed-data"/> > oxf:/config/epilogue.xpl > 63 > 46 > executing processor > name → {http://www.orbeon.com/oxf/processors}pipeline > <p:processor name="oxf:pipeline">...</p:processor> > oxf:/apps/welcome/page-flow.xml > 18 > 47 > executing processor > name → {http://www.orbeon.com/oxf/processors}pipeline > oxf:/page-flow.xml > 30 > 82 > reading page model data output > page id → welcome > model → apps/welcome/page-flow.xml > <page id="welcome" path-info="/welcome/" model="apps/welcome > plz help me how to solve this problem. > thanks in advance, > LaxmiNarayana. > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
In reply to this post by Laxmi Narayana-3
<quote author="Laxmi Narayana-3"> Hi All, I Developed sample form application using Orbeon form Builder. I got form code in orbeon exist database. I saved that code as view.xhtml and i run in ops it is giving error like : *Undeclared variable in a standalone expression: $form-resources* ** *call stack:* ** Resource URL Line Column Description XML Element oxf:/config/xforms-widgets.xsl 27 N/A preparing XPath expression expression → $form-resources/control-2/label pushing XForms control binding <xforms:label ref="$form-resources/control-2/label" id="xforms-element-20"/> oxf:/ops/pfc/xforms-epilogue.xpl 127 68 reading processor output name → document id → xhtml-data <p:output name="document" id="xhtml-data"/> oxf:/ops/pfc/xforms-epilogue.xpl 133 67 reading processor output name → data ref → xformed-data <p:output name="data" ref="xformed-data"/> oxf:/config/epilogue.xpl 44 58 reading processor output name → xformed-data id → xformed-data <p:output name="xformed-data" id="xformed-data"/> oxf:/config/epilogue-servlet.xpl 31 48 reading processor output name → xformed-data <p:param type="input" name="xformed-data"/> oxf:/config/epilogue.xpl 63 46 executing processor name → {http://www.orbeon.com/oxf/processors}pipeline <p:processor name="oxf:pipeline">...</p:processor> oxf:/apps/welcome/page-flow.xml 18 47 executing processor name → { http://www.orbeon.com/oxf/processors}pipeline oxf:/page-flow.xml 30 82 reading page model data output page id → welcome model → apps/welcome/page-flow.xml <page id="welcome" path-info="/welcome/" model="apps/welcome plz help me how to solve this problem. thanks in advance, LaxmiNarayana. -- You receive this message as a subscriber of the ops-users@ow2.org mailing list. To unsubscribe: mailto:ops-users-unsubscribe@ow2.org For general help: mailto:sympa@ow2.org?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws </quote> Hi, I am new to the orbeon and doing a research on that. I created a page using the form builder and got the XHTML code through the Edit Source option. Then i pasted the code in my app as a jsp page and added the filter mapping in web.xml as per the orbeon documentation.I also added the orbeon filter jar to the WEB-INF\lib directory. When i try to run the jsp from the browser, it displays a blank page. It renders the page if i remove all the form rendered tags (Ex : fr:view,fr:grid etc.) from the jsp. It also displays an error with description as something like $form-resources undeclared variable. So i replaced the $form-resources\details... with the Xforms notation of referring the xml instance (instance('name')\data....). It was rendering the page but the data is not getting submitted . Its because the form instance declaration, bindings inside the model needs to be in a order. Is there a way we can run the form builder generated page outside the orbeon war with the XHTML code remains unchanged?. The next one is unable to have label tags outside the component tags .I have a requirement which needs the label to be in one TD and component in other TD, enclosed by TR. If i move the label out of the component tags, the label is not getting displayed.Anyone knows how to seprate the labels from components?. Can we have the formatting tags like <xhtml:table><xhtml:tr><xhtml:td>...etc generated in form builder , as its generating the form runner specifc tags fr:view,fr:grid? Can we have the xpath expressions in a separate xml file referred by the XForms group tag? Thanks, Suvedhan.J |
Administrator
|
Suvedhan,
You can't quite do that. What is produced by Form Builder is expected to run inside Form Runner. Form Runner is mostly implemented in XSLT and pipelines, and defines constructs that are common to all the forms, so they don't need to be repeated in every single form. This has some benefits, but as you noticed, one drawback is that you can't just take a form produced by Form Builder and run it outside of Form Runner. Alex |
Free forum by Nabble | Edit this page |