SlideShare a Scribd company logo
AD1548 - Building Responsive XPages
Applications
Brian Gleeson, IBM Ireland
Padraic Edwards, IBM Ireland
09:15 AM - 10:15 AM, 3rd February, 2016
Orange F
Please Note:
• 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.
• Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment.
The actual throughput or performance that any user will experience will vary depending upon many factors, including
considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage
configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve
results similar to those stated here.
Agenda
• Introductions
• Bootstrap 3
• Bootstrap 4
• Demos
• Tips & Tricks
• Wrap Up
Speakers
Brian Gleeson
Software Engineer, IBM XPages
@BGleesonIE
Padraic Edwards
Senior Software Engineer, IBM XPages
@paidi_ed
Responsive Web Design
Bootstrap 3
Bootstrap 3 Release History
Jun 2014 Oct Jan 2015 Mar Jun Aug Nov Q1 2016
3.2 3.3.0 3.3.2 3.3.4 3.3.5 3.3.6
v10 v12 v13 v14v11 v15
Bootstrap Release 9.0.1 ExtLib Release
v7 v9v8
3.2
ExtLib
9.0.1 v16
3.3.6
3.3.1
Bootstrap 3 Release History
3.2
3.3.0
[370]
3.3.1
[60]
3.3.2
[150]
3.3.4
[140]
3.3.5
[160]
3.3.6
[100]
3.2 3.3.6
Around 1000 issues & pull requests closed
Bootstrap 3 Upgrade
• 100s of CSS/Javascript bugs fixed & enhancements
• Carousel performance improved (v3.3.0)
• Accessibility enhancements
 CSS/JS fixes
 Documentation examples
• Glyphicons v1.9 update (v3.3.2)
 50+ icons added
• Normalize.css v3.0.3 update
 Provides consistency across browsers
Extlib 9.0.1 v16 + Bootstrap 3.3.6
WARNING!
Bootstrap 3 Upgrade
• Only one version of Bootstrap 3
 ExtLib v16 = Bootstrap 3.3.6
• Potential breaking changes
 Bootstrap3.2.0.theme, Bootstrap3.2.0_flat.theme
 Bootstrap3.theme, Bootstrap3_flat.theme
 Resources restructured
Bootstrap 3 Upgrade - Themes
• Old themes will map to latest Bootstrap3 theme
• Update application
theme in XSP properties
• Update Bootstrap theme extensions
<theme extends="Bootstrap3.2.0_flat" …
<theme extends="Bootstrap3_flat" …
Bootstrap 3 Upgrade – Resource references
Bootstrap 3 – More Info
• Documentation: http://getbootstrap.com/getting-started/
• Supported browsers: http://getbootstrap.com/getting-started/#support
• Wall of browser bugs: http://getbootstrap.com/browser-bugs/
• Purchasable themes: http://themes.getbootstrap.com/
• Stack Overflow: http://stackoverflow.com/questions/tagged/twitter-bootstrap
• Slack Channel: http://bootstrap-slack.herokuapp.com/
• Bootstrap github repo: https://github.com/twbs/bootstrap
• Bootstrap Blog: http://blog.getbootstrap.com/
Bootstrap 4
Bootstrap 4 αlpha
• Pre-release of Bootstrap V4.0.0
 2 αlpha releases so far
• Added to ExtlibX - http://tinyurl.com/extlibx
 Default Bootstrap 4 αlpha.2 build
 New renderers, theme and plugin
 CSS fixes for XPages controls
• Major version number = major overhaul
 Potential breaking changes
