Incremental does not work on first change event

Project:formsPlayer
Version:1.5.7.1013
Component:Code
Category:bug
Priority:normal
Assigned:Unassigned
Status:closed
Description

Most of our input controls have an associated alert image 'invalid.gif'
Each input control with incremental="true" does not seem to function on the first changed event after the page has been rendered the first time.
Any revisit to the input control functions properly.

For example:
xml:

<MinimumPasswordLength>10</MinimumPasswordLength>

xsd:

<xs:element name="MinimumPasswordLength" type="i1to40Integer"/>

<xs:simpleType name="i1to40Integer">
	<xs:restriction base="xs:integer">
		<xs:minInclusive value="1"/>
		<xs:maxInclusive value="40"/>
	</xs:restriction>
</xs:simpleType>

XForm:

<xforms:input ref="MinimumPasswordLength" incremental="true">
	<xforms:label class="Password">Minimum Password Length</xforms:label>
	<xforms:action ev:event="xforms-value-changed">
		<xforms:setvalue ref="//PasswordOptions/@changed">true</xforms:setvalue>
	</xforms:action>
	<xforms:alert>
		<img src="./images/XForms/invalid.gif" alt="" />
	</xforms:alert>
</xforms:input>

The input control initially displays '10'
if I type in an extra '0' to produce '100' there is no alert image displayed.
if I type in an another '0' to produce '1000' an alert image is displayed.
if I delete a '0' to produce '100' the alert image is still present.
if I delete another '0' to produce '10' the alert image disappears.
If I type an extra '0' again to produce '100' an alert image appears.

Updates

#1 submitted by Mark Birbeck on Mon, 2007-12-03 20:30

Hi Frank,

I changed your post so that instead of using '<' and '>' it uses '&lt;' and '&gt;'. That way your sample mark-up shows up.

(I also added the <pre> element around mark-up, to format it.)

Regards,

Mark

#2 submitted by Paul Butcher on Tue, 2008-01-29 14:12
Status:new» applied
#3 submitted by fmcgovern on Fri, 2008-02-01 20:17

Verified fixed in 1.6.1006.0

#4 submitted by fmcgovern on Fri, 2008-02-01 20:17
Status:applied» closed