ask the xpages experts
DESCRIPTION
Three IBM Champions each give a short presentation, then spend the remainder of the time answering XPages questions. The brief presentations are from XPages experts: -Mark Roden on "Speeding Up Designer" -Jesse Gallagher on "Recycle: When, where, why, how and the OpenNTF Domino API" -Ulrich Krause on "Using Dojo with Multi-Lingual Apps"TRANSCRIPT
Ask the XPages Experts
Tweet about this event: #XPages and mention us: @teamstudio @TLCCLTD
@MarkyRoden @Gidgerby @Eknori April 10, 2014
@teamstudio teamstudio.com
@TLCCLTD
tlcc.com
Courtney Carter Inbound Marketing Specialist
Who We Are • Our background is in creating tools for collaborative
computing in mid-size and large enterprises, primarily for IBM Notes
• Easy-to-use tools for developers and administrators • 2300+ active customers, 47 countries • Offices in US, UK and Japan • Entered mobile space in 2010 with Unplugged: easy
mobilization of Notes apps to Blackberry, Android and iOS
Teamstudio Unplugged • Your mobile Domino server: take your Notes apps
with you! • End-users access Notes applications from mobile
devices whether online or offline • Leverages existing skills and technology – XPages –
a replication model you already know • Unplugged 3.0 recently released
Unplugged Templates • Continuity – Mobile offline access to
BCM programs
• OneView Approvals – Expense approvals; anywhere, anytime
• CustomerView – lightweight CRM framework for field sales and field service teams
• Contacts – customer information database • Activities – customer activity log • Media – mobile offline file storage and access
• Next Wireless Wednesdays webinar: Part 4 on May 7, 2014 o jQuery Mobile
• Next Teamstudio/TLCC webinar: May 13, 2014 o It’s Not Infernal: Dante’s Nine Circles of XPages Heaven
• Promotion: o Demo the administration interface for Unplugged and be
entered to win a Galaxy Tab 3
Ask the Xpages Experts
1
#XPages
Your Hosts Today:
Howard Greenberg TLCC
@TLCCLtd
Paul Della-Nebbia TLCC
@PaulDN
TLCC Courses and Services
• The Leader in Notes and Domino Training since 1997
• Self Paced Distance Learning Courses for Notes/Domino
– XPages, Development, and Administration (user too!) • OnSite Private Classes • Mentoring/Consulting Services • Free demo courses
– Intro. To XPages Development – Application Development 1
2
Upcoming and Recorded Webinars
3
Webinar Schedule It’s Not Infernal: Dante’s Nine Circles of XPages Heaven – May 13th Bootstrap4XPages – June 17th
www.tlcc.com/xpages-webinar
View Previous Webinars (use url above)
Administrator Webinar
• Tell Your Admins! • Webinar on April 24th
– Topic: Replication – With Kim Greene and Ben Menesi
• Register at: http://www.tlcc.com/admin/tlccsite.nsf/pages/admin-webinar?opendocument
4
Asking Questions
5
Q & A at the end! Type in your questions as they come up
Your Presenters Today:
#XPages 6
Jesse Gallagher Recycle: When, where, why, how and the OpenNTF Domino API
Ulrich Krause Using Dojo with Multi-Lingual Apps
Mark Roden "Speeding Up Designer"
@Gidgerby @Markyroden @Eknori
FIRST MISCONCEPTION
• Recycling is not about memory management! • It’s more akin to managing network connections • It’s not uncommon to have both at once, but
that’s because programmers playing fast and loose with in-scope objects may ALSO play fast and loose with recycling
SECOND MISCONCEPTION
• It’s not just when writing Java! • SSJS Domino objects are Java
Domino objects and have the same rules about recycling
• Only LotusScript is safe. Still not worth it
WHEN MUST YOU RECYCLE?
• Short answer: mostly when looping • Normal Java contexts (namely XPages) will recycle the session
at the end of execution/request • Recycling an object recycles all children, and everything is a
child of Session • Looping can create thousands of objects • Not just the documents/entries – a loop can spew Names,
DateTimes, and Items • .replaceItemValue returns an Item!
SO BASICALLY View tests = database.getView("Tests");
Document doc = tests.getFirstDocument();
while(doc != null) {
Vector<?> columnValues = doc.getColumnValues();
// do stuff here
doc.recycle(columnValues);
// as well as any DateTimes or Names otherwise created
Document tempDoc = doc;
doc = tests.getNextDocument(doc);
tempDoc.recycle();
}
OR, BETTER
• Use the OpenNTF API! • You don’t have to recycle when using the API • It hooks into Java’s normal garbage collection smarts to auto-recycle
for you • Strike an entire category of bugs off of your problem list • …plus all of the other stuff the API brings you!
• Documentation • Helper classes • New methods • Standard Java interfaces • Happiness
Ask The XPages Experts
Ulrich Krause, 10-Apr-2014
Using Dojo with Multi-Lingual Apps
Ask the XPages Experts
About: Ulrich Krause
Administrator /Developer since 1993 Senior Software Architect
Blog http://www.eknori.de Twitter: @eknori Mail: [email protected] IBM Champion 2011/2012/2013/2014
Ask the XPages Experts
Agenda
A few words about multi-lingual applications What is the issue with multi-lingual applications ? How can we fix it ?
Ask the XPages Experts
A few words about multi-lingual applications
http://de.slideshare.net/kjbrown13/bp208-pdf
Ask the XPages Experts
What is the issue with multi-lingual applications ?
Language Settings can be:
• Fixed
• Depend on browser language
• User can choose a language
Ask the XPages Experts
How can we fix it
1
Speeding Up Domino Designer
Dr. Mark Roden Senior Consultant, PSC Group LLC
10th April 2014
About Marky • Over 16 years IBM Notes Domino® work • Engagement manager at PSC Group
• Web Developer • Project Leader
• Contact Information • Blog: http://www.xomino.com • Email: [email protected] • Twitter: @markyroden • Skype: marky.roden
www.psclistens.com @pscgroup
2
Agenda • Speeding up Domino Designer
• Don’t Use Resources
• Better Use of Custom Controls
• Use Resources ! 3
Agenda • Speeding Up Domino Designer?How can jQuery
plugins solve my requirements
4
Don’t use resources • All resources are loaded into designer as you
work – slows you down
5
Better use of Custom Controls • Code looks simple enough
6
Better use of Custom Controls • Screen harder to work with
7
Better use of Custom Controls • Use Design Definition to make XPage more
readable and prevent code being loaded and rendered
8
Use Resources ! • Move your
resources to a Custom Control and using Design Definition they will not be loaded
9
• Questions and Answers
http://www.xomino.com http://demo.xomino.com
twitter: @MarkyRoden
Questions????
7
Use the Q&A pane in WebEx to ask questions We will answer your questions verbally
Upcoming Events: 4/23 Webcast on Mail Next with IBM 4/24 - Administration Webinar on Replication 5/7 – Wireless Wednesday with Teamstudio 5/13 – TLCC XPages Webinar 6/16-17 – Social Connections in Prague 8/27-29 – MWLug in Grand Rapids, MI
Question and Answer Time!
8
Teamstudio Questions? [email protected] 877-228-6178
TLCC Questions?
[email protected] [email protected] 888-241-8522 or 561-953-0095
Howard Greenberg Courtney Carter
#XPages
@TLCCLtd
@Teamstudio
@PaulDN
Paul Della-Nebbia Mark Roden Ulrich Krause Jesse Gallagher