Presentation from Collaborate 13 outlining basics of development techniques for Gadget development within WebCenter Sites. View additional background around these presentation materials at http://www.johnbrunswick.com/2012/10/webcenter-sites-gadget-development-concepts-quickstart/
2. • Common Gadget Use Cases
• Gadget Capabilities
• Reference Architecture for Gadgets
• Sites Server, Gadget Server and Data Sources
• Live Development of Gadget that Surfaces Backend Data
• General Developer Tips and Tricks
• Q&A
OURJOURNEY
3. • Understand the WebCenter Sites Gadget capabilities and
structure
• Explain reference architecture to surface information via
the WebCenter Sites Gadget from another source system
• Develop WebCenter Sites Gadgets that connect to
backend systems and surface data within WebCenter Sites
interface
LEARNING
OBJECTIVES
12. • API Capabilities for
Social Networking
• Some advanced APIs
like persistence
• Google Gadgets are a
component within the
OpenSocial
capabilities
WHATABOUT
OPENSOCIAL?
23. 1. Standard HTML header, opening tag and tag. information is
optional. Gadgets run in browser quirks mode.
2. Core gadgets JavaScript libraries and any additional libraries
specified in the gadget. The server SHOULD consolidate all
librariess into a single request to minimize the number of
HTTP requests made by the client browser. This MAY be
followed by JavaScripte required to initialize the included
libraries.
3. Results from parsing the Gadget XML file and processing
the sections that match the specified View name.
GADGET
PROCESS1
24. 1. A single call to gadgets.util.runOnLoadHandlers().
2. Standard HTML closing tags.
3. Containers must also be able to process Data
Pipelining (Section 13) and Templating [OpenSocial
Templating] elements in the gadget XML spec.
GADGET
PROCESS2
25. User Preferences
• Set by user
• Save information specific to a given user
Gadget Preferences
• Set by Developer
• Information like sizing, start node of a dynamic query
of content, etc
• OpenSocial offers a more extensive persistence API -
http://wiki.opensocial.org/index.php?
title=The_Persistence_API
PREFERENCE
BASICS
26. Once you have a preference object
prefs.set(‘mypref’, ‘some value’);
or…
prefs.setArray(‘myPrefArray’, [‘Sites’, ’Content’, ‘Portal’]);
SETTING
PREFERENCES
31. • Client side JS calls into RESTful services on
server
• Authentication via OAuth2, etc
• Manually iterate over response object from
server
• JQuery and other JS frameworks provide
elegant handling of the call and iteration
GADGET
DATA
37. • WebCenter Sites Developer’s Guide for Creating Gadgets
http://docs.oracle.com/cd/E29495_01/doc.1111/
developer_guide_for_creating_gadgets_11gr1.pdf
• Google Gadgets – Development Fundamentals
https://developers.google.com/gadgets/docs/fundamentals
• Google Gadgets – Creating a User Interface
https://developers.google.com/gadgets/docs/ui
• Google Gadgets – Gadgets XML Reference
https://developers.google.com/gadgets/docs/xml_reference
• OAuth – Getting Started
http://oauth.net/
FURTHERREADING
38. Session 702 - Webcenter Sites Google
Gadget Development Techniques
http://www.johnbrunswick.com/2012/10/
webcenter-sites-gadget-development-concepts-
quickstart/
SOURCE
DOWNLOAD