Xforms question

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

Xforms question

stefan.van.de.kaa
Hello,

this server is new to me and so I have a question about it. How can I add my own simple xforms and view them with my browser. I use apache http and apache tomcat.

With what url is it possible? I'm working on my localhost.

Thanks,

Stefan



--
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: Xforms question

Hank Ratzesberger
Stefan,

Have you already installed OPS? (Which only requires
Tomcat.) If not, then that is the place to start.
The 3.0 beta contains the OPS website:
http://www.orbeon.com/ops/

If you deploy the war file using the Tomcat
administrator, to the context "/ops" then
you should see it on your localhost:
http://localhost/ops
or possibly
http://localhost:8080/ops
depending on how your Tomcat is configured.

From there, I would edit the page-flow.xml file
to add your page.  Then follow/copy one of the
xforms examples.  In the page-flow.xml, you
would add something like:

<page id="my-page" path-info="/my-page/"
      view="oxf:/my-page/view.xsl"
      model="oxf:/my-page/model.xpl" />

Then it would be accessed as

http://localhost/ops/my-page/

I suspect everyone on this list has had to
look very closely, several times, at the
examples.  It requires a very good understanding
of XML and XSLT as well as XForms.

Good luck,
Hank

Hank Ratzesberger
NEES Programmer
Institute for Crustal Studies
University of California, Santa Barbara

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, September 21, 2005 6:03 AM
Subject: [ops-users] Xforms question


> Hello,
>
> this server is new to me and so I have a question about it. How can I add my own simple xforms and view them with my browser. I
> use apache http and apache tomcat.
>
> With what url is it possible? I'm working on my localhost.
>
> Thanks,
>
> Stefan
>
>

--------------------------------------------------------------------------------


>
> --
> 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
>




--
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: Xforms question

stefan.van.de.kaa
In reply to this post by stefan.van.de.kaa
Hello,

I got that to work and I am no working with my own xform. I now have
another question.

This is my model.

<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <xforms:instance xmlns="" id="instance">
                <title>
                        <name />
                        <passwd />
                        <select />
                        <date />
                </title>
        </xforms:instance>

    <xforms:bind nodeset="/title/date" type="xsd:date" />

</xforms:model>

And this is my view.

<xhtml:html xmlns:f="http://orbeon.org/oxf/xml/formatting"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
            xmlns:xforms="http://www.w3.org/2002/xforms">
<xhtml:head>
<xhtml:title>Title</xhtml:title>
</xhtml:head>
<xhtml:body>

<xhtml:p>Naam:</xhtml:p>
<xforms:input ref="name" />

<xhtml:p>Wachtwoord:</xhtml:p>
<xforms:secret ref="passwd" />


<xhtml:p>Poll: to be or not to be?</xhtml:p>

<xforms:select1 ref="select" appearance="compact">
   <xforms:item>
        <xforms:label>To Be</xforms:label>
        <xforms:value>b</xforms:value>
  </xforms:item>
  <xforms:item>
        <xforms:label>Not To Be</xforms:label>
        <xforms:value>n</xforms:value>
  </xforms:item>
</xforms:select1>


<xforms:input ref="date">
</xforms:input>

</xhtml:body>
</xhtml:html>

Now my real question is:

How can I get a datepicker? I used the bind for the date. When I change
the ref to "/title/date" then I do get the button for the datepicker but
when I click it I'm getting an javascript error which says an object is
expected.

How can I solve this?

Thanks for the answer to my last question and I hope you can help me
again.

Stefan

-----Original Message-----
From: Hank Ratzesberger [mailto:[hidden email]]
Sent: woensdag 21 september 2005 18:07
To: [hidden email]
Subject: Re: [ops-users] Xforms question

Stefan,

Have you already installed OPS? (Which only requires
Tomcat.) If not, then that is the place to start.
The 3.0 beta contains the OPS website:
http://www.orbeon.com/ops/

If you deploy the war file using the Tomcat
administrator, to the context "/ops" then
you should see it on your localhost:
http://localhost/ops
or possibly
http://localhost:8080/ops
depending on how your Tomcat is configured.

From there, I would edit the page-flow.xml file
to add your page.  Then follow/copy one of the
xforms examples.  In the page-flow.xml, you
would add something like:

<page id="my-page" path-info="/my-page/"
      view="oxf:/my-page/view.xsl"
      model="oxf:/my-page/model.xpl" />

Then it would be accessed as

http://localhost/ops/my-page/

I suspect everyone on this list has had to
look very closely, several times, at the
examples.  It requires a very good understanding
of XML and XSLT as well as XForms.

Good luck,
Hank

Hank Ratzesberger
NEES Programmer
Institute for Crustal Studies
University of California, Santa Barbara

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, September 21, 2005 6:03 AM
Subject: [ops-users] Xforms question


> Hello,
>
> this server is new to me and so I have a question about it. How can I
add my own simple xforms and view them with my browser. I
> use apache http and apache tomcat.
>
> With what url is it possible? I'm working on my localhost.
>
> Thanks,
>
> Stefan
>
>