DEMO – Bootstrap 4
Bootstrap 4 αlpha
3.2 3.3.0 3.3.2 3.3.4 3.3.5 3.3.6
v10 v12 v13 v14v11 v15
Bootstrap 3 Release 9.0.1 ExtLib Release
v7 v9v8
3.2
3.3.1
ExtLib
9.0.1 v16
3.3.6
Jun 2014 Oct Jan 2015 Mar Jun Aug Nov Q1 2016
Bootstrap 4α Release ExtLibX Release
v15
4.α.2
4.α.1 4.α.2
v16
4.α.2
Bootstrap 4 Team Quotes
“A few alpha releases while things are still in flux.”
“2 beta releases after features and functionality are locked down
to really test things out.”
“2 release candidates (RCs) to really test things out closer to
production environments.”
“Then, the final release!”
“For the foreseeable future, we’ll be maintaining Bootstrap 3 with
critical bug fixes and documentation improvements.”
Bootstrap 4 αlpha
What’s new?
A LOT!
2000+ commits
25,000+ lines changed
Bootstrap 4 αlpha - Navbars
• Simplified set of CSS classes
• Fluid by default
• Easily customize background/text colour
.bg-inverse .navbar-dark
.bg-faded .navbar-light
style=“background:red;”
.bg-primary .navbar-dark
• Forms & collapse functionality cleaned up
DEMO – Navbars
Bootstrap 4 αlpha – Device Sizes
• Additional device size breakpoint
Bootstrap 3 Bootstrap 4
• xs: 0 – 543px
• sm: 544 – 767px
• md: 768 – 991px
• lg: 992 – 1199px
• xl: 1200+ pixels
• xs: 0 – 767px
• sm: 768 – 991px
• md: 992 – 1199px
• lg: 1200+ pixels
Bootstrap 4 αlpha - Cards
• New component = Cards
 Replaces panels, thumbnails & wells
• “A card is a flexible and extensible
content container.”
• Customisable headers, footers, backgrounds & display options
• Use card groups, card decks and card columns to arrange content
DEMO – eXpo App
Bootstrap 4 αlpha – Fonts & Icons
• Responsive Fonts
 Default font-size:
 All other font-size CSS uses REM (Root EM), e.g.
font-size: 1.5rem; // = 24px by default
 Change font sizes per device, e.g.
@media (min-width: 544px) {html { font-size: 14px; }} //sm
@media (min-width: 768px) {html { font-size: 12px; }} //md
@media (min-width: 992px) {html { font-size: 11px; }} //lg
@media (min-width: 1200px) {html { font-size: 10px; }} //xl
html { font-size: 16px; }
DEMO – Responsive Fonts
Bootstrap 4 αlpha – Fonts & Icons
• Glyphicon Fonts removed!
• Problematic for ExtLib
 Halflings are not open source
 Used extensively in XPages Bootstrap theme
• Bootstrap 3 to the rescue
Bootstrap 4 αlpha - Pagers
• New pagination CSS classes
Bootstrap 3
• Added simple pager
<div>
<ul class="pagination">
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
</ul>
</div>
<div>
<ul class="pagination">
<li class=“active"> <a href="#">1</a></li>
<li><a href="#">2</a></li>
</ul>
</div>
<div>
<ul class="pager">
<li><a href="#">Previous</a></li>
<li><a href="#">Next</a></li>
</ul>
</div>
Bootstrap 4
• .btn-outline, .btn-secondary added
• pull-left, pull-right replaced by pull-*-right & pull-*-left
pull-xs-right, pull-sm-left, pull-md-right etc.
• hidden utility classes replaced
hidden-sm-down, hidden-md-up, hidden-lg-down
• margin & padding utility classes added
{margin or padding}-{sides}-{size}
m-t-0, m-b-1, m-l-2, m-r-3, m-x-4, m-y-auto
p-t-auto, p-b-4, p-l-3, p-r-2, p-x-1, p-y-0
Bootstrap 4 αlpha – Other changes
Bootstrap 4 αlpha – Other changes
• Table additions
 table-inverse
 table-head-inverse
 table-sm
 table-reflow
• img-responsive replaced by img-fluid
• Custom forms option available
 Based on WTF Forms
 http://wtfforms.com/
• 30% smaller footprint
ExtLibX
Bootstrap 4 αlpha – ExtlibX
• New Bootstrap4 plugin
com.ibm.xsp.extlibx.theme.bootstrap4_ 9.0.1.v00_16_20160119-2239.jar
• New Bootstrap4.theme
Bootstrap 4 αlpha – ExtlibX
• How to get it?
 Download from http://tinyurl.com/extlibx
 Install update site
 Or install with new ExtLib release
• How to contribute
 Fork repository - https://github.com/OpenNTF/XPagesExtLibX
 Write code
 Testing
 Submit pull request
Bootstrap 4 αlpha – Implemented so far
• New Bootstrap plugin
 Plugin infrastructure + Bootstrap4.theme
 Bootstrap 4 αlpha.2 resources
 XPages specific CSS & JS resources
 Navbar Renderer
 2x Application Layout Renderers
 Pager Renderer
 Dashboard Renderer
 Navigator Renderer
 Data View Renderer
