262 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Simple workaround for partial refresh issues with radio buttons
Fri, Mar 14th 2014 2
Workaround for issues with XPage in iframe on external website
Mon, Mar 3rd 2014 2
Dynamically pointing DomSQL to current database
Tue, Jan 28th 2014 6
HTML5, script tags and partial refresh inside target area
Mon, Jan 27th 2014 6
Configuring input field for DateTime picker with localized date/time format
Tue, Oct 8th 2013 1
Strange implementation of Document.setPreferJavaDates( true )
Thu, Sep 19th 2013 1
Benchmark: Fetching NoteIDs and documents from view
Fri, Jun 28th 2013 1
Top 10
HTML5, script tags and partial refresh inside target area
Mon, Jan 27th 2014 6
Dynamically pointing DomSQL to current database
Tue, Jan 28th 2014 6
Simple workaround for partial refresh issues with radio buttons
Fri, Mar 14th 2014 2
Workaround for issues with XPage in iframe on external website
Mon, Mar 3rd 2014 2
Configuring input field for DateTime picker with localized date/time format
Tue, Oct 8th 2013 1
Strange implementation of Document.setPreferJavaDates( true )
Thu, Sep 19th 2013 1
Benchmark: Fetching NoteIDs and documents from view
Fri, Jun 28th 2013 1
Custom Control for custom layout of checkboxes
Tue, May 21st 2013 1
Fix for partial refresh on Dojo Tab Container/Content Pane
Wed, Mar 20th 2013 1
Small LS class that can be used to check if fields have changed
Fri, Jan 18th 2013 1




Recent Blog Posts
2
Simple workaround for partial refresh issues with radio buttons
Fri, Mar 14th 2014 7:35a   Tommy Valand
Update, 14.03.14: I had some issues with this technique when used inside a ExtLib dialog. I suspect this has something to do with the dialog having it's own form. To make it work inside the dialog, I added a parameter for the execId. If I remember correctly, execId specifies the part of the XPages tree that should be processed. It can be the same as the target of the refresh. Example of use with execId: XSP.partialRefreshPost( '#{id:targetOfRefresh}', { execId: '#{id:targetThatShouldBeProce
2
Workaround for issues with XPage in iframe on external website
Mon, Mar 3rd 2014 8:17a   Tommy Valand
Update, 03.03.14: We had some further issues with Chrome and form submission. Code snippet updated with workaround. A colleague of mine had some issues with an XPage running in an iframe on a customer's website. The customer notified us that some users with Chrome/Safari had issues with the page going blank. When doing partial refresh, the page went into a reload loop. I did a quick check, and couldn't find anything wrong with the code. I believe it has something to do with cross domain cook
6
Dynamically pointing DomSQL to current database
Tue, Jan 28th 2014 3:02a   Tommy Valand
I couldn't find a way to specify current database in the .jdbc file, so I dug around in the API. When creating the connection to a DomSQL database, you can do it with getConnection and the name of a .jdbc config file: public static Connection getConnection() throws SQLException { return JdbcUtil.getConnection( FacesContext.getCurrentInstance(), "nameOf.jdbc" ); } Or use createConnection and specify the path for the connection: public static Connection getConnection() throws SQLException {
6
HTML5, script tags and partial refresh inside target area
Mon, Jan 27th 2014 3:22a   Tommy Valand
I had some issues with a script tag not loading inside a panel. The panel was set to only be visible when a view scope variable was set. It turns out that this is by design for HTML5. When script tags are inserted into a document using Ajax/innerHTML, the spec states that the script tag should not execute. HTML5 spec "...script elements inserted using innerHTML do not execute when they are inserted..." My workaround for this was to set full refresh for the event that refreshed the panel.




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition