By default, the value of an item is an expression and will be evaluated.

You need to say value="'Hello'" so the value is the string 'Hello' rather than the undefined variable Hello.

Or, you need to say:

  <textlistitem ... type="string" value="Hello" />

If you compile swf8 or DHTML with debugging and test, you should get a warning about an undefined variable. The swf9 compiler is more sophisticated and can give you the warning at compile time. We also recommend testing DHTML in Firefox with the Firebug debugging add-on, or in Safari with the Develop menu and Javascript debugging enabled. Either of these debuggers will help you to spot errors in DHTML code when the OpenLaszlo debugger is not enabled.

On 2009-08-07, at 04:32EDT, Quirino Zagarese wrote:

Hi,
I was trying to create a simple combobox like this:

<combobox>
      <textlistitem text="Hello" value="Hello"/>
      <textlistitem text="Salut" value="Salut"/>
      <textlistitem text="Ciao" value="Ciao"/>
</combobox>

Swf8 compiles successfully.
Swf9 shows a compilation error: it tries to bind the value field to a
variable that doesn't exist.
DHTML simply gets blocked during the loading of the application.
I wonder if this is the expected behavior.
Regards,

--
Quirino Zagarese

Italian OpenLaszlo Community  - www.laszloitalia.org

EU4RIA: Laszlo+Java, easily - eu4ria.googlecode.com

Reply via email to