getting started

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

getting started

zeno.trevisan
Hi

I have started to familiarize myself with orbeon and experimented for a while but since more than a week now got totally stuck. I have tried in a first step to use the sandbox of the official website to get a bit into the topic. As a next step I went over to exclipse and wanted to get configured with one of the examples I used with the sandox, but failing terribly. I have attached the files (tried actually also with the bizdoc example available from previous versions and a lot of other attempts with some of the examples). The main issue I seem not to be able to overcome is that only static text is displayed, but all my xforms are happily ignored and I get loads of exceptions like:

org.orbeon.oxf.common.ValidationException: Condition failed for every branch of choose: [(/request/request-path = '/XForms-Starter'), (/request/request-path = '/'), (/request/request-path = '/oxf-theme/orbeon-layout.cssd')] : Condition failed for every branch of choose: [(/request/request-path = '/XForms-Starter'), (/request/request-path = '/'), (/request/request-path = '/oxf-theme/orbeon-layout.cssd')]
        at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:209)
        at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:120)
...

Any help or example of a standalone application (complete war file) that can be used to kick-off would be very much appreciated.

My files:
page-flow:

<config xmlns="http://www.orbeon.com/oxf/controller"
                xmlns:xu="http://www.xmldb.org/xupdate"
                xmlns:oxf="http://www.orbeon.com/oxf/processors">

        <page id="XForms-Starter" path-info="/XForms-Starter" view="/XForms-Starter/xforms-instance-projectassessment.xhtml"/>
       
        <!-- Home (for standalone operation) -->
    <page id="home" path-info="/">
        <action>
            <result page="XForms-Starter"/>
        </action>
    </page>

    <!-- CSS generated by a pipeline (for standalone operation) -->
    <page id="layout-css" path-info="/oxf-theme/orbeon-layout.cssd" model="/oxf-theme/orbeon-layout.xpl"/>
       
        <epilogue url="/config/epilogue.xpl"/>
</config>


xforms-instance-projectassessment.xthml:

<html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:xforms="http://www.w3.org/2002/xforms">
<head>
        <title>Project Assessment</title>
        <xforms:model>
                <xforms:instance>
                        <customer xmlns="">
                                <company/>
                        </customer>
                </xforms:instance>
        </xforms:model>
</head>
<body>
        <p>
                Please enter your project assessment details:
                <xforms:input ref="/customer/company"/>
        </p>
        <p>
                Please consider following output:
                <xforms:output value="'some test'"/>
        </p>
</body>
</html>



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: getting started

Richard Braman
org.orbeon.oxf.common.ValidationException: Condition failed for every
branch of choose
Means there is something wrong with your page flow.  It means that that
the request path did not match any of the items you have in your page
flow. Id didn't even match ? As indicated by "/request/request-path =
'/'" Are you sure you are hitting the right url?  This usually happens
to me when I point to the wrong url.  I don agree that a basic hellow
world.war would be nice.  I used to have one.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]
Sent: Monday, February 13, 2006 4:40 PM
To: [hidden email]
Subject: [ops-users] getting started


Hi

I have started to familiarize myself with orbeon and experimented for a
while but since more than a week now got totally stuck. I have tried in
a first step to use the sandbox of the official website to get a bit
into the topic. As a next step I went over to exclipse and wanted to get
configured with one of the examples I used with the sandox, but failing
terribly. I have attached the files (tried actually also with the bizdoc
example available from previous versions and a lot of other attempts
with some of the examples). The main issue I seem not to be able to
overcome is that only static text is displayed, but all my xforms are
happily ignored and I get loads of exceptions like:

org.orbeon.oxf.common.ValidationException: Condition failed for every
branch of choose: [(/request/request-path = '/XForms-Starter'),
(/request/request-path = '/'), (/request/request-path =
'/oxf-theme/orbeon-layout.cssd')] : Condition failed for every branch of
choose: [(/request/request-path = '/XForms-Starter'),
(/request/request-path = '/'), (/request/request-path =
'/oxf-theme/orbeon-layout.cssd')]
        at
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C
oncreteChooseProcessor.java:209)
        at
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readI
mpl(ConcreteChooseProcessor.java:120)
...

Any help or example of a standalone application (complete war file) that
can be used to kick-off would be very much appreciated.

My files:
page-flow:

<config xmlns="http://www.orbeon.com/oxf/controller"
                xmlns:xu="http://www.xmldb.org/xupdate"
                xmlns:oxf="http://www.orbeon.com/oxf/processors">

        <page id="XForms-Starter" path-info="/XForms-Starter"
view="/XForms-Starter/xforms-instance-projectassessment.xhtml"/>
       
        <!-- Home (for standalone operation) -->
    <page id="home" path-info="/">
        <action>
            <result page="XForms-Starter"/>
        </action>
    </page>

    <!-- CSS generated by a pipeline (for standalone operation) -->
    <page id="layout-css" path-info="/oxf-theme/orbeon-layout.cssd"
model="/oxf-theme/orbeon-layout.xpl"/>
       
        <epilogue url="/config/epilogue.xpl"/>
