332 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
ShadowIT
Thu, May 30th 2013 169
Don't try this at home!
Tue, May 21st 2013 420
Enterprise 2.0 and weight loss - siblings separated at birth?
Tue, May 14th 2013 141
Modernizing Notes applications - lessons from the trenches
Thu, May 9th 2013 426
CRM > Sales Tracking
Sun, May 5th 2013 239
Dear SingTel, please fix your routing performance!
Wed, Apr 24th 2013 163
I want one
Tue, Apr 23rd 2013 246
Top 10
Modernizing Notes applications - lessons from the trenches
Thu, May 9th 2013 426
Don't try this at home!
Tue, May 21st 2013 420
Is SharePoint a Failed Vision for Collaboration?
Sun, Apr 14th 2013 347
Planning applications (XPages MindMap)
Thu, Apr 18th 2013 280
I want one
Tue, Apr 23rd 2013 246
CRM > Sales Tracking
Sun, May 5th 2013 239
MAMIL*
Sun, Apr 21st 2013 225
A more actionable Connections UI
Fri, Apr 19th 2013 217
ShadowIT
Thu, May 30th 2013 169
Round-Trip editing experience in web browsers
Wed, Mar 27th 2013 167


Setting focus to the first invalid field
Stephan H Wissel    

When it comes to validation, the only secure way is server side validation (Client side validation is more: "nice suggestions for users"). One little grievance developers have - and try to fix with elaborate measures - is the requirement to set the focus on the first failed field. XPages makes this quite simple. As Tommy pointed out fields that are invalidated server side get the attribute aria-invalid="true".
Besides, as Tommy suggested, using it to style the input (check his comment - cool idea), you can use it to set the focus on the first invalid field. The key component is the dojo.query function. It allows all sorts of interesting queries, including for attributes. So add a simple Script block with this static value to your page:
XSP.addOnLoad(function() {
     var invalid = dojo.query("[aria-invalid=true]");
     if (invalid.length > 0) {
         invalid[0].focus();
     };
});
As usual YMMV

---------------------
http://feedproxy.google.com/~r/Wisselnet/~3/HVXB0Y3b1Q4/SHWL-8T5JSS
Apr 07, 2012
75 hits



Recent Blog Posts
169


ShadowIT
Thu, May 30th 2013 1:17p   Stephan H Wissel
In an ideal world a corporate IT department would run a standardized, secure environment that fulfills all user requirement. The members of the CIO office are well respected and often invited, since when they turn up, things start moving. Also everybody loves the flying cars they use for transport. In reality most IT departments are caught between a rock and a hard place. Under the (justified or not) pretext of standardization (read: saving cost for the IT department) and security IT department [read] Keywords: domino email laptop office security server
420


Don't try this at home!
Tue, May 21st 2013 1:14p   Stephan H Wissel
Domino has a refined security system, so the java.policy file can be a real PITA. So you would be tempted to write a few lines of LotusScript and run it on a scheduled agent, so on the next server restart that pain goes away. Of course you wouldn't write code like below which lacks any error handling.You also would not hide this code from your admin people who would want an impact study and your firstborn for any change they make. So instead of doing all this you wait until there is a proper co [read] Keywords: admin agent domino lotusscript xpages google java security server
141


Enterprise 2.0 and weight loss - siblings separated at birth?
Tue, May 14th 2013 12:18p   Stephan H Wissel
This blog entry is inspired and largely translated from this German article authored by enterprise consultant Andreas Schulze-Kopp. Having gone through some personal transformation (final results in November) myself I found Andreas' comparison of Enterprise 2.0 initiatives and weight loss programs intriguing. The tasks are comparable: alter habits, break through the mould of old behavioural pattern (a.k.a processes in business lingo) show enough determination and will power to see it through. [read] Keywords: connections ibm development enterprise linux profile wiki
426


Modernizing Notes applications - lessons from the trenches
Thu, May 9th 2013 6:18a   Stephan H Wissel
Not only since mobile first became fashionable corporations are trying to ditch the Lotus IBM Notes client - for various reasons. These efforts were branded "modernization", "web enablement", "mobile enablement" or if a competitor had a word "migration". Initially there was hope that this would be a short, painless and automated process (the upgrades, not the migrations that is). But reality taught a few facts that you need to consider: A Rich Client is based on RichText, a browser cli [read] Keywords: domino ibm lotus lotusscript notes notes client richtext xpages application applications bleedyellow bleedyellow.com css enterprise google mobile server twitter wiki
239


CRM > Sales Tracking
Sun, May 5th 2013 9:20a   Stephan H Wissel
IBM is ditching Siebel CRM in favour of SugarCRM. Cloud based CRM was made popular by SalesForce while Zoho wants a share of the pie too. All to often CRM offers or is used as sales force automation tool, which it is not (only). But what makes a good CRM? It needs to provide access to anything that relates to a customer. Doh - that's what the name claims. In larger organisations CRM typically is understood very narrowly as sales tracking tool, the broader definition as outlined above gets c [read] Keywords: ibm lotus notes applications wiki
163


Dear SingTel, please fix your routing performance!
Wed, Apr 24th 2013 9:18p   Stephan H Wissel
Slashdot asked for the latency to their site, so I ran a few tests with pretty consistent results in the 250ms range. Slashdot labels that as "still stuck on dialup or in space". Their expectations for overseas users was 80 to 150ms. Puzzled by the result (local websites typically respond in the sub 2ms range), I used traceroute to get to the bottom of this. Here are the results: td.Default {border-right : 1px dotted #CCCCCC; border-bottom : 1px dotted #EEEEEE; padding : 1px} Hop IP DNS [read] Keywords: admin css




246


I want one
Tue, Apr 23rd 2013 6:18a   Stephan H Wissel
[read] Keywords:
225


MAMIL*
Sun, Apr 21st 2013 6:17a   Stephan H Wissel
Cycling in Singapore can be fun once you: Find the right group Do it at night Are not afraid to cycle along an unlit Cemetery or ghosts * Middle Aged Man In Lycra [read] Keywords: wiki
217


A more actionable Connections UI
Fri, Apr 19th 2013 6:18a   Stephan H Wissel
IBM Connections is a two headed beast: on one hand it is a set of rich APIs offering different services (Status, Blogs, Wiki, Text, Activities etc) on the other it provides a set of UIs on top of this APIs. Yes, not one, but a set: Browser, Android, iShiny™ and IBM Notes. I'm a big fan of the APIs. After all they stand for IBM's commitment to open standards and are build with XML, REST, ATOM and ActivityStreams compliant to the OpenSocial specifications. I'm not so sure about the UIs, [read] Keywords: connections ibm notes application wiki xml
280


Planning applications (XPages MindMap)
Thu, Apr 18th 2013 8:18a   Stephan H Wissel
In a recent XPages workshop in Kuala Lumpur, the class brainstormed on the planning process for an XPages application. This is what we came up with. For every item on the list one could elaborate quite a bit, but putting that on the map would make it rather messy. Enjoy [read] Keywords: xpages application applications




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