SourceForge has been redesigned. Learn more.
Close

#23 value change not displayed in xf:input

open
nobody
None
5
2012-12-21
2010-02-02
Anonymous
No

After changing the value of an instance (either as a result after submission or using the xf:setvalue element) the change is not displayed in the xf:input element.

<?xml-stylesheet type="text/xsl" href="xsltforms/xsltforms.xsl"?>
<?xsltforms-options debug="yes"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<xf:model>
<xf:instance id="dummy" xmlns="">
<data>
<nr/>
</data>
</xf:instance>
</xf:model>
</head>
<body>
<xf:input ref="instance('dummy')//nr" incremental="true" >
<xf:label>Enter value: </xf:label>
<xf:action ev:event="xforms-value-changed" if="string-length(instance('dummy')//nr)=8">
<xf:setvalue ref="instance('dummy')//nr">n/a</xf:setvalue>
</xf:action>
</xf:input>
<p>
<xf:output ref="instance('dummy')//nr"/>
</p>
</body>
</html>

Discussion