Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Notes and Domino Application Development wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Redbooks Wiki: Best Practices for Domino 8.0 Web Application Development Redbooks Wiki: Building Domino Web Applications using Domino 8.5.1 Redbooks Wiki: Creating Plugins for Lotus Notes, Sametime, and Symphony Redbooks Wiki: Lotus Domino Development Best Practices Custom Search Scope...
Search
Community Articles > Developing Applications > Developing XPage Applications > XPage Tutorials > Tutorial: Introduction to XPages - Exercise 11
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorDeanna Drschiwiski
Contribution Summary:
  • Articles authored: 76
  • Articles edited: 226
  • Comments Posted: 8

Recent articles by this author

Getting started with XPages

Need help getting started with XPages? This guide provides links to overview content, videos, tutorials, and other content that will get you up to speed quickly.

XPages Domino Object Map 8.5.2

This topic contains a map of the domino objects contained in XPages.

Best practice to develop a good Notes application from the globalization perspective

This presentation shows the best practice to develop a good Notes application from the globalization perspective

Introducing of Domino Global WorkBench 8.5

This presentation shows how to localize Domino templates with Domino Global WorkBench 8.5

XPages Extensibility API Developers Guide

Welcome to the XPages Extensibility API Developers Guide; the Official Resource for Development using the XPages Extensibility API.

Learning Center articleTutorial: Introduction to XPages - Exercise 11

Added by IBM contributor Deanna Drschiwiski on July 20, 2009 | Version 1
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: 8.5, app dev, Domino Designer 8.5, error handling, getting started, new user, validation, XPages
Previous
TOC
Next

1.        What will you learn

You will explore the different modes of data validation and use server side validation and the error display components. You will become familiar with xPages' error handling concepts and capabilities.
2.        Task Description

You will create in your xScrapbook database a new page to explore the 2 server side error handling controls and their use. This exercise doesn't constitute a part of our sample application.
3.        Detailed Steps

1.        Open the Scrapbook database and create a new xPage called “validationTest”

2.        Add 5 fields:
Name, TagLine, Color (drop down list with red, yellow, green),  myCheckbox (a checkbox) and itemCount

3.        Make the Name field a mandatory field and add an error message

4.        Give the TagLine field a minimum length of 4 and a maximum of 40, create a error message.

5.        Make the itemCount a numeric display (in data)

and check out the dataConverter xp:convertNumber (in all properties)



Preview the results in the browser – we will introduce server side validation there

6.        Add a “Display Error” control next to the Name control. Set its “Show error messages for” property to “name”

7.        Select the name control and in “all properties” - data section, set “disable clientSideValidation” to true


Add a Submit button and then test it in the browser.

8.        Add a “Display Errors” control into some space between the fields and the submit button

9.        Set the “disableClientSideValidation” on the TagLine control

Test in browser

4.        The Result


5.        Things To Explore

  •         Use a Script library for validation
  •         When would you use client side and when server side validation?


  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (1)Jul 20, 2009 3:00:53 PMDeanna Drschiwiski  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use