Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8918341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:43:36+00:00 2026-06-15T05:43:36+00:00

We are using an inputText XPages control with Type Ahead for auto-completion. When typing

  • 0

We are using an inputText XPages control with Type Ahead for auto-completion. When typing in the search field, no suggestions appear. We have a list of comma-separated suggestions set in the Type Ahead properties pane, and the suggestions separator is “,”. We have also tried using “new line”-separated suggestions. Minimum characters is “1”. Here is the xml for the inputText:

<xp:inputText id="inputText2">
<xp:typeAhead mode="partial" minChars="1" ignoreCase="true" valueListSeparator=",">
    <xp:this.valueList><![CDATA[Homer,Marge,Bart,Lisa,Maggie]]></xp:this.valueList>
</xp:typeAhead>
</xp:inputText>

Using mode “full” and “partial” both fail, but with different errors. When using “full”, for each letter typed in the search field the following errors appear in the browser console (yes, all of these are caused by a single key press):

Error: Unable to load undefined status:404
dijit.form.ComboBox: Error: Unable to load undefined status:404
Error: Unable to load undefined status:404
Error: Unable to load undefined status:404
Error: Unable to load undefined status:404

Similarly for mode “partial”, the following error message appears for each letter typed:

'url' is null or not an object

This last error originates in dojo.js (minified version used with Lotus Notes 8.5.3, line 14, character 84996). We are not sure which version of dojo this is, because it is not stated in the minified script, but we think Version 1.6.1 is approximately the right version. We have isolated the code that causes the error:

dojo._ioAddQueryToUrl = function(/*dojo.__IoCallbackArgs*/ioArgs){
    //summary: Adds query params discovered by the io deferred construction to the URL.
    //Only use this for operations which are fundamentally GET-type operations.
    if(ioArgs.query.length){
        ioArgs.url += (ioArgs.url.indexOf("?") == -1 ? "?" : "&") + ioArgs.query;
        ioArgs.query = null;
    }
};

It is ioArgs.url += ... that causes the error.

The generated markup for the inputText looks like this:

<span id="view:_id36:_id38:_id119" dojotype="ibm.xsp.widget.layout.data.TypeAheadReadStore" jsid="view__id36__id38__id119" mode="full"></span>
<div class="dijit dijitReset dijitInlineTable dijitLeft xspInputFieldEditBox dijitTextBox dijitComboBox" id="widget_view:_id36:_id38:inputText2" role="combobox" widgetid="view:_id36:_id38:inputText2">
<div class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer" dojoattachpoint="_buttonNode, _popupStateNode" role="presentation" style="display: none;">
    <input class="dijitReset dijitInputField dijitArrowButtonInner" value="? " type="text" tabindex="-1" readonly="readonly" role="presentation">
</div>
<div class="dijitReset dijitValidationContainer">
    <input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="? " type="text" tabindex="-1" readonly="readonly" role="presentation">
</div>
<div class="dijitReset dijitInputField dijitInputContainer">
    <input class="dijitReset dijitInputInner" name="view:_id36:_id38:inputText2" type="text" autocomplete="off" dojoattachpoint="textbox,focusNode" role="textbox" aria-haspopup="true" id="view:_id36:_id38:inputText2" tabindex="0" value="">
</div>
</div>

Any suggestions (pun intended) would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:43:38+00:00Added an answer on June 15, 2026 at 5:43 am

    Please check the XPages property createForm. If is set to false, remove it or change it to true.

    <xp:view xmlns:xp="http://www.ibm.com/xsp/core" createForm="true">
    

    The Type Ahead functionality calculates the target URL from the action property of the HTML form. If this form is not available, the type ahead fails.
    If you need to disable the automatically generated form, you have to add a form manually to the XPage.

    Edit:

    Alternativly you could overwrite the CSJS code of the Typeahead data store and manipulate the fetch method to inject your URL of your XPage.

    Edit 2:

    Here is a script block which fixes the typeahead:

    <xp:scriptBlock id="scriptBlockFixTypeAhead">
        <xp:this.value>
            <![CDATA[dojo.addOnLoad(function(){
                ibm.xsp.widget.layout.data.TypeAheadReadStore.prototype.fetch = function tars_f(_5) {
                var _6 = _5.query.name;
                if (_6.length < this.minChars) {
                    _5.onComplete([], _5);
                    return;
                }
                this.content.$$value = _6;
                var _7 = {url: '#{javascript:context.getUrl().getPath()}', 
                   handleAs: "text", timeout: XSP.submitLatency, content: this.content,
                   form: this.sendForm ? this.formId : null, 
                   load: dojo.hitch(this, this.retrieved, _5),
                   error: dojo.hitch(_5, _5.onError)};
                dojo.xhr(this.method, _7, !this.contentInUrl);
                return _5;
            }})
        ]]></xp:this.value>
    </xp:scriptBlock>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JSF 2.0 and I have text field as <h:form> <h:inputText value=#{myBean.myValue}
I am using tr:inputText reqired=true In order to validate an empty field. In the
I have an input field taking an email address: <h:inputText value=#{register.user.email} required=true /> How
I need to build a form dynamically putting inputText field, I'm using this code:
I'm using Primefaces 3.3.1 with Tomcat 7.0.22.0. I have p:dataTable which has p:inputText in
I'm using the Play Framework. I want to use the HTML5 input type 'search'
In JSF 2.0 have the following: Using this as a base <h:inputText id=email size=60
I am using JSF 1.2 and Richfaces 3.3.FINAL. I have an inputText which must
I have a View where some input text to be added dynamica using jquery,
Using a populated Table Type as the source for a TSQL-Merge. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.