Two way binding with oj-bind-for-each
Summary
I have a oj-bind-for-each bound to a page variable of type string[] it populates fine but doesn't clearContent
I have a page variable called serialNumbers of type String[]. It get populated through a value event on an oj-text-input that triggers an action, the action calls a JavaScript module (seen below) which takes the new value, appends it to a list
FlowModule.prototype.appendList = function(value, list) {
list.push(value);
return list;
};
The serialNumbers variable is then reset entire (I needed to do this rather than simply appending due to some web service validation and other buisiness requirements). That works fine and the result displays every serial number entered using the markup below
1