Dashboard > Tempo > ... > FAQ > Custom xforms with Orbeon > View
Tempo Log In   View a printable version of the current page.
Custom xforms with Orbeon
Added by Nicolas Modrzyk, last edited by Nicolas Modrzyk on Oct 01, 2008

Working efficiently with Orbeon

Enable the form instance inspector

As described on the orbeon blog, there is a way to see the live content of the xforms instances.

<widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

This will now display something like this on top of the rendered xforms.

Enable the DebugProcessor

In the log4j.properties file, be sure you have not commented out the DebugProcessor logger:

log4j.category.org.orbeon.oxf.processor.DebugProcessor=INFO

In any xpl code, you can now add a debug tag to any variables, like the following:

<p:input name="xpl-input" href="#data" debug="mydata"/>

that will show up in the logs, with its current content.
This is also useful to see what data is sent from the form manager to the different tempo services.

Expand the orbeon javascript files

From within the xFormsManager webapp, you can use the following command

jar xvf WEB-INF/lib/orbeon-resources-public-*.jar

to expand the public resources of orbeon.
Now you can see the code content, and work more efficiently with Orbeon javascript files.

We change the default configuration file a bit for orbeon, so the files should be expanded in the workflow folder.

Most of the files expanded are found in the ops folder.
If you want to see the javascripts used, notably xforms.js, be sure to make the following change in WEB-INF/workflow/config/properties.xml
from:

<property as="xs:boolean" name="oxf.xforms.minimal-resources" value="true"/>

to

<property as="xs:boolean" name="oxf.xforms.minimal-resources" value="false"/>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 1.4.1 Build:#212 Jun 02, 2005) - Bug/feature request - Contact Administrators