The basic app
But first things first. Start by making a first functional page:
- The first thing to do is to create a new directory for your application. Orbeon Forms already come with the complete
xforms-bookcast
application, so instead let's decide on another name, for examplemy-bookcast
. Create a directory with that name asRESOURCES/apps/my-bookcast
. For convenience, we refer to that new directory as theBOOKCAST
directory below. - Create a
page-flow.xml
file underBOOKCAST
:<controller xmlns="http://www.orbeon.com/oxf/controller"><page path="/my-bookcast/" view="view.xhtml"/><epilogue url="oxf:/config/epilogue.xpl"/></controller>
This page flow is automatically called for any path that starts with
/orbeon/my-bookcast/
. Here, it matches on the exact path /orbeon/my-bookcast/
and calls up the page view called view.xhtml
.- Create a skeleton for your
view.xhtml
underBOOKCAST
:<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"><head><title>XForms Bookcast</title></head><body><p>Hello!</p></body></html>This is a very basic XHTML document. It features a title in the<head>
and a "Hello!" message in the<body>
. It also declares a bunch of XML namespaces that you need later in the document.
Now go to:
http://localhost:8080/orbeon/my-bookcast/
You should see something like this:

NOTE:
If you get lost at some point in this tutorial, feel free to look at the reference source files for the Bookcast application: