xpages移动开发 - ibm · lotus notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 lotus domino 9.0...

26

Upload: others

Post on 02-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座
Page 2: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

XPages移动开发

Page 3: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation 3

IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion. Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.

Page 4: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation 4

演讲人

刘 奇 ■ 高级软件工程师,IBM中国研发中心

■ Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0

■ Lotus Domino 9.0

■ 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座,《精通XPages:XPages应用开发和XSP语言权威指南》主要译者

Page 5: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

调查 ■ 使用过XPages开发的请举手

■ 使用过XPages进行移动开发的请举手

Page 6: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation 6

议程

■ XPages 移动应用和开发目标

■ XPages移动特性和现状

■ 如何进行XPages移动化?

■ 开发环境

■ 演示

■ 问答

Page 7: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation 7

Domino XPages 移动应用

Page 8: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

XPages 移动应用开发目标 ■ 开发新的或者扩展已有的应用以便在智能手机和平板电脑上运行

─ 提供在移动设备上访问IBM® Lotus Notes®和Domino 数据的能力 – IOS® 4 & 5 (iPhone®, iPad®和iPod Touch®) – Android® 2.3 (智能手机) 和 3.x (平板电脑) – Blackberry®

─ 允许决策者在移动设备上审批流程以提高商业流程处理的效率

■ 提高数据库模板的移动设备访问能力 ─ 替换已有应用的模板 ─ 团队空间(TeamRoom)和讨论库(Discussion)模板 ─ 提供最佳实践实例

■ 扩展XPages框架增强移动浏览器访问能力 ─ 能够更加方便地利用已有技术开发移动应用 ─ 同一编程模型能够适用多种客户端,例如移动设备、桌面电脑浏览器和富客户端

Page 9: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

XPages 移动特性

■ 提供一系列高质量的控件和代码库 ─表单控件、数据链表、导航、变换 ... ─扩展 Dojo 1.6.1(Domino 9集成了1.7.2)

■ 提供关键应用控件在移动移动设备上的渲染器 ─ Outline, dataview, formTable

■ 本地应用的外观和用户体验 ─设备的自动检测 ─ iPhone、Android和黑莓设备本地应用样式

■ 用户和开发人员可以灵活的选择如何移动化 ─在已有的应用上增加移动控件 ─创建一个新的应用并增加移动控件去访问已有应用中的数据和商业逻辑

■ IBM Lotus® Domino® Designer ─所见即所得(Domino 9有所增强) ─服务器端JavaScript调试器(Domino 9新功能)

Page 10: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

主要历史 ■ OpenNTF 上发布移动控件项目

─ 2010年初发布 ─ 一系列单独的定制控件 ─ 基于8.5.2版本

■ 集成进XPages 扩展库项目,发布在OpenNTF上 ─ 在2011年根据论坛中的反馈不断地改进

■ 定制的移动解决方案 ─ 合作伙伴利用jQuery Mobile 和 dojox.mobile 创建定制的移动应用解决方案 ─ 例子发布在OpenNTF上

■ Notes & Domino 8.5.3 升级包1(Upgrade Pack 1)包含了对XPages 移动支持 ─ 官方支持的版本(基于8.5.3)

■ IBM Notes/Domino 9 ─ … ...

Page 11: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

XPages 移动控件

大纲/菜单 视图

导航

表单并带有验证

搜索条

Page 12: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

新的团队空间模板

从这里 到

2种简单的方法! 1) 文件-应用-替换设计 2) 运行升级内容的代理 (注意: 你只需要运行一次代理)

Page 13: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

XPages 团队空间移动特性

Page 14: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

如何工作?

Page 15: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

Single Page应用

Page 16: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

移动控件 ■ Single Page应用模型

─ 应用页面使用部分刷新加载 ─ 页面经常是作为一个定制控件 ─ 逻辑代码可以在桌面电脑和移动设备上应用间共享

Page 17: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

Cross over pattern

Page 18: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

公用控件 ■ 使能Cross over pattern

■ 对部分常用控件提供了移动设备上特有的渲染器 ─ 视图 - Dataview ─ 表单 - Form Table ─ 大纲 - Outline

Page 19: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

设备自动检测

Page 20: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

应用调试 Weinre

─ 针对web页面的远程调试器 ─ 能够把它注入产品应用中 ─ http://phonegap.github.com/weinre/

Fiddler2 ─ 一个 HTTP 代理 ─ 调试本地应用 ─ 模拟恶劣的网络环境 ─ http://www.fiddler2.com/fiddler2/

Google Chrome

Page 21: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

开发环境

■ IBM Domino + IBM Designer 8.5.3 + Upgrade Pack 1 ─ 在服务期内的客户可以从Passport Advantage®上下载 ─ IBM 合作伙伴可以从PartnerWorld® 下载

■ Domino 9.0 Code Drop X ─ Design Partner会定期收到下载邮件

Page 22: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

Page 23: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

现在您能回答这些问题么?

■ XPages应用是否可以在应用商店中下载?

■ 如何在XPages中缓存数据以提高性能?

■ XPages Web应用与移动应用的相同点有哪些?

■ 与本地应用相比,XPages移动应用用户体验如何?

Page 24: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation 24

今天开始! ■ 获取代码

─ XPages 移动控件发布在Notes & Domino 8.5.3 升级包1 中 – 需要Domino和Domino Designer 8.5.3 – 可以在Passport Advantage上下载(针对服务期内的客户) – 安装手册这里

─ Domino和Domino Designer 9

■ 快速体验 – 使用新的团队空间和讨论库模板

■ 继续学习 ─ 团队空间(TeamRoom)演示:

http://ibmtvdemo.edgesuite.net/software/lotus/demo/notes/teamroom853/ ─ 指南: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPages_Mobile_Controls_Tutorial_ ─ 有关更多 Notes 和 Domino 8.5.3 升级包 1的信息

http://dojotoolkit.org/features/mobile ─ XPages.info上的XPages扩展库样例

Page 25: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation

问答

THANK YOU

Page 26: XPages移动开发 - IBM · Lotus Notes 8.5 / 8.5.1 / 8.5.2 / 8.5.3 / 9.0 Lotus Domino 9.0 有着丰富的XPages开发经验,多次参加IBM客户和合作伙伴的技术 讲座

| © 2012 IBM Corporation 26

Legal disclaimer © IBM Corporation 2012. All Rights Reserved.

The information contained in this publication is provided for informational purposes only. While efforts were made to verify the completeness and accuracy of the information contained in this publication, it is provided AS IS without warranty of any kind, express or implied. In addition, this information is based on IBM’s current product plans and strategy, which are subject to change by IBM without notice. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, this publication or any other materials. Nothing contained in this publication is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software.

References in this presentation to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities referenced in this presentation may change at any time at IBM’s sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature availability in any way. Nothing contained in these materials is intended to, nor shall have the effect of, stating or implying that any activities undertaken by you will result in any specific sales, revenue growth or other results.

All customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer.

IBM, the IBM logo, Lotus, Lotus Notes, Notes, Domino, Quickr, Sametime, WebSphere, UC2, PartnerWorld and Lotusphere are trademarks of International Business Machines Corporation in the United States, other countries, or both. Unyte is a trademark of WebDialogs, Inc., in the United States, other countries, or both.

Java and all Java-based trademarks are trademarks of Oracle, Inc. in the United States, other countries, or both.

Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other countries, or both.