Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Thimo Jansen
2,430 views
xe:objectData
Mijn presentatie over XPages' xe:objectData, van het XPages & Beer evenement op 12 juni 2013.
Technology
◦
Read more
1
Save
Share
Embed
Embed presentation
1
/ 33
2
/ 33
3
/ 33
4
/ 33
5
/ 33
6
/ 33
7
/ 33
8
/ 33
9
/ 33
10
/ 33
11
/ 33
12
/ 33
13
/ 33
14
/ 33
15
/ 33
16
/ 33
17
/ 33
18
/ 33
19
/ 33
20
/ 33
21
/ 33
22
/ 33
23
/ 33
24
/ 33
25
/ 33
26
/ 33
27
/ 33
28
/ 33
29
/ 33
30
/ 33
31
/ 33
32
/ 33
33
/ 33
More Related Content
PDF
Life in the Fast Lane: Full Speed XPages!, #dd13
by
Dominopoint - Italian Lotus User Group
PDF
Web Programming - Toko Bunga Red Flower
by
Doni Andriansyah
ODP
Presentatie xPage & Beer
by
Jeroen Somhorst
TXT
Config
by
guest4f11e4
PDF
2017 - NoSQL Vorlesung Mosbach
by
Johannes Hoppe
PDF
Tworzenie wtyczek dla TinyMCE 4.* - WordUp Kraków
by
Tomasz Dziuda
PDF
PHP za pocetnike - predavanje 9
by
Nermin Sehic
PPT
Back to the Future: Understand and Optimize your IBM Notes and Domino Infrast...
by
Dominopoint - Italian Lotus User Group
Life in the Fast Lane: Full Speed XPages!, #dd13
by
Dominopoint - Italian Lotus User Group
Web Programming - Toko Bunga Red Flower
by
Doni Andriansyah
Presentatie xPage & Beer
by
Jeroen Somhorst
Config
by
guest4f11e4
2017 - NoSQL Vorlesung Mosbach
by
Johannes Hoppe
Tworzenie wtyczek dla TinyMCE 4.* - WordUp Kraków
by
Tomasz Dziuda
PHP za pocetnike - predavanje 9
by
Nermin Sehic
Back to the Future: Understand and Optimize your IBM Notes and Domino Infrast...
by
Dominopoint - Italian Lotus User Group
Viewers also liked
PPTX
XPages and Java (DanNotes 50th conference, November 2013)
by
Per Henrik Lausten
PDF
BP107: Ten Lines Or Less: Interesting Things You Can Do In Java With Minimal ...
by
panagenda
PDF
Access Data from XPages with the Relational Controls
by
Teamstudio
PDF
SHOW107: The DataSource Session: Take XPages data boldly where no XPages data...
by
Stephan H. Wissel
PDF
Java for XPages Development
by
Teamstudio
PDF
Optimus XPages: An Explosion of Techniques and Best Practices
by
Teamstudio
PDF
Domino OSGi Development
by
Paul Fiore
PPTX
Bootstrap4XPages webinar
by
Mark Leusink
PDF
ICONUK 2013 - An XPager's Guide to Process Server-Side Jobs on IBM® Domino®
by
Serdar Basegmez
ODP
IBM Domino Designer: Tips and tricks for maximum productivity
by
SocialBiz UserGroup
PPTX
Entwicklercamp responive web design
by
Henning Schmidt
PPTX
How to upload a file to an IBM Connections.Cloud Community using the Plugins ...
by
Gavin Bollard
PDF
BP110: The Mobile Distruption - Why XPages Development is targeting Mobile First
by
John Head
PDF
Aveedo - Your application framework
by
We4IT Group
PDF
IBM Collaboration Solutions Community Meeting 11/11 - OpenNTF
by
Niklas Heidloff
PPTX
How to share a File using IBM Connections.Cloud
by
Gavin Bollard
PPT
Keynote apertura Dominopoint Days 2013, #dd13
by
Dominopoint - Italian Lotus User Group
XPages and Java (DanNotes 50th conference, November 2013)
by
Per Henrik Lausten
BP107: Ten Lines Or Less: Interesting Things You Can Do In Java With Minimal ...
by
panagenda
Access Data from XPages with the Relational Controls
by
Teamstudio
SHOW107: The DataSource Session: Take XPages data boldly where no XPages data...
by
Stephan H. Wissel
Java for XPages Development
by
Teamstudio
Optimus XPages: An Explosion of Techniques and Best Practices
by
Teamstudio
Domino OSGi Development
by
Paul Fiore
Bootstrap4XPages webinar
by
Mark Leusink
ICONUK 2013 - An XPager's Guide to Process Server-Side Jobs on IBM® Domino®
by
Serdar Basegmez
IBM Domino Designer: Tips and tricks for maximum productivity
by
SocialBiz UserGroup
Entwicklercamp responive web design
by
Henning Schmidt
How to upload a file to an IBM Connections.Cloud Community using the Plugins ...
by
Gavin Bollard
BP110: The Mobile Distruption - Why XPages Development is targeting Mobile First
by
John Head
Aveedo - Your application framework
by
We4IT Group
IBM Collaboration Solutions Community Meeting 11/11 - OpenNTF
by
Niklas Heidloff
How to share a File using IBM Connections.Cloud
by
Gavin Bollard
Keynote apertura Dominopoint Days 2013, #dd13
by
Dominopoint - Italian Lotus User Group
More from Thimo Jansen
PPTX
XPages * XDocReport = X3
by
Thimo Jansen
PDF
Of REST and Beans
by
Thimo Jansen
PDF
XPages & Beer - Behind the scenes
by
Thimo Jansen
PDF
Silverside CCTY Developers Update
by
Thimo Jansen
PDF
AuditCase & XPages
by
Thimo Jansen
PDF
Engage - XPages & Beer
by
Thimo Jansen
PPTX
Van EVI naar IRIS, mijn eerste XPages applicatie
by
Thimo Jansen
PPTX
Een XPages implementatie van het Ogone betaalplatform
by
Thimo Jansen
PDF
TeamPlan brochure
by
Thimo Jansen
XPages * XDocReport = X3
by
Thimo Jansen
Of REST and Beans
by
Thimo Jansen
XPages & Beer - Behind the scenes
by
Thimo Jansen
Silverside CCTY Developers Update
by
Thimo Jansen
AuditCase & XPages
by
Thimo Jansen
Engage - XPages & Beer
by
Thimo Jansen
Van EVI naar IRIS, mijn eerste XPages applicatie
by
Thimo Jansen
Een XPages implementatie van het Ogone betaalplatform
by
Thimo Jansen
TeamPlan brochure
by
Thimo Jansen
xe:objectData
1.
xe:objectData Door Thimo Jansen
2.
Introductie * Thimo Jansen *
IBM Domino web developer * http://www.defrog.nl
3.
Agenda * xe:objectData * Managed
Beans * Overeenkomsten * Verschillen * Voordelen * Demo * Bonus
4.
xe:objectData
5.
xe:objectData // data
source Data Source uit de Extension Library
6.
xe:objectData // waar Als
datasource bij een: * XPage * Panel - in een repeat - Single Page Application
7.
xe:objectData // voorbeeld dominoDocument
vs objectData <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex" xmlns:xc="http://www.ibm.com/xsp/custom"> ! <xp:this.data> ! ! <xp:dominoDocument var="objectDataDocument" formName="fObjectdata" action="openDocument"></xp:dominoDocument> ! ! <xe:objectData var="objectDataTest" scope="view"> ! ! ! <xe:this.createObject> <![CDATA[#{javascript:new nl.defrog.objectData.Test();}]]> </xe:this.createObject> ! ! ! <xe:this.saveObject> <![CDATA[#{objectDataTest.save}]]> </xe:this.saveObject> ! ! </xe:objectData> ! </xp:this.data> </xp:view>
8.
xe:objectData // properties *
createObject * saveObject - Simple action
9.
xe:objectData // voorbeeld dominoDocument
vs objectData <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex" xmlns:xc="http://www.ibm.com/xsp/custom"> ! <xp:this.data> ! ! <xp:dominoDocument var="objectDataDocument" formName="fObjectdata" action="openDocument"></xp:dominoDocument> ! ! <xe:objectData var="objectDataTest" scope="view"> ! ! ! <xe:this.createObject> <![CDATA[#{javascript:new nl.defrog.objectData.Test();}]]> </xe:this.createObject> ! ! ! <xe:this.saveObject> <![CDATA[#{objectDataTest.saveAction}]]> </xe:this.saveObject> ! ! </xe:objectData> ! </xp:this.data> </xp:view>
10.
xe:objectData // scope *
request * view * session * application
11.
xe:objectData // voorbeeld Uitlezen
variable via EL: <xp:text value="#{objectDataTest.index}"></xp:text> Of SSJS: <xp:text value="#{javascript:objectDataTest.getIndex()}"></xp:text>
12.
xe:objectData // voorbeeld Value
binding voor tekstveld: <xp:inputText value="#{objectDataTest.index}"></xp:inputText>
13.
xe:objectData // voorbeeld Opslaan
via simple action: <xp:button value="Save" id="button1"> ! <xp:eventHandler event="onclick" submit="true"refreshMode="full"> ! ! <xp:this.action> ! ! ! <xp:saveDocument var="objectDataTest"></xp:saveDocument> ! ! </xp:this.action> ! </xp:eventHandler> </xp:button>
14.
xe:objectData // voorbeeld Opslaan
via EL: <xp:button value="Save" id="button1"> ! <xp:eventHandler event="onclick" submit="true" refreshMode="full"> ! ! <xp:this.action> <![CDATA[#{objectDataTest.saveAction}]]> </xp:this.action> ! </xp:eventHandler> </xp:button>
15.
xe:objectData // voorbeeld Opslaan
via SSJS: <xp:button value="Save" id="button1"> ! <xp:eventHandler event="onclick" submit="true" refreshMode="full"> ! ! <xp:this.action> <![CDATA[#{javascript:objectDataTest.saveAction();}]]> </xp:this.action> ! </xp:eventHandler> </xp:button>
16.
Managed Beans
17.
Beans // Definitie *
Plain Old Java Object (POJO) * Serializable * Parameter-less, public constructor * Getters en setters
18.
Beans // Voorbeeld package
nl.defrog.objectData; import java.io.Serializable; public class MyFirstBean implements Serializable { ! private static final long serialVersionUID = 1L; ! private String name; ! ! public MyFirstBean() { ! ! // Constructor ! } ! public String getName() { ! ! return name; ! } ! public void setName(String name) { ! ! this.name = name; ! } }
19.
Beans // Configuratie In
Faces-config * Name * Class * Scope * Properties
20.
Beans // Configuratie <?xml
version="1.0" encoding="UTF-8"?> <faces-config> ! <managed-bean> ! ! <managed-bean-name>myFirstBean</managed-bean-name> ! ! <managed-bean-class>nl.defrog.objectData.MyFirstBean</managed-bean-class> ! ! <managed-bean-scope>session</managed-bean-scope> ! ! <managed-property> ! ! ! <property-name>name</property-name> ! ! ! <value>Thimo Jansen</value> ! ! </managed-property> ! </managed-bean> </faces-config> Application Configuration / Faces-config
21.
Beans // voorbeeld Uitlezen
variable via EL: <xp:text value="#{myFirstBean.name}"></xp:text> Of SSJS: <xp:text value="#{javascript:myFirstBean.getName()}"></xp:text>
22.
Beans // voorbeeld Value
binding voor tekstveld: <xp:inputText value="#{myFirstBean.name}"></xp:inputText>
23.
Beans // voorbeeld Opslaan
via EL: <xp:button value="Save" id="button1"> ! <xp:eventHandler event="onclick" submit="true" refreshMode="full"> ! ! <xp:this.action> <![CDATA[#{myFirstBean.saveAction}]]> </xp:this.action> ! </xp:eventHandler> </xp:button>
24.
Beans // voorbeeld Opslaan
via SSJS: <xp:button value="Save" id="button1"> ! <xp:eventHandler event="onclick" submit="true" refreshMode="full"> ! ! <xp:this.action> <![CDATA[#{javascript:myFirstBean.saveAction();}]]> </xp:this.action> ! </xp:eventHandler> </xp:button>
25.
Overeenkomsten
26.
Overeenkomsten * Plain Old
Java Object (POJO) * Serializable * Getters / setters * Scoped
27.
Verschillen
28.
Verschillen * objectData * explicit
initialization * Bean * parameter-less constructor * scope lifecycle
29.
Voordelen
30.
Voordelen * Invloed op
initialisatie * Simple action save * Past in xp:repeat * Geen centrale configuratie * SPA met Dynamic Loading
31.
Demo
32.
Bonus
33.
Contact thimo@defrog.nl // @thimo http://blog.defrog.nl http://linkedin.com/in/thimojansen