</config>


xforms-instance-projectassessment.xthml:

<html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:xforms="http://www.w3.org/2002/xforms">
<head>
        <title>Project Assessment</title>
        <xforms:model>
                <xforms:instance>
                        <customer xmlns="">
                                <company/>
                        </customer>
                </xforms:instance>
        </xforms:model>
</head>
<body>
        <p>
                Please enter your project assessment details:
                <xforms:input ref="/customer/company"/>
        </p>
        <p>
                Please consider following output:
                <xforms:output value="'some test'"/>
        </p>
</body>
</html>





--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: getting started

Alessandro  Vernet
Administrator
In reply to this post by zeno.trevisan
Zeno,

See Richard's answer regarding the "Condition failed for every branch
of choose" error message. I had a quick look at your XForms code and
it seems to be fine, and it also runs fine in the XForms sandbox.

One comment though: even if it is convenient to declare a default name
(xmlns="xxx") when a lot of your elements are in that namespace, like
you do for XHTML, it is not recommended because it make your code less
readable (in particular if you forget an xmlns="" somewhere, it is
then easy to have XPath expressions that "surprisingly" don't return
anything), and also because resetting the default namespace is not
always very well supported.

Alex

On 2/13/06, [hidden email] <[hidden email]> wrote:

> Hi
>
> I have started to familiarize myself with orbeon and experimented for a while but since more than a week now got totally stuck. I have tried in a first step to use the sandbox of the official website to get a bit into the topic. As a next step I went over to exclipse and wanted to get configured with one of the examples I used with the sandox, but failing terribly. I have attached the files (tried actually also with the bizdoc example available from previous versions and a lot of other attempts with some of the examples). The main issue I seem not to be able to overcome is that only static text is displayed, but all my xforms are happily ignored and I get loads of exceptions like:
>
> org.orbeon.oxf.common.ValidationException: Condition failed for every branch of choose: [(/request/request-path = '/XForms-Starter'), (/request/request-path = '/'), (/request/request-path = '/oxf-theme/orbeon-layout.cssd')] : Condition failed for every branch of choose: [(/request/request-path = '/XForms-Starter'), (/request/request-path = '/'), (/request/request-path = '/oxf-theme/orbeon-layout.cssd')]
>         at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:209)
>         at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:120)
> ...
>
> Any help or example of a standalone application (complete war file) that can be used to kick-off would be very much appreciated.
>
> My files:
> page-flow:
>
> <config xmlns="http://www.orbeon.com/oxf/controller"
>                 xmlns:xu="http://www.xmldb.org/xupdate"
>                 xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>         <page id="XForms-Starter" path-info="/XForms-Starter" view="/XForms-Starter/xforms-instance-projectassessment.xhtml"/>
>
>         <!-- Home (for standalone operation) -->
>     <page id="home" path-info="/">
>         <action>
>             <result page="XForms-Starter"/>
>         </action>
>     </page>
>
>     <!-- CSS generated by a pipeline (for standalone operation) -->
>     <page id="layout-css" path-info="/oxf-theme/orbeon-layout.cssd" model="/oxf-theme/orbeon-layout.xpl"/>
>
>         <epilogue url="/config/epilogue.xpl"/>
> </config>
>
>
> xforms-instance-projectassessment.xthml:
>
> <html xmlns="http://www.w3.org/1999/xhtml"
>           xmlns:xforms="http://www.w3.org/2002/xforms">
> <head>
>         <title>Project Assessment</title>
>         <xforms:model>
>                 <xforms:instance>
>                         <customer xmlns="">
>                                 <company/>
>                         </customer>
>                 </xforms:instance>
>         </xforms:model>
> </head>
> <body>
>         <p>
>                 Please enter your project assessment details:
>                 <xforms:input ref="/customer/company"/>
>         </p>
>         <p>
>                 Please consider following output:
>                 <xforms:output value="'some test'"/>
>         </p>
> </body>
> </html>
>
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: getting started

zeno.trevisan
thanks for coming back to me. I have seen in earlier posts that there must be something wrong with a path. However the thing I do not really understand is, the page-flow controller must be finding at least the xhtml page because I can see in the web browser my text from that xhtml displayed (e.g. the line "please enter your project assessment details" is displayed). Only the xforms:input and the xforms:output do not appear at all. The application is actually not completely crashing on that call stack, eclipse just provides me with this information through the event logger. I have compared the html output that the web browser creates as opposed to when the orbeon sandbox creates its page. I can see that the xforms controll are differently annotated with the portal:

Please enter your project assessment details:
                     <span id="xforms-element-3" class="xforms-control xforms-input"><span class="xforms-date-display"></span><input type="text" name="$portlet$p1.xforms-element-3" value="" class="xforms-input-input xforms-type-string"><span class="xforms-showcalendar xforms-type-string"></span></span><label class="xforms-alert xforms-alert-inactive" for="xforms-element-3"></label>
                 

where the same thing directly run in the web browser out of eclipse looks like:

