Beta3 upgrade woes...

Well, this is not going particularly well

Have updated my application, and all controllers and models to not use their 'reg' methods, but be classes in their own right (with I think is a good idea btw, although would be nice to be able to include requires and statics in an application).

Seems that 'pages' are no longer controlled by a controller though, apps have no 'defaultUrl', and there is no Router or Dispatch!
What are you meant to do now then? The guide only has a single 'page' so that's not much use in this instance (although is a step in the right direction I think).

For now am just putting my default page action into launch for now, just to get something on screen.
Now hit an issue with 'layout.setOwner' is not a function... can see it getting called ok for lots of other layouts (after putting breakpoint on it), but the one it errors on is 'fit', i.e. a string and not an object.

Not got time to come up with an example case at the moment, since my control structure is a little complex, but anyone else seen this, where a layout instance has not been created properly from the string?

Ok, after another hour of head scratching have got something on screen... changing a panel from a JSON object with an xtype to an Ext.create got around the layout string issue, although I have no idea why!

Unfortunately nothing is laid out correctly now; two panels that should be in a border layout, with a split have only the top one showing; a very simple form panel for login now has no height!! Quite a mess!

I really think the changes in beta3 are far too sweeping to warrant the fact we ever hit beta.
I seem to remember the API was meant to be static once we got to beta?

Oh well, guess I have to live with it and try and sort it out. Going to waste the best part of a day though where I should be wrestling with the new tree (or is that a table )!

Completely frustrated as well

Hi Westy,

I am frustrated about the changes in Beta3 as well. Besides a lot of new bugs that have been introduced the API has completely changed, namespaces have been completely reshuffled and the examples are either minified or using black magic.

Up until Beta 2 I was very excited about the changes and the rate of bug fixes, but not so much now. In fact, I am thinking about dropping ExtJS 4 altogether until a final release is available. I spent a lot of time creating an application that worked on Beta 2 which now has to be completely rewritten. I understand that some changes still need to make it into the release, but changes like these, without any warning or description, is not very nice to the development community that is participating in testing the beta (?).

We feel your frustrations too. Here were all along creating our MVC application and beta 3 completely changes everything. Since we wrote a mobile application using Touch MVC we used that model for Ext JS 4. Now everything has completely changed and our application is whacked. We used Ext.dispatch and Ext.router and they are completely gone.

Hah, that's almost exactly what I did. I specified the controller in the view using the Sencha Touch method of putting it in the .view namespace and then dispatched events and stuff to methods in the controller. The handler only received data it needed for handling the event.
Apparently Views in the new MVC should not know about the controller (as I was told in another thread), but that sounds a little rigid to me. Now the whole controller-view mechanism depends on:
1. The view having an xtype alias, otherwise the controller cannot find it using CQ
2. The controller needing to know where the view roughly is ('viewport > userlist') instead of just using events
3. The controller needing to know what parameters an event from the view sends (or hardcoding view structure into the controller)

It all sounds a little unconfortable to me. At the one hand a lot of work is done on trying to split up everything into views, controllers, models, views, but on the other hand things can only work when controllers know about views and vice versa...

I am stopping my efforts on B3 for now before I pull all my hair out in frustration. Good luck with your efforts!