I have a partial view. The view has a binding ${Product.Barcode} and the barcode is set to null. If the view is generated on the server side it works well. The result of the binding is empty string. But when I use generated JavaScript view code to build html tree it doesn't work, because the JavaScript code contains following line:
this.Write = function(arg) {this._parts.push(arg.toString());};
It seems the Writer is invoked with arg = ${Product.Barcode} (null) and null reference exception is thrown.
I would expect the both compiled views (C# and JavaScript) should accept the same parameters and produce the same results.
URL: http://sparkviewengine.codeplex.com/workitem/6462