PDA

View Full Version : problem with richinputtext LPS-4.3.0


anil
05-04-2009, 11:38 PM
Hi,

My working version is Lps-4.3.0.

When i am using <richinputtext> in my code, then the server giving error
message (swf8 mode) as

"ERROR: Attempt to instantiate <richinputtext>, which has not been defined ".

The following is my sample code

<canvas height="300" width="500" bgcolor="green">
<include href="extensions/views/richinputtext.lzx"/>
<view width="200" height="200" bgcolor="yellow" align="center" valign="middle">
<richinputtext width="200" align="center" valign="middle" bgcolor="red" multiline="true">default text goes here</richinputtext>
</view>

</canvas>

But when i change the richinputtext width attribute value as "${parent.width}" then its works fine .

<canvas height="300" width="500" bgcolor="green">
<include href="extensions/views/richinputtext.lzx"/>
<view width="200" height="200" bgcolor="yellow" align="center" valign="middle">
<richinputtext width="${parent.width}" align="center" valign="middle" bgcolor="red" multiline="true">default text goes here</richinputtext>
</view>

</canvas>

can anybody give suggestions why it happens like that?


Thankyou,
Anil Kumar

WrinkledCheese
05-05-2009, 01:00 PM
Looking at your code a few things come to mind. I'm only learning OpenLaszlo but have you tried without the line:

<include href="extensions/views/richinputtext.lzx"/>


Another thing I would try is to set the width to null, if you don't want to give it a width when it loads, as it's inherited from node and that's what the description of that attribute for the node element reads.

anil
05-05-2009, 09:03 PM
Hi,

If we run without including the richinputtext.lzx file, then we are getting

"Unknown tag: richinputtext" compilation warning.

Anybody help me?

Thanks
Anil Kumar