{"id":1171,"date":"2013-04-03T22:21:18","date_gmt":"2013-04-03T20:21:18","guid":{"rendered":"http:\/\/hasselba.ch\/blog\/?p=1171"},"modified":"2013-04-03T22:21:18","modified_gmt":"2013-04-03T20:21:18","slug":"notes-9-some-interesting-xsp-properties","status":"publish","type":"post","link":"https:\/\/hasselba.ch\/blog\/?p=1171","title":{"rendered":"Notes 9: Some interesting xsp.properties"},"content":{"rendered":"<p>Some interesting new <em>xsp.properties<\/em> were introduced with Notes 9:<\/p>\n<ul>\n<li><strong>xsp.client.resources.uncompressed<\/strong><\/li>\n<\/ul>\n<p>When set to <em>true<\/em>, all Dojo libraries and CSS resources where delivered in the uncompressed version. The path changes f.e. to <em>\/xsp\/.ibmxspres\/dojoroot-1.8.1<span style=\"color: #ff0000;\">-u<\/span>\/dojo\/dojo.js<\/em>.<\/p>\n<ul>\n<li><strong>xsp.client.script.dojo.html5attr<\/strong><\/li>\n<\/ul>\n<p>When set to <em>true<\/em>, the <a title=\"dojotoolkit.org: Dojo HTML5 Data-Attribute Support\" href=\"http:\/\/dojotoolkit.org\/features\/1.6\/html5data-attributes\" target=\"_blank\">Dojo HTML5 Data attribute<\/a> is added to all Dojo component on the XPages. Here is an example for a Date\/Time field:<\/p>\n<pre id=\"line1\"><code>&lt;input type=\"text\"\r\n   id=\"view:_id1:inputText1\"\r\n   name=\"view:_id1:inputText1\"\r\n   class=\"xspInputFieldDateTimePicker\"\r\n   <span style=\"color: #ff0000;\">data-dojo-type=\"ibm.xsp.widget.layout.DateTextBox\"<\/span>\r\n   iconStyleClass=\"xspInputFieldDatePickerIcon\"\r\n   constraints=\"{datePattern:&amp;quot;dd.MM.yyyy&amp;quot;,timePattern:&amp;quot;HH:mm:ss&amp;quot;,selector:&amp;quot;date&amp;quot;}\"&gt;<\/code><\/pre>\n<ul>\n<li><strong>xsp.radiobuttongroup.item.label.prefixSpace<\/strong><\/li>\n<\/ul>\n<p>When set to <em>true<\/em>, a blank is added before the label the label:<\/p>\n<pre><code>&lt;xp:radioGroup id=\"radioGroup1\"&gt;\r\n\u00a0\u00a0 &lt;xp:selectItem itemLabel=\"Untitled\" \/&gt;\r\n&lt;\/xp:radioGroup&gt;<\/code><\/pre>\n<p>Resulting HTML code (There is a space before the red marked label):<\/p>\n<pre><code>&lt;label for=\"view:_id1:radioGroup1:0\"&gt;\r\n   &lt;input type=\"radio\" id=\"view:_id1:radioGroup1:0\" \r\n   name=\"view:_id1:radioGroup1\" value=\"Untitled\"&gt;<span style=\"color: #ff0000;\"> Untitled<\/span>&lt;\/label&gt;<\/code><\/pre>\n<p><strong>New properties which are described in the <em>xsp.properties.sample<\/em> file:<\/strong><\/p>\n<ul>\n<li>xsp.maximum.mime.tree.scanLevel<\/li>\n<li>com.ibm.ws.webcontainer.HTTPOnlyCookies<\/li>\n<li>xsp.client.script.xspClient.preventLayer<\/li>\n<li>xsp.client.script.radioCheckbox.ie.onchange.trigger<\/li>\n<li>xsp.repeat.parseSingleStringAsInt<\/li>\n<li>xsp.client.script.dojo.loader<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Some interesting new xsp.properties were introduced with Notes 9: xsp.client.resources.uncompressed When set to true, all Dojo libraries and CSS resources where delivered in the uncompressed version. The path changes f.e. to \/xsp\/.ibmxspres\/dojoroot-1.8.1-u\/dojo\/dojo.js. xsp.client.script.dojo.html5attr When set to true, the Dojo HTML5 &hellip; <a href=\"https:\/\/hasselba.ch\/blog\/?p=1171\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75,46,82,74,24],"tags":[47,8,7,96,16,3,85],"class_list":["post-1171","post","type-post","status-publish","format-standard","hentry","category-dojo","category-html5","category-server","category-xpages","category-xsp","tag-9-0","tag-dojo","tag-domino","tag-html5","tag-server","tag-xpages","tag-xsp"],"_links":{"self":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1171"}],"version-history":[{"count":9,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1171\/revisions"}],"predecessor-version":[{"id":1180,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1171\/revisions\/1180"}],"wp:attachment":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}