Ashfaq Khatri
Ashfaq Khatri

Reputation: 31

XPages Extension Library: namepicker not working

Is there any issue with namepicker of Extension Library version 9.0.0.v00_01_20130415-0518? It does not display popup window for address book, here is my code:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
    <xp:panel>
        <xp:panel>
            <xe:namePicker id="namePicker1" for="djName">
                <xe:this.dataProvider>
                    <xe:dominoNABNamePicker addressBookDb="names.nsf" addressBookSel="all">
                    </xe:dominoNABNamePicker>
                </xe:this.dataProvider>
            </xe:namePicker>
            <xp:br></xp:br>
            <xp:br></xp:br>
            <xe:djextNameTextBox id="djName" multipleSeparator="," multipleTrim="true">
            </xe:djextNameTextBox>
        </xp:panel>
    </xp:panel>
</xp:view>

And also, I have manager's rights on names.nsf database.

Edit: strange behavior! I change <xe:djextNameTextBox control to <xp:inputText and its works fine. How to debug xe:djextNameTextBox control to figure out the problem?

Edit 2: Following error display when xsp page load:

Uncaught Error: Could not load 'dijit.form._FormValueWidget'; last tried '../dijit/form/_FormValueWidget.js' dojo.js:14 dojo._loadModule.dojo.require dojo.js:14 (anonymous function) @Fi&@Ez&@EOf&@Ek.js:107

Uncaught Error: Could not load class 'extlib.dijit.NameTextBox @Fi&@Ez&@EOf&@Ek.js:20 (anonymous function) @Fi&@Ez&@EOf&@Ek.js:20

$DBrH_ dojo.js:14
$DBpd_ @Fi&@Ez&@EOf&@Ek.js:20
$DBpe_ @Fi&@Ez&@EOf&@Ek.js:20
_4c @Fi&@Ez&@EOf&@Ek.js:20
dojo.loaded dojo.js:14
dojo._callLoaded dojo.js:14
dojo._modulesLoaded dojo.js:14
dojo._loadInit

After page load, when I click on name picker button another error display:

Uncaught TypeError: Object # has no method 'selectValue'

Upvotes: 0

Views: 964

Answers (3)

Simon O&#39;Doherty
Simon O&#39;Doherty

Reputation: 9359

Notes/Domino 9 now comes with Extension Library built in as standard. You do not need to install the extlib from OpenNTF.

I tested your source code in a default install of Notes 9. I get the following output:

enter image description here

Clicking the icon gets me this (I added the Admin + clicked OK).

enter image description here

The output of the page is now this:

enter image description here

Upvotes: 1

Ashfaq Khatri
Ashfaq Khatri

Reputation: 31

My observation are below: I uninstall Extension Library version 9.0.0.v00_01_20130415-0518 and upgrade to 900v00_02.20130515-2200, but the problem did not resolved. Then I install 8.5.3.20130315-0724 after uninstalling version 900v00_02.20130515-2200 and it works.

One more thing is that, at first after installing version 8.5.3.20130315-0724 it did not work in chrome browser (which was already opened on my laptop) then I open firefox and surprisingly it shows the address book, I mean that xe:djextNameTextBox control works with name picker control as expected. Then I switch to Chrome and clear all the history and reload the page .....!!! yes its work here too.

I repeat all the above stuff for Extension Library version 9.0.0.v00_01_20130415-0518 and Extension Library version 9.0.0.v00_01_20130415-2200 but xe:djextNameTextBox control not working with that versions.

-mak

Upvotes: 0

Per Henrik Lausten
Per Henrik Lausten

Reputation: 21709

Your xe:djextNameTextBox control is not bound to a value. Try binding to e.g. a viewScope variable or a field on a document datasource:

<xe:djextNameTextBox id="djName" value="#{viewScope.nameField}" multipleSeparator="," multipleTrim="true">
</xe:djextNameTextBox>

Upvotes: 1

Related Questions