veil.widget.createResource: accept onComplete