SlideShare a Scribd company logo
Open Admin - GWTJava TrackBrian PolsterCrederaCopyright © 2011 Credera. All Rights Reserved.
www.credera.comAbout the SpeakerBrian PolsterLead the Java Practice at Credera for past 5½  yearsFormer Architect at American Airlines (www.aa.com)Founder of Broadleaf Commerce (eCommerce framework based on open source technologies)
www.credera.comAgendaWhat is Open AdminGWT OverviewExampleSmart-GWT PrimerBuild a simple Open Admin Module
www.credera.comWhat is Open Admin?Component / Outcome of Broadleaf Commerce Built in Security Pluggable Module MetaphorSandbox capability Release 1 Target – September Based on common open source components GWT  Smart GWTSpring SecurityJPA / Hibernate
Demo – (Broadleaf Commerce Admin)www.credera.com
www.credera.comDemoBroadleaf Commerce Admin
www.credera.comGWT (Google Web Toolkit)Key Benefits 	(according to me ….)Emits JavaScript from JavaAllows debugging of JavaScript using breakpoints in Java codeRPC and GWT-RPCShipped with component library that isextensible through JSNI
www.credera.comGWT – Sample ApplicationGoogle has good tutorials on GWT.     http://code.google.com/webtoolkit/gettingstarted.htmlThe sample provides a good background on the following:Google Compiler Configuration file (e.g. *.gwt.xml)HTML start pageEntry Point Class(es)GWT DebuggerGWT-RPC
www.credera.comDemoGWT
www.credera.comSmart GWTGWT wrapper over the Smart Client JavaScript libraryProvides hooks for data source interactionLPGL license for mostwidgets – company sellssupport and advancedfeatureshttp://www.smartclient.com/product/smartgwt.jsp
www.credera.comDemoSmart GWT Showcase
www.credera.comOpen Admin TerminologyModuleSectionViews
www.credera.comOpen Admin TerminologyModuleSection(s)PresenterView(s)DatasourceEvent HandlersList GridEventsButtonModelFormOrderCustomer
www.credera.comSimple Example - Step 1 of 3:   Building The Viewpublic class SimpleView extends HLayoutimplements  					Instantiable, Display {  public SimpleView() {    setHeight100();    setWidth100();  }  public void build(DataSource entityDataSource) {     new IButton("Click Me");   button.addClickHandler(new ClickHandler() {      public void onClick(ClickEvent event) {        SC.say("Hello, World from smartGWT");      }    });addMember(button);  }
www.credera.comSimple Example - Step 2 of 3:  Creating the Open Admin Modulepublic class SimpleModule extends AbstractModule {  public void onModuleLoad() {    setModuleTitle("Tech Fest Module");    List<String> roles= new ArrayList<String>();    roles.add("ROLE_TECH_FEST_USER”);              roles.add("ROLE_ADMIN");setSection("Simple Example”,                "viewKey”,                SimpleView.class.getName(),                   roles);registerModule(); }}
www.credera.comSimple Example - Step 3: Configuring the GWT Complier<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE module PUBLIC "-//Google Inc. <...> <module>  <inherits name="com.google.gwt.user.User" />  <inherits name="org.broadleafcommerce.openadmin.openadmin" />  <entry-point class="techfest.client.simple.SimpleModule" />  <source path="client" /></module>Also need to add reference to the project *.gwt.xml file.
www.credera.comDemoSecurity
www.credera.comDynamic Form GenerationThe list grids and entry forms are generated automatically from the JPA and OpenAdmin configuration. @Column(name = "MODEL”) // JPA @AdminPresentation   // Open Admin     (friendlyName="Product Model",       order=4,       group="Product Description",       prominent=true)Open Admin field configuration can be done via an XML file or inline in the java class.Other attributes include: readOnly, securityLevel, and validation
www.credera.comDemoReview Source for Order and Privilege
www.credera.comRecap the Steps for Adding a JPA Data Driven SectionCreate the view by extend BasicListDetailViewSetting the title fieldsSet the view handle (prefix)Create the presenter by extending DynamicEntityPresenterSpecify the grid fields (optional)Tie-in the associated DataSourceFactoryCreate the DataSourceFactory by extending SimpleDataSourceFactory Set the class name for your JPA configured classAdd a new section to your module that references the view and presenter.
www.credera.comSummaryBenefits of Open AdminHelper classes to bridge SmartGWT DataSources and JPASimple “Out of Box” view and presenter classes that make building a rich UI easyConfigurable security based on Spring SecurityAnnouncement …BLC Content ManagementContent targeting, structured content, templated page development
www.credera.comCredera is a Business and Technology Consulting Firm that Focuses on Leveraging Proven Technologies to Enable our Clients Business StrategyOur CompanyFull-service business and technology consulting firmProvide business and technology solutions that offer measurable value to our clientsDeliver value by leveraging our people’s accumulated industry and management experience with their deep technical expertiseEstablished in 1999Offices in Dallas, Austin, DenverOur ServicesManagement ConsultingTechnology SolutionsBusiness IntelligenceOur PeopleCredera’s professionals possess a unique combination of  deep technical expertise with extensive business backgroundsBackgrounds include business, technology, and strategy management consulting with some of the  most well-known and respected consulting firms in the worldHave served many influential corporations in a variety of industries over the past 20 yearsSample Clients
www.credera.comQ&A Thank you for attending!Contact Information:Brian Polsterbpolster@yahoo.comwww.credera.comTwitter: polster
Smart GWT & Open Admin Brian PolsterCrederaCopyright © 2011 Credera. All Rights Reserved.

More Related Content

PPTX
Developing Web Application Using J2EE - Nex
PPTX
Dynamically Generate a CRUD Admin Panel with Java Annotations
PPT
Temparate Broadleaf Deciduous Forest
PPTX
Setting up a free open source java e-commerce website
PDF
How Global Trends are Shaping the Retail Technology of the Future
PPTX
Developing Next-Gen Enterprise Web Application
PDF
Folio3 - An Introduction to PHP Yii
PPT
Struts
Developing Web Application Using J2EE - Nex
Dynamically Generate a CRUD Admin Panel with Java Annotations
Temparate Broadleaf Deciduous Forest
Setting up a free open source java e-commerce website
How Global Trends are Shaping the Retail Technology of the Future
Developing Next-Gen Enterprise Web Application
Folio3 - An Introduction to PHP Yii
Struts

Similar to Open Admin (20)

PPT
Introduction To Code Igniter
DOCX
Server side programming bt0083
PPTX
20141002 delapsley-socalangularjs-final
ODP
SilverStripe Meetup Presentation 03/03/2011
ODP
SilverStripe Meetup 03/03/2011
PPTX
Session - 1 Forms and Session management.pptx
PPTX
Working with AngularJS
PPTX
Struts 1
PDF
Night Watch with QA
PDF
بررسی چارچوب جنگو
PPT
Using And Extending The DotNetNuke Widget Framework
PPTX
File Repository on GAE
ODP
Developing Drizzle Replication Plugins
PPTX
Simple stock market analysis
PPTX
Google Cloud Platform
PDF
How to Webpack your Django!
PPTX
Mastering Test Automation: How To Use Selenium Successfully
PPT
Wicket Introduction
PPTX
Use Eclipse technologies to build a modern embedded IDE
PPTX
MongoDB.local Dallas 2019: MongoDB Stitch Tutorial
Introduction To Code Igniter
Server side programming bt0083
20141002 delapsley-socalangularjs-final
SilverStripe Meetup Presentation 03/03/2011
SilverStripe Meetup 03/03/2011
Session - 1 Forms and Session management.pptx
Working with AngularJS
Struts 1
Night Watch with QA
بررسی چارچوب جنگو
Using And Extending The DotNetNuke Widget Framework
File Repository on GAE
Developing Drizzle Replication Plugins
Simple stock market analysis
Google Cloud Platform
How to Webpack your Django!
Mastering Test Automation: How To Use Selenium Successfully
Wicket Introduction
Use Eclipse technologies to build a modern embedded IDE
MongoDB.local Dallas 2019: MongoDB Stitch Tutorial
Ad

Recently uploaded (20)

PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
A Presentation on Artificial Intelligence
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
1. Introduction to Computer Programming.pptx
PDF
Approach and Philosophy of On baking technology
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
August Patch Tuesday
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
PDF
Empathic Computing: Creating Shared Understanding
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Heart disease approach using modified random forest and particle swarm optimi...
Univ-Connecticut-ChatGPT-Presentaion.pdf
Spectroscopy.pptx food analysis technology
A comparative study of natural language inference in Swahili using monolingua...
Spectral efficient network and resource selection model in 5G networks
A Presentation on Artificial Intelligence
Per capita expenditure prediction using model stacking based on satellite ima...
Building Integrated photovoltaic BIPV_UPV.pdf
Assigned Numbers - 2025 - Bluetooth® Document
1. Introduction to Computer Programming.pptx
Approach and Philosophy of On baking technology
A comparative analysis of optical character recognition models for extracting...
August Patch Tuesday
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
Empathic Computing: Creating Shared Understanding
Ad

Open Admin

  • 1. Open Admin - GWTJava TrackBrian PolsterCrederaCopyright © 2011 Credera. All Rights Reserved.
  • 2. www.credera.comAbout the SpeakerBrian PolsterLead the Java Practice at Credera for past 5½ yearsFormer Architect at American Airlines (www.aa.com)Founder of Broadleaf Commerce (eCommerce framework based on open source technologies)
  • 3. www.credera.comAgendaWhat is Open AdminGWT OverviewExampleSmart-GWT PrimerBuild a simple Open Admin Module
  • 4. www.credera.comWhat is Open Admin?Component / Outcome of Broadleaf Commerce Built in Security Pluggable Module MetaphorSandbox capability Release 1 Target – September Based on common open source components GWT Smart GWTSpring SecurityJPA / Hibernate
  • 5. Demo – (Broadleaf Commerce Admin)www.credera.com
  • 7. www.credera.comGWT (Google Web Toolkit)Key Benefits (according to me ….)Emits JavaScript from JavaAllows debugging of JavaScript using breakpoints in Java codeRPC and GWT-RPCShipped with component library that isextensible through JSNI
  • 8. www.credera.comGWT – Sample ApplicationGoogle has good tutorials on GWT. http://code.google.com/webtoolkit/gettingstarted.htmlThe sample provides a good background on the following:Google Compiler Configuration file (e.g. *.gwt.xml)HTML start pageEntry Point Class(es)GWT DebuggerGWT-RPC
  • 10. www.credera.comSmart GWTGWT wrapper over the Smart Client JavaScript libraryProvides hooks for data source interactionLPGL license for mostwidgets – company sellssupport and advancedfeatureshttp://www.smartclient.com/product/smartgwt.jsp
  • 14. www.credera.comSimple Example - Step 1 of 3: Building The Viewpublic class SimpleView extends HLayoutimplements Instantiable, Display { public SimpleView() { setHeight100(); setWidth100(); } public void build(DataSource entityDataSource) { new IButton("Click Me"); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { SC.say("Hello, World from smartGWT"); } });addMember(button); }
  • 15. www.credera.comSimple Example - Step 2 of 3: Creating the Open Admin Modulepublic class SimpleModule extends AbstractModule { public void onModuleLoad() { setModuleTitle("Tech Fest Module"); List<String> roles= new ArrayList<String>(); roles.add("ROLE_TECH_FEST_USER”); roles.add("ROLE_ADMIN");setSection("Simple Example”, "viewKey”, SimpleView.class.getName(), roles);registerModule(); }}
  • 16. www.credera.comSimple Example - Step 3: Configuring the GWT Complier<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE module PUBLIC "-//Google Inc. <...> <module> <inherits name="com.google.gwt.user.User" /> <inherits name="org.broadleafcommerce.openadmin.openadmin" /> <entry-point class="techfest.client.simple.SimpleModule" /> <source path="client" /></module>Also need to add reference to the project *.gwt.xml file.
  • 18. www.credera.comDynamic Form GenerationThe list grids and entry forms are generated automatically from the JPA and OpenAdmin configuration. @Column(name = "MODEL”) // JPA @AdminPresentation // Open Admin (friendlyName="Product Model", order=4, group="Product Description", prominent=true)Open Admin field configuration can be done via an XML file or inline in the java class.Other attributes include: readOnly, securityLevel, and validation
  • 20. www.credera.comRecap the Steps for Adding a JPA Data Driven SectionCreate the view by extend BasicListDetailViewSetting the title fieldsSet the view handle (prefix)Create the presenter by extending DynamicEntityPresenterSpecify the grid fields (optional)Tie-in the associated DataSourceFactoryCreate the DataSourceFactory by extending SimpleDataSourceFactory Set the class name for your JPA configured classAdd a new section to your module that references the view and presenter.
  • 21. www.credera.comSummaryBenefits of Open AdminHelper classes to bridge SmartGWT DataSources and JPASimple “Out of Box” view and presenter classes that make building a rich UI easyConfigurable security based on Spring SecurityAnnouncement …BLC Content ManagementContent targeting, structured content, templated page development
  • 22. www.credera.comCredera is a Business and Technology Consulting Firm that Focuses on Leveraging Proven Technologies to Enable our Clients Business StrategyOur CompanyFull-service business and technology consulting firmProvide business and technology solutions that offer measurable value to our clientsDeliver value by leveraging our people’s accumulated industry and management experience with their deep technical expertiseEstablished in 1999Offices in Dallas, Austin, DenverOur ServicesManagement ConsultingTechnology SolutionsBusiness IntelligenceOur PeopleCredera’s professionals possess a unique combination of deep technical expertise with extensive business backgroundsBackgrounds include business, technology, and strategy management consulting with some of the most well-known and respected consulting firms in the worldHave served many influential corporations in a variety of industries over the past 20 yearsSample Clients
  • 23. www.credera.comQ&A Thank you for attending!Contact Information:Brian Polsterbpolster@yahoo.comwww.credera.comTwitter: polster
  • 24. Smart GWT & Open Admin Brian PolsterCrederaCopyright © 2011 Credera. All Rights Reserved.