------------------------------------------------------------------------
--------


>
> --
> 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
>





--
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: Xforms question

Alexander Žaťko
If you are using the new (AJAX-based) Xforms engine then you should  
look at the "Controls NG" example which contains a date picker.

If you are the classic XForms engine let me know and I will describe  
how I implemented the date picker.

A.


On Sep 22, 2005, at 5:36 AM, van de Kaa, Stefan wrote:

> Hello,
>
> I got that to work and I am no working with my own xform. I now have
> another question.
>
> This is my model.
>
> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xforms:instance xmlns="" id="instance">
> <title>
> <name />
> <passwd />
> <select />
> <date />
> </title>
> </xforms:instance>
>
>     <xforms:bind nodeset="/title/date" type="xsd:date" />
>
> </xforms:model>
>
> And this is my view.
>
> <xhtml:html xmlns:f="http://orbeon.org/oxf/xml/formatting"
> xmlns:xhtml="http://www.w3.org/1999/xhtml"
>             xmlns:xforms="http://www.w3.org/2002/xforms">
> <xhtml:head>
> <xhtml:title>Title</xhtml:title>
> </xhtml:head>
> <xhtml:body>
>
> <xhtml:p>Naam:</xhtml:p>
> <xforms:input ref="name" />
>
> <xhtml:p>Wachtwoord:</xhtml:p>
> <xforms:secret ref="passwd" />
>
> <xhtml:p>Poll: to be or not to be?</xhtml:p>
>
> <xforms:select1 ref="select" appearance="compact">
>    <xforms:item>
> <xforms:label>To Be</xforms:label>
> <xforms:value>b</xforms:value>
>   </xforms:item>
>   <xforms:item>
> <xforms:label>Not To Be</xforms:label>
> <xforms:value>n</xforms:value>
>   </xforms:item>
> </xforms:select1>
>
> <xforms:input ref="date">
> </xforms:input>
>
> </xhtml:body>
> </xhtml:html>
>
> Now my real question is:
>
> How can I get a datepicker? I used the bind for the date. When I change
> the ref to "/title/date" then I do get the button for the datepicker  
> but
> when I click it I'm getting an javascript error which says an object is
> expected.
>
> How can I solve this?
>
> Thanks for the answer to my last question and I hope you can help me
> again.
>
> Stefan
>
> -----Original Message-----
> From: Hank Ratzesberger [mailto:[hidden email]]
> Sent: woensdag 21 september 2005 18:07
> To: [hidden email]
> Subject: Re: [ops-users] Xforms question
>
> Stefan,
>
> Have you already installed OPS? (Which only requires
> Tomcat.) If not, then that is the place to start.
> The 3.0 beta contains the OPS website:
> http://www.orbeon.com/ops/
>
> If you deploy the war file using the Tomcat
> administrator, to the context "/ops" then
> you should see it on your localhost:
> http://localhost/ops
> or possibly
> http://localhost:8080/ops
> depending on how your Tomcat is configured.
>
> From there, I would edit the page-flow.xml file
> to add your page.  Then follow/copy one of the
> xforms examples.  In the page-flow.xml, you
> would add something like:
>
> <page id="my-page" path-info="/my-page/"
>       view="oxf:/my-page/view.xsl"
>       model="oxf:/my-page/model.xpl" />
>
> Then it would be accessed as
>
> http://localhost/ops/my-page/
>
> I suspect everyone on this list has had to
> look very closely, several times, at the
> examples.  It requires a very good understanding
> of XML and XSLT as well as XForms.
>
> Good luck,
> Hank
>
> Hank Ratzesberger
> NEES Programmer
> Institute for Crustal Studies
> University of California, Santa Barbara
>
> ----- Original Message -----
> From: <[hidden email]>
> To: <[hidden email]>
> Sent: Wednesday, September 21, 2005 6:03 AM
> Subject: [ops-users] Xforms question
>
>> Hello,
>>
>> this server is new to me and so I have a question about it. How can I
> add my own simple xforms and view them with my browser. I
>> use apache http and apache tomcat.
>>
>> With what url is it possible? I'm working on my localhost.
>>
>> Thanks,
>>
>> Stefan
>>
>>
>
> -----------------------------------------------------------------------
> -
> --------
>
>>
>> --
>> 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
>>
>
>
> --
> 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



--
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: Xforms question

Alessandro  Vernet
Administrator
In reply to this post by stefan.van.de.kaa
On 9/22/05, van de Kaa, Stefan <[hidden email]> wrote:
> How can I get a datepicker? I used the bind for the date. When I change
> the ref to "/title/date" then I do get the button for the datepicker but
> when I click it I'm getting an javascript error which says an object is
> expected.

Stefan,

As mentioned by Alexander, you might want to have a look at the
"XForms Controls" example to see how the date picker is used there.
But if you get a JavaScript error, I wouldn't be surprised if you are
hitting a bug in the current client-side code of the date picker. We
have added recently the ability to have the date displayed using a
local format, but the code is still in flux and will be improved/fixed
before a final OPS 3.0 is released.

Alex



--
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