Re: x:forms:bind and xforms:model

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/DMV-Forms-Example-tp27273p27350.html

Richard,

You can style your input controls by using CSS rules like:

   .myclass input { ... }

For examples of this, look at style.css here:

   http://www.orbeon.com/ops/

-Erik

Richard Braman wrote:

> After some more looking around I noticed that your code created span
> tags around all of my xforms inputs once they are rendered to HTML.
> Span cannot control an input, which is why my style tags are being
> ignored.
>
> -----Original Message-----
> From: Richard Braman [mailto:[hidden email]]
> Sent: Thursday, February 09, 2006 1:28 PM
> To: [hidden email]
> Subject: RE: [ops-users] x:forms:bind and xforms:model
>
>
> It is also rendering check boxes as text.
>
> -----Original Message-----
> From: Richard Braman [mailto:[hidden email]]
> Sent: Thursday, February 09, 2006 12:54 PM
> To: [hidden email]
> Subject: RE: [ops-users] x:forms:bind and xforms:model
>
>
> OK I got it to work with xform:bind
> http://24.75.221.234:8080/taxcode/1040ez
> The only problem is that it looks like Xforms bind is doing client side
> recalculations. It my architecture these things are supposed to happen
> on the server. It is also chainging the style of the form from what it
> was with ref, and ingnoring the styles that I have set up.
>
>
> -----Original Message-----
> From: Richard Braman [mailto:[hidden email]]
> Sent: Wednesday, February 08, 2006 1:49 PM
> To: '[hidden email]'
> Subject: RE: [ops-users] x:forms:bind and xforms:model
>
>
> oxf:/xforms/f1040ez.xml returns
> Cannot load "/xforms/f1040ez.xml" with webapp loader.
>
> I don't think that url will serve
> http://24.75.221.234:8080/taxcode/1040ez
> The file is located in a xforms directory under ops/examples/1040ez/
>
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: Wednesday, February 08, 2006 10:24 AM
> To: [hidden email]
> Subject: Re: [ops-users] x:forms:bind and xforms:model
>
>
> Try using src="oxf:/xforms/f1040ez.xml" instead. Those URLs are now
> resolved relative to the external request URL, i.e. the HTTP URL.
>
> -Erik
>
> Richard Braman wrote:
>> I have reproduced snippets from my code.  This code throws a response
>> cannot be null error in xForms-epilogue.xpl line 81.  I don't really
>> understand the syntax, because if it was the way understand it, it
>> would work :)
>>
>> Here is my view:
>>
>> <html>
>> <head>
>>         <title>Form 1040 EZ 2005</title>
>> <xforms:model>
>> <xforms:instance id="main-instance" src="/xforms/f1040ez.xml"/>
>> <xforms:bind id="f1-1" nodeset="/form/f1040ez/f1-1"></xforms:bind>
>> </xforms:model>
>> </head>
>> <body bgcolor="#FFFFFF" text="#000000">
>>
>>
>> <xforms:input xhtml:type="text" bind="f1-1"
>> xhtml:style="height:22px;width:209px;margin:0px;font-size:16px"/>
>>
>> </body>
>> </html>
>>
>> **********************************
>> Here is my input instance in file /xforms/f1040ez.xml
>>
>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
>> <xforms:instance>
>> <form>
>> <f1040ez>
>> <f1-1>first name</f1-1>
>> </f1040ez>
>> </form>
>> </xforms:instance>
>> <xforms:submission method="post"/>
>> </xforms:model>
>>
>>
>> -----Original Message-----
>> From: Richard Braman [mailto:[hidden email]]
>> Sent: Wednesday, February 08, 2006 9:28 AM
>> To: [hidden email]
>> Subject: RE: [ops-users] x:forms:bind and xforms:model
>>
>>
>> I am trying to get my empty instance
>>
>> -----Original Message-----
>> From: Ryan Puddephatt [mailto:[hidden email]]
>> Sent: Wednesday, February 08, 2006 9:04 AM
>> To: [hidden email]
>> Subject: RE: [ops-users] x:forms:bind and xforms:model
>>
>>
>> Richard,
>> If your using the classic engine then the instance will be
> defined in
>> the page-flow, but if your using the NG engine, which it looks like
>> your trying to! Then the instance is defined within the page.
>>
>> Ryan Puddephatt
>> Software Engineer
>> TFX Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotand
>> EH54 7DP
>>  
>> * [hidden email]
>> ( 01506 407 110
>> 7  01506 407 108
>> Any ideas on What is src="input:instance"
>>
>>> -----Original Message-----
>>> From: Richard Braman [mailto:[hidden email]]
>>> Sent: 08 February 2006 13:46
>>> To: [hidden email]
>>> Subject: RE: [ops-users] x:forms:bind and xforms:model
>>>
>>> What is src="input:instance"  ?
>>> I thought my src instance is specified in the page flow.... Is this
>>> instance passed into the instance in the view?
>>>
>>> -----Original Message-----
>>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>> Bruchez
>>> Sent: Wednesday, February 08, 2006 8:45 AM
>>> To: [hidden email]
>>> Subject: Re: [ops-users] x:forms:bind and xforms:model
>>>
>>>
>>> That goes under your /xhtml:html/xhtml:head in your page view, yes.
>>>
>>> -Erik
>>>
>>> Richard Braman wrote:
>>>>  Is thi syntax supported in3.0?  Where would this code go, in the
>>>> view?
>>>>
>>>>
>>>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
>>>>
>>>>  <!--The actual XForms instance comes from the database -->
>>>>
>>>>  <!--This syntax has yet to be supported by the server-side XForms
>>>> processor -->
>>>>
>>>>  <xforms:instance id="main-instance"src="input:instance"/>
>>>>
>>>>  <!--Calculations -->
>>>>
>>>>  <xforms:bind nodeset="/form/this/is/a/calculated/value1"
>>>> calculate="sum(/form/some/repeated/values)"/>
>>>>
>>>>  <xforms:bind nodeset="/form/this/is/a/calculated/@value2"
>>>> calculate="if
>>>> (/form/some/value gt 1000)then 100.0 else 200.0"/> ...
>>>>
>>>>  </xforms:model>
>>>
>>
>>
>>
>>
>>
>>
>>
>> ----------------------------------------------------------------------
>> --
>>
>>
>> --
>> 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