329 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Custom Control for custom layout of checkboxes
Tue, May 21st 2013 126
Fix for partial refresh on Dojo Tab Container/Content Pane
Wed, Mar 20th 2013 228
Small LS class that can be used to check if fields have changed
Fri, Jan 18th 2013 396
Code Snippet - Close dialog if all fields are valid
Fri, Oct 12th 2012 264
Snippet to clear session for user
Thu, Sep 6th 2012 271
Comprehensive guide to Design Definitions
Mon, Aug 20th 2012 131
XPages - Grouping data in comboboxes
Fri, Jul 27th 2012 216
Top 10
Small LS class that can be used to check if fields have changed
Fri, Jan 18th 2013 396
XPages: SSJS code snippet that lets you parse/stringify JS-JSON
Wed, Sep 29th 2010 341
Multi value fields and Beans in XPages
Mon, Jun 25th 2012 304
XPages: Code snippet for Multi Value Custom Converter
Thu, Jun 17th 2010 290
Simple trick to format XPages Checkbox group
Thu, Apr 14th 2011 287
Snippet to clear session for user
Thu, Sep 6th 2012 271
Code Snippet - Close dialog if all fields are valid
Fri, Oct 12th 2012 264
XPages: Make categorized views behave
Fri, Oct 22nd 2010 230
XPages: Simple function to clear scoped variables
Thu, Jun 24th 2010 229
Fix for partial refresh on Dojo Tab Container/Content Pane
Wed, Mar 20th 2013 228


Recommended video - The Top 5 Mistakes of Massive CSS
   

I rarely post links, but if you're working with CSS, you really need to watch this video. It contains several great tips that help you write more maintanable CSS.br /br /object width="640" height="385"param name="movie" value="http://www.youtube.com/v/j6sAm7CLoCQ?fs=1amp;hl=en_GB"/paramparam name="allowFullScreen" value="true"/paramparam name="allowscriptaccess" value="always"/paramembed src="http://www.youtube.com/v/j6sAm7CLoCQ?fs=1amp;hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"/embed/objectdiv class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3745504982837212509-3250840329409830146?l=dontpanic82.blogspot.com' alt='' //divdiv class="feedflare" a href="http://feeds.feedburner.com/~ff/dontpanic82?a=S22LfK7kAO8:p8QrRakOJ2A:yIl2AUoC8zA"img src="http://feeds.feedburner.com/~ff/dontpanic82?d=yIl2AUoC8zA" border="0"/img/a a href="http://feeds.feedburner.com/~ff/dontpanic82?a=S22LfK7kAO8:p8QrRakOJ2A:4cEx4HpKnUU"img src="http://feeds.feedburner.com/~ff/dontpanic82?i=S22LfK7kAO8:p8QrRakOJ2A:4cEx4HpKnUU" border="0"/img/a a href="http://feeds.feedburner.com/~ff/dontpanic82?a=S22LfK7kAO8:p8QrRakOJ2A:qj6IDK7rITs"img src="http://feeds.feedburner.com/~ff/dontpanic82?d=qj6IDK7rITs" border="0"/img/a a href="http://feeds.feedburner.com/~ff/dontpanic82?a=S22LfK7kAO8:p8QrRakOJ2A:V_sGLiPBpWU"img src="http://feeds.feedburner.com/~ff/dontpanic82?i=S22LfK7kAO8:p8QrRakOJ2A:V_sGLiPBpWU" border="0"/img/a a href="http://feeds.feedburner.com/~ff/dontpanic82?a=S22LfK7kAO8:p8QrRakOJ2A:F7zBnMyn0Lo"img src="http://feeds.feedburner.com/~ff/dontpanic82?i=S22LfK7kAO8:p8QrRakOJ2A:F7zBnMyn0Lo" border="0"/img/a /divimg src="http://feeds.feedburner.com/~r/dontpanic82/~4/S22LfK7kAO8" height="1" width="1"/

---------------------
http://feedproxy.google.com/~r/dontpanic82/~3/S22LfK7kAO8/recommended-video-top-5-mistakes-of.html
Nov 29, 2010
64 hits



Recent Blog Posts
126


Custom Control for custom layout of checkboxes
Tue, May 21st 2013 4:09a   Tommy Valand
In a recent project, I wanted to create an interface to toggle different settings for different user types in an app. To save real estate on the page and (hopefully) make it more intuitive, I wanted to have a column per user type, and organize the checkboxes vertically. I couldn't find any way to do this out of the box. To make it work, I made a regular checkbox group per field. Then in a repeat control, I have regular HTML checkboxes with name fetched from the real checkbox group. The checkb [read] Keywords: firefox interface javascript properties
228


