Ext GWT                              Data Loading                            DARRELL MEYER, SENCHA                        ...
Overview                             Conference App                                 Models                                ...
Conference AppMonday, November 29, 2010
Technology Stack       Ext GWT 2.2.1       GWT 2.1       Java Persistence API (JPA)       Google App Engine (GAE)       Re...
IDE & Plugins       Eclipse IDE for Java EE Developers (Helios 3.6.1)       http://www.eclipse.org/downloads/       Plugin...
ModelsMonday, November 29, 2010
Models & ModelData       Generic data type used throughout Ext GWT       Allows form of introspection       Interface base...
Change Events & Listeners       Implement ChangeEventSource       Model implements ChangeEventSource       ChangeListeners...
BeanModel       Create Model instances from POJOs       Use GWT RPC with non-models       POJOs need to be marked       Be...
LoadersMonday, November 29, 2010
Loader                                    DataProxy             DataReader     Responsible for loading remote data     Del...
DataProxy     Retrieve remote content     Any data type supported                                           DataProxy     ...
DataReader     Coverts raw data to ModelData instances                                                  DataReader   BeanM...
Loading ExamplesMonday, November 29, 2010
DataProxy Example       Example uses ScriptTagProxy, HttpProxy, & RpcProxyMonday, November 29, 2010
DataProxy Example      Define the data with ModelType      Create DataProxy      Create DataReader      Create LoaderMonday...
Paging Loader Example       Server implementation using       FilterPagingLoadConfig       PagingLoadResultMonday, November...
Questions?Monday, November 29, 2010
Thanks!                            Twitter @darrellmeyer        Portions of this presentation from the GWT documentation l...
Upcoming SlideShare
Loading in …5
×

Data Loading for Ext GWT

3,309 views

Published on

The Ext GWT Data Loading API provides a powerful and flexible mechanism for retrieving remote or local data and binding the data to user interface components. During this session, you will learn will learn the difference between Data Loaders, Proxies and Readers and how they work together.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,309
On SlideShare
0
From Embeds
0
Number of Embeds
553
Actions
Shares
0
Downloads
49
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Data Loading for Ext GWT

  1. 1. Ext GWT Data Loading DARRELL MEYER, SENCHA SVEN BRUNKEN, SENCHAMonday, November 29, 2010
  2. 2. Overview Conference App Models Loaders Loading Examples QuestionsMonday, November 29, 2010
  3. 3. Conference AppMonday, November 29, 2010
  4. 4. Technology Stack Ext GWT 2.2.1 GWT 2.1 Java Persistence API (JPA) Google App Engine (GAE) RequestFactory GWT MVP Dependency Injection with Gin Download at http://dev.sencha.com/playpen/gxt/conference-app.zipMonday, November 29, 2010
  5. 5. IDE & Plugins Eclipse IDE for Java EE Developers (Helios 3.6.1) http://www.eclipse.org/downloads/ Plugins Maven Integration for Eclipse http://m2eclipse.sonatype.org/sites/m2e Maven Integration for Eclipse WTP Integration http://m2eclipse.sonatype.org/sites/m2e-extras Google Eclipse http://code.google.com/eclipse/Monday, November 29, 2010
  6. 6. ModelsMonday, November 29, 2010
  7. 7. Models & ModelData Generic data type used throughout Ext GWT Allows form of introspection Interface based with default implementationMonday, November 29, 2010
  8. 8. Change Events & Listeners Implement ChangeEventSource Model implements ChangeEventSource ChangeListeners added to Models Models Events Update Add, Remove, Update TreeModelMonday, November 29, 2010
  9. 9. BeanModel Create Model instances from POJOs Use GWT RPC with non-models POJOs need to be marked BeanModelMarker (indirect) BeanModelTag (direct) BeanModelLookup & BeanModelFactory BeanModelReaderMonday, November 29, 2010
  10. 10. LoadersMonday, November 29, 2010
  11. 11. Loader DataProxy DataReader Responsible for loading remote data Delegates work to DataProxy & DataReader Interface based with default impls Loader Supports 3 events BeforeLoad Load LoadException Loader ListLoader TreeLoader RemoteSort PagingLoader TreeLoaderMonday, November 29, 2010
  12. 12. DataProxy Retrieve remote content Any data type supported DataProxy HttpProxy MemoryProxy RpcProxy ScriptTagProxy PagingModel MemoryProxyMonday, November 29, 2010
  13. 13. DataReader Coverts raw data to ModelData instances DataReader BeanModel TreeBean TreeModel JsonReader ModelReader XmlReader Reader ModelReader Reader JsonLoad XmlLoad ResultReader ResultReaderMonday, November 29, 2010
  14. 14. Loading ExamplesMonday, November 29, 2010
  15. 15. DataProxy Example Example uses ScriptTagProxy, HttpProxy, & RpcProxyMonday, November 29, 2010
  16. 16. DataProxy Example Define the data with ModelType Create DataProxy Create DataReader Create LoaderMonday, November 29, 2010
  17. 17. Paging Loader Example Server implementation using FilterPagingLoadConfig PagingLoadResultMonday, November 29, 2010
  18. 18. Questions?Monday, November 29, 2010
  19. 19. Thanks! Twitter @darrellmeyer Portions of this presentation from the GWT documentation licensed under the Creative Commons Attribution 3.0 LicenseMonday, November 29, 2010

×