358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Choosing between xpages controls and plain html elements
Sun, Oct 21st 2012 56
XPages – Checkbox loses it’s checked state when partial refresh is triggered by the click event of the checkbox
Tue, Sep 18th 2012 76
NotesException: Entry is no longer in view
Tue, Jun 26th 2012 83
Eclipse: Compare with Each Other or Local History…
Wed, Feb 29th 2012 60
XPages: sessionAsSigner & sessionAsSignerWithFullAccess mix-up (Xpages BUG??)
Tue, Oct 25th 2011 91
XPages - Difference between xp:this.data (xp:dominoView) and xp:dataContext usage?
Tue, Mar 15th 2011 78
XPages Partial Refresh: Some day you will run into this nasty javascript issue with Internet Explorer.
Mon, Mar 14th 2011 62
Top 10
XPages: sessionAsSigner & sessionAsSignerWithFullAccess mix-up (Xpages BUG??)
Tue, Oct 25th 2011 91
NotesException: Entry is no longer in view
Tue, Jun 26th 2012 83
XPages - Difference between xp:this.data (xp:dominoView) and xp:dataContext usage?
Tue, Mar 15th 2011 78
XPages – Checkbox loses it’s checked state when partial refresh is triggered by the click event of the checkbox
Tue, Sep 18th 2012 76
XPages Partial Refresh: Some day you will run into this nasty javascript issue with Internet Explorer.
Mon, Mar 14th 2011 62
Eclipse: Compare with Each Other or Local History…
Wed, Feb 29th 2012 60
Choosing between xpages controls and plain html elements
Sun, Oct 21st 2012 56
How to use SSJS inside the addOnLoad function?
Wed, Aug 25th 2010 38
Repeat Control – A better pagination (Version 8.5.1) (An Update)
Mon, Oct 25th 2010 36
Repeat Control – A better navigation (Version 8.5.1)
Thu, Oct 21st 2010 34


Rajeev Menon
 
Blog Title XPages - Runtime
Blog Description Something I learnt and might be of your interest
Blog URL http://www.mydominolab.com
RSS Feed http://www.mydominolab.com/feeds/posts/default?alt=rss
PlanetLotus Feed http://planetlotus.org/profiles/rss/rajeev-menon
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Dec 04, 2014 2:10:58 PM EST. Realtime Update:
Landed Here Aug 25, 2010
Location Fairfax, VA, USA
Posts: # / 1st / Latest - -
Total Hits 644. myPL RSS Selections: 23


Recent Blog Posts
56


