Improve browser configuration error messages.
authorBen Konrath <ben@bagu.org>
Fri, 25 Nov 2011 15:06:52 +0000 (16:06 +0100)
committerBen Konrath <ben@bagu.org>
Fri, 25 Nov 2011 15:06:52 +0000 (16:06 +0100)
commit045c81d200d27db6db17ea512fe1ef6fcdfd9417
treeed1854cdbd7c07a6fd5c2d297d30604d3a43a88c
parentf4386732a929943b60364c69288fabf0cbaa2c97
Improve browser configuration error messages.

This fixes:

https://bugzilla.gnome.org/show_bug.cgi?id=662792

* src/main/java/org/glom/web/client/OnlineGlomService.java:
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
getConfigurationErrorMessage() method.
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
Get and display a specific configuration error message when no Glom
documents are found.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Implement getConfigurationErrorMessage() method. Surround configuration
code in the init() method with a try/catch block. This allows the
errors to be caught while keeping the servlet available to retrieve the
configuration error message.
ChangeLog
src/main/java/org/glom/web/client/OnlineGlomService.java
src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java