When trying to create a simple GWT-Ext file upload (GWT-Ext 2.0.4, Ext-JS 2.0.2, GWT 1.5 Windows), GWT reports the following hosted mode error upon form submit:
com.google.gwt.dev.shell.HostedModeException: Expected primitive type int; actual value was undefined
According to some reports, older versions of GWT display a slightly different error message.
com.google.gwt.dev.shell.HostedModeException: Calling method ‘onActionComplete’: JavaScript undefined, expected int
This error […]
Viridium.ro
java
GWT, GWT-Ext and MIME/Multipart Forms
GWT in IDEA 7 - Hello World Tutorial
I was disappointed to notice that the only good article out there about GWT + IDEA 7 has gone missing. Let me give it a quick stab:
Prerequisites
Make sure to set up Google Web Toolkit.
It may also help to add a path variable in IDEA to point to the installation of Google Web Toolkit.
Step 1: Create […]
Object Identity and the Collection Framework
Scenario: You place a collection of objects in a JCF collection for later use. You are working with a closed group of objects and wish to infer object equality by means of object identity.
Problem: The objects may implement equals and hashCode specifically and the JCF classes make heavy use of these internally. You wish to […]
C# var - Good or Bad?
Years ago, someone on Undernet’s #java was telling us that his Java methods followed an old C pattern: variable declarations at the top, code to initialize and use the variables down below. (Surprisingly similar to the var debate, isn’t it?) Is it good, or bad? Well, if variable names are cryptic enough that you can’t […]
XML Encoding and Java
I came across a Java based blog and noticed a post about XML processing. It appears that the community around that blog is not familiar with the character encoding policies of the XML parsers available in Java. The fact of the matter is that the XML protocol has provisions for specifying the document encoding right […]