• What’s missing? https://github.com/OpenNTF/XPagesExtLibX/issues
Tips,Tricks & Best Practices
Tips, Tricks & Best Practices
• Bootstrap Grid system
 Containers > Rows > Columns
 Container class: container-fluid or container
 12 columns per row
col-xs-12, col-sm-6, col-md-4, col-lg-3, col-xl-2
 Nested rows supported
 Offsets supported: col-md-offset-2, col-lg-offset-4 etc.
DEMO – Grid System
Tips, Tricks & Best Practices
• Media Queries
@media screen and (min-width : 992px) { body{ background-color: blue;}}
@media screen and (min-width : 1200px){ body{ background-color: red;}}
@media screen and (max-width : 991px) { body{ background-color: green;}}
• xs: 0 – 543px
• sm: 544 – 767px
• md: 768 – 991px
• lg: 992 – 1199px
• xl: 1200+ pixels
• xs: 0 – 767px
• sm: 768 – 991px
• md: 992 – 1199px
• lg: 1200+ pixels
Bootstrap 3 Bootstrap 4
DEMO – Media Queries
Tips, Tricks & Best Practices
• Bootlint
 Examines rendered HTML
 Flags common Bootstrap usage mistakes
 Only supports Bootstrap 3 (for now)
• How to use?
 Pass URL to http://www.bootlint.com/
 Include bootlint in page/app using CDN
https://github.com/twbs/bootlint#in-the-browser
 Use Node.js to run on command line
https://github.com/twbs/bootlint#on-the-command-line
DEMO – Bootlint
Tips, Tricks & Best Practices
• Browser dev tools
 Firefox – Firebug + User Agent Switcher
 Chrome – Built-in Tooling
 Safari – Built-in Web Inspector & Responsive Design Mode
 Online emulators & emulator tools
Tips, Tricks & Best Practices
• Custom Bootstrap build
 http://getbootstrap.com/customize/
 Customise content
 Customise settings/properties
 Click “compile and download”
• Git repo custom build
 Fork Bootstrap
 Change content/settings/variables
 Setup build tools
 Build using node & grunt
Summary
• Bootstrap 3 Upgrade
 Restructuring/refactoring work
• Bootstrap 4 αlpha
 Changes & new features
• ExtLibX incubator for BS4 support in XPages
 Github repository
 Implemented support so far
 How to contribute
Other Resources
• XPages Goes Responsive Videos
 Part 1: https://www.youtube.com/watch?v=XdWYmPLmIrk
 Part 2: https://www.youtube.com/watch?v=P24PsLXO5_o
• Check ExtLib readme docs, v10 – v15
 http://extlib.openntf.org
• ExtLibX Github Repository:
 https://github.com/OpenNTF/XPagesExtLibX
Your Feedback Is Important!
Fill out session surveys at:
https://www.connectsurveys.com
or through IBM Event Connect.
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
Notices and Disclaimers
Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without
written permission from IBM.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM.
Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of
the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. THIS
DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL IBM BE LIABLE FOR ANY
DAMAGE ARISING FROM THE USE OF THIS INFORMATION, INCLUDING BUT NOT LIMITED TO, LOSS OF DATA, BUSINESS INTERRUPTION, LOSS OF
PROFIT OR LOSS OF OPPORTUNITY. IBM products and services are warranted according to the terms and conditions of the agreements under which they
are provided.
Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice.
Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how
those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating
environments may vary.
References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in
all countries in which IBM operates or does business.
Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All
materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any
individual participant or their specific situation.
It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification
and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to
comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance
with any law
Notices and Disclaimers cont.
Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources.
IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related
to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the
quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM EXPRESSLY DISCLAIMS ALL
WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE.
The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or
other intellectual property right.
•IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management
System™, FASP®, FileNet®, Global Business Services ®, Global Technology Services ®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®,
Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®,
pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®,
Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli®, Trusteer®, Unica®, urban{code}®, Watson, WebSphere®, Worklight®,
X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and
service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark
information" at: www.ibm.com/legal/copytrade.shtml.
Addendum Slides
Bootstrap 3 – New themes
• Purchase themes
 http://themes.getbootstrap.com/
 Added components
 Examples included
 Source & build tools included
 Customisable variables
 Documentation
 Free updates
 Multiple use license
