I'd like to load data from LDAP server to outliner with
the xul I'm attaching to this email.
The problem is that the entrries are fetched (at least the GetDelegate
and
hasArcOut function are called for them) but the outliner is "blank".
The only thing I was able to read out from log is there're some
errors in nsLDAPDataSource.js on lines 273(one times) and 587(lot of
them)
about "Failure [nsIRDFDelegateFactory::CreateDelegate]", I'm not sure
if
it does matter.
Where I did mistake ?
Thanks for reply,
Rostislav Matl
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<!-- THE DATASOURCE DOESN'T CURRENTLY USE ANY SORT OF CONTAINERS !!! -->
<window id="bookmark-window" title="LDAP Bookmarks Prototype"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:web="http://home.netscape.com/WEB-rdf#"
width="630" height="400" screenX="20" screenY="20"
persist="width height screenX screenY sizemode" orient="vertical"
onload="Startup();"
>
<script>
<![CDATA[
function Startup()
{
dump("<#### #bookmarks STARTUP# #########/>\n");
var outliner = document.getElementById("bookmarksTree");
var builder =
outliner.builder.QueryInterface(Components.interfaces.nsIXULOutlinerBuilder);
builder.addObserver(bookmarksBuilderObserver);
// ... ?
}
]]>
</script>
<outliner id="bookmarksOutliner"
class="bookmarks-window-tree"
flags="dont-test-empty"
multiple="true"
flex="1" align="left" crop="right"
debug="false"
>
<!-- columns -->
<outlinercol id="NameColumn" label="Name"
persist="hidden width sortActive sortDirection"
sortSeparators="true" flex="1"
primary="true"
/>
<splitter class="tree-splitter"/>
<outlinercol id="URLColumn" label="URL"
persist="hidden width sortActive sortDirection"
sortSeparators="true" flex="1"
/>
<splitter class="tree-splitter"/>
<outlinercol id="DescriptionColumn" label="Description"
persist="hidden width sortActive sortDirection"
sortSeparators="true" flex="1"
hidden="false"
/>
<!-- /columns -->
<!-- body -->
<outlinerbody id="bookmarksTree" datasources="rdf:ldap"
ref="ldap://runner.ascs.muni.cz:389/dc=runner,dc=ascs,dc=muni,dc=cz??one"
flex="1"
>
<template>
<outlinerrow uri="rdf:*"
properties="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type
rdf:http://home.netscape.com/NC-rdf#loading">
<outlinercell class="treecell-indent" ref="NameColumn" label="?dcTitle"
/>
<outlinercell label="?dcIdentifier" ref="URLColumn"
/>
<outlinercell label="?dcDescription ?objectClass" ref="DescriptionColumn"
/>
</outlinerrow>
</template>
</outlinerbody>
<!-- /body -->
</outliner>
</window>