logo

XUL Domino View

I've always been interested in getting to know more about XUL. Over the weekend I found myself wasting spending some time having a play with it. Taking a starting point from Wolfgang Schmidetzki I produced a Domino view in XUL. It looks like this:

Want to see for real? You need to open the database - it's here - making sure you're using a Mozilla-based browser (any platform will do). There's one view in the database. Click on it (just so you know it's a normal view you're opening).

Nice isn't it. It's so easy too. Look at the source code; there's hardly any code involved at all!

Double-click a document to open/edit it. The New Document button works but the others don't. Also, you have to reload the whole page to update the "view" after creating a document. It's rough, but hopefully, it proves a point. I'll talk about the point tomorrow.

For more inspiration look at Wolfgang's XUL Portal screenshot.

Comments

    • avatar
    • bob
    • Mon 19 Dec 2005 11:18 AM

    How do i get the view to open? Clicking on the "test" view prompts to download a file?

    • avatar
    • YoGi
    • Mon 19 Dec 2005 11:19 AM

    Use Firefox or Mozilla ?

    • avatar
    • larry
    • Mon 19 Dec 2005 11:31 AM

    He that's cool, I can change the order of the columns trough drag and drop!

    • avatar
    • Jerry Carter
    • Mon 19 Dec 2005 12:41 PM

    That is cool. I took a look with DOM inspector... the XUL is separate from the HTML document, which means you could probably get your view to refresh asynchronously without affecting the form displayed.

    Very very nice, Jake.

    • avatar
    • Jake
    • Mon 19 Dec 2005 12:41 PM

    Larry. You can add/remove columns using the little picker to the far right of the column headers too. It's like what the Java View Applet *should* have been ;o)

    In theory we could make the columns sortable and add right-click features to it. Think Thunderbird inbox! The possibilities are almost endless...

    • avatar
    • Jake
    • Mon 19 Dec 2005 12:43 PM

    Jerry. You can have the source for the tree/view be an RDF document and have it update at will. I think. Still lots to learn. Just not sure if I have the time to invest in it. It's very interesting, but is it worthng get to know in detail?

  1. Jake that certainly is good stuff, thanks for the demo. I had to do a quick Wikipedia to find out what XUL was all about.

    {Link}

    • avatar
    • Larry
    • Mon 19 Dec 2005 01:29 PM

    If I click on the "h" it goes to the document with the title "hallo". If I continue typing with the "e" it goes to "hello".

    If I click several times on the "h" with a short pause, it goes to the next document starting with an "h"

    What more secrets does it have?

    This is more than web development, this is full application development! Great for the CRM tool you wanted to buy/create. If you can create a CRM tool with this, I donate the first EUR 500!

  2. But is it accessible? ;-)

    Btw, it actually errored for me with Firefox 1.5.

    • avatar
    • tq
    • Mon 19 Dec 2005 01:48 PM

    Jake,

    it looks like someone has broken the view with an apostrophe. You might want to escape that out...

    tq

    • avatar
    • Jake
    • Mon 19 Dec 2005 01:58 PM

    Woops. Fixed that now.

    You're right Larry. It would be great for a CRM. It would of course be open to use from anywhere in the world. All you need is a computer with a Mozilla browser installed. What % of internet cafes cater for this I wonder?

    • avatar
    • Larry
    • Mon 19 Dec 2005 02:30 PM

    @Jake

    Could this work out?

    {Link}

    • avatar
    • Jerry Carter
    • Mon 19 Dec 2005 09:48 PM

    Based on the enthusiasm of the few responses so far, and the potential for applying this to just about ANY domino application, I think it is worth getting to know in detail, Jake.

    P.S - just noticed the new Rockall Logo... very sharp!

    • avatar
    • Carl
    • Mon 19 Dec 2005 10:40 PM

    This looks great but the issue is browser support. Without it working in IE, I know this is not going to fly with a lot of my customers.

    Bummer, as it looks really promising.

  3. xul does have limited use in the browser. It's not in IE and likely never will be. In Firefox, remote xul cannot access xpcom. However, in local xul, accessed via the chrome: protocol, it is a very rich environment for building rich client apps. Firefox itself for example. Another is Komodo (www.activestate.com), a tool I use every day. In local xul the column-picker, column ordering and column width ( Jake, add <splitter class="tree-splitter"/> between the treecolumns) are persistent...stored in your local xul cache giving user view customization entirely on the client.

    But even loaded from a server, a Notes view implemented in xul feels better than any dhtml (ajax) view I've seen. And remember, it's all styled with css. I no longer have an account for serving Domino. Maybe I'll sign up and post some examples.

    • avatar
    • Paul
    • Tue 20 Dec 2005 02:28 AM

    Here's a website wich descripes the pro and con of 6 different techniques to create a richtext application (XUL is one of them).

    {Link}

  4. XUL really is great but when I remember your accessability article then it is a no-go to use...

    I am currently delving into Eclipse RCP (Rich Client Platform) which I think is a bit like the client counterpart to XUL.

    When you see how easy it is to create a really professional looking client then you understand why IBM is moving to the Lotus Workplace technology.

    Everything that demands for hacks in Lotus Notes is just there ready to use in Eclipse.

    Imagine you need to implement a reporting mechanism, you just include the BIRT plugin and you can build professional reports in some hours...

    • avatar
    • Axel
    • Thu 22 Dec 2005 02:40 AM

    I haven't used xul. There are complaints that people encountered problems, when trying to construct a bit more complex UI. My prejudice is that its smart but a too coarse grained approach for designing guis. Follow this with lots of interest, though.

  5. Accessibility on the mozilla platform:

    {Link}">Link}

    {Link}">Link}

  6. Accessibility on the mozilla platform (take 2):

    {Link}

    {Link}

  7. Dan, regarding accessibility: what I wanted to say is that your web site is only accessible to Mozilla users when you use XUL. I used the wrong words :-(

    • avatar
    • Axel
    • Thu 22 Dec 2005 12:29 PM

    I remember huge discussions between Gerard Bauer (check Richmond Post on google) and the very smart regulars on de.comp.lang.java.

    In the years 2002/4 Gerard Bauer showed very aggressive manners to promote his java-xul stuff.

    The arguments against xul seemed to point to the issue of lack of control for special cases, because xul were to coarse grained.

    But I am no expert in this and don't want to bring people down. Just my prejudices.

  8. I use "xul" to refer to mozilla's xul implementation which usually means xul+xbl+xpcom+javascript running on gecko.

    My interest in xul is not as a web language but as a rich-client language. See Komodo, nvu, songbird and of course Firefox itself and all the other mozilla apps.

    The Eclipse RCP (I really like SWT) is nice but even after using jython I'm losing the jvm love. But that's just me. It will be interesting to see any Eclipse RCP based app ever reaches the distribution leve lof Firefox.

  9. The next generation GUI seems to be "something" like XUL. There are many different one but all rely on XML:

    1. XUL running on gecko

    2. XAML for Windows Vista

    3. OpenLazlo (using Flash)

    4. ....

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Mon 19 Dec 2005

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

Elsewhere

Here are the external links posted on the same day.

More links are available in the archive »

More Content