DEMO – XGallery
Bootstrap 4 αlpha - Infrastructure
• Normalize 3.0.3 update
 Reboot.css adds Bootstrap resets
• All Javascript re-written in ECMAScript6
• SASS replaces LESS
• 30% smaller footprint
• Internet Explorer 8 support dropped
• iOS6 support dropped
Chrome Firefox IE MS Edge Opera Safari
Mac Supported Supported N/A N/A Supported Supported
Windows Supported Supported 9+ Supported Supported Supported Not supported
Chrome Firefox Opera Safari Android Browser & WebView
Android Supported Supported Not supported N/A Android v5.0+ supported
iOS Supported N/A Not supported Supported N/A
Mobile devices
Generally Bootstrap supports the latest versions of each major platform’s default browsers.
Desktop browsers
Similarly, the latest versions of most desktop browsers are supported.
Bootstrap 4 αlpha – Browser Support

More Related Content

PDF
Building Responsive Applications Using XPages
PDF
Expanding XPages with Bootstrap Plugins for Ultimate Usability
PPT
Engage - Expanding XPages with Bootstrap Plugins for ultimate usability
PDF
JMP401: Masterclass: XPages Scalability
PDF
Ask the XPages Experts
PPTX
Bootstrap4XPages webinar
PDF
Bootstrap and XPages (DanNotes 2013)
PDF
JMP402 Master Class: Managed beans and XPages: Your Time Is Now
Building Responsive Applications Using XPages
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Engage - Expanding XPages with Bootstrap Plugins for ultimate usability
JMP401: Masterclass: XPages Scalability
Ask the XPages Experts
Bootstrap4XPages webinar
Bootstrap and XPages (DanNotes 2013)
JMP402 Master Class: Managed beans and XPages: Your Time Is Now

What's hot (20)

PDF
XPages Application Layout Control - TLCC March, 2014 Webinar
PDF
Marty, You're Just Not Thinking Fourth Dimensionally
PDF
Anatomy of an HTML 5 mobile web app
PDF
Getting Started with the OpenNTF Domino API
PDF
Your Future HTML: The Evolution of Site Design with Web Components
PDF
Introduction to Development for the Internet
PDF
XPages: No Experience Needed
PDF
Web Performance First Aid
PPTX
[Delimon] Unraveling Teams vs Skype for Business
PDF
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
PPTX
Zimmertwins Presentation
PDF
Web Client Performance
PDF
IBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
PDF
Child Themes and CSS in WordPress
PPT
Twitter - Architecture and Scalability lessons
PDF
Web Performance & You - HighEdWeb Arkansas Version
PPTX
Rapid application development for WordPress using AWF
PPTX
Using Wireframes
PDF
High Performance Mobile Web
PPTX
Cross CMS plugin development using AWF
XPages Application Layout Control - TLCC March, 2014 Webinar
Marty, You're Just Not Thinking Fourth Dimensionally
Anatomy of an HTML 5 mobile web app
Getting Started with the OpenNTF Domino API
Your Future HTML: The Evolution of Site Design with Web Components
Introduction to Development for the Internet
XPages: No Experience Needed
Web Performance First Aid
[Delimon] Unraveling Teams vs Skype for Business
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Zimmertwins Presentation
Web Client Performance
IBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
Child Themes and CSS in WordPress
Twitter - Architecture and Scalability lessons
Web Performance & You - HighEdWeb Arkansas Version
Rapid application development for WordPress using AWF
Using Wireframes
High Performance Mobile Web
Cross CMS plugin development using AWF
Ad

Viewers also liked (10)

