Skip to main content link. Accesskey S
  • Help
  • IBM Logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • All Forums
  • ANNOUNCEMENT: Wiki changed to read-only. READ MORE...
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
  • API Documentation
Search
Community Articles > WebSphere Portlet Factory > Ajax Type-Ahead sample using database filtering
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Click to view profileRob Flynn
Contribution Summary:
  • Articles authored: 199
  • Articles edited: 253
  • Comments Posted: 2

Recent articles by this author

JAX-WS Handler Sample using IBM Web Experience Factory

Overview The Web Experience Factory (WEF) 8.0 release contains an enhancement to the web service call builders that gives you an option to define a global JAXWS handler class. This handler makes it possible for models to intercept and process the inbound and outbound SOAP envelopes ...

WebSphere Dashboard Framework 7.0.1.1 Fix pack now available

The WebSphere Dashboard Framework 7.0.1.1 Fix pack has been released.

IBM Web Experience Factory Version 7.0.1.4 Fix Pack is now available

This fix pack includes new fixes and updates for Web Experience Factory Version 7.0.1. and is now available on Fix Central and can be downloaded from here: ...

IBM Web Experience Factory WCAG 2.0 Compliance

IBM Web Experience Factory, developed and tested compliant to WCAG 2.0, can produce output ( web pages , sites and content) that can be WCAG 2.0 Level A and Level AA compliant. IBM Web Experience Factory neither enforces nor prevents this compliance. Application developers must know and understand ...

Yeah!!! New IBM Web Experience Factory V8.0 is announced!!!

A quick snapshot of what's new in IBM Web Experience Factory... IBM Web Experience Factory is all about making it quick and easy to develop applications (portlets) that are included as part of an exceptional web experience. We've seen our customers doing some awesome stuff, whether it be ...
Community articleAjax Type-Ahead sample using database filtering
Added by Rob Flynn | Edited by IBM contributorRob Flynn on June 19, 2008 | Version 3
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: Ajax
Ajax Type-Ahead sample using database filtering

Background information

The Ajax Type-Ahead builder provides some very useful functionality to enhance the user interface of a portlet. The builder, however, may not perform well if the type ahead lookup is being done against a very large data set.

Sample description

The sample provided here illustrates how to use the Ajax Type-Ahead builder in conjunction with a data service (such as a SQL Call builder) to obtain a limited set of type ahead suggestions.

The Ajax Type-Ahead builder is configured to use no Lookup Table. It will obtain its values from the Values input. The Values input has been configured using a method call to a custom doLookup method that has been created. The doLookup method first checks to see that the user has entered at least 3 characters before attempting to find any suggestions. If the user has entered at least 3 characters, it calls the SQL Call builder in the model. The SQL Call builder is passed the current user data from the input field as obtained from the Linked Java Object that the Ajax Type-Ahead builder creates. The Filter mode of the Ajax Type-Ahead builder is set to Show all values, as the filtering is being done by the database.

Notes on running the sample and prerequisites

Import the attached zip file into your project using the Import WebSphere Portlet Factory Archive command.

You will need to customize the sample and replace the references in the SQL Call builder with your own. The SQL DataSource and SQL Statement inputs need to be changed to suit your database configuration.

Download

Download the sample model from here: ajax_type_ahead_sample.zip

expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (18)
collapsed Versions (18)
Version Comparison     
VersionDateChanged by              Summary of changes
19Jan 20, 2010, 9:36:10 AMRob Flynn  IBM contributor
18Jan 15, 2010, 7:53:54 PMRob Flynn  IBM contributor
17Dec 21, 2009, 1:37:30 PMRob Flynn  IBM contributor
16Dec 21, 2009, 1:37:01 PMRob Flynn  IBM contributor
15Dec 21, 2009, 1:36:27 PMRob Flynn  IBM contributor
14Dec 21, 2009, 1:35:27 PMRob Flynn  IBM contributor
13Dec 21, 2009, 1:33:44 PMRob Flynn  IBM contributor
12Dec 21, 2009, 1:33:00 PMRob Flynn  IBM contributor
11Oct 24, 2008, 6:56:31 PMDeAnna Steiner  IBM contributor
9Oct 24, 2008, 6:49:53 PMDeAnna Steiner  IBM contributor
9Oct 24, 2008, 6:49:53 PMDeAnna Steiner  IBM contributor
8Oct 24, 2008, 6:48:36 PMDeAnna Steiner  IBM contributor
7Sep 16, 2008, 1:59:26 PMDeAnna Steiner  IBM contributor
6Sep 5, 2008, 11:12:33 AMDeAnna Steiner  IBM contributor
5Jun 20, 2008, 2:06:39 PMRob Flynn  IBM contributor
4Jun 19, 2008, 10:54:09 AMRob Flynn  IBM contributor
This version (3)Jun 19, 2008, 10:54:04 AMRob Flynn  IBM contributor
1Jun 16, 2008, 8:56:23 AMRob Flynn  IBM contributor
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
  • BlogsIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkThe Social Lounge
  • 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