posted 15 years ago
So, I thought this was going to be a bigger problem than it was, largely because I was mislead by the GWT-EXT showcase that has a cardlayout, but the layout does not seem to support the back button.
This app has the same layout - PanelManager and sub-panels. I found that all I needed to do was manage the CardLayout normally in the subpanel, and have the ScreenManager simply redisplay the CardLayout panel through the History. A small change in the CardLayoutSample of the GWT-EXT sample, History.newItem("cardLayout");, allows the whole thing to work:
It's a quick fix. Obvoiusly the call isn't needed in all of those places, just once at the end of the method, but you get the idea. Now the ShowCase example supports the back button on the CardLayout. Now to apply it to my own application!
-Cameron McKenzie