Getting error when using Extension library and dojo in xpages - xpages

I have installed domino designer 8.5.2,and Extension library 8.5.2,dojo 1.6.1.Then i have developed the Xpage using mobile apps controls.
When previewing the Xpage in the web,i am getting the error in console is given by
Failed to load resource: the server responded with a status of 404 (Not Found) /domjs/dojo-release-1.6.1/dojo/dojo.js:14
failed loading /domjs/dojo-release-1.6.1/dojo/./parser.js with error: ReferenceError: Can't find variable: define /domjs/dojo-release-1.6.1/dojo/dojo.js:14
Error: Could not load 'dojo.parser'; last tried './parser.js' /domjs/dojo-release-1.6.1/dojo/dojo.js:14
failed loading /domjs/dojo-release-1.6.1/dojo/./hash.js with error: ReferenceError: Can't find variable: define /domjs/dojo-release-1.6.1/dojo/dojo.js:14
failed loading /xsp/.ibmxspres/.extlib/dijit/Mobile.js with error: Error: Could not load 'dojo.hash'; last tried './hash.js' /domjs/dojo-release-1.6.1/dojo/dojo.js:14
Error: Could not load 'extlib.dijit.Mobile'; last tried '/xsp/.ibmxspres/.extlib/dijit/Mobile.js' /domjs/dojo-release-1.6.1/ibm/domino/widget/layout/css/domino-default.cssFailed to load resource: the server responded with a status of 404 (Not Found)
Please could you help me what i need to do further....
Thanks in advance

Domino 8.5.2 is shipped with Dojo 1.4.3 only.

Mobile Controls require Domino 8.5.3 because of the reliance on Dojo 1.6. See the post on OpenNTF http://www.openntf.org/blogs/openntf.nsf/d6plinks/NHEF-8MHA78.
If you want to use mobile on 8.5.2, I think you will need to use the Mobile Controls project on OpenNTF which uses custom controls.
If possible, upgrade to 8.5.3. As well as performance benefits, it's easier to deploy the Extension Library and take advantage of the additional functionality that is only possible with the enhancements to the base code-set (such as RDBMS support, social etc.). Because 8.5.3 provides Dojo 1.6.1, this means your XPages will work on IE9 without forcing compatibility mode - outside of Compatibility Mode, IE9 does not support any version of Dojo earlier than 1.6.

Related

Xpages Frame navigate / X-Frame option

I have a xpages application running on Domino 9.0.0 which we had upgraded now on 10.0.1FP4, the application is loaded in a SAP portal, it was working fine on older version but in internet explorer the Dojo buttons, Tabs dose not work though they work in Chrome & Mozilla. We had tried adding website rules with HTTP response headers with code 200,206 and 302 also added custom header with parameter 'X-Frame-Options' ALLOW-FROM https://achme.com. Still there is no luck, any pointer would be highly appriciated.
Dojo Version is 1.9.7

HTTP error 404 when previewing XPages in a web browser after installing XPages Extension Library

After installing the XPages Extension Library v15 from openNTF.org the required way I get an 404 Error when previewing XPages in a browser. Previewing XPages in Notes works fine.
IBM states an issue that you need to check the Build Automatically in Project menu item of Domoino Designer to avoid 404 Error. But that item is checked.
What do I miss ?
Make sure you installed ExtLib on server too.
Restart task http on server.
Clean your project with menu Project/Clean. This way it gets rebuild completely.
If it's still showing 404 error then have a look at error.log file on server.
Update:
You pointed out in your comment that you use "Preview in Web Browser" without a server.
The local preview loads plugins from
<data-directory>/domino/workspace/applications/eclipse
Copy all ExtLib's features/plugins from
<prog-directory>/framework/shared/eclipse
into this directory and restart Notes Client & Domino Designer.

Error 500 in IBM Notes Client 9.0.1

I am facing issue (Error:500 Unexpected run time error ) in some cases when xpages based application is opened in Note 9.0.1 client. This issue is not reproduce because when you restart your client it automatically resolve the problem and its not come very often.
Initially we were using Server 8.5.3 but we have upgraded server to 9.0.1 FP4HF71. We have not observed this issue on 8.5.X clients.
Can anybody tell why this issue sometime occur on some machine and automatically issue is fixed when machine re-starts .
Anybody else facing same issue or not? Possible solution?
It works well other than xpages apps.
Thanks,
Qaiser
Is this while you're developing? If you make a change in Domino Designer and want to see the change in XPiNC, you need to close Notes and re-open. It's to do with how the applications are loaded and how the XPages runtime differs in XPiNC vs server. (My guess is that the XPiNC XPages runtime uses the .class files for the application loaded in memory, but building the application recreates those - it has to - so the files are no longer available for the XPiNC runtime.)
There's no way round it and my recommendation (and what I've used for XPiNC development on other projects) is develop and test in Firefox, then do a final review in XPiNC when complete. Troubleshooting in Firefox is significantly easier than XPiNC, even with Firebug Lite plugin, so it will be an easier development experience.
The biggest single different with XPiNC look and feel / processing is if #DbLookup and #DbColumn are coded with "" as the first parameter, which works on browser but is bad practice. Following best practice of using #DbName() as the first parameter will yield consistent results on XPiNC and browser.
It won't occur for non-XPages applications, because they are the only applications using the XPages runtime built into the Notes Client for XPiNC.
Try changing the port under Preferences -> Domino Designer -> Web Preview Port to 8080 or something along those lines. Maybe port 80 is already in use.

Installing xpage extension library does not load any extension library controls in browser

I am installing the extension library in one of my local machine,I have previously also installed extension library in another machine and that is working fine,but now in another machine all settings and process is same, To test whether the extension library is installed or not I have created a test page and added layout control and according from extension library to the page and executed the page from the browser,It is not giving any error and prints the values which i have given in the layout.but layout is not visible.
In short the controls from the extension library are not visible when executed the page in browser,
I have Verified the extension library installed on designer as below image.
I have Verified the extension library installed on server as below image.
So in server responses the state is LAZY,bit confused here whether the library is loaded on server properly or not.Or i have to do all the process again to get library started.
Any suggestion would be appreciated.
Edit 1: I forgot to mention that I am using domino designer 9 and notes 9,the domino server version is 8.5,Is there any issues with version?
Edit 2:Now I have converted domino server, domino designer,notes client to version 8.5,Currently I have every thing of same version,I tried loading extension library it loads but only some controls works and some are not.
For example I have added "dialog box,application-layout" this works with no issue but, when I add name picker and value picker is shows Unhandled exception.
To be more clear,
when I add name-picker and value picker without any values it looks perfectly working as in image.
Now when I add values in name picker or value picker or accordian is shows the error,
<xe:namePicker id="namePicker2" for="members"
dialogTitle="Teilnehmer auswählen">
<xe:this.dataProvider>
<xe:namePickerAggregator>
<xe:this.dataProviders>
<xe:dominoNABNamePicker
addressBookSel="all" nameList="peopleAndGroups"
groups="true">
<xe:this.addressBookDb><![CDATA[# {javascript:var nab:NotesDatabase=session.getDatabase(database.getServer(),"names.nsf");
return database.getServer() + "!!" + nab.getFilePath();}]]> </xe:this.addressBookDb>
</xe:dominoNABNamePicker>
</xe:this.dataProviders>
</xe:namePickerAggregator>
</xe:this.dataProvider>
</xe:namePicker>
Extension Library relies on code available in the underlying XPages-related classes installed with the server. So if you install a ...9.0.1 version of Extension Library on an earlier server version, it will not be able to run properly. Always ensure the Extension Library version is appropriate for the server and bear in mind some functionality will not be available (so you won't be able to use deviceBean, some mobile components or the Bootstrap functionality included in more recentl versions of Extension Library.
I would still encourage you to use the latest Domino Designer, for better stability and tooling options. You can still have a 9.0.1 version of Extension Library installed, as far as I know. Designer just picks up tooling and doesn't includes Extension Library source code in the compiled NSF, so there's no conflict. An 8.5.3 version of Extension Library may not even install on a 9.0.1 client, I haven't tried.
On Xsp Properties, General tab, setting "Minimum Supported Release" to 8.5.3 will ensure it still compiles against the 8.5.3 limitations, which should ensure you don't accidentally use properties or functions that didn't exist until after 8.5.3.

XPage plugin working in Lotus Notes but not Notes browser

I have created an extension library component but my XPages Extension Library is working on my local Notes Browser. If I run my XPage in notes itself it works fine.
When I run it in the browser I get the following error is thrown:
Cannot find the library com.example.blank.library, required by the application /ForLearnCopy.nsf.
What does this mean, and how can I solve it? Thanks!
You have to install your plugin like a server plugin.
Have a look here:
Running XPages Extension Library on local machine
Hope this helps
Sven
Ramakumar,
check the documentation of the extension library. It shows nicely what you have to do to get a plugin working everywhere. There are 3 places:
install using an update site in Notes client - to work in the Notes client. Usually ends in NotesData/workspace/applications
install into NotesData/domino/workspace/applications (look for plugins/features folder there) - to make it work on the local browser preview
in the Domino server (use the updatesite.nsf and the right parameter)
Hope that helps

Resources