greja (1) [Avatar] Offline
#1
Dear friends,
In my application I have to submit a form. The form contain a edittext field and I change its value by setValue() dynamically from script according to requirement. It works fine in my local windows xp machine with OpenLaszlo Server 4.0.9.1 windows installer.
But in my online linux server I use only the servlet version "openlaszlo-4.1.1-servlet.war".
But setValue() for edit text does't work in this version. I don't find any solution how can I change the edittext value from script. Is it a bug or my mistake or there are any other solution changing edittext value from script. Here is a testing code behaving dual nature in different platform.

<canvas height="400" width="1200" bgcolor="0xb5b5b5">
<debug width="700" height="500" x="500" y="5" fontsize="12"/>
<form id="frm" layout="axis: y; spacing: 15">
<edittext name="xmls" visible="true" text="Old Value" />
</form>
<button x="200" y="200">Click
<handler name="onclick">
Debug.write(frm.xmls.getValue());
frm.xmls.setValue("New Value", false);
Debug.write(frm.xmls.getValue());
</handler>

</button>
</canvas>

I am in great problem. Please help me if anyone have a solution.

Thanks
Goutam