Archive for the ‘coding’ Category

NetBeans – why even ask?

Dear NetBeans, thank you for the courtesy of warning me, but why do you really ask? You don’t give me much choice, do you…? Now submitted as bug #155031.

Cross-site data retrieval using JSONP

Traditional data retrieval (in JSON, XML or whatever) using XMLHttpRequest is limited to requests on the same domain. A way to work around this limitation is to use JSONP. The ‘P’ stands for Padding. The main concept is to dynamically create a script tag and set its source attribute to the URL of the service [...]

Javascript Array.indexOf() and Array.remove()

Useful convenience methods for array manipulation in Javascript. Array.indexOf() Find index of given element in array. This method is implemented in some browsers, but not all. Array.remove() Remove element in array (depends on indexOf method). Simply add these two your Javascript file augment the functionality with the existing Array implementation.

Hibernate Annotations examples and reference

Found a really great reference with examples of Hibernate association mappings using annotations. http://tadtech.blogspot.com/2007/09/hibernate-association-mappings-in.html

Error deploying AppFuse application on Tomcat

When trying to deploy an AppFuse application on Tomcat I received the following error: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 153 in the generated java file Type mismatch: cannot convert from null to int An error occurred at line: 168 in the generated java file Cannot cast from Object [...]