Please enter your project assessment details:
   
   <xforms:input ref="/customer/company"></xforms:input>
   
This led me to believe something goes wrong in processing by the epilogue, but I have no clue really if that is true and if so what is wrong.




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: getting started

Erik Bruchez
Administrator
One thing to determine would be to check whether your setup is bad, or
whether the code you wrote.

You mentioned Eclipse. We currently do not provide an updated version of
the Orbeon Studio which has been upgraded for OPS 3.0. This assuming you
are using the Orbeon Studio plugin. Is that the case? If so, currently
you must also download the release of OPS 3.0.1, and replace the version
that ships with the Orbeon Studio plugin with that new version.

If you are running OPS from outside Eclipse, then never mind. For sure,
the first thing to make sure of is that you can run OPS 3.0.1 on your
machine, i.e. run all the examples, without your own code.

-Erik

[hidden email] wrote:

> thanks for coming back to me. I have seen in earlier posts that there must be something wrong with a path. However the thing I do not really understand is, the page-flow controller must be finding at least the xhtml page because I can see in the web browser my text from that xhtml displayed (e.g. the line "please enter your project assessment details" is displayed). Only the xforms:input and the xforms:output do not appear at all. The application is actually not completely crashing on that call stack, eclipse just provides me with this information through the event logger. I have compared the html output that the web browser creates as opposed to when the orbeon sandbox creates its page. I can see that the xforms controll are differently annotated with the portal:
>
> Please enter your project assessment details:
>                      <span id="xforms-element-3" class="xforms-control xforms-input"><span class="xforms-date-display"></span><input type="text" name="$portlet$p1.xforms-element-3" value="" class="xforms-input-input xforms-type-string"><span class="xforms-showcalendar xforms-type-string"></span></span><label class="xforms-alert xforms-alert-inactive" for="xforms-element-3"></label>
>                  
>
> where the same thing directly run in the web browser out of eclipse looks like:
>
> Please enter your project assessment details:
>    
>    <xforms:input ref="/customer/company"></xforms:input>
>    
> This led me to believe something goes wrong in processing by the epilogue, but I have no clue really if that is true and if so what is wrong.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: getting started

zeno.trevisan
Ok, I found the problem now. Two things came together here: first of all as
Erik points out I had to make sure to install the latest ops version in my
eclipse environment. Secondly, I did something which I am not 100% sure
about the effect technically, but it does the trick. In the initial setup I
hade created a subfolder in the /resource directory for my stuff. So the
page-flow and the xhtml file were living in that folder and I configured the
main processor in the web.xml to point to that page-flow. This worked fine
half-way only. What I did now is to put the page-flow.xml to the level of
the /resource directory, have the web.xml point to that one and then I put a
page-flow.xpl with the p:processor directive for the pfc in the subdirectory
where the rest of the project lives. The page-flow.xpl is now called through
the /resource/page-flow.xml and since all the exceptions have gone and my
xforms are executing nicely.

Cheers and thanks for your help
Zeno

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Dienstag, 14. Februar 2006 21:11
To: [hidden email]
Subject: Re: [ops-users] getting started

One thing to determine would be to check whether your setup is bad, or
whether the code you wrote.

You mentioned Eclipse. We currently do not provide an updated version of
the Orbeon Studio which has been upgraded for OPS 3.0. This assuming you
are using the Orbeon Studio plugin. Is that the case? If so, currently
you must also download the release of OPS 3.0.1, and replace the version
that ships with the Orbeon Studio plugin with that new version.

If you are running OPS from outside Eclipse, then never mind. For sure,
the first thing to make sure of is that you can run OPS 3.0.1 on your
machine, i.e. run all the examples, without your own code.

-Erik

[hidden email] wrote:
> thanks for coming back to me. I have seen in earlier posts that there must
be something wrong with a path. However the thing I do not really understand
is, the page-flow controller must be finding at least the xhtml page because
I can see in the web browser my text from that xhtml displayed (e.g. the
line "please enter your project assessment details" is displayed). Only the
xforms:input and the xforms:output do not appear at all. The application is
actually not completely crashing on that call stack, eclipse just provides
me with this information through the event logger. I have compared the html
output that the web browser creates as opposed to when the orbeon sandbox
creates its page. I can see that the xforms controll are differently
annotated with the portal:
>
> Please enter your project assessment details:
>                      <span id="xforms-element-3"
class="xforms-control xforms-input"><span
class="xforms-date-display"></span><input type="text"
name="$portlet$p1.xforms-element-3" value="" class="xforms-input-input
xforms-type-string"><span class="xforms-showcalendar
xforms-type-string"></span></span><label class="xforms-alert
xforms-alert-inactive" for="xforms-element-3"></label>
>                  
>
> where the same thing directly run in the web browser out of eclipse looks
like:
>
> Please enter your project assessment details:
>    
>    <xforms:input ref="/customer/company"></xforms:input>
>    
> This led me to believe something goes wrong in processing by the epilogue,
but I have no clue really if that is true and if so what is wrong.






--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws