Skip to main content link. Accesskey S

The useful resource for IBM Lotus Domino XPages development

Submit Search

Available in the Appstore!All the content of xpageswiki.com for iPhone or iPad for offline access.

Home > UI > Useful tools, tips and keyboard shortcuts for Domino Designer

Useful tools, tips and keyboard shortcuts for Domino Designer

ShowTable of Contents

Keyboard Shortcuts


CTRL-M: toogle to maximize the active panel / restore all panels
CTRL-SHIFT-F: auto-format source code

Clear all blank lines when auto-formatting source code


Set the following preference: XML -> XML Files -> Editor -> "clear all blank lines".

Found by Tommy Valand

XPages API Inspector


Tommy Valand published a very useful tool for XPages development: the XPages API inspector allows you for each component on your XPage to see:

- what Java class / type it has
- methods and properties of the the component's class
- when it's a JSF related class you get a link to the JSF documentation
Very useful and highly recommended. Download here at OpenNTF.

XPages Debug Custom Control


Use this control by Ferry Kranenburg to see the content of your scoped variables.

http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Xpages%20Debug%20Custom%20Control[Download at OpenNTF

Performance and memory measures with XPages Toolbox


Philippe Riand and his team published a complete performance measuring tool für XPages at OpenNTF.

Download here.

XPages API documentation


Click here to see a documentation of the XPages API Java Classes

See SSJS print statements in local web preview


If you're developing XPages locally, you can start the local web preview in a seperate window to see output of print() commands.
Start cmd.exe, navigate to your Lotus Notes directory and start

nhttp.exe preview


Then when you click the "preview" button in Designer you can see SSJS print outputs in that window.

Use code templates in XPages source editor


Like in the LotusScript editor you can define code templates for the XPages source editor.
Example: define a template for the xp:text tag so that you can write JavaScript for this xp:text tag instantly:

  • Open any XPage in the source view.


  • Rightlick into the editor -> preferences


  • XML > XML Files > Editor > Templates


  • Button "New"


  • Insert the following:



Name = xp:text
Context = All XML
Description = insert xp:text tag with JavaScript
Pattern:
${cursor}text disableTheme="true" escape="false">
<xp:this.value><![CDATA[#{javascript:}]]></xp:this.value>
</xp:text>


Now you can write "<xp:" and the editor offers you your new code template.

Install integrated task management


You can use the Eclipse project "Mylyn" to embed an integrated task managent into your Domino Designer.
With Mylyn you can manage development related tasks right in your Domino Designer. Each task is associated with a code-context, for example an XPage or a CSS file. When you open a task, Mylyn automatically restored the appropriate context (that means, open the XPage, CSS or whatever).

Homepage of MyLyn here

Installation:


Thanks to Holger Chudek.

Automated tests for XPages applications


With http://seleniumhq.org/Selenium you can record test actions on a Website and run these tests automatically. It has a Firefox plugin which is very, very easy to use.

Download Selenium IDE Firefox Plugin here.
Created by Anonymous on Feb 24, 2011 2:58:40 PM

got some question

#1. what does the preview parameter do? for me it works just starting nhttp.exe?

#2. I tried to install myLyn, but another module was also required.

#3. did not understand how to use Selenium, and why?


Created by Julian Buss on Mar 7, 2011 4:49:12 PM

#1 the preview parameter allows you to press the "preview" button in Domino Designer and let that preview happen in the manually started nhttp.exe

#2 you don't need all features of myLyn, deselect features until the dependencies are solved.

#3 If you want to do automatic testing, you need it.


Add Comment

Name:
Comments:
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this information help you?
Please honor our efforts and flattr this!