Posts Tagged ‘xpages’

9 Mar 2015
13

XPages Best Practice: Don’t add ids to controls if they are not required

This is a quick best practice tip and what will most likely become an involved discussion around ids for XPages controls.

I had to think carefully before posting this, but decided to do so as I know it would prove beneficial to the online community either way.

One of the recent items I’ve added to my “best practices” list, is to not use ids for XPages controls that do not require it. A great example of this are label controls. 99.9% of the time, I require no programmatic handle on any of my label controls. What most should know by now is that if you assign an id of “label1” to the label control, this id gets converted to something along the lines of “view:_id1:_id2:_id11:label1” when the HTML page gets rendered to the user. I’m hoping by now you start understanding my concern?

Let’s say you had about 20 controls that make up your XPage that don’t require ids….that’s at least about 500 bytes of data the user has to download just for these id names. NOTE: This is before compression has taken place. (This could be 100 bytes after compression is applied)

See below example XPage. All it contains (other than the defaults that Domino provides) is 20 label controls with an id name of “label1“. The size of the HTML page is 633 bytes (post compression).

Screen Shot 2015-03-09 at 12.07.12 PM

See below 2nd example of the same XPage, except there are no ids assigned to these 20 labels. The size of the HTML page is 567 bytes (post compression).

Screen Shot 2015-03-09 at 12.05.16 PM

For most of you (i’m guessing), the difference in size is probably too small to action, but for me, it forms part of a drive to deliver the best online, mobile and browser experience possible to my clients and users.

Ok people, bring on the discussions….I’m ready!! :)

20 Jan 2014
4

Will I see you at IBMConnect next week? I hope so

IBMConnect

This has to be one of my favorite months of the year. Not only am I well rested, full of new years resolutions and ready to cause some serious coding damage for 2014, I also get to spend a full week overseas at one of the most amazing holiday resorts, attending an IBM event that hosts thousands of people, and hanging out with some of the most talented and awesome folk that the IBM Online Community have to offer.

Yes people, it’s IBMConnect 2014. My flight leaves for Atlanta Friday night (My time) and lands Saturday morning (Florida time). By Saturday 12:00pm I will be dropped off at the Swolphin (Swan and Dolphin), finding a place to keep my luggage, and venturing forth (to the Boardwalk I think) to meet and greet some of the greats.

What makes my week at IBMConnect that much more special, is that I am proud to call myself an IBM Champion for the 2nd year running. Yay for me and yay for the other 80+ champions that were chosen, especially those new to the Title :)

Another special milestone is I get to co-present a session at IBM Connect with Mr Marky Roden. This will be my first real session at IBMConnect and I can feel the nerves already. Last year I had the honor of facilitating a Birds Of A Feather Session, but next week I’m on stage baby!!!

When is the Session?

BP209: IBM Worklight: Going From XPages Mobile to Native Mobile Applications

Dolphin Southern Hemisphere I – Thursday Jan 30th – 11:15 AM – 12:15 PM

What is the Session about?

I’m glad you asked, and the answer is….*cough cough*…Mobile. And not just mobile, but IBM Worklight. Marky and I will be highlighting some of the awesomeness that is Worklight, as well as demonstrating a mobile app we developed to integrate with an XPages Application. Join us in our session and see how you can use your XPages knowledge in a mobile development environment.

My message to those attending IBMConnect

People of IBMConnect, I cannot stress this enough….”Connect, Connect, Connect”. Do not be afraid to introduce yourself and build the social chain. If you don’t know where to start…it’s simple…watch out for those with an “IBM Champion” badge of some sort (Blue I think). Part of the reason they are Champions is their willingness to engage and help others. It’s the perfect place to start.

Then, there’s Mr Bleed Yellow himself….Mat Newman. If you need a hug (we all need a hug sometimes), just introduce yourself. He will be spotting a touch of yellow :)

Finally, try your best to attend some the Social events. There are too many to mention. If you use Twitter, there will be value in following these hashtags:

I’ll see you all in a couple of days. Get some rest :)
John
17 Jan 2014
0

TiDomino is now an Idea Space on IdeaJam.net

Firstly, a big thanks to Mr Bruce Elgort for creating a category on IdeaJam.net for TiDomino.

For those who aren’t aware…TiDomino is a JavaScript module that allows Appcelerator Titanium developers to use IBM Domino programming patterns to structure local data sets and integrate with IBM Domino and XWork Applications.

IdeaJam.net is an online social site that uses the power of “crowd-sourcing” to rank ideas and allow the best ideas to rise to the top. (NOTE: IdeaJam is available as a product for companies that are interested. Speak to Mr Bruce Elgort or Click here for more info)

SO WHERE TO FROM HERE?

To date, there have been 83 downloads of TiDomino from OpenNTF. I published the very first version on the 29th November 2013 and provided a 2nd release on the 13th December. The 2nd release was motivated by a suggestion that Sean Cull raised during his testing of TiDomino.

Now, I already have my To Do list for the next release of TiDomino, which I’m targeting for February, once IBMConnect is over and the dust has settled.

However, moving forward, I really want to urge everyone who’s interested in this community product, to raise ideas and suggestions on IdeaJam. I would love nothing more than to turn this into an Uber product that makes sense for everyone in terms of usability and time saved on programming.

I, myself will be listing all the ideas I currently have for this product. I look forward to everyone’s feedback and involvement on this. I’ll see you on the other side!!

John

19 Dec 2013
2

New version of TiDomino released on OpenNTF

Hi All. I’ve just released version 1.0.1 of TiDomino on OpenNTF. This release introduces a new Notes Database called “TiDomino Sample DB“.

Thanks to Mr Sean Cull’s suggestion, there is no more need to create your own Notes/XPages Application to test out TiDomino’s integration capabilities. The Sample DB contains all the design elements and test records to have the TiDomino Kitchen Sink in Appcelerator Titanium produce and display results when run.

I recommend following the Developer Guide that’s part of the OpenNTF Download for more details, but in short…place the Sample DB in your Server’s Data Directory and sign the database accordingly.

In the Kitchen Sink, you’ll need to tweak the Server, Username and Password Parameters. That’s it!

Oh…and just a small bonus…the entire TiDomino Project is now available on GitHub.

Enjoy :)

29 Nov 2013
2

DanNotes Session Slides: Appcelerator Mobile and XPages

Here are the slides for my 1 session at DanNotes this week: Appcelerator Mobile. The Doppelgänger to XPages.

I cleaned it up a bit. Sadly there were 2 live demos, but I will publish more content around this soon enough.

I will submit my other slides early next week and will also be blogging about my Denmark trip soon enough.

Enjoy :)