Choosing between xpages controls and plain html elements
Sun, Oct 21st 2012 6:10p   Rajeev Menon
It is better to use plain HTML elements as far as possible inside your xpages/custom control markup. For example, if you don't need to do a partial refresh of a DIV or you don't need to work with that DIV on the server side at all, you better use the plain div instead of the xp:div. The same is true with any other html elements. This will reduce the number of component objects the JSF tree has to maintain on the server and understandably will improve the performance. (Before JSF 1.2 it was not [read] Keywords: xpages blogger javascript server
76


XPages – Checkbox loses it’s checked state when partial refresh is triggered by the click event of the checkbox
Tue, Sep 18th 2012 6:09p   Rajeev Menon
When XPage renders the checkbox group control, it generates the label tag for the options text. So the users do not need to target the tiny boxes to make selection, rather they can click on the label to select the option. This also helps with the screen readers. The following is a sample html generated by XPage. test1 test2 test3 I am working on a page where I need to filter a view based on the options selected in a checkbox group. I am doing a partial refresh on the onclick event of [read] Keywords: xpages blogger bug dojo javascript server
83


NotesException: Entry is no longer in view
Tue, Jun 26th 2012 5:15p   Rajeev Menon
If you have a view that has documents listed multiple times (Show multiple values as separate entries checked in the view column) and that view is used in code like shown below, there are high chances that you will get the run time error NotesException: Entry is no longer in view: ViewEntryCollection vec=vwUsers.getAllEntriesByKey(keyLkp,true);if (vec.getCount()==0) return null;ViewEntry veTemp;ViewEntry ve=vec.getFirstEntry();while (ve!=null) { System.out.println("ve.getUniversalID() [read] Keywords: ibm notes apple blogger
60


Eclipse: Compare with Each Other or Local History…
Wed, Feb 29th 2012 5:09p   Rajeev Menon
There were several posts about how to compare different versions of your code (Xpages/Custom Control) available in the local history. But I don't remember seeing anything about comparing 2 different files (Xpages/Custom Controls/Script Libraries/Style Sheets/ any text file) within the same database or different databases in the notes community forums. Suppose something went wrong when you modified the code, but you have it working in an earlier version of your code. If you have a backup of th [read] Keywords: notes xpages blogger community database eclipse java
91


XPages: sessionAsSigner & sessionAsSignerWithFullAccess mix-up (Xpages BUG??)
Tue, Oct 25th 2011 5:09p   Rajeev Menon
I spent around 3 days chasing a [TypeError] exception while trying to delete a document. According to the IBM documentation, sessionAsSigner works with the effective (web) access of the Xpage signer. If my basics are not wrong, a User with Editor access should be able to delete a document even if that person's name or role or group is not in one of the authors field of the document. I logged in as me (I myself is the signer too, no other developer is working in my database) and tried to delet [read] Keywords: acl admin ibm xpages blogger bug database password security
78


XPages - Difference between xp:this.data (xp:dominoView) and xp:dataContext usage?
Tue, Mar 15th 2011 5:17p   Rajeev Menon
One of the useful thing I learnt at a quick glance over the book ("Mastering XPages") so far is the dataContext. In fact, I was thinking how can some complex computation be done in one place in the XPage and then reference that computed object anywhere else in the page. dataContext is just what I needed. Now that I use it extensively in my code, I kind of started thinking that the xp:this.data is also almost like a dataContext. (I may be totally wrong, but then I need someone to tell me that) [read] Keywords: ldd lotus xpages apple blogger database javascript




62


XPages Partial Refresh: Some day you will run into this nasty javascript issue with Internet Explorer.
Mon, Mar 14th 2011 6:08p   Rajeev Menon
I usually keep the client ids of the controls in a global JavaScript variable (JSON Object) so that they can be referenced in the client side JavaScript functions easily. Recently I did a dijit.Dialog popup from a XPage that worked just fine in Firefox (as always). Hoping that it should also work in the Internet Explorer, I did a test and not so surprisingly, the dialog didn't show up as a dialog. I took a copy of the database before I start messing with the code during my debugging exercise. [read] Keywords: xpages apple blogger database firefox javascript
36


Repeat Control – A better pagination (Version 8.5.1) (An Update)
Mon, Oct 25th 2010 9:27a   Rajeev Menon
This is an update on the last week's a href="http://www.mydominolab.com/2010/10/repeat-control-better-navigation.html"post/a. I made few minor changes to the pagination. The combo box with any available page of results to pick from is great, but it is a little inconvenient to always pick from the combo if the users want to go to the previous or next pages. So I added a Previous and Next actions.br /div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"br //div [read] Keywords: ibm apple blogger javascript
34


Repeat Control – A better navigation (Version 8.5.1)
Thu, Oct 21st 2010 7:25p   Rajeev Menon
div class="MsoNormal"span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"Here are few things you might need while working with Repeat Controls/span/divdiv class="MsoNormal"span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"br //span/divdiv class="MsoNormal"bspan class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"How to get the repeat contr [read] Keywords: ibm apple blogger javascript
38


How to use SSJS inside the addOnLoad function?
Wed, Aug 25th 2010 6:26p   Rajeev Menon
divSuppose you want to call a Javascript function immediately after the page is loaded on the browser. The known solution with 8.5.1 is the following./divdivbr /table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="background: #F3F3F3; border-collapse: collapse; border: none; mso-border-alt: solid #99CCFF .5pt; mso-padding-alt: 5.75pt 5.75pt 5.75pt 5.75pt; mso-yfti-tbllook: 480;"tbodytr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;" td [read] Keywords: ibm apple blogger javascript server xml
5


How to retrieve a string value from a scope variable as a JSON object into the client-side javascript variable?
Wed, Jul 21st 2010 11:34p   Rajeev Menon
When we need to use a server evaluated value inside client-side JavaScript, we can use in-line SSJS. This is very well explained by John Mackey in his blog post long back. Following are few ways we can write the in-line SSJS. var sCountryPanelID='#{id:panelCountry}';var sCountryName='#{sessionScope.CountryName}';var sCountryName='#{javascript:sessionScope.CountryName}';var sCountryName='#{javascript:sessionScope.get("CountryName")}';alert(sCountryName) Suppose we have a string in JSON [read] Keywords: apple javascript server
4


Classic Domino @Functions and their Javascript equivalents: What about those keywords?
Mon, Jul 19th 2010 10:45p   Rajeev Menon
When I started converting some of the @Functions already written in classic domino to the server side javascript equivalents, I got confused about the usage of keyword parameters. I am referring to the bold parameters in the following @Functions. @Name([CN];SomeName);@DbLookup("";@Subset(@DbName;1):"Names.nsf";"($VIMGroups)";"MyGroup";"Members";[FailSilent]); Not a big deal, but it might be a little helpful for the novice XPage developers to know that those keywords go inside double qu [read] Keywords: dblookup domino apple javascript server
4


How to do @DbLookup with the replica id of a database in SSJS?
Thu, Jul 15th 2010 7:37p   Rajeev Menon
We all know that we can use the replica id to specify the database while doing @DbLookup in classic Domino. It is documented in the help database also. But can we use the replica id in the server side javascript version of the @DbLookup?? The first thing I did was to check in the help if anything about that is mentioned. It says, the dbname argument is an array and nowhere it is mentioned about using replica id instead of the servername and dbpath array. I searched in blogs and xpageswiki to see [read] Keywords: dblookup domino xpages apple database javascript server wiki
6


dijit.Dialog inside a partial refreshing Custom Control
Wed, Jul 7th 2010 11:54p   Rajeev Menon
You know that a Panel can be set to show as a dijit-dialog. All you need to do is to set few properties like dojoType, dojoParseOnLoad, dojoTheme, styleClass and then add the dijit.Dialog module. A button with the following client side javascript code on click, will show the Panel and it's content as a dijit-Dialog. dijit.byId("#{id:panelname}").show() I don't intend to repeat the steps in setting a panel as a dijit-dialog here as it is explained already by several other bloggers. The topi [read] Keywords: xpages apple dojo javascript properties server widget
4


Using Index name property in a Repeat control effectively - An Example
Tue, Jul 6th 2010 8:52p   Rajeev Menon
I was researching about the Index name property of the Repeat Control to find how it can be useful for me at all. I read in other blogs that it could be used if we ever needed to display the row numbers of each repeated row inside the repeat control. Great!! But can I use the index name to access a member of the collection represented by the repeat control?? I am sure any developer that noticed this property would have had the same thought in their mind too. I have the index name, but I do not [read] Keywords: apple




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition