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 > Validating XPage Applications > The new 'Save as Draft' enhancement in XPages
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorPaul Hannan
Contribution Summary:
  • Articles authored: 13
  • Articles edited: 9
  • Comments Posted: 10

Recent articles by this author

XPages Mobile Controls Tutorial

In this simple tutorial the developer will be shown how to build a simple XPage Mobile application from an existing Domino database. Using the familiar Discussion template based application , we take the user on their first steps to creating an XPages Mobile web experience.

XPages Extension Library Deployment in Domino 8.5.3 and IBM XWork Server

With Domino 8.5.3 and the IBM XWork Server the XPages Extension Library can be deployed using a UpdateSite database (updatesite.ntf). This makes it easier to deploy or update the XPages Extension Library without the need to manually copy the plugins in each Domino Server. This NSF based OSGi ...

LS11 AD116 XPages Extension Library: Making Application Development Even Easier

This is the slidedeck from the AD116 XPages Extension Library, Making Application Developemnt Even Easier session presented at Lotusphere 2011. This session will help and show you how the Extension Library will change the way you do App development, and save you time and resources along the ...

The new 'Save as Draft' enhancement in XPages

As already mentioned in this article (http:www10.lotus.comlddddwiki.nsfdxWhatsNewin852forXPagesdisableValidation) a new validation enhancement has been added to XPages in R852. It's an option that allows you to disable validation and save data at the same time. And this is a short ...

What's New in 852 for XPages

Here is a list of the new XPages features and enhancements, some big, some small, that are in IBM Lotus Notes Domino 852. It's an A to Z with oneliners (a little rough now, some with placeholders we will get to those in time), with links to existing articles and blog posts.

Community articleThe new 'Save as Draft' enhancement in XPages

Added by Paul Hannan on September 29, 2010 | 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.2, error handling, validation, XPages

As already mentioned in this article (http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Whats_New_in_852_for_XPages#disableValidation) a new validation enhancement has been added to XPages in R852. It's an option that allows you to disable validation and save data at the same time. And this is a short tutorial showing this option in action.

For this demo we're going to use the 'Validators' page (propValidatorsConvertors.xsp) on the XPages Demo App (http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Demonstration%20Application%20for%20XPages). This is a page that demonstrates some of the basic validation techniques and options in XPages.
To show this latest option we are first going to add a button with a submit type set. Then on the onclick event for this button we are going to select the checkbox for 'Process data without validation'. This sets the new property 'disableValidators' to 'true'.



					<xp:button value="Save as Draft" id="buttonSaveAsDraft"
						styleClass="customButton" rendered="#{javascript:document1.isEditable()}">
						<xp:eventHandler event="onclick" submit="true"
							refreshMode="complete" immediate="false" save="true"
							disableValidators="true">
						</xp:eventHandler>
					</xp:button>


So we can then launch this page and save a test document with filling in or correctly filling out fields which have validation attached.


Saving the document in the normal way will fire the validation.


This is just one example of how to use this new enhancement. There are many others as there is events.

Hope this helps.
p.

  • 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)Sep 29, 2010 3:33:07 PMPaul Hannan  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