Fix for partial refresh on Dojo Tab Container/Content Pane
Wed, Mar 20th 2013 4:05a   Tommy Valand
I wrote this a while back, but I couldn't find that I'd shared it. You need to use the partial refresh hijacker to use the code snippet. This code snippet initializes Dojo Tab Containers/Dojo Content Panes in the area that's refreshed: // Fix problem with partial refresh on Dojo Tab Container/Content pane // Source for inspiration: // http://www.openntf.org/projects/pmt.nsf/0/D228115FAA98DDEC86257A7D0050E7FF dojo.subscribe( 'partialrefresh-complete', this, function( method, form, [read] Keywords: xpages dojo openntf widget
396


Small LS class that can be used to check if fields have changed
Fri, Jan 18th 2013 3:02a   Tommy Valand
We've had some issues with semaphore locks on one of our import databases. The import database has routines that import/update data, then replicate it to a cluster when it's done. We're not exactly sure what triggers the locks, but the server crashed sometimes several times a day, so we decided to see if the import routines could be optimized to do as few writes as possible. Several of the routines saved documents even if there were no field changes. I wrote a simple class to test for [read] Keywords: database server
264


Code Snippet - Close dialog if all fields are valid
Fri, Oct 12th 2012 12:42a   Tommy Valand
Today I was working on a dialog that had fields with validation. I only want to close the dialog if all fields are valid. I'm not aware of any inbuilt XSP methods that does this. This code snippet checks for any invalid fields in the dialog. If all fields are valid, the dialog is closed: function closeDialogIfValid( dialogId ){ var invalidCount = dojo.query( '[id="' + dialogId + '"] [aria-invalid="true"]' ).length; if( invalidCount === 0 ){ XSP.closeDialog( dialogId ); } } This pr [read] Keywords: blogger dojo server
271


Snippet to clear session for user
Thu, Sep 6th 2012 4:42a   Tommy Valand
During testing, I sometimes log in as different user to test hide/whens/etc. I used to delete the SessionID cookie in the browser to clear session scoped beans/sessionScope variables. Today, I looked for a solution to automate this. This line will clear all objects related to a session:facesContext.getExternalContext().getSession( false ).invalidate(); If you want to clear session when logged in user changes for the current "XPages" session, here's the snippet I use (put the code in afterPa [read] Keywords: xpages blogger server
131


Comprehensive guide to Design Definitions
Mon, Aug 20th 2012 6:26a   Tommy Valand
I found this guide in IBM's Application Development wiki while looking for information on Design Definitions: Native and Custom Control Custom Visualization Best Practices So far it's the most comprehensive guide to Design Definitions I've found. [read] Keywords: ibm ldd lotus application blogger development wiki




216


XPages - Grouping data in comboboxes
Fri, Jul 27th 2012 6:29a   Tommy Valand
I wanted to have some values grouped in a ComboBox. Not sure if it's possible to do with pure SSJS (without using the Java API), but found a way using beans: JSF Tree in a dropdown (see accepted answer). The resulting html is select node with options grouped in optgroup nodes. [read] Keywords: xpages blogger java
304


Multi value fields and Beans in XPages
Mon, Jun 25th 2012 4:10a   Tommy Valand
I had an issue with multi value fields bound to bean fields in an XPages I worked on. I got this error message on refresh: java.lang.IllegalArgumentException: argument type mismatch The issue turned out to be a somewhat inconsistent underlying API. When the field is empty, or has single value, it tries to set a string. When there are multiple values, it tries to set a list. To work around the issue, have the getter return an Object, and the setter accept an object. E.g. public Obje [read] Keywords: xpages blogger java
156


Update for Enhanced Messages Control - Show "system" messages
Fri, Jun 22nd 2012 9:50a   Tommy Valand
In response to this question on the XPages Forums, I've updated the source code for my Enhanced Messages Control, so that it also shows messages not bound to controls. The "system" messages are show above the messages from components. [read] Keywords: ldd lotus xpages blogger
123


Recommended tutorials for doing asynchronous processing in beans
Fri, Jun 15th 2012 6:29a   Tommy Valand
Asynchronous processing in Java applications – leveraging those multi-cores Using asynchronous mechanisms in Java and JavaScript for improving the user experience [read] Keywords: applications blogger java javascript




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