PDA

View Full Version : Inputtext and updateData broken?


porsche_dave
12-18-2007, 09:31 AM
I think I have found a decent sized bug in version 4.0.7. All over our application we use databound inputtext but in the newest version it appears that this is no longer supported. If you look at the example below, change the text of the inputtext and then click to the edittext and look at ds in the debugger you see that the dataset doesnt update. The edittext works perfectly but has the border which is not desirable in our UI. Is this a feature of the inputtext that has been removed in this version or is this a bug?

<canvas width="100%" height="100%">

<dataset name="ds">
<stuff edit="default edit" input="default input"/>
</dataset>

<simplelayout axis="x" spacing="20"/>

<inputtext datapath="ds:/stuff" text="$path{'@input'}">
<method event="onblur">
this.datapath.updateData();
</method>
</inputtext>

<edittext datapath="ds:/stuff" text="$path{'@edit'}">
<method event="onblur">
this.datapath.updateData();
</method>
</edittext>


</canvas>

rcyeager
02-13-2008, 07:26 PM
I would file a Jira if you say this worked in earlier releases but then became broken. Developers respond to Jiras...otherwise, issues tend to fall through the cracks on this forum.

Robert
http://www.qrowd.com
http://www.cooqy.com

kampfkolosso
02-13-2008, 10:31 PM
Hey porsche_dave! Maybe not really satisfying but i implement databounding differently and it is working for me (OL 4.0.6):

<canvas width="100%" height="100%">
<dataset name="ds">
<stuff edit="default edit" input="default input"/>
</dataset>

<simplelayout axis="x" spacing="20"/>

<inputtext datapath="ds:/stuff/@input">
<method event="onblur">
this.datapath.updateData();
</method>
</inputtext>

<edittext datapath="ds:/stuff/@edit">
<method event="onblur">
this.datapath.updateData();
</method>
</edittext>
</canvas>

I always thought that this is the right way to do it :confused:, but changing your whole code to this databinding would s..k :eek:, i can imagine...

good luck

senshi
02-14-2008, 02:23 AM
Already fixed, see LPP-5292 (http://www.openlaszlo.org/jira/browse/LPP-5292).