PDF
D8 l55g formation-introduction-a-ibm-lotus-domino-8-5-xpages
PPTX
MWLUG 2016 : AD117 : Xpages & jQuery DataTables
PDF
XPages and jQuery DataTables: Simplifying View Creation while Maximizing Func...
PDF
What the App? : A Modernization Strategy for Your Business Applications
PDF
AD1542 Get Hands On With Bluemix
PPTX
A Beard, An App, A Blender
PDF
Speed geeking-lotusscript
PDF
AD1279 "Marty, You're Not Thinking Fourth Dimensionally" - Troubleshooting XP...
PDF
Connect 2016-Move Your XPages Applications to the Fast Lane
PDF
Using Cool New Frameworks in (Mobile) Domino Apps
D8 l55g formation-introduction-a-ibm-lotus-domino-8-5-xpages
MWLUG 2016 : AD117 : Xpages & jQuery DataTables
XPages and jQuery DataTables: Simplifying View Creation while Maximizing Func...
What the App? : A Modernization Strategy for Your Business Applications
AD1542 Get Hands On With Bluemix
A Beard, An App, A Blender
Speed geeking-lotusscript
AD1279 "Marty, You're Not Thinking Fourth Dimensionally" - Troubleshooting XP...
Connect 2016-Move Your XPages Applications to the Fast Lane
Using Cool New Frameworks in (Mobile) Domino Apps
Ad

Similar to IBM Connect 2016 - AD1548 - Building Responsive XPages Applications (20)

DOCX
Bootstrap 4
PPTX
Reboot-Typography.pptx reboot typography to help you in research
PPS
Bootstrap 3 vs. bootstrap 4
PPT
Twitter bootstrap training_session_ppt
PPT
Introduction to BOOTSTRAP
PPT
Responsive web design
PDF
Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
PDF
Bootstrap for webtechnology_data science.pdf
PPT
Bootstrap Part - 1
PPTX
Twitter bootstrap1
PPTX
Create Responsive Website Design with Bootstrap 3
PPTX
Bootstrap SLIDES for web development course
PPTX
Lecture-03.pptx
PPTX
Web Development Course - Twitter Bootstrap by RSOLUTIONS
PPTX
Web development and web design with seo
PPTX
Bootstrap [part 1]
PPT
Twitter bootstrap (css, components and javascript)
PDF
Responsive Design and Bootstrap
PPTX
Bootstrap 4 Alpha 3
PDF
Ready? Bootstrap! Go! (CFUG Belgium 24 04-2012)
Bootstrap 4
Reboot-Typography.pptx reboot typography to help you in research
Bootstrap 3 vs. bootstrap 4
Twitter bootstrap training_session_ppt
Introduction to BOOTSTRAP
Responsive web design
Web Development Tutorial Workshop for Beginners - Learn Responsive Web Design...
Bootstrap for webtechnology_data science.pdf
Bootstrap Part - 1
Twitter bootstrap1
Create Responsive Website Design with Bootstrap 3
Bootstrap SLIDES for web development course
Lecture-03.pptx
Web Development Course - Twitter Bootstrap by RSOLUTIONS
Web development and web design with seo
Bootstrap [part 1]
Twitter bootstrap (css, components and javascript)
Responsive Design and Bootstrap
Bootstrap 4 Alpha 3
Ready? Bootstrap! Go! (CFUG Belgium 24 04-2012)

Recently uploaded (20)

PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
top salesforce developer skills in 2025.pdf
PPTX
ai tools demonstartion for schools and inter college
PPTX
Transform Your Business with a Software ERP System
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
history of c programming in notes for students .pptx
PDF
medical staffing services at VALiNTRY
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
L1 - Introduction to python Backend.pptx
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Operating system designcfffgfgggggggvggggggggg
2025 Textile ERP Trends: SAP, Odoo & Oracle
top salesforce developer skills in 2025.pdf
ai tools demonstartion for schools and inter college
Transform Your Business with a Software ERP System
Wondershare Filmora 15 Crack With Activation Key [2025
Navsoft: AI-Powered Business Solutions & Custom Software Development
history of c programming in notes for students .pptx
medical staffing services at VALiNTRY
How to Choose the Right IT Partner for Your Business in Malaysia
PTS Company Brochure 2025 (1).pdf.......
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
L1 - Introduction to python Backend.pptx
How to Migrate SBCGlobal Email to Yahoo Easily
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Adobe Illustrator 28.6 Crack My Vision of Vector Design
ISO 45001 Occupational Health and Safety Management System
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Upgrade and Innovation Strategies for SAP ERP Customers
Operating system designcfffgfgggggggvggggggggg

IBM Connect 2016 - AD1548 - Building Responsive XPages Applications

  • 1. AD1548 - Building Responsive XPages Applications Brian Gleeson, IBM Ireland Padraic Edwards, IBM Ireland 09:15 AM - 10:15 AM, 3rd February, 2016 Orange F
  • 2. Please Note: • 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. • Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.
  • 3. Agenda • Introductions • Bootstrap 3 • Bootstrap 4 • Demos • Tips & Tricks • Wrap Up
  • 4. Speakers Brian Gleeson Software Engineer, IBM XPages @BGleesonIE Padraic Edwards Senior Software Engineer, IBM XPages @paidi_ed
  • 7. Bootstrap 3 Release History Jun 2014 Oct Jan 2015 Mar Jun Aug Nov Q1 2016 3.2 3.3.0 3.3.2 3.3.4 3.3.5 3.3.6 v10 v12 v13 v14v11 v15 Bootstrap Release 9.0.1 ExtLib Release v7 v9v8 3.2 ExtLib 9.0.1 v16 3.3.6 3.3.1
  • 8. Bootstrap 3 Release History 3.2 3.3.0 [370] 3.3.1 [60] 3.3.2 [150] 3.3.4 [140] 3.3.5 [160] 3.3.6 [100] 3.2 3.3.6 Around 1000 issues & pull requests closed
  • 9. Bootstrap 3 Upgrade • 100s of CSS/Javascript bugs fixed & enhancements • Carousel performance improved (v3.3.0) • Accessibility enhancements  CSS/JS fixes  Documentation examples • Glyphicons v1.9 update (v3.3.2)  50+ icons added • Normalize.css v3.0.3 update  Provides consistency across browsers
  • 10. Extlib 9.0.1 v16 + Bootstrap 3.3.6 WARNING!
  • 11. Bootstrap 3 Upgrade • Only one version of Bootstrap 3  ExtLib v16 = Bootstrap 3.3.6 • Potential breaking changes  Bootstrap3.2.0.theme, Bootstrap3.2.0_flat.theme  Bootstrap3.theme, Bootstrap3_flat.theme  Resources restructured
  • 12. Bootstrap 3 Upgrade - Themes • Old themes will map to latest Bootstrap3 theme • Update application theme in XSP properties • Update Bootstrap theme extensions <theme extends="Bootstrap3.2.0_flat" … <theme extends="Bootstrap3_flat" …
  • 13. Bootstrap 3 Upgrade – Resource references
  • 14. Bootstrap 3 – More Info • Documentation: http://getbootstrap.com/getting-started/ • Supported browsers: http://getbootstrap.com/getting-started/#support • Wall of browser bugs: http://getbootstrap.com/browser-bugs/ • Purchasable themes: http://themes.getbootstrap.com/ • Stack Overflow: http://stackoverflow.com/questions/tagged/twitter-bootstrap • Slack Channel: http://bootstrap-slack.herokuapp.com/ • Bootstrap github repo: https://github.com/twbs/bootstrap • Bootstrap Blog: http://blog.getbootstrap.com/
  • 16. Bootstrap 4 αlpha • Pre-release of Bootstrap V4.0.0  2 αlpha releases so far • Added to ExtlibX - http://tinyurl.com/extlibx  Default Bootstrap 4 αlpha.2 build  New renderers, theme and plugin  CSS fixes for XPages controls • Major version number = major overhaul  Potential breaking changes
  • 18. Bootstrap 4 αlpha 3.2 3.3.0 3.3.2 3.3.4 3.3.5 3.3.6 v10 v12 v13 v14v11 v15 Bootstrap 3 Release 9.0.1 ExtLib Release v7 v9v8 3.2 3.3.1 ExtLib 9.0.1 v16 3.3.6 Jun 2014 Oct Jan 2015 Mar Jun Aug Nov Q1 2016 Bootstrap 4α Release ExtLibX Release v15 4.α.2 4.α.1 4.α.2 v16 4.α.2
  • 19. Bootstrap 4 Team Quotes “A few alpha releases while things are still in flux.” “2 beta releases after features and functionality are locked down to really test things out.” “2 release candidates (RCs) to really test things out closer to production environments.” “Then, the final release!” “For the foreseeable future, we’ll be maintaining Bootstrap 3 with critical bug fixes and documentation improvements.”
  • 20. Bootstrap 4 αlpha What’s new? A LOT! 2000+ commits 25,000+ lines changed
  • 21. Bootstrap 4 αlpha - Navbars • Simplified set of CSS classes • Fluid by default • Easily customize background/text colour .bg-inverse .navbar-dark .bg-faded .navbar-light style=“background:red;” .bg-primary .navbar-dark • Forms & collapse functionality cleaned up
  • 23. Bootstrap 4 αlpha – Device Sizes • Additional device size breakpoint Bootstrap 3 Bootstrap 4 • xs: 0 – 543px • sm: 544 – 767px • md: 768 – 991px • lg: 992 – 1199px • xl: 1200+ pixels • xs: 0 – 767px • sm: 768 – 991px • md: 992 – 1199px • lg: 1200+ pixels
  • 24. Bootstrap 4 αlpha - Cards • New component = Cards  Replaces panels, thumbnails & wells • “A card is a flexible and extensible content container.” • Customisable headers, footers, backgrounds & display options • Use card groups, card decks and card columns to arrange content
  • 26. Bootstrap 4 αlpha – Fonts & Icons • Responsive Fonts  Default font-size:  All other font-size CSS uses REM (Root EM), e.g. font-size: 1.5rem; // = 24px by default  Change font sizes per device, e.g. @media (min-width: 544px) {html { font-size: 14px; }} //sm @media (min-width: 768px) {html { font-size: 12px; }} //md @media (min-width: 992px) {html { font-size: 11px; }} //lg @media (min-width: 1200px) {html { font-size: 10px; }} //xl html { font-size: 16px; }
  • 28. Bootstrap 4 αlpha – Fonts & Icons • Glyphicon Fonts removed! • Problematic for ExtLib  Halflings are not open source  Used extensively in XPages Bootstrap theme • Bootstrap 3 to the rescue
  • 29. Bootstrap 4 αlpha - Pagers • New pagination CSS classes Bootstrap 3 • Added simple pager <div> <ul class="pagination"> <li class="page-item active"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> </ul> </div> <div> <ul class="pagination"> <li class=“active"> <a href="#">1</a></li> <li><a href="#">2</a></li> </ul> </div> <div> <ul class="pager"> <li><a href="#">Previous</a></li> <li><a href="#">Next</a></li> </ul> </div> Bootstrap 4
  • 30. • .btn-outline, .btn-secondary added • pull-left, pull-right replaced by pull-*-right & pull-*-left pull-xs-right, pull-sm-left, pull-md-right etc. • hidden utility classes replaced hidden-sm-down, hidden-md-up, hidden-lg-down • margin & padding utility classes added {margin or padding}-{sides}-{size} m-t-0, m-b-1, m-l-2, m-r-3, m-x-4, m-y-auto p-t-auto, p-b-4, p-l-3, p-r-2, p-x-1, p-y-0 Bootstrap 4 αlpha – Other changes
  • 31. Bootstrap 4 αlpha – Other changes • Table additions  table-inverse  table-head-inverse  table-sm  table-reflow • img-responsive replaced by img-fluid • Custom forms option available  Based on WTF Forms  http://wtfforms.com/ • 30% smaller footprint
  • 33. Bootstrap 4 αlpha – ExtlibX • New Bootstrap4 plugin com.ibm.xsp.extlibx.theme.bootstrap4_ 9.0.1.v00_16_20160119-2239.jar • New Bootstrap4.theme
  • 34. Bootstrap 4 αlpha – ExtlibX • How to get it?  Download from http://tinyurl.com/extlibx  Install update site  Or install with new ExtLib release • How to contribute  Fork repository - https://github.com/OpenNTF/XPagesExtLibX  Write code  Testing  Submit pull request
  • 35. Bootstrap 4 αlpha – Implemented so far • New Bootstrap plugin  Plugin infrastructure + Bootstrap4.theme  Bootstrap 4 αlpha.2 resources  XPages specific CSS & JS resources  Navbar Renderer  2x Application Layout Renderers  Pager Renderer  Dashboard Renderer  Navigator Renderer  Data View Renderer • What’s missing? https://github.com/OpenNTF/XPagesExtLibX/issues
  • 36. Tips,Tricks & Best Practices
  • 37. Tips, Tricks & Best Practices • Bootstrap Grid system  Containers > Rows > Columns  Container class: container-fluid or container  12 columns per row col-xs-12, col-sm-6, col-md-4, col-lg-3, col-xl-2  Nested rows supported  Offsets supported: col-md-offset-2, col-lg-offset-4 etc.
  • 38. DEMO – Grid System
  • 39. Tips, Tricks & Best Practices • Media Queries @media screen and (min-width : 992px) { body{ background-color: blue;}} @media screen and (min-width : 1200px){ body{ background-color: red;}} @media screen and (max-width : 991px) { body{ background-color: green;}} • xs: 0 – 543px • sm: 544 – 767px • md: 768 – 991px • lg: 992 – 1199px • xl: 1200+ pixels • xs: 0 – 767px • sm: 768 – 991px • md: 992 – 1199px • lg: 1200+ pixels Bootstrap 3 Bootstrap 4
  • 40. DEMO – Media Queries
  • 41. Tips, Tricks & Best Practices • Bootlint  Examines rendered HTML  Flags common Bootstrap usage mistakes  Only supports Bootstrap 3 (for now) • How to use?  Pass URL to http://www.bootlint.com/  Include bootlint in page/app using CDN https://github.com/twbs/bootlint#in-the-browser  Use Node.js to run on command line https://github.com/twbs/bootlint#on-the-command-line
  • 43. Tips, Tricks & Best Practices • Browser dev tools  Firefox – Firebug + User Agent Switcher  Chrome – Built-in Tooling  Safari – Built-in Web Inspector & Responsive Design Mode  Online emulators & emulator tools
  • 44. Tips, Tricks & Best Practices • Custom Bootstrap build  http://getbootstrap.com/customize/  Customise content  Customise settings/properties  Click “compile and download” • Git repo custom build  Fork Bootstrap  Change content/settings/variables  Setup build tools  Build using node & grunt
  • 45. Summary • Bootstrap 3 Upgrade  Restructuring/refactoring work • Bootstrap 4 αlpha  Changes & new features • ExtLibX incubator for BS4 support in XPages  Github repository  Implemented support so far  How to contribute
  • 46. Other Resources • XPages Goes Responsive Videos  Part 1: https://www.youtube.com/watch?v=XdWYmPLmIrk  Part 2: https://www.youtube.com/watch?v=P24PsLXO5_o • Check ExtLib readme docs, v10 – v15  http://extlib.openntf.org • ExtLibX Github Repository:  https://github.com/OpenNTF/XPagesExtLibX
  • 47. Your Feedback Is Important! Fill out session surveys at: https://www.connectsurveys.com or through IBM Event Connect.
  • 49. Notices and Disclaimers Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without written permission from IBM. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM. Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. THIS DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL IBM BE LIABLE FOR ANY DAMAGE ARISING FROM THE USE OF THIS INFORMATION, INCLUDING BUT NOT LIMITED TO, LOSS OF DATA, BUSINESS INTERRUPTION, LOSS OF PROFIT OR LOSS OF OPPORTUNITY. IBM products and services are warranted according to the terms and conditions of the agreements under which they are provided. Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice. Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating environments may vary. References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business. Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation. It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance with any law
  • 50. Notices and Disclaimers cont. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or other intellectual property right. •IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management System™, FASP®, FileNet®, Global Business Services ®, Global Technology Services ®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®, Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli®, Trusteer®, Unica®, urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.
  • 52. Bootstrap 3 – New themes • Purchase themes  http://themes.getbootstrap.com/  Added components  Examples included  Source & build tools included  Customisable variables  Documentation  Free updates  Multiple use license
  • 54. Bootstrap 4 αlpha - Infrastructure • Normalize 3.0.3 update  Reboot.css adds Bootstrap resets • All Javascript re-written in ECMAScript6 • SASS replaces LESS • 30% smaller footprint
  • 55. • Internet Explorer 8 support dropped • iOS6 support dropped Chrome Firefox IE MS Edge Opera Safari Mac Supported Supported N/A N/A Supported Supported Windows Supported Supported 9+ Supported Supported Supported Not supported Chrome Firefox Opera Safari Android Browser & WebView Android Supported Supported Not supported N/A Android v5.0+ supported iOS Supported N/A Not supported Supported N/A Mobile devices Generally Bootstrap supports the latest versions of each major platform’s default browsers. Desktop browsers Similarly, the latest versions of most desktop browsers are supported. Bootstrap 4 αlpha – Browser Support