[Laszlo-dev] Fixing submit.lzx

J Crowley jcrowley at laszlosystems.com
Thu Sep 18 11:11:11 PDT 2008


So in submit.lzx, there's an attribute "data" in submit that's used to 
store the name of the dataset in a form and subsequently provide the 
data, and it's giving the following compiler errors in SWF9:

|org.openlaszlo.sc.CompilerError: base/submit.lzx: 4: Error: A conflict 
exists with inherited definition LzNode.data in namespace public, in 
line: static var tagname = "submit";static var attributes = new 
LzInheritedHash(LzNode.attributes);var data;function $lzc$set_data 
(data_$1) {
base/submit.lzx: 4: Error: Overriding a function that is not marked for 
override, in line: static var tagname = "submit";static var attributes = 
new LzInheritedHash(LzNode.attributes);var data;function $lzc$set_data 
(data_$1) {|

...so I'm wondering if maybe the best thing to do, here, is change 
submit's "data" attribute to something else (say, "submitdata", which 
actually gets it to compile in SWF9, though once running it has a few 
other issues, though it still works in SWF8) to eliminate this conflict, 
since it seems odd to have an attribute called "data" that's trying to 
override our universal "data" attribute just to point to a dataset, or 
is there a better way to approach this?

Thanks.



More information about the Laszlo-dev mailing list