Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

Making progress working with TrialandErrorPages. Some things I've learned

By Andrew Pollack on 03/01/2012 at 08:35 PM EST

Warning. Despite finally getting to the point where my XPage does the things I want it to do and finally having the code patterns I wanted to start building a real application that users will interact with, I'm writing this blog post entirely in sarcasm font, specifically to blow off steam after an incredibly frustrating day working with this environment. If you came here looking for deep technical insights for xpages -- you're really too early. I don't have any yet. What I can offer are opinions born of frustration piled high, and somewhat assuaged by a bit of success thanks to a whole lot of trial and error and some help from notable xpages leaders in the community.

Some observations:

1. If you thought there were way too many options placed in obscure locations that are hard to find, you're not looking hard enough. There are at least 100 times more than just "way too many".
2. That option doesn't do what you think it does. No matter which options we're talking about, or what you think it does. The truth is, it doesn't do that. That's why I've renamed XPages to "TrialAndErrorPages".
3. ....

Ok, seriously -- there are a few things worth knowing if you're new to coding on xpages. There are lots of good demos and specific "how-to" articles. To all that hard work, I add the following mostly usesless observations...

1. Creating an XPage is far more different from creating any other kind of page than you'd think. It's nothing at all like a form with some pass through HTML and a lot of rendering. An XPage is more like a compiled program that spits out code to the user when it wants to. The reason that's important is that most of what you do gets translated a couple of times before the browser sees it. You're not creating a web page with the xpage development tool. You're creating an application that creates a web page. If it wants to.

2. For the love of all that you hold dear, the first thing you need to do is drop a "[Display Errors]" control on the page.

3, Some people really like the fact that no matter how deep you dig, there's always another option, event, property, or method you can dig up to do some new obscure thing with XPages. No, really, I've seen people write this on public postings. I'm not one of those people. I'm used to programming languages like C -- or even just javascript -- where you have a fairly small number of very general but powerful commands and you put them together in really interesting ways to make things work. XPages is the opposite of that. XPages is like those Lego sets that came out in the late 80s and early 90s where if you followed the instructions exactly you'd get a thing just like on the box picture -- but so many of the pieces were specially made just for that purpose that you never really had as much fun with it as you did with the old general use sets.

I'm done ranting now. Maybe tomorrow I'll have nicer things to say about XPages, because when all is said and done -- we're all going to have to use them as long as we stay with Domino.


  • text bubble icon

    Security Review

    How secure is your Domino environment? A security review doesn't have to be expensive to be helpful. If you're interested in finding out more, Contact Me.
  • There are  - loading -  comments....

    re: Making progress working with TrialandErrorPages. Some things I've learnedBy Richard Moy on 03/01/2012 at 09:57 PM EST
    Comment Loading
    re: Making progress working with TrialandErrorPages. Some things I've learnedBy Sean Cull on 03/02/2012 at 03:22 AM EST
    Comment Loading
    re: Making progress working with TrialandErrorPages. Some things I've learnedBy Sean Cull on 03/02/2012 at 03:24 AM EST
    Comment Loading
    re: Making progress working with TrialandErrorPages. Some things I've learnedBy Andrew Pollack on 03/02/2012 at 07:27 AM EST
    Comment Loading
    re: Making progress working with TrialandErrorPages. Some things I've learnedBy Henning Heinz on 03/02/2012 at 04:49 AM EST
    Comment Loading
    not be that bad?By Andrew Pollack on 03/02/2012 at 07:32 AM EST
    Comment Loading
    re: not be that bad?By Tim Tripcony on 03/02/2012 at 11:46 AM EST
    Comment Loading


    Other Recent Stories...

    1. 05/13/2013Successfully moved away from POSTINI to SPAMHERO - some thoughts...It's been almost a year since Google announced the changes in their "Postini" offering. I've been looking around, and finally chose to give [Spamhero] a try. As of today, I'm 100% switched over. Here's what I found, and a tip... Accuracy: I'm can definitely tell you is that Spamhero is accurate. I've had no false positives so far, and just a few spam messages that have gotten through. I had many more of both with Postini. For what spam does get through, you get a custom email address to forward the ...... 
    2. 03/22/2013BLUG A3 : Stuff Andrew Thinks You Should Know - The Presentation is now available for downloadThe BLUG conference was amazing. I had a great time, saw many people I really like, and watched a great deal of technical skill transfer take place as well as some wonderful peer to peer mentoring happening between some of the most experienced in our community and some of the newest members. Scott Souder gave a fantastic opening keynote talk that was fresh, frank, and encouraging. I love his energy and attitude, as well has his respect for the core products. Louis Richardson also did a great job. He makes ...... 
    3. 03/15/2013Looking at SAML and OAUTH in the Notes and Domino 9 Public BetaAm I reading this right? Seriously? Like many people, when I read that next release of the Domino Server and Client were going to support OAuth and SAML, I was pretty happy with that. I've been a bit late getting around to looking at the beta though -- after all, IBM has made it quite clear that my opinion isn't all that welcome any more -- and I'm just now reading the documentation on how IBM is going about this. I'll know more when I talk about this stuff next week at BLUG, by the way. First SAML. I know ...... 
    4. 02/11/2013Just made plane and hotel reservations for BNUG -- my first time at that event.  
    5. 02/03/2013Can Software be Too Social to Succeed? 
    6. 02/01/2013Thoughts about the Opening General Session at Connect 2013 -- Do you have any? 
    7. 01/27/2013Who is to blame for the failure of Domino as public web server? IBM (Lotus) Product Management 
    8. 01/21/2013Small progress taking the first real steps in moving Second Signal off IBM Domino 
    9. 01/08/2013Does the Executive Branch of the U.S. Government (the President) have the Constitutional Authority to _NOT_ spend money allocated by the Congress? 
    10. 12/29/2012Have made some progress in chosing a new platform. 
    Click here for more articles.....


    pen icon Comment Entry
    Subject
    Your Name
    Homepage
    *Your Email
    * Your email address is required, but not displayed.
     
    Your thoughts....
     
    Remember Me  

    Please wait while your document is saved.