Monday, July 30, 2012

Using extension library component Remote Service

Recently I had some queries on using the extension library component of Remote Service a.k.a. <xe:jsonRpcService>. I posed this question on StackOverflow and Tim Tripcony gave a detailed answer along with some operations where this might be useful. I would strongly suggest going through Tim's answer.

Friday, July 27, 2012

Creating optgroup tag in combo boxes in XPage

Tommy Valand in his blog post pointed to a StackOverflow question to add <optgroup> in combo box in JSF. Using hints from there I was able to devise a way to get <optgroup> in combo box for XPages. Below is the code snippet for the combo box.

Wednesday, July 25, 2012

Getting stack trace of error in LotusScript

Java has a wonderful method called printStackTrace which prints out the entire stack trace in case of exception. Unfortunately LotusScript does not have any similar functionality. But we can use On Error statement to reproduce this functionality.

Friday, July 13, 2012

Customizing lock screen shortcuts on HTC One X

On my HTC One X I was trying to customize the icons which are present on the screen when it is locked.


After a bit of searching and experimenting I realized that these icons come from the launch bar.


So you have to customize the launch bar and the same four icons will be visible on the lock screen.