Pages sorted Alphabetically
|
==Internet Explorer 8== IE 8 is supported since Domino 8.5.1. You can force IE8 to act like IE7 by using this code in beforeRenderResponse event: {code:} // first option uses compatibility mode, second option too but stronger
// X-UA-Compatible: IE=7
// X-UA-Compatible: IE=EmulateIE7
if ... |
|
==Show error page== The default error page does not tell you what was wrong. Use Page Properties -> XPage -> "display default error page" while in development. Reset this setting when going to production. ==Error handling== Sourround your code with an error handler like this: {code:|200} try { } ... |
|
==Tell the iPhone to use a fixed screen size== Found by Mark Hughes. {code:} <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
{code} iPhone display is 480x320 pixel. The iPhone browser viewport is 320x356 (landscape) and 480x208 (portrait). ==Set ... |
|
Found in [[http://dominoextnd.blogspot.com/2009/05/xpages-how-to-create-view-picklist.html | Mark Hughes Blog]]: - Create a custom control with a panel, a view inside the panel and other componets as you like - this control will become the dialog. Set for example "picklistDialogPanel" as name for ... |
|
==Basic export== You can write data directly to the browser and tell him to download the data instead of displaying it. Here an example with an CSV-file: {code:} var exCon = facesContext.getExternalContext(); var writer = facesContext.getResponseWriter(); var response = exCon.getResponse(); ... |
|
You can use server side javascript in a XPage to write custom content to the browser, just like with agents and "print" statements in classic web development. This tip is taken from Stephan Wissel from [[http://www.wissel.net/blog/d6plinks/SHWL-7MGFBN]]. - create a Xpage
- set the "rendered" ... |
|
==General security== ==Control access to the application== Use the application's ACL (file -> application -> access control list) to control which user can do what. Any user who has not logged in is "Anonymous". Any user who has logged in, but does not have a special entry (name or group) in the ... |
|
This is a short howto for people who know how to code object oriented in other languages. ==Create a class== {code:} function myClass(param1, param2) { var private_member1 = param1; var private_member2 = param2; this.method1 = function () {
// do something this.method2 = function(param1, ... |
|
A collection of tipps for optimizing memory usage and performance for a XPage application. ==General tips== Use Domino 8.5.3 and enable the application setting for dynamic resource aggregation. This makes a HUGE difference. Add RAM to the server. The more RAM, the better. RAM is more important ... |
|
Non breaking space Using
{code:}
nbsp; {code} is not allowed, but you can use {code:} 160; {code} instead. Other special chars Use the <number>; notation. See [[http:www.degraeve.comreferencespecialcharacters.phpthis list]] for more. |