262 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Dynamically pointing DomSQL to current database
Tue, Jan 28th 2014 7
HTML5, script tags and partial refresh inside target area
Mon, Jan 27th 2014 6
Top 10
Dynamically pointing DomSQL to current database
Tue, Jan 28th 2014 7
HTML5, script tags and partial refresh inside target area
Mon, Jan 27th 2014 6




Recent Blog Posts
7
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