810 likes | 1.51k Views
Sybase Tools Technology Preview. John Strano – Technology Evangelist May 2006. Sybase Confidential Propriety. . PowerBuilder 10.5 Overview . Microsoft’s Modified Release Schedule. PowerBuilder’s .NET Compiler Takes advantage of ASP .NET 2.0 features
E N D
Sybase ToolsTechnology Preview John Strano – Technology Evangelist May 2006 Sybase Confidential Propriety.
Microsoft’s Modified Release Schedule • PowerBuilder’s .NET Compiler • Takes advantage of ASP .NET 2.0 features • Originally slated for PowerBuilder 11 release Q4 2005 • Visual Studio .NET 2005 (ASP .NET 2.0) • Release date moved by Microsoft from Summer 2005 to Q4 2005
PowerBuilder 10.5 Enhancements • Decimal data type upgrade • Provide support for 30 digits versus current 18 • Position for support of .NET which handles 28 digits • DataWindow expression support • Currently all numerics converted to double before calculations • Add Decimal() DataWindow function for conversion • Implementation will replace current 3rd party implementation but should be completely transparent to user • Byte data type
PowerBuilder 10.5 Enhancements • DateTime Picker • Wrapper for Microsoft Common Control • New control and/or enhancement to EditMask • New DataWindow edit mask style
PowerBuilder 10.5 Enhancements • Menu Enhancements • Styles • Traditional • Contemporary • Style attributes • Shadow • Bitmaps (16x16 and 32x32) • Titles • Main background color • Bitmap background color • Highlight color • Relies on GDI+ (GDIPLUS.DLL)
PowerBuilder 10.5 Enhancements • Toolbar Enhancements • Styles • Traditional • Contemporary • Style attributes • Titles • Main background color • Bitmap background color • Highlight color • Text color • Allow toolbars to be attached to top-level non-MDI Windows • Relies on GDI+ (GDIPLUS.DLL)
PowerBuilder 10.5 Enhancements • New Rich Text Edit control • PB10 investigation of Microsoft control found it lacking in features necessary to support DataWindow • TX Text Control • http://www.textcontrol.com/ • Minimal (if any) loss of current functionality • New functionality including saving as Microsoft Word DOC format
PowerBuilder 10.5 Enhancements • Updated bitmaps and icons • Provide updated look to IDE • Allow use in application • Potential sources • 3rd party • Reuse from Sybase Workspace
PowerBuilder 10.5 Enhancements • Autosize Height for All DataWindow Bands • All Bands Supported (not just detail band) • Band will resize for Nested DataWindows
PowerBuilder 10.5 Enhancements • Treeview Presentation Style • Designed similar to group DataWindow • Property support • Node lines • Icons • Grid style • Indention size • Event support • Expanding / Expanded • Collapsing / Collapsed • Function support • Expand (multiple variations) • Collapse (multiple variations)
PowerBuilder 10.5 Enhancements – TreeView Presentation Style Properties • CollapsedTreeNodeIconName • DefaultExpandToLevel • ExpandedTreeNodeIconName • Indent • ShowConnectLines • ShowLeafNodeConnectLines • ShowTreeNodeIcon • StateIconAlignMode • TreeNodeIconName
PowerBuilder 10.5 Enhancements – TreeView Presentation Style Functions • Expand • Collapse • ExpandAll • CollapseAll • ExpandAllChildren • CollapseAllChildren • ExpandLevel • CollapseLevel • IsExpanded
PowerBuilder 10.5 Enhancements • Infrastructure refactoring (continuing past PB 11) • DataWindow “rewrite” to support growth • Development of generic Data Source Interface (DSI) • Abstract layer above current DBI layer • Designed to support access of non-SQL based data • .NET DataSet • EJB • Web Services
PowerBuilder 10.5 Enhancements – Database Enhancements • ASE 15.0 native driver support • ADO.NET for ASE support • ADO.NET for Oracle support • DBI refactoring (not a visible enhancement)
PowerBuilder 10.5 Enhancements – Web Services Enhancements • Adding .NET’s Web Services SDK • Better data type support • Security and Authentication • EasySOAP Implementation • Will be left intact, but not enhanced
Demonstration • PowerBuilder 10.5 in action.
PowerBuilder 10.5 Q & A
Sybase WorkSpace – Web Application Development & The JSF Web DataWindow
AGENDA • Introduction to JavaServer Faces • What is JavaServer Faces? • Architecture Overview • Key Concepts • Why JavaServer Faces? • Sybase WorkSpace - Web Application Development Tooling • Objectives • Architecture Overview • Features • Integration with DataWindow • DataWindow Designer • JavaDatastore • Demonstration
JavaServer Faces: • In General
BACKGROUND • Building high-quality web application user interfaces is hard • HTTP request/response model • HTML dialect(s) and browser capabilities • Need to support multiple client devices types
WHAT IS JAVA SERVER FACES? • JavaServer Faces (JSF) is a component userinterface(UI) framework for Java web applications. • It is designed to significantly ease the burden of writing and maintaining applications that run on a application server and render their User Interfaces back to a target client.
WHY JSF? • MVC (Model-View-Controller) for Web applications • Clean separation of roles • Easy to use • Extensible component and rendering architecture • Support for client device independence • Offers finer-grained separation of behavior and presentation • Component and web-tier concepts without limiting you to a particular scripting technology or markup language
COMPONENT MODEL • Maintaining a reference to model objects • Driving the event-handling • Rendering is separate from the component • JSF implementation provides a set of UI component classes • Standard Component classes, for example • Commandbutton, Form, Graphic, Input • Output, Panel, Parameter • SelectBoolean, SelectMany, SelectOne
RENDERING MODEL • Renderers – Adapt components to a specific markup language • Encoding – Create markup to represent value • Decoding – Retrieve request parameters and create new value • RenderKits – Library of Renders • Extensible at runtime • For JSP pages, represented as a custom tag library • Basic HTML RenderKit part of the standard
Sybase WorkSpace • Web Application Development
OBJECTIVE • Provide a life-cycle support including design, develop, debug/test, and deploy a web application utilizing JavaServer Faces technology. • Visual Development Environment • Allows building Web pages in a manner very similar to : • PowerBuilder • Visual Basic • A flavor of 4GL experience.
OBJECTIVE • Provides a component model • Allows users to think about components, events and scripting instead of the detail of HTTP request / response • Leverages standards JavaServerFaces runtime • Uses Java DataStore to make data access easy • Reuse existing Datawindows in your Web applications • Make service and EJB invocation in the Web application easy
ARCHITECTURE Web Application Development Tool Integration DataWindow Painter Java Datastore Graphical Editing Framework (GEF) Eclipse Modeling Framework (EMF) Web Tool Platform (WTP) WorkSpace Service Framework Eclipse
COMPONENTS of the WAD IDE • Web Application Development Perspective • Creation wizards (application, page and resources) • Web Page Designer (graphical editor) • Tab-based Properties View • Databinding View • Resource Bundle Editor (tabular-based editor) • Faces-config Editor (graphical editor…navigation rules) • Web.xml Editor (form-based editor… • Deployment to runtime container • DataWindow Designer • DataWindow Library Importer
WEB APPLICATION DEVELOPMENT PERSPECTIVE • WorkSpace Navigation View • Tree view of components in the application • Editors view • All editors will be displayed in this view • Properties view • Properties and attributes of each widget • Databinding view • Data and managed beans used by the page • Service Explorer, Enterprise Explorer • Service Explorer displays a tree view of available services • Enterprise Explorer displays server connection profiles available
FEATURE SET :In the Interest of Time…Just One Sample • Databinding View • Resource Bundle Binding: use key to bind to UI component; • Service Binding: generate managed bean to wrap service invocation; • Java Class Binding: generate managed bean with getter/setter • EJB Binding: generate bean to lookup ejbs and create bean instances • Database Binding: support JSF DataWindow, or hibernate
Building JSF Web App Demo
DATAWINDOW AND THE JSF TECHNOLOGY • Java DataStore. • A pure java package which provides the DataWindow functionality to the Java world. • JSF DataWindow Component. • A custom UI component written to fit the JSF model. • DataWindow Java Bean. • A Java Bean non-UI component written to fit the JSF model. • JSF DataWindow tag library • A tld file containing the attributes of the DataWindow for a JSP page.
DATAWINDOW AND THE JSF TECHNOLOGY DataWindow JSF tag library DataWindow JSF Component Java Datastore JSF Web Application DataWindow Bean Faces-Config.xml
JAVA DATASTORE INTERFACE • Pure Java package. • Distributed as jdatastore.jar. • Non-visual Java Wrapper for DataWindow Server. • Can be used by the Java programmer for non-UI DataWindow functionality. • A JNI based interop layer to the DataWindow Server. • The DataWindow Server. Java Datastore JNI Interop Layer DataWindow Server + Database Interface Layer + XML Support + PDF Support Marshalling and Event Handling Management
JAVA DATASTORE Sample Code
JSF DATAWINDOW IN DESIGN TIME • The DataWindow object and DataWindow painter. • Exposed as plugins in Eclipse environment. • Maintained in pbl files. Imported as an Eclipse resource.
JSF DATAWINDOW IN DESIGN TIME • JSF DataWindow designed using Sybase Web Application Development page designer. • Drag and Drop from pallete.
JSF DATAWINDOW IN DESIGN TIME • Drag and Drop DataWindow object from the navigator. • JSF DataWindow design time properties.
JSF DATAWINDOW IN DESIGN TIME • JSF DataWindow design time properties. • dataWindowObject • displayOnly • enableDataCaching • jndiDataSource • libraryList • objectLink • onLoadHandler • rendered • rowsperPage
JSF DATAWINDOW IN DESIGN TIME • Creating relationship between multiple JSF DataWindows in a MasterDetail type scenario. • Add Text
JSF DATAWINDOW PROPERTIES,METHODS AND EVENTS • The Rich DataWindow API is accesible through the JSF DataWindow. • More than 100 methods are available. • Categorized as • Dynamic DataWindow creation function. • Retrieve functions • Search functions • Get / Set functions • Import / Export Functions
JSF DATAWINDOW PROPERTIES,METHODS AND EVENTS • Access and Modify DataWindow object metadata at runtime. • Use the describe and modify methods.
JSF DATAWINDOW PROPERTIES,METHODS AND EVENTS • JSF DataWindow generated server events. • RetrieveEvents (BeginRetrieve,EndRetrieve,RowRetrieved) • UpdateEvents (BeginUpdate, EndUpdate) • SqlPreview Events (SQLPreviewEvent) • Print Events (BeginPrint,EndPrint,PrintPage) • DWLoadedEvent • JSF DataWindow server event listeners • RetrieveListener • UpdateListener • SqlPreviewListener • PrintListener • DataWindowOnLoadListener
JSF DATAWINDOW PROPERTIES,METHODS AND EVENTS • JSF DataWindow client events.