|
Hi all,
I'm attempting to pre-fill a fields-date component with a string via xxforms:get-request-attribute. This seems to fill the fields fine, but in Internet Explorer, when changing a field value, I get the following Orbeon error:
"Exception in client-side code. Message: Unable to get value of the property 'value': object is null or undefined"
Here's the field definition:
<fr:fields-date id="applicant-dob-control" bind="applicant-dob-bind"> <xforms:label ref="$form-resources/applicant-dob/label" /> <xforms:hint ref="$form-resources/applicant-dob/hint" /> <xforms:help ref="$form-resources/applicant-dob/help" /> <xforms:alert ref="$fr-resources/detail/labels/alert" /> </fr:fields-date>
The bind:
<xforms:bind id="applicant-dob-bind" nodeset="PersonalDetails/DateOfBirth"
type="xforms:date" xxforms:default="xxforms:get-request-attribute('applicantDob', 'text/plain')"/>
The relevant part of the model:
<PersonalDetails> <DateOfBirth/> ...
</PersonalDetails>
The value of the request attribute is the string: "2011-04-15"
I have these properties configured:
<property as="xs:string" name="oxf.xforms.format.output.date" value="[Y]-[M01]-[D01]"/> <property as="xs:string" name="oxf.xforms.format.output.dateTime" value="[Y]-[M01]-[D01] [h01]:[m01]:[s01]"/> <property as="xs:string" name="oxf.xforms.format.input.date" value="[Y]-[M01]-[D01]"/> <property as="xs:string" name="oxf.xforms.format.input.time" value="[h01]:[m01]:[s01]"/>
Is this a bug, or am I doing something dumb?
|