Archive | The View RSS for this section

Article Published in The VIEW: Improve Application Performance with JSON-RPC

An article that I wrote on improving XPages application performance using JSON RPC has been published in The VIEW journal (subscription required).

One of the best-kept secrets of XPages is JSON-RPC control. It is the ideal solution for application developers who want:

  • Their XPages applications to be more efficient and run faster
  • To easily implement client-side and server-side JavaScript interaction

Abstract

If you want your XPages applications to perform more efficiently, or if you’ve ever struggled with executing server-side JavaScript from client-side JavaScript (or taken it a step further and plotted hacktastic workarounds for passing information back and forth), then you need to get to know JSON-RPC. Compared to workarounds that involve partial refreshes, JSON-RPC is a much cleaner method of client and server code interaction and is much more efficient because there is no form submission. JSON-RPC is also asynchronous, so it’s faster and appears more responsive because it doesn’t block user interaction. In this article, get an introduction to JSON-RPC and learn how to reap the benefits in your XPages applications.

Advertisements

Article Published in The VIEW: Extending Localization in XPages

The second part of a 2-part series on localization that Kathy Brown and I co-wrote has been published in The VIEW journal (subscription required). Part 1 showed how to get started with XPages Localization and part 2 shows how to extend XPages localization to handle things that the built-in localization functionality does not handle.

Abstract

The enterprise is global; business doesn’t only happen in your native language. It is not practical to expect everyone to speak the same language to use your applications.

The first article in this series showed how to enable localization and use the built-in features of XPages to set up translations for all hard-coded values. Part 1 demonstrated a few features that browsers handle for you automatically and explained how to enable and use the built-in features of XPages.

When you started developing in XPages, you likely saw the blue diamond next to virtually every property to compute it. Unfortunately, built-in localization features do not handle those computed values. This article shows how to enhance localization and provides additional tips and tricks for localization support.

Article Published in The VIEW: Getting Started with XPages Localization

Kathy Brown and I co-wrote an article on getting started with XPages Localization for The VIEW journal (subscription required).

Abstract

The enterprise is global. If your organization stretches across borders or your clients are in other countries, you cannot just develop an application in your native language and expect that to be good enough. XPages allows you to enable localization and provide multiple languages to display to users.

Here in Part 1 of this two-part series, we will discuss localization features built into XPages. We’ll also demonstrate how to enable localization, work with the localization files, and verify that the application is handling localization. Additionally, we provide some helpful tips to make the process easier. In Part 2, we will demonstrate how to extend out-of-the-box functionality by providing a means to translate computed values and other programmatic text.

Article Published in The VIEW: Reusable and Consistent Message Displays in XPages Part 2: Dialogs

The second part of the series on reusable message displays in XPages has been published in The VIEW (subscription required).

The separation of client-side logic and server-side logic in XPages (read: web) applications increases the complexity of communicating consistently to users. In this series, we demonstrate several implementations that save development time by being easy to implement and that help improve the user experience by providing consistently formatted messages. In Part 1 of this series, we demonstrated a reusable control for inline messages. In Part 2, we provide options for displaying messages in OneUI- and Bootstrap-themed dialogs.

Published in The VIEW: Article on Reusable Message Display Control for XPages

The first article of a two-part series by myself and the estimable Troy Reimer has been published in The VIEW. (Subscription Required)

Reusable and Consistent Message Displays in XPages Part 1: Inline Messages

The goal is to provide an easy way to display consistent messages to the user with a single line of code, but to style them and fit inline them within the application in a way that looks much better than, say, a client-side JavaScript popup. This article shows how you can easily display all 4 types of OneUI-styled messages (Confirmation, Error, Warning, Info) at any time and from any page in the application.

Part 2 will demonstrate reusable message controls that function as dialogs — one with OneUI styling and one with a Twitter Bootstrap modal.

Abstract

The separation of client-side and server-side logic in XPages (read: web) applications increases the complexity of communicating consistently with users. In this series, we demonstrate several implementations of reusable message controls that save development time by being easy to implement and help improve the user experience by providing consistently formatted inline messages. Options include OneUI and Twitter Bootstrap styling as well as client-side and/or server-side triggers, so you can choose what works best for your application.

Article Published in The VIEW: Create Great-Looking, Reusable XPages Charting Controls with Kendo UI DataViz

My article on creating reusable XPages charting custom controls with Kendo UI DataViz in XPages has been published in The VIEW (subscription required).

Abstract

Dashboards are an increasingly common requirement in XPages applications because users want visual indicators of key business metrics. Dojo charts can get you up and running quickly, but Kendo UI’s DataViz charting library provides nicer-looking charts and a wider variety of charts (including radial gauges) that look great in a full browser or on a mobile device. This article explains how to implement three flexible charting custom controls that are easily reusable because they are configured by custom properties and driven by a URL parameter.

  • Bar and Column
  • Pie
  • Radial Gauge

Article Published in The View: Flexible Form Validation in XPages

My article on creating a flexible form validation model in XPages has been published in The View (subscription required). It describes a model can handle complex validation rules, but still provides ease of maintenance by being centralized and structured in a highly-readable manner.

Abstract

Form validation plays a large part in enforcing data integrity in your applications. It is important to properly implement validation logic, but managing all the rules can be complicated, especially if the logic is spread over a large number of locations.

This article discusses the shortfalls of existing validation methods and demonstrates tactics to lower costs for development and maintenance by implementing a flexible custom XPages validation framework that has a well-organized structure.

Excerpt

An excerpt from the article has been published on SocialBizUG.org.