You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This snippet fails saying it cannot find the template specified. It is the smallest piece of code that should reproduce the error. I have found out that in function templateForName is container undefined in this case.
I need to dynamically create views in my custom ContainerView.
@dogawaf on master, there should be not error just a deprecation warning.
@dogawaf I tried to replicate your issue @ http://jsbin.com/ucanam/21/ but was unable to. Can you continue from the jsbin, and demonstrate the issue? Just ping back on this thread once you have it... I will help you sort this out.
I have updated the jsbin. I've got the deprecation warning, and the assertion failure. http://jsbin.com/ucanam/22/
You can see that my modal is rendered through a {{render}}. I don't know if this is relevant...
Activity
Myslik commentedon Apr 30, 2013
I have looked inside your view tests and you are defining the container when creating the view. It is the preferred scenario right now?
stefanpenner commentedon Apr 30, 2013
@Myslik in most situations you should be using
this.createChildView, this setups of the childView correctly.see https://github.com/emberjs/ember.js/blob/master/packages/ember-views/lib/views/view.js#L2058 for more details.
That being said, we should be giving helpful deprecation warnings rather then this rather opaque error.
stefanpenner commentedon Apr 30, 2013
@Myslik this should help: ecbd0bf
Myslik commentedon May 1, 2013
Thank you, I have missed that method.
dogawaf commentedon May 1, 2013
@stefanpenner, I don't understand how to arrange this code in order to use
createChildViews...For now I have the error thrown in
templateForNamebecause of a undefined container...stefanpenner commentedon May 1, 2013
@dogawaf on master, there should be not error just a deprecation warning.
@dogawaf I tried to replicate your issue @ http://jsbin.com/ucanam/21/ but was unable to. Can you continue from the jsbin, and demonstrate the issue? Just ping back on this thread once you have it... I will help you sort this out.
dogawaf commentedon May 2, 2013
Hi @stefanpenner
I have updated the jsbin. I've got the deprecation warning, and the assertion failure. http://jsbin.com/ucanam/22/
You can see that my modal is rendered through a
{{render}}. I don't know if this is relevant...stefanpenner commentedon May 2, 2013
@dogawaf bdffb37 should fix your issue, please confirm.
dogawaf commentedon May 3, 2013
Yes it did. Thanks a lot.
stefanpenner commentedon May 3, 2013
it appears that the outstanding issues for this ticket have been resolved.