1 2012-11-28 Murray Cumming <murrayc@murrayc.com>
3 SelfHosting test: Also try using a relationship.
5 * src/main/java/org/glom/web/server/database/DBAccess.java:
6 convertResultSetToDTO(): Move some code into a public
8 * src/main/java/org/glom/web/server/SqlUtils.java:
9 fillDataItemFromResultSet(): This takes a DataItem and
10 sets it from a value from a datbase recordset.
11 * src/main/java/org/glom/web/server/libglom/Document.java:
12 Make getDocument() public, so we can use it in a test.
13 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
14 Add testExampleMusiccollectionDataRelated() and call it from
15 testExampleMusiccollectionData(), to do a basic test of using
18 2012-11-22 Murray Cumming <murrayc@murrayc.com>
20 Build: Specify the source encoding.
22 * pom.xml: Set project.build.sourceEncoding
23 This should fix this build problem on some systems:
24 [ERROR] /var/lib/jenkins/workspace/OnlineGlom/src/test/java/org/glom/web/server/libglom/DocumentTest.java:[139,72] error: unmappable character for encoding ASCII
28 2012-11-20 Murray Cumming <murrayc@murrayc.com>
30 Update the jasperreports version.
32 * pom.xml: This was shown by
33 mvn versions:display-dependency-updates
35 2012-11-20 Murray Cumming <murrayc@murrayc.com>
37 Eclipse: Reorder the Java Build Path to fix the build in Eclipse.
39 * .classpath: This prevents an error saying that getTextContent()
41 See http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/
43 2012-11-20 Murray Cumming <murrayc@murrayc.com>
45 Explicitly declare some dependencies (and scopes) that we use.
47 * pom.xml: The dependency report showed what we use.
49 2012-11-20 Murray Cumming <murrayc@murrayc.com>
51 Update the gwt-test-utils version.
53 * pom.xml: gwt-test-utils 0.43 uses GWT 2.5.0, not GWT 2.4.0.
54 Using both in the same project was causing gwt-log to fail in GWTBrige,
56 testOutOfBounds(org.glom.web.server.libglom.DocumentLayoutPathTest):
57 (class: com/google/gwt/core/client/GWT, method: setBridge signature: (Lcom/google/gwt/core/client/GWTBridge;)V) Incompatible argument to function
59 2012-11-19 Murray Cumming <murrayc@murrayc.com>
61 DocumentTest: testLocales(): Update for the latest example version.
63 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
64 The .glom file, updated in the previous commit, now has more translations.
66 2012-11-19 Murray Cumming <murrayc@murrayc.com>
68 Update the .glom files used for tests.
70 * src/test/resources/org/glom/web/server/example_film_manager.glom:
71 * src/test/resources/org/glom/web/server/example_music_collection.glom:
72 * src/test/resources/org/glom/web/server/libglom/example_film_manager.glom:
73 * src/test/resources/org/glom/web/server/libglom/example_music_collection.glom:
74 Copy them from git master of Glom.
76 2012-11-18 Murray Cumming <murrayc@murrayc.com>
78 Update versions of dependencies.
80 * pom.xml: Increase some version numbers based on the output of
81 , using mvn versions:display-dependency-updates.
82 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
83 Use the annotation instead of getModuleName().
84 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
85 Do not use deprecated assert() classes/methods.
87 2012-11-18 Murray Cumming <murrayc@murrayc.com>
89 Document: Correct an import to use the correct Log API.
91 * src/main/java/org/glom/web/server/libglom/Document.java:
92 Use our Utils.Log API rather than the jfree one that Eclipse
93 must have suggested at some time.
95 2012-11-15 Murray Cumming <murrayc@murrayc.com>
97 Details: Get static image data from our images services.
99 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
100 Add constructors for LayoutItemText and LayoutItemImage and
101 deal with their common type instead of just LayoutItemField.
103 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
105 * src/main/java/org/glom/web/client/ui/details/Group.java:
106 createChildWidget(): Use the other DetailsCell constructors for
107 these layout items, and do not add them to the list of
108 cells with data from the database.
109 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
110 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
111 Remove the image data when cloning the layout and storing it in the
112 cache. Clients will instead get it via the URL, from
114 * src/main/java/org/glom/web/server/OnlineGlomImages.java:
115 doGet(): Depending on the URI parameters, optionally get
116 image data from a layout_item_image in the document,
118 * src/main/java/org/glom/web/server/database/DBAccess.java:
119 convertResultSetToDTO(): Move some URIBuilder code to:
120 * src/main/java/org/glom/web/server/Utils.java:
121 Add buildImageDataUrl() taking the primary key, etc, to
122 get data from the database.
124 2012-11-15 Murray Cumming <murrayc@murrayc.com>
126 Document: Static image items: Store an image URL, using the layout path.
128 * src/main/java/org/glom/web/server/Utils.java: Add buildImageDataUrl().
129 * src/main/java/org/glom/web/server/libglom/Document.java:
130 Add a constructor that takes the documentID, for use in the
132 loadLayoutNode(): Pass a Path object to the helper methods, so we
133 can use it to create a URL for LayoutItemImage items.
134 This seems as good a way as any to specify a layout item in the document.
135 * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
136 Pass the documentID to the constructor, for use in the LayoutItemImage
139 2012-11-15 Murray Cumming <murrayc@murrayc.com>
141 Document: Add getLayoutItemByPath().
143 * src/main/java/org/glom/web/server/Utils.java:
144 Add buildLayoutPath() and parseLayoutPath().
145 * src/test/java/org/glom/web/server/LayoutPathTest.java: Test that these
146 utility methods work.
147 * src/main/java/org/glom/web/server/libglom/Document.java:
148 Add Add getLayoutItemByPath().
149 * src/test/java/org/glom/web/server/libglom/DocumentLayoutPathTest.java: Test
152 This will be useful in subsequent commits.
154 2012-11-15 Murray Cumming <murrayc@murrayc.com>
156 Document: Use a better base64 decoder to read static image data.
158 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
159 getNodeTextChildAsValue(): Use the apache commons base64 decoder
160 instead of the gwt one, because it correctly decodes the strings
161 from g_base64_encode(). It is probably more correct.
162 The newlines might be confusing the gwt decoder.
164 2012-11-14 Murray Cumming <murrayc@murrayc.com>
166 Document: Do not use == to compare strings. Use equals().
168 * src/main/java/org/glom/web/server/libglom/Document.java:
169 == only checks that they are the same object, so it can
172 2012-11-14 Murray Cumming <murrayc@murrayc.com>
174 Document: Add and use public constants for layout names.
176 * src/main/java/org/glom/web/server/libglom/Document.java:
177 Make LAYOUT_NAME_DETAILS and LAYOUT_NAME_LIST public.
178 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
179 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
180 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
181 * src/test/java/org/glom/web/server/libglom/DocumentTest.java: Use
182 them here instead of hard-coded the strings repeatedly.
184 2012-11-13 Murray Cumming <murrayc@murrayc.com>
186 Document: Load static text and image items too.
188 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemImage.java:
189 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemText.java:
190 New LayoutItem classes to represent these layout items.
191 * src/main/java/org/glom/web/shared/libglom/layout/StaticText.java: The
192 main text of a LayoutItemText.
193 * src/main/java/org/glom/web/server/libglom/Document.java:
194 load_after_layout_group(): Handle the node types and instantiate the
196 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
197 Add testLayoutItemText() to check that the text is loaded properly.
199 2012-11-13 Murray Cumming <murrayc@murrayc.com>
201 Do not use client.GWT for shared code.
203 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
204 Import shared.GWT instead of client.GWT, which seems to be appropriate.
206 2012-11-12 Murray Cumming <murrayc@murrayc.com>
208 Use image data when recreating databases for testing.
210 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setImageData(),
211 for use locally (not acrosss the network) when recreating databases
213 getValue(): Use it here instead of getImageDataUrl(), noting that
214 this method is only for use when recreating databases.
215 * src/main/java/org/glom/web/server/libglom/Document.java:
216 getNodeTextChildAsValue(): Use it instead of setImageDataUrl().
218 2012-11-09 Murray Cumming <murrayc@murrayc.com>
220 OnlineGlomImages: Detect the mime-type (content type).
222 * src/main/java/org/glom/web/server/OnlineGlomImages.java:
223 doGet(): Instead of hard-coding image/png.
225 2012-11-09 Murray Cumming <murrayc@murrayc.com>
227 Eclipse project files: Use JDK 1.7 instead of JDK 1.6.
230 * .settings/org.eclipse.jdt.core.prefs: By changing the Eclipse
231 Java Compiler and Java Build path settings in the UI.
233 2012-11-09 Murray Cumming <murrayc@murrayc.com>
235 Use the latest (now stable) version of GWT.
237 * pom.xml: And the latest version of the gwt-maven-plugin.
239 2012-11-08 Murray Cumming <murrayc@murrayc.com>
241 Added an Indonesian translation.
243 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
244 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_id.properties:
245 This is from the new translation in Glom.
247 2012-07-23 Murray Cumming <murrayc@murrayc.com>
249 Details: Show images.
251 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
253 * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
254 so it can be used in:
255 * src/main/java/org/glom/web/server/OnlineGlomImages.java: A new servlet just
256 for serving image data.
257 * src/main/webapp/WEB-INF/web.xml: Mention the new servlet.
259 * src/main/java/org/glom/web/shared/DataItem.java: Added get/setImageDataUrl().
260 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
261 setData(): For image field types, add a GWT Image widget,
262 with the URL that was set in the DataItem.
264 * pom.xml: Depend on org.apache.httpcomponents for UriBuilder.
265 * src/main/java/org/glom/web/server/database/DBAccess.java:
266 convertResultSetToDTO(): Set the URL for image data, so the client browser
267 can retrieve the image from our new servlet. This uses UriBuilder.
268 Move getPrimaryKeyField to:
269 * src/main/java/org/glom/web/server/libglom/Document.java:
270 Added getTablePrimaryKeyField().
272 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
273 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
274 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
277 2012-07-22 Murray Cumming <murrayc@murrayc.com>
281 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
282 * src/main/java/org/glom/web/client/OnlineGlomService.java:
283 * src/main/webapp/WEB-INF/web.xml: Change the servlet-name from libGlom
284 to gwtGlom, which is more appropriate.
285 This servlet name does not seem to be visible to the client side anyway.
287 2012-07-22 Murray Cumming <murrayc@murrayc.com>
289 Tests: Make the imports of assert*() consistent.
291 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
292 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
293 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
294 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
295 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
296 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
297 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
298 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
299 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
300 * src/test/java/org/glom/web/shared/DataItemTest.java:
302 import static org.junit.Assert.*;
303 which seems fairly common.
307 2012-07-21 Murray Cumming <murrayc@murrayc.com>
309 tests: Move a test that needs a database connection.
311 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
312 Move testGetListViewLayoutGroup() to
313 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
314 because it needs a database connection.
316 2012-07-21 Murray Cumming <murrayc@murrayc.com>
318 tests: Use @BeforeClass on tearDown().
320 * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
321 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
322 This avoids leaking a postgres process in SelfHostExampleTest.
324 2012-07-21 Murray Cumming <murrayc@murrayc.com>
326 tests: Test translations more.
328 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
329 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
330 Test titles in the non-default locale.
332 2012-07-21 Murray Cumming <murrayc@murrayc.com>
334 tests: Add SelfHostConfiguredDocumentTest
336 * src/test/java/org/glom/web/server/SelfHoster.java: Add getters for the
337 username and password, for use by ConfiguredDocument.
338 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
339 This tests some of the ConfiguredDocument API that requires a database connection.
341 2012-07-21 Murray Cumming <murrayc@murrayc.com>
343 Document: Load title translations and test them.
345 * src/main/java/org/glom/web/server/libglom/Document.java: Load the translations
346 of titles. I am surprised that we do not do this yet.
347 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
348 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
349 Test translations more.
351 2012-07-20 Murray Cumming <murrayc@murrayc.com>
355 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
356 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
357 Set the timeout here too.
359 2012-07-20 Murray Cumming <murrayc@murrayc.com>
361 tests: ConfiguredDocumentTest: Make this pass.
363 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
364 Disable tests that need a database connection.
366 2012-07-20 Murray Cumming <murrayc@murrayc.com>
368 Use Java 1.7 instead of Java 1.6.
370 * pom.xml: Specify the 1.7 JDK, though I don't like how we seem to need
371 to do this twice, at least for Eclipse.
372 This seems OK because it is the current version.
374 2012-07-20 Murray Cumming <murrayc@murrayc.com>
378 * src/main/java/org/glom/web/server/Log.java: Avoid using null strings.
379 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
380 Avoid using a null Connection.
382 2012-07-20 Murray Cumming <murrayc@murrayc.com>
384 tests: Add a ConfiguredDocument test.
386 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
389 2012-07-20 Murray Cumming <murrayc@murrayc.com>
391 LayoutItemFIeld: getName(): Use the Field if it is set.
393 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
394 getName(): If the full field details have been set, return its name, so that
395 callers do not need to set the name separately.
396 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
397 testExampleMusiccollectionData): Do not use a TYPE_FORWARD_ONLY statement,
398 so we can count the rows.
400 2012-07-20 Murray Cumming <murrayc@murrayc.com>
402 tests: SelfHoster: Test SqlUtils too.
404 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
405 Retrieve some data and check it too, as in the regular Glom
406 test_selfhosting_new_from_example.cc test.
407 * src/test/java/org/glom/web/server/SelfHoster.java:
408 createConnection(): Make this public.
410 2012-07-20 Murray Cumming <murrayc@murrayc.com>
412 tests: SelfHoster: createConnection(): Do not warn about expected failures.
414 Let the caller say if the connection is expected to fail, to avoid
415 irrelevant error output.
417 2012-07-20 Murray Cumming <murrayc@murrayc.com>
419 tests: SelfHoster: createAndSelfHostNewEmpty(): Sleep after starting server.
421 * src/test/java/org/glom/web/server/SelfHoster.java:
422 createAndSelfHostNewEmpty(): Sleep initially, to avoid distracting errors
423 due to the inevitable need to retry the connection while the database server
426 2012-07-20 Murray Cumming <murrayc@murray.com>
428 tests: SelfHoster: createConnection(): Set a timeout.
430 * src/test/java/org/glom/web/server/SelfHoster.java:
431 createConnection(): Use setLoginTimeout() because it otherwise seems to take
432 ages to actually return when it fails.
434 2012-07-20 Murray Cumming <murrayc@murrayc.com>
436 tests: SelfHoster: selfHost(): Close the test connection.
438 * src/test/java/org/glom/web/server/SelfHoster.java: selfHost():
439 When we check that the connection works, close the connection. This seems
440 to not be closed automatically otherwise.
442 2012-07-20 Murray Cumming <murrayc@murrayc.com>
444 Use slf4j-simple to see JDBC errors.
446 * pom.xml: Depend on slf4j-simple so we can see errors from JDBC.
448 2012-07-19 Murray Cumming <murrayc@murrayc.com>
450 SelfHoster.discoverFirstFreePort(): Close the socket.
452 * src/test/java/org/glom/web/server/SelfHoster.java:
453 discoverFirstFreePort(): Close the socket. Eclipse Juno warns about this.
455 2012-07-19 Murray Cumming <murrayc@murrayc.com>
457 Avoid another code warning in Eclipse Juno.
459 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
460 Do instanceof checks on the FileUtils.listFiles() result and its
463 2012-07-13 Murray Cumming <murrayc@murrayc.com>
465 Avoid some code warnings in Eclipse Juno
467 * src/main/java/org/glom/web/server/libglom/Document.java:
468 getNodeTextChildAsValue(), setNodeTextChildAsValue(): Handle the invalid type.
469 * src/test/java/org/glom/web/server/SelfHoster.java
470 createTextFile(): Make sure that the FileOutputStream is closed.
472 2012-06-22 Murray Cumming <murrayc@murrayc.com>
474 Added OnlineGlomPropertiesTest.
476 * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
477 Make sure we never return a null string.
478 * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
479 Added tests of the OnlineGlomProperties API, using our sample file.
481 2012-06-20 Murray Cumming <murrayc@murrayc.com>
483 Make OnlineGlomProperties be a normal class.
485 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
486 Move OnlineGlomProperties into its own file to be a regular class:
487 * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
488 This makes testing simpler.
490 2012-06-15 Murray Cumming <murrayc@murrayc.com>
492 OnlineGlomServiceImpl.init(): Move some code into a new method.
494 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
495 Create addDocument().
497 2012-06-15 Murray Cumming <murrayc@murrayc.com>
499 OnlineGlomServiceImpl.OnlineGlomProperties: Improve getKey().
501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
502 OnlineGlomProperties.getKey(): Make this more robust by moving the
503 check for *.*.filename to here.
505 2012-06-15 Murray Cumming <murrayc@murrayc.com>
507 OnlineGlomServiceImpl: Improve the OnlineGlomProperties class.
509 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
510 init(): Move knowledge of the config file format into the
511 OnlineGlomProperties inner class.
513 2012-06-15 Murray Cumming <murrayc@murrayc.com>
515 SelfHostExampleTest: Make sure we cleanup on failure.
517 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: Move
518 the use of cleanup() to a tearDown() JUnit method.
522 2012-06-12 Murray Cumming <murrayc@murrayc.com>
524 ConfiguredDocument: Add a primary key to portals at least once.
526 * src/main/java/org/glom/web/server/ConfiguredDocument.java
527 updatePortalsExtras): Fix a typo so that we add the primary key
528 column at least once.
529 This is a fix for the previous commit:
530 ConfiguredDocument: Do not add a primary key to portals each time.
532 2012-06-08 Murray Cumming <murrayc@murrayc.com>
534 SelfHoster: Avoid some compiler warnings.
536 * src/test/java/org/glom/web/server/SelfHoster.java
537 executeCommandLineAndWait():
538 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess(): Comment out
539 the now-unused streams for stdout and stderr from the command Processes.
540 These are not used because readln() hangs while waiting for a new line,
541 where there may be no next line. The commented out code is still there
542 to help us figure out how to do this properly.
544 2012-06-08 Murray Cumming <murrayc@murrayc.com>
546 LayoutItemPortalDeepCloneTest: Test something to avoid warnings.
548 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
549 Make this actually test the cloning again, though it is not very useful
550 now that we do not use the part that had a problem with cloning before.
552 2012-06-08 Murray Cumming <murrayc@murrayc.com>
554 SelfHoster: Keep trying pg_ctl after starting postgres.
556 * src/test/java/org/glom/web/server/SelfHoster.java
557 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess():
558 Try pg_ctl repeatedly (for ever) until it succeeds, as we do in
559 regular Glom. This seems mad but it seems to work because the first
560 command would fail if pg_ctl would eventually fail.
562 2012-06-08 Murray Cumming <murrayc@murrayc.com>
564 SelfHoster: Wait until the server is really ready.
566 * src/test/java/org/glom/web/server/SelfHoster.java
567 selfHost(): Attempt the connection after starting the server, retrying
568 a few times if necessary, so that the server is really ready already when
569 we return from this method.
570 The regular Glom code does this too because pg_ctl reports success too soon.
572 2012-06-08 Murray Cumming <murrayc@murrayc.com>
574 ConfiguredDocument: Do not add a primary key to portals each time.
576 * src/main/java/org/glom/web/server/ConfiguredDocument.java
577 updatePortalsExtras(): Only add an extra primary key field if there is
578 none, to avoid adding one each time we retrieve the details layout from the
580 This should fix bug #676986 (Ben Konrath)
582 2012-05-25 Murray Cumming <murrayc@murrayc.com>
584 Document.load(): Support version 7 documents.
586 * src/main/java/org/glom/web/server/libglom/Document.java: Load the
587 database_title attribute if the title attribute is not there.
590 2012-05-24 Ben Konrath <ben@bagu.org>
592 Add configuration for auto-generating mvn:i18n from with Eclipse.
594 * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
596 2012-05-24 Murray Cumming <murrayc@murrayc.com>
598 Update translations, adding French.
600 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
601 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_fr.properties:
602 Add a French translation, using the translation from Glom.
604 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
605 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
606 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
607 Update these based on the translations from Glom.
609 2012-05-24 Murray Cumming <murrayc@murrayc.com>
611 SelfHoster: Add some debug println messages to help when things fail.
613 * src/test/java/org/glom/web/server/SelfHoster.java: Add several
614 System.out.println() lines.
616 2012-05-23 Murray Cumming <murrayc@murrayc.com>
618 Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
620 * src/test/java/org/glom/web/server/SelfHoster.java:
621 getPathToPostgresExecutable(): Try some common paths (as on Ubuntu, for
622 instance) instead of just /usr/bin (as on Fedora). Check the result when
625 2012-05-23 Murray Cumming <murrayc@murrayc.com>
627 Remove LayoutItemPortal.get/setNavigationTable().
629 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
630 Remove get/setNavigationTable(), which is only a cache, because it is not
631 used, and does not need to be used, because that decision should be made on
633 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
634 updatePortalsExtras():
635 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
636 getNavigationRecord():
637 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
640 2012-05-21 Murray Cumming <murrayc@murrayc.com>
642 Initial self-hosting for tests.
644 * pom.xml: Change the scope for log4j, to hopefully make it
645 available to the test code which uses it indirectly via jOOQ.
646 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Allow
647 self-hosting, though we only use it for testing.
649 * src/main/java/org/glom/web/server/libglom/Document.java:
650 example rows: Use a map instead of a list for each row of values,
651 so we know what field they are for, instead of relying on the sequence
652 being correct. This is not very efficient, but it does not really need
654 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
655 testReadTableExampleRows(): Adapted.
657 * src/main/java/org/glom/web/shared/DataItem.java: Added getValue()
658 that returns an Object, for generic use. Note that Object seems to be
659 the implicit base even of double.
660 * src/main/java/org/glom/web/shared/libglom/Field.java: Add getSqlType(),
661 for use in CREATE TABLE SQL queries.
662 * src/test/java/org/glom/web/server/SelfHoster.java: Add this class
663 to do self-hosting of PostgreSQL databases via its command-line
664 utilities, based on Glom's C++ code in test_selfhosting_utils.cc and
665 backends/postgres_self.cc. This is incomplete - it needs more
666 warnings about failures and it needs to clean up properly when things
668 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple
669 test of this new class.
671 2012-05-21 Murray Cumming <murrayc@murrayc.com>
673 Document: loading example data: Handle exceptions.
675 * src/main/java/org/glom/web/server/libglom/Document.java:
676 DateFormat.parse() and Double.valueOf() can throw exceptions, though
677 Eclipse did not warn about that.
679 2012-05-20 Murray Cumming <murrayc@murrayc.com>
681 Document: load(), save(): Handle the example rows.
683 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate()
685 * src/main/java/org/glom/web/server/libglom/Document.java:
686 load(), save(): Load and save the example rows, though the date, time
687 and image types are not handled properly yet.
688 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
689 Add testReadTableExampleRows() just to check that something is read.
691 2012-05-20 Murray Cumming <murrayc@murrayc.com>
693 Document: Add save().
695 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
696 Added getTranslationsMap() for use while saving.
697 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
698 Adedd getUseDefaultFormatting() for use while saving.
699 * src/main/java/org/glom/web/server/libglom/Document.java: Added save()
700 and several private methods that it uses.
702 This will be useful while testing via self-hosting.
703 It is not complete, but should be complete enough for testing.
705 2012-05-17 Murray Cumming <murrayc@murrayc.com>
707 OnlineGlomService: Simplify the getList/RelatedViewData() methods.
709 * src/main/java/org/glom/web/client/OnlineGlomService.java
710 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
712 Remove getSortedListViewData() and getSortedRelatedListData(), adding
713 the sort column index and ascending bool to the regular method.
714 Instead, a sort column index of -1 now means no sort.
715 This is less explicit, but it's fairly simple, reduces the amount of
716 code, and makes the OnlineGlomService API slightly smaller.
717 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
718 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
720 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
721 getListViewData(), getRelatedListData():
722 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
723 getListViewData(), getRelatedListData():
724 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
726 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
728 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
733 2012-05-16 Murray Cumming <murrayc@murrayc.com>
735 Use translations for top-level groups too.
737 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
738 updateTitlesForLocale(): Use the translation for the group
739 as well as for child items.
743 Just recompiled to fix a problem in the released .tar.gz file.
747 2012-05-15 Murray Cumming <murrayc@murrayc.com>
749 Corrections to navigation to related records.
751 * src/main/java/org/glom/web/client/OnlineGlomService.java:
752 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
754 getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
755 getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a
756 relationship name, because the relationship name is not necessarily unique
758 TOOD: This is inefficient, because it passes the whole list of
759 child field items back to the server, but it is more correct, and happens
760 to fix a bug with the primary key being lost after a few navigations.
761 There is probably a chance to make this more efficient anyway in some
764 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
765 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
766 * src/main/java/org/glom/web/server/ConfiguredDocument.java
767 * src/main/java/org/glom/web/server/database/DBAccess.java
768 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
769 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
772 2012-05-15 Murray Cumming <murrayc@murrayc.com>
774 Fix the use of translations.
776 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
777 Add updateTitlesForLocale().
778 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
779 Call it to discard unwanted translations and to make getTitle() return
780 the wanted translation wihout the need for the client code to specify a locale.
781 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
782 getTitle(): Fallback to the original title, as libglom does.
784 2012-05-15 Murray Cumming <murrayc@murrayc.com>
786 Document: Correctly report the number of available translation locales.
788 * src/main/java/org/glom/web/server/libglom/Document.java: Fill
789 the available locale IDs list.
790 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
791 testLocales: Test this.
793 2012-05-15 Murray Cumming <murrayc@murrayc.com>
795 SqlUtils: Use camelCase.
797 * src/main/java/org/glom/web/server/SqlUtils.java: Use camelCase.
798 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
799 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
800 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
801 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
802 * src/main/java/org/glom/web/server/ReportGenerator.java: Adapt.
804 2012-05-15 Murray Cumming <murrayc@murrayc.com>
806 Use jOOQ's tableByName() and fieldByName.
808 * pom.xml: Use jOOQ 2.3.1 to get the new API.
809 * src/main/java/org/glom/web/server/SqlUtils.java:
810 build_sql_select_step_with_where_clause(), .createField(),
811 builder_add_join(): Use Factory.tableByName() and Factory.fieldByName()
812 so we can get correct quoting and escaping. Thanks to Lukas Eder for
813 adding this, and other things, to jOOQ.
815 2012-05-15 Murray Cumming <murrayc@murrayc.com>
817 SqlUtils: Remove the Connection parameters.
819 * src/main/java/org/glom/web/server/SqlUtils.java:
820 build_sql_select_with_key(), build_sql_select_with_where_clause(),
821 createSelect(), build_sql_select_step_with_where_clause(),
822 build_sql_count_select_with_where_clause(),
823 build_sql_select_count_rows(): Remove the Connection parameter because
824 jOOQ does not actually need a connectionwhen it is just used to build
826 https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
828 * src/main/java/org/glom/web/server/ReportGenerator.java:
830 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
832 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
833 Constructor, getListData(), getResultSizeOfSQLQuery():
834 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
835 getSelectQuery(), getCountQuery():
836 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
837 getSelectQuery(), getCountQuery():
838 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
839 getNavigationRecord(): Adapted.
841 2012-05-14 Murray Cumming <murrayc@murrayc.com>
845 * src/main/java/org/glom/web/server/SqlUtils.java:
846 get_find_where_clause_quick(): Use a comparison of
847 lowercase values, instead of a simple equals. Regular Glom
848 uses the PostgreSQL ILIKE operator but jOOQ does not
849 support that just yet, though it will soon.
851 2012-05-14 Murray Cumming <murrayc@murrayc.com>
853 TableToViewDetails: Use a real serialization ID.
855 * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
856 Though this does not fix the serialization problem.
858 2012-05-12 Murray Cumming <murrayc@murrayc.com>
860 Added LayoutItemPortalDeepCloneTest.
862 2012-05-11 Murray Cumming <murrayc@murrayc.com>
864 Make navigation work again.
866 * src/main/java/org/glom/web/server/libglom/Document.java:
867 Add getLayoutItemFieldShouldHaveNavigation().
868 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
869 Replace get/setAddNavigation() with the partly-existing
870 get/setNavigationTableName(), with an empty string being no navigation,
871 because this is simpler. Use the new
872 Document.getLayoutItemFieldShouldHaveNavigation() method to set this.
874 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
875 Add updateFieldsExtras() and call setNavigationTableName in it.
876 getDetailsLayoutGroup(),
877 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
878 createLayout(): Adapted.
879 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
880 Constructor: Adapted.
882 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
883 Replace get/setAddNavigation() with get/setNavigation(), returning a
884 TableToViewDetails class with both the table name and UsesRelationship,
885 because both are need. The previous code used java-libglom's output
886 variable (strangely, via sharedptr) to return both, but we cannot really
888 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
889 getNavigationRecord(): Adapt. However, we cannot actually use the cache
890 here because it somehow gets set to null during deepCopy(). I must test this.
891 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
892 testGetSuitableTableToViewDetails(): Adapted.
894 TODO: Find out why deepClone() is not quite working.
896 2012-05-11 Murray Cumming <murrayc@murrayc.com>
898 DBAccess: Simplify the retrievel of full field details.
900 * src/main/java/org/glom/web/server/database/DBAccess.java
901 getFieldsToShowForSQLQueryAddGroup(). This might be unnecessary anyway,
902 because the Document loading should have done this.
904 2012-05-11 Murray Cumming <murrayc@murrayc.com>
906 Document: Correct loading of doubly-related layout fields.
908 * src/main/java/org/glom/web/server/libglom/Document.java:
909 loadUsesRelationship(): Actually set the related relationship, instead
910 of only setting it if it's not found.
912 2012-05-09 Murray Cumming <murrayc@murrayc.com>
914 Replace all appearances of Colour with color.
916 Because US English is dominant.
918 2012-05-09 Murray Cumming <murrayc@murrayc.com>
920 Use colors in HTML format, solving a warning about an unused function.
922 * src/main/java/org/glom/web/shared/libglom/NumericFormat.java
923 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
924 Add *asHTMLColor() versions of methods.
925 TODO: However, we should create and cache the results on the server.
926 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
927 * src/main/java/org/glom/web/client/ui/list/ListTable.java
928 * src/main/java/org/glom/web/server/ConfiguredDocument.java
929 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
930 Use the asHTMLcolor() versions.
932 2012-05-09 Murray Cumming <murrayc@murrayc.com>
934 ListViewTable: Constructor: Take the table name as a parameter.
936 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
937 Constructor: Take the tableName, and set the member variable, because
939 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
940 setCellTable(): Pass the table name.
941 This makes navigation to non-default tables work again. I don't know
942 why it worked before in the master branch.
944 2012-05-07 Murray Cumming <murrayc@murrayc.com>
946 ConfiguredDocument: Restore correct addition of hidden primary key items.
948 * src/main/java/org/glom/web/client/ui/list/ListTable.java
949 (ListTable.createCellTable): Uncomment out the check for the hidden
951 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Only
952 add primary key items for top-level lists and portals, as before,
953 instead of adding them to each group.
954 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java:
955 Actually implement the extra methods such as setHiddenPrimaryKey() and
956 comment that these are used only for top-level list groups and in portals.
957 This strangeness suggests even more that this should not be squeezed
958 into the LayoutGroup class.
960 2012-05-07 Murray Cumming <murrayc@murrayc.com>
962 Fix Formatting loading.
964 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
965 getFormattingUsed(): Remove the duplicate Formatting member variable
966 in favour of the one from the base class.
967 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
968 Initialize a new Formatting instead of using null by default, so we
969 have some defaults, instead of having to initialize one later just to
970 get the same defaults. This also makes loading of formatting from the
971 document work, because that expected a non-null.
973 2012-05-07 Murray Cumming <murrayc@murrayc.com>
975 RelatedListTable: Make sure that the tableName is set.
977 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
978 Constructor: Take the tableName so it is available later. Otherwise,
979 the server assumes that we mean the default table and cannot find the
981 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
982 setData(): Pass the tableName to the RelatedListTable constructor.
984 2012-05-07 Murray Cumming <murrayc@murrayc.com>
988 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
989 RelatedListNavigationButtonCell.onEnterKeyDown(), setData():
990 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
992 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
994 * src/main/java/org/glom/web/server/database/DBAccess.java:
995 convertResultSetToDTO(), getPortal():
996 * src/main/java/org/glom/web/server/database/ListDBAccess.java
998 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
999 Add checks for null objects and out of range access, with log messages to
1000 give hints so we can fix these properly.
1002 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1004 Portals: some corrections.
1006 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1008 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1009 constructor: Use getRelationshipNameUsed() instead of getName(), because
1010 that is what is meant.
1011 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1012 getFromField(): Fix a typo, to get the field name, not the table name.
1013 * src/main/java/org/glom/web/server/database/DBAccess.java:
1014 getPortal(): Fix a typo that stopped this from working.
1016 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1018 LayoutItemPortal: Also override getTitleOriginal().
1020 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1021 This lets the base getTitle() with no parameters work.
1022 TODO: Test this properly.
1024 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1026 LayoutItemPortal: getTitle*(): Use the relationship title.
1028 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1030 LayoutItemField: Fix loading of custom titles.
1032 * src/main/java/org/glom/web/server/libglom/Document.java
1033 loadDataLayoutItemField(): The title, if any, instead of the field
1034 title, is stored in a title_custom node. Load it from there.
1035 * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
1037 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
1038 Add getCustomTitle() and use it, instead of super.getTitle*(), in the
1039 getTitle*() overrides.
1040 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1043 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1045 LayoutItemField: Fall back to field titles, so some are really shown.
1047 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
1048 Override getTitleOriginal() and getTitle(), as in java-libglom.
1049 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1050 Test this behaviour.
1052 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1054 Correct use of setExpectedResultSize().
1056 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1057 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
1058 Use setExpectedResultSize only on top-level groups (for instance, the
1059 list layout) or on child portals (in details views).
1060 Use the correct table name for portals to avoid SQL errors.
1061 Update the expected counts when returning cached layouts.
1063 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1065 Document: Interpret no group column count as 1.
1067 * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
1068 default, though we now check for this in the UI code anyway.
1070 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1074 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1076 Translatable: Use Hashmap instead of Treemap because GWT supports it.
1078 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
1079 The use of Treemap lead to this error from async methods, with no
1081 "The response could not be deserialized"
1083 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1085 OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
1087 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary
1088 when using the Google -> GWT Compile, or
1089 g toolbar button -> GWT Compile Project... feature in Eclipse.
1091 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1093 ListTable.addColumn(): Protect against a null Formatting.
1095 * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
1096 Create a default Formatting if it is null, because that is the simplest
1099 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1101 ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
1103 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1104 updateLayoutGroup(): Check that the field is not null.
1106 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1108 ListViewImpl: Protected against a bad cast error.
1110 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1111 onEnterKeyDown(): Do not cast without an instanceof check.
1113 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1115 ListTable: Protect against an out of range error.
1117 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1118 createCellTable(): This is unlikely, but can happen while debugging.
1120 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1122 AsyncMessage onFailure() callbacks: Log the exception message.
1124 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1125 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1126 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1127 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1128 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1129 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1130 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1131 These are useful clues when something is wrong.
1133 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1135 ConfiguredDocument: Avoid a null dereference.
1137 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1138 TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and
1139 details maps are created.
1141 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1143 Document: Correct the port number parsing.
1145 * src/main/java/org/glom/web/server/libglom/Document.java:
1146 This lets us actually connect to the database and show the document.
1148 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1152 * pom.xml: Use htmlunit mode for gwt:test, because the default demands
1153 user-interaction, asking us to load a temporary URL in a browser.s
1154 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
1155 which is apparently necessary for testing the service. See the comment.
1156 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1157 Show the exception, if any. This is how I saw the 404 in the HTML in
1160 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1162 DocumentTest: Move the .glom files into the resources directory.
1164 * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
1165 URI via getResource().
1167 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1169 Document: Remove the FieldIdentifies inner class.
1171 * src/main/java/org/glom/web/server/libglom/Document.java: We only
1172 use the Relationship (though the same function in libglom is maybe
1173 used in other ways) and so this removes a compiler warning.
1175 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1177 Document.load() Remove the error code parameter.
1179 * src/main/java/org/glom/web/server/libglom/Document.java: load():
1180 Remove the parameter. We do not set it yet and it could never have
1181 worked as an output parameter (though maybe it did in java-libglom).
1182 We could use an exception if we really want the failure reason.
1183 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1185 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
1186 setUp(), testGetSuitableTableToViewDetails(): Adapt.
1188 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1190 Make some inner classes static.
1192 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1193 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1194 * src/main/java/org/glom/web/server/ReportGenerator.java
1195 * src/main/java/org/glom/web/server/libglom/Document.java
1196 Make all inner classes static that can be static.
1198 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1200 OnlineGlomServiceImpl: Do not load and check for java-libglom.
1202 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1203 init(): We do not use java-libglom any more.
1205 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1207 Remove mentions of java-libglom.
1209 * README: Remove mention of java-libglom, because it no longer needed.
1210 * utils/build-onlineglom-war.sh:
1211 * utils/check-and-recover-tomcat.py:
1212 * utils/install-onlineglom-war.sh: Remove these as they are no longer
1213 useful. Building is now far easier, with no need for jhbuild.
1215 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1217 Fix the build (mvn package)
1219 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
1220 (LayoutGroup): Make the LayoutItemList inner class static and protected.
1221 Otherwise the GWT Java->Javascript compilation fails with just this
1222 error, during mvn package or when attempting to view in a browser,
1223 in the GWT developer mode in Eclipse.
1225 [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
1226 [INFO] auto discovered modules [org.glom.web.OnlineGlom]
1227 [INFO] Compiling module org.glom.web.OnlineGlom
1228 [INFO] [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
1229 [INFO] [ERROR] Line 46: Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
1230 [INFO] Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1231 [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
1232 [INFO] [WARN] org.glom.web.client.OnlineGlomService_Proxy
1233 [INFO] [ERROR] Cannot proceed due to previous errors
1235 It has taken me 2 days to find out what was causing that. After reducing
1236 the code, the compiler eventually showed me the full error message.
1238 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1240 ConfiguredDocument: Cache the cloned and stripped layouts.
1242 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1243 getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
1244 layout in a map, so we can retrieve it again without rebuilding it.
1246 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1248 UsesRelationshipImpl: Complete the relationshipEquals() implementation.
1250 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1252 libglom classes: Implement some auto-generated emthods.
1254 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1256 Add GwtTestOnlineGlomService.
1258 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1259 However, this (and the other GwtTest*) does not seem to run during
1262 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1264 Remove use of unsupported features from client code.
1266 * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
1267 * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
1268 * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
1269 Use our client version of StringUtils instead of the apache commons one.
1271 However, the GWT Javascript compliation still fails.
1273 2012-04-25 Murray Cumming <murrayc@murrayc.com>
1275 Add a Field class and implement some loading of it in Document.
1277 2012-04-25 Murray Cumming <murrayc@murrayc.com>
1279 Initial Document loading implementation, instead of libglom.
1281 * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
1282 and Translatable classes, and adapt the rest of the code to use them.
1283 However, this is still missing Layout and Field classes and loading.
1285 2012-04-24 Murray Cumming <murrayc@murrayc.com>
1287 Use of jOOQ: Move Field creation into a utility method.
1289 * src/main/java/org/glom/web/server/SqlUtils.java:
1290 This lets us improve it more easily.
1292 2012-04-24 Murray Cumming <murrayc@murrayc.com>
1294 Use of jOOQ: Improve the code to COUNT a sub-select.
1296 * src/main/java/org/glom/web/server/SqlUtils.java:
1297 Move initial query creation into
1298 build_sql_select_step_with_where_clause().
1299 build_sql_select_count_rows(): Use the jOOQ API instead of
1300 concatentating text, because a jOOQ Select*Step is a TableLike,
1301 which is what from() takes.
1303 2012-04-23 Murray Cumming <murrayc@murrayc.com>
1305 Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
1307 * pom.xml: Depend on jooq.
1308 * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
1309 methods with jOOQ, based on the C++ implementations in libglom,
1310 with some changes to the logic required by jooQ.
1311 Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
1313 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1314 * src/main/java/org/glom/web/server/ReportGenerator.java:
1315 * src/main/java/org/glom/web/server/SqlUtils.java:
1316 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1317 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1318 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1319 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1320 * src/main/java/org/glom/web/server/database/RelatedListNavigation:
1321 Adapt. In particular, the SqlUtils methods now need to take a Connection,
1322 because jOOQ needs that, though it seems unnecessary.
1324 This is not quite finished. Ideally jOOQ would help us to build
1325 table_name.field_name names, quoting and escaping them properly.
1326 See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
1328 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1330 Move use of Glom.build_sql*() into a new SqlUtils class.
1332 * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
1333 to wrap Glom.build_sql*(). The parameter types are still Glom one,
1334 but this will make it easier to start using something other than
1335 libglom or SqlBuilder.
1337 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1339 Update the project URL.
1341 * pom.xml: Use an OnlineGlom-specific URL for the project URL.
1343 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1345 Main layout: Use a FlowTable instead of absolute positioning.
1347 * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
1348 The RootLayoutPanel is a (extends) AbsolutePanel, so each of its
1349 child panels/widgets must have an absolute position. But that is annoying, so
1350 this adds a FlowTable and puts the child panels in there.
1352 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1354 GwtTestOnlineGlom: Comment out unused code.
1356 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1357 Eclipse has started to say that some code is unused.
1359 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1361 Update to the latest versions of dependencies.
1363 * pom.xml: Update version numbers of dependencies to the latest
1365 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1366 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1367 * src/main/java/org/glom/web/server/ReportGenerator.java:
1368 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1369 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1370 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
1372 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1373 Modify the imports where necessary.
1375 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1377 Style: Remove overflow:hidden from searchbox
1379 * src/main/webapp/style.css: Because this pushes the Back To Link
1380 label/link on to the next row, which is then hidden due to the
1381 hard-coded (in ems) height.
1383 2012-04-20 Murray Cumming <murrayc@murrayc.com>
1385 Remove some duplicate code.
1387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1388 getDocumentInfo(): This must have been duplicated during the merge from the
1393 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1395 Reports: Localize the waiting for report message.
1397 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1398 start(): Get the message from the contants.
1399 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1400 Add the string here.
1401 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1402 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1403 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1404 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1405 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1406 Update these files with the English text for newer strings for now.
1408 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1410 Reports: Show a message while waiting for the report.
1412 * src/main/java/org/glom/web/client/ui/ReportView.java
1413 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1414 Add setWaitingText(), to show a message saying that we are
1415 waiting for the report to be ready.
1416 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1417 start(): Call setWaitingText() before calling the async
1420 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1422 ReportGenerator: Specify date and time formats.
1424 * src/main/java/org/glom/web/server/ReportGenerator.java:
1425 createFieldValueElement(): Use the default (and localized)
1426 short formats, though we still need a way to show 4-digit
1427 years without providing the format for every locale.
1428 * src/main/java/org/glom/web/server/database/DBAccess.java:
1429 convertResultSetToDTO(): Use the short formats here too.
1431 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1433 ReportGenerator: Use the correct numeric formatting.
1435 * src/main/java/org/glom/web/server/ReportGenerator.java
1436 createFieldExpression(), createFieldValueElement(): Take the
1437 whole LayoutItem_Field instead of just the field name, so
1438 we have access to the formatting.
1439 createFieldValueElement(): Use JRTextField.setPattern() to
1440 specify the numeric formatting, with the help of a
1441 regular DecimalFormat.
1443 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1445 ReportGenerator: Avoid showing null for group by titles.
1447 * src/main/java/org/glom/web/server/ReportGenerator.java
1448 generateReport(): Use setBlankWhenNull() on the field title
1449 style too, because this is used for values in group by
1452 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1454 ReportGenerator: Add a colon to titles in vertical groups.
1456 * src/main/java/org/glom/web/server/ReportGenerator.java
1457 addFieldToDetailBandVertical(): Pass true for the withColon
1460 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1462 ReportGenerator: Simplify the code by using Position more.
1464 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1466 Reports: Support vertical groups, roughly.
1468 * src/main/java/org/glom/web/server/ReportGenerator.java:
1469 addToReport(): Rename to addGroupToReport() and, if necessary,
1470 call the new addVerticalGroupToReport() method.
1471 createFieldValueElement(): Let the caller specify the Y position
1474 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1476 Reports: Allow a second report to be shown.
1478 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1479 clear(): Do not remove the HTML widget, which broke the whole layout.
1481 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1483 Locales drop-down: Show that we use English by default.
1485 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1486 fillView(): When we use English, just because that is the default, when
1487 no locale is specified, show that in the Locales drop-down instead of
1488 just showing the first item.
1490 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1492 Unselect the Report/Locale/Table combo item when appropriate.
1494 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1495 setPlace(): clear reportName if this is not a ReportPlace.
1496 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1497 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
1498 When the provided name is empty, unselect all items, so that none are
1499 indicated. This uses a for loop because I cannot find a single method
1502 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1504 Report: Give the user a way to get back to the list.
1506 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1507 start(), setPlace(): Show the Back To List link on reports, and also
1508 interpret selecting the empty report item as back to list.
1510 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1512 Really show the selected Report name.
1514 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1515 setPlace(): Store the reportName here, if it is that kind of Place.
1516 fillView(): Set the selected Report after filling the list of reports.
1517 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1518 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
1519 null Strings, though we need some way to unselect all ListBox items
1522 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1524 ReportGenerator: Try to avoid some problems.
1526 * src/main/java/org/glom/web/server/ReportGenerator.java
1527 addField(): Try to avoid duplicates, and avoid using a null
1530 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1532 Reports: Use quickFind.
1534 * src/main/java/org/glom/web/client/OnlineGlomService.java;
1535 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1536 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1537 getReportHTML(): Add a quickFind parameter.
1538 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1539 start(): Pass the quickFind parameter.
1540 * src/main/java/org/glom/web/server/ReportGenerator.java
1541 generateReport(): Take a quickFind parameter.
1543 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1545 ReportPlace: Actually use the report name.
1547 * src/main/java/org/glom/web/client/place/ReportPlace.java
1548 getPlace(): Do not assign the report name to the quickfind.
1550 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1552 Show java.library.path when complaining.
1554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1555 init(): When telling us to check java.library.path, show the
1558 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1560 ReportGenerator: Do not show nulls.
1562 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1564 ReportGenerator: Make the title font larger.
1566 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1568 ReportGenerator: Put field titles inside groups, if there are groups.
1570 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1572 ReportGenerator: Take the Report itself instead of the name and group.
1574 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1575 Remove getReportLayoutGroup().
1576 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1577 getReportHTML(): Pass the report instead
1578 of its name and layout group.
1579 * src/main/java/org/glom/web/server/ReportGenerator.java
1580 generateReport(): Use the report object to use the title
1581 instead of the name.
1583 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1585 ReportGenerator: Remove designBand parameters.
1587 * src/main/java/org/glom/web/server/ReportGenerator.java:
1588 Make designBand a class member instead of passing it to all
1591 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1593 ReportGenerator: Add lines, a bit like in the desktop version.
1595 * src/main/java/org/glom/web/server/ReportGenerator.java
1596 addToReport(): Use JRDesignLine.
1598 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1600 ReportGenerator: Correct the title positions and use some bold style.
1602 * src/main/java/org/glom/web/server/ReportGenerator.java:
1603 Break the code up into reusable functions, correct the placement of
1604 titles, and use normal/bold styles as in the reports in the desktop
1607 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1609 ReportGenerator: Add a header band to show the field titles.
1611 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1612 getReportHTML(): Pass the localeId to the ReportGenerator
1614 * src/main/java/org/glom/web/server/ReportGenerator.java
1615 constructor: Take the localeID so we can get translated field
1617 generateReport(), addToReport(), addFieldToBand(): Add field
1618 titles in a column header band.
1620 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1622 Reports drop-down list: Some improvement.
1624 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1625 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1626 Adedd setSelectedReport(),
1627 setReportList(): Add a blank line so that the user can select the
1629 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1630 start(): Show the current report by calling setSelectedReport().
1631 This does not seem to work yet.
1633 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1635 DetailsActivity, ListActivity: Move some variables into a base class.
1637 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1638 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
1639 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
1640 the clientFactory, documentID, tableName and authenticationPopup into
1641 a base class, to avoid duplication.
1643 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1645 Translate the Reports label.
1647 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1648 Get the "Reports" label string from the constants.
1649 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
1650 perties: Add Reports to the constants.
1652 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1654 Reports: Implement grouping.
1656 * src/main/java/org/glom/web/server/ReportGenerator.java:
1657 Handle LayoutItem_GroupBy items and try to do the right thing
1658 with JRDesignGroup. It seems to work.
1660 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1662 Actually show some data with JasperReports.
1664 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1665 getReportHTML(): Move most code into a ReportGenerator class.
1666 * src/main/java/org/glom/web/server/ReportGenerator.java:
1667 Recurse into sub-groups, adding fields to the JasperDesign's details
1668 band. Note that we must set an arbitrary width and height, or it just
1669 will not show any data.
1671 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1673 Reports Chooser: Show the titles, not the names.
1675 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1676 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
1677 and the names as the values.
1678 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1679 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
1680 group now that we provide the report name, so it should always
1683 2012-02-15 Murray Cumming <murrayc@murrayc.com>
1685 Depend on jasperreports.
1687 * pom.xml: Add the dependency. My plan is to use this on the
1690 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1692 Implement navigation to report places.
1694 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1695 start(): Do not bother to handle all events here.
1696 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1697 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1698 Added getSelectedReport().
1699 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1700 .java: start(): When handling a change to the reports chooser,
1701 call getSelectedReport() and goTo() its ReportPlace.
1702 * src/main/java/org/glom/web/client/ui/ReportView.java
1703 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1704 Added setReportHTML() which puts the html in a gwt HTML widget.
1705 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1706 getReportHTML(): Return "TODO" just to show that this works.
1708 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1710 Make ReportPlace usable.
1712 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1713 Mention ReportPlace.
1714 * src/main/java/org/glom/web/client/place/ReportPlace.java:
1715 Correct the @prefix annotation.
1717 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1719 OnlineGlomService: Return report HTML rather than the LayoutGroup.
1721 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1722 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1723 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1724 Change getReportLayout() to getReportHMTL() because we will not need to
1725 parse or render the report layout on the client side.
1726 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1727 getReportLayout(): Return the libglom LayoutGroup type because we will
1728 not need to convert to a shared type, because this will not be used on
1730 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1733 Note that there is still no implementation for this.
1736 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1738 Add a (empty) Report Place, View, and Activity.
1740 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1742 * src/main/java/org/glom/web/client/place/HasTablePlace.java
1743 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
1744 this into a superclass:
1745 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
1746 and also use it as the base of this new ReportPlace:
1747 * src/main/java/org/glom/web/client/place/ReportPlace.java
1749 * src/main/java/org/glom/web/client/ui/ReportView.java
1750 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
1751 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1752 Add these, containing mostly boiler-plate for now.
1754 * src/main/java/org/glom/web/client/OnlineGlomService.java
1755 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1756 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1757 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1758 Add API to get the LayoutGroup for the report.
1760 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1762 Add and fill a Reports drop-down list box.
1764 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1766 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1767 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1768 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1769 Added getReports(document, table, localeID), calling
1770 ConfiguredDocument.getReports().
1771 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1772 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1773 Added setReportsList() and a list widget.
1774 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1775 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
1780 2012-04-12 Murray Cumming <murrayc@murrayc.com>
1782 Translations: Add Esperanto.
1784 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
1785 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
1786 properties: Add this translation because someone took the time to make it.
1788 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1790 Adapt to the java-libglom 1.21.7 API.
1792 * src/main/java/org/glom/web/server/ReportGenerator.java:
1793 addToReport(): get_group_secondary_fields() is now
1794 get_secondary_fields().
1797 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1799 Use the latest java-libglom version.
1801 * pom.xml: Use java-libglom 1.21.7.
1803 2012-03-03 Ben Konrath <ben@bagu.org>
1805 Display date and time in details view.
1807 https://bugzilla.gnome.org/show_bug.cgi?id=671257
1809 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1811 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1813 Require the latest java-libglom.
1815 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1817 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1819 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1821 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1822 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
1823 an empty quickfind string. I also corrected libglom to create only
1824 empty where clauses for empty quickfind strings, but this avoids the
1827 2012-02-24 Ben Konrath <ben@bagu.org>
1829 Improve the tabs in the Notebook widget.
1833 2012-01-30 Murray Cumming <murrayc@murrayc.com>
1835 Translations: Try to translate the strings.
1837 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1838 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1839 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1840 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1841 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1842 Take the Open translation from GTK+'s .po files.
1843 Take the Details translation from Glom's po files.
1844 I have added the other strings to Glom so we can get translations that way:
1845 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
1847 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1849 TableSelectionViewImpl: Put the search label and entry in a div.
1851 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1852 Put the search widgets in a FlowTable so that the CSS can be used to
1853 style them while keeping them together.
1854 * src/main/webapp/style.css: Mention the new div.
1856 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1858 Translate more strings in more locales.
1860 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1861 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1862 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1863 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1864 Translate the "Details" and "Open" string too.
1866 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
1867 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1868 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1869 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1870 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1871 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1872 Add these new locales as placeholders though they currently contain English.
1874 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1876 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
1878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
1879 Check the ConfiguredDocument* for null before using it.
1881 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1883 Tell Eclipse about the generated java files.
1885 * .classpath: This lets it find OnlineGlomConstants.java.
1886 It would be nice if Eclipse just used the maven build files.
1888 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1890 Prevent a crash when no locale is specified in the URL.
1892 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
1893 Avoid returning a null string, obtained from
1894 Window.Location.getParameter(). This caused a crash when it was
1895 later passed to libglom's API.
1896 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1897 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
1898 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
1899 guard against future null strings.
1901 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1903 Use the ?locale= query param instead of the &lang= token param.
1905 * src/main/java/org/glom/web/client/place/ListPlace.java
1906 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1907 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1908 Remove the lang token key and value.
1910 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1911 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1912 When the user selects a different locale from the chooser, use
1913 Window.Location.assign() to change the URL, which then causes a reload.
1915 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
1916 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1917 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
1918 * src/main/java/org/glom/web/client/activity/ListActivity.java
1919 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1920 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1921 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1922 * src/main/java/org/glom/web/client/ui/ListView.java:
1923 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1925 Remove localeID member variables and method/constructor parameters, instead
1926 using Utils.getCurrentLocaleID() when we need a localID to pass to
1929 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1931 Internationalize the UI strings.
1933 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
1934 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
1935 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
1936 because it is unused. Messages are apparently strings that can have
1937 parameters, but we do not need that yet, so Contants will be enough for now.
1938 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
1939 to say that we support the en and de locales.
1940 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1941 The original English strings.
1942 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1943 Some German translations of the English strings.
1944 The i18n goal then uses the .properties file to generate an
1945 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
1946 returns an implementation that returns the translated strings.
1947 The documentation suggests putting these in src/java/*/client/, but it seems
1948 best to put it in src/resources/*/client/.
1949 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1950 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
1951 instead of hard-coding them.
1952 Note that we cannot import OnlineGlomConstants because it does not exist yet,
1953 but that does not seem to stop the build, though it confuses Eclipse.
1955 You can see the translated string by adding ?locale=de to the URL, like so:
1956 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
1958 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1960 Improve null/empty String checks.
1962 * pom.xml: Add a dependency on commons-lang, to use
1963 org.apache.commons.lang.StringUtils.
1964 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1966 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
1967 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1968 Use StringUtils.isEmpty().
1970 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
1971 StringUtils class with a static isEmpty() function because we
1972 cannot use org.apache.commons.lang.StringUtils in client-side
1973 GWT code because it (apparently) cannot be compiled to javascript.
1974 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1975 * src/main/java/org/glom/web/client/activity/ListActivity.java
1976 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
1977 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1978 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1979 * src/main/java/org/glom/web/client/place/ListPlace.java
1980 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
1981 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
1982 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1983 * src/main/java/org/glom/web/client/ui/details/Group.java
1984 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
1985 our StringUtils.isEmpty() function.
1987 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1989 Update to the latest java-libglom API.
1991 * pom.xml: Require java-libglom 1.21.4.
1992 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1993 getDocumentInfo(), getListViewLayoutGroup():
1994 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1996 * src/main/java/org/glom/web/server/database/DBAccess.java
1997 getFieldsToShowForSQLQueryAddGroup(),
1998 getPrimaryKeyLayoutItemField(): Replace get_database_title()
1999 with either get_database_title_original() or
2000 get_database_title(localeID).
2002 2012-01-24 Murray Cumming <murrayc@murrayc.com>
2004 ConfiguredDocument: Avoid a null pointer exception.
2006 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2007 Initialize localeID to "" to avoid returning a null String which
2008 causes a crash in java-libglom's swing-generated code.
2010 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2012 Some simple renaming.
2014 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2015 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
2016 for localeChooser. This seems more appropriate and is less ambiguous
2017 particularly in the .css file.
2019 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2021 ConfiguredDocument: Rename the localedID private member variable.
2023 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2025 Adapt to the latest java-libglom API from git master.
2027 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2028 libglom now uses only Vector instead of List, which uses add() instead of
2031 2012-01-22 Murray Cumming <murrayc@murrayc.com>
2033 ConfiguredDocument: Rename the localedID private member variable.
2035 2012-01-20 Murray Cumming <murrayc@murrayc.com>
2037 Build a source tarball with mvn assembly:single
2039 * assembly.xml: Add this file.
2040 * pom.xml: Use the maven-assembly-plugin and tell it to use
2041 our assembly.xml file.
2043 2012-01-19 Murray Cumming <murrayc@murrayc.com>
2045 OnlineGlomServiceImpl: Get .glom files recursively.
2047 * pom.xml: Depend on commons-io from org.apache.commons.
2048 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2049 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
2050 files recursively, and with the easier filter for the extension.
2051 Use org.apache.commons.io.FilenameUtils.removeExtension() to
2052 simplify that code too.
2054 2012-01-19 Murray Cumming <murrayc@murrayc.com>
2056 README: Mention that you must install java-libglom packages separately.
2058 But then it works, because java-libglom is now in the central maven
2061 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2063 locales drop-down: Show the correct selected locale when the URL changes.
2065 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2066 .java: setPlace(): Move some code into fillView().
2068 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2070 locales drop-down: Do not lose the primary key.
2072 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2073 start(): onLocaleChange(): Pass the current primary key value,
2074 instead of an empty value.
2076 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2078 locales drop-down: Do not lose the drop-down selection.
2080 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2081 .java (TableSelectionActivity.fillView): Set the selected locale
2082 after changing the drop-down items (though we do not really need
2083 to change them just because the locale changes.)
2085 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2087 locales drop-down: Change the tables list when this changes.
2089 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2090 .java: TableSelectionActivity.start(): Move the async table titles
2091 retrieval into a private fillView() method and also call this when
2092 the chosen locale changes.
2093 Note that the document title is not actually translatable yet, but
2094 that is a problem that I should fix soon in libglom.
2096 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2098 Improve the placement of the locales drop-down.
2100 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2101 Put the title and locales drop-down in a div (gwt.FlowTable).
2102 * src/main/webapp/style.css: Add magic css properties to make this work.
2103 Also remove the left margin from the title so that it lines up with the
2106 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2108 locales selector: Show human-readable locale titles.
2110 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2111 getDocumentInfo(): Use java.util.Locale to show a real title of
2112 each locale, in the locale's own language.
2114 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2116 Add a language/locale selector drop-down.
2118 * src/main/java/org/glom/web/shared/DocumentInfo.java:
2119 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
2120 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
2121 getDocumentInfo(): Store the available Locales in the DocumentInfo.
2122 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2123 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2124 Add a ListBox to show the available locales. Add getLocaleSelector(),
2125 setLocaleList(), getSelectedLocale(), setSelectedLocale().
2126 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
2127 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
2128 java: Add these classes.
2129 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2130 start(): Fill the locales ListBox. Handle its change event, firing a
2132 setPlace(): Show the selected locale as specified by the URL token.
2133 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2134 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2135 Handle LocaleChangeEvent, going to a new *Place with that locale.
2137 The placement of the ListBox is not pretty, and it currently uses the ID
2138 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
2142 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2144 Search box: Show the search text from the URL token.
2146 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2147 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2148 Add setQuickFindText().
2149 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2150 .java: setPlace(): Store the queryText if the place is a ListPlace,
2151 and call TableSelectionView.setQuickFindText().
2153 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2155 Allow use of translations via, for instance, &lang=de in the URL.
2157 * pom.xml: Use the unstable java-libglom 1.21 version.
2159 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2160 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
2161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2162 init(): Instead of calling TranslatableItem.set_current_locale()
2163 (now removed), call ConfiguredDocument.setDefaultLocaleID().
2164 However, this is only for default locales, which are not needed to
2165 change the locale in the URL.
2166 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
2167 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
2168 getSortedRelatedListData(): Add a localeID parameter, so we can get the
2169 layout for a particular locale.
2170 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2171 Add get/setDefaultLocaleID().
2172 getDocumentInfo(), getListViewData(), getRelatedListData(),
2173 getDetailsLayoutGroup(), getListViewLayoutGroup(),
2174 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
2175 localeID parameter, so we can get the layout for a particular locale.
2177 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2178 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2179 * src/main/java/org/glom/web/client/place/ListPlace.java:
2180 Parse and construct a lang parameter too.
2182 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2183 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
2184 passed to subsequent methods and constructors.
2185 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2186 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2187 Store the localeID from the *Place and pass it to other constructors
2188 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
2190 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2191 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2192 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2193 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2194 * src/main/java/org/glom/web/client/ui/ListView.java:
2195 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2196 Take localeID parameters and pass them to subsequent constructors and
2197 methods, so that the layout is always retrieved for that locale.
2199 This is rather repetitive.
2201 Note that "" means the original (default) locale of the Glom document,
2202 which is usually English.
2204 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2206 Documents: Remove final keyword to fix startup configuration.
2208 * src/main/java/org/glom/web/shared/Documents.java: Remove the
2209 final keywords on the private member variables because that breaks
2210 the startup, apparently (there are warnings) because it stops them
2211 from being serialized. I added these in the previous commit.
2213 2012-01-13 Murray Cumming <murrayc@murrayc.com>
2215 Documents: Add some final keywords.
2217 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
2220 2012-01-13 Murray Cumming <murrayc@murrayc.com>
2222 OnlineGlomServiceImpl: Add to overview comments.
2224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2225 Note that this is where all the document are loaded. They are not
2226 loaded freshly for each page.
2228 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2232 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2233 Add a TextBox for the text of a quick find.
2234 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
2236 setBackLink(): Add a String quickFind parameter.
2237 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2238 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
2239 to the base interface, because that is how TableSelectionViewImpl is used.
2240 * src/main/webapp/style.css: Add style for the search box and its label.
2242 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
2243 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
2244 Add these files, based on the existing TableChangeEvent and
2245 TableChangeEventHandlers.
2246 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2247 start(): Handle QuickFindChangeEvent, passing its quickFind text to
2248 a ListPlace() that the user should be taken to.
2249 * src/main/java/org/glom/web/client/activity/ListActivity.java
2250 start(): Handle it here too and adapt the TableChangeEvent handler to
2251 pass the extra "" quickFind parameter to ListPlace.
2252 * src/main/java/org/glom/web/client/place/ListPlace.java:
2253 Constructor: Take an extra String quickFind parameter and store it,
2254 returning it from a new getQuickFind() method.
2255 getToken(): Put the quickFind text in the URL token.
2256 getPlace(): Parse the quickFind text from the URL token.
2257 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2258 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
2259 ListPlace constructor.
2260 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2261 .java: start(): Add a Change handler for the TableSelectionView's
2262 TextBox (via its base HasChangeHandlers interface), firing the new
2263 QuickFindChangeEvent.
2264 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
2265 pass the extra "" quickFind parameter.
2267 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2268 setCellTable(): Add a String quickFind parameter and pass it to
2269 the ListViewTable() constructor.
2270 * src/main/java/org/glom/web/client/ui/ListView.java: Change
2271 setCellTable() in the base interface, because that is how ListViewImpl
2274 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2275 Add a String quickFind member variable.
2276 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2277 Constructor: Add a String quickFind parameter, storing it in the
2278 base ListTable's member variable.
2279 onRangeChanged(): Pass quickFind to the
2280 OnlineGlomServiceAsync.getSortedListViewData() and
2281 OnlineGlomServiceAsync.getListViewData() methods.
2283 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2284 getListViewData(), getSortedListViewData(): Add a String quickFind
2285 parameter, passing it to ConfiguredDocument.getListViewData().
2286 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2287 Change getListViewData(), getSortedListViewData() in the base interface,
2288 because that is how OnlineGlomServiceImpl is used, via this:
2289 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2290 Change getListViewData(), getSortedListViewData() here too.
2291 This class can apparently be used to asynchronously call methods on
2292 OnlineGlomService, and GWT seems to implement that after recognizing
2293 just the *Async name convention and the extra AsyncCallback parameters.
2295 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2296 getListViewData(): Add a String quickFind parameter, and pass it to
2297 ListViewDBAccess.getData().
2298 * src/main/java/org/glom/web/server/database/ListDBAccess.java
2299 getListData(): Add a String quickFind parameter and pass it to
2301 getSelectQuery(): Add a String quickFind parameter.
2302 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
2303 getSelectQuery(): Add a String quickFind parameter and use it with
2304 Glom.get_find_where_clause_quick() to pass a where_clause to
2305 Glom.build_sql_select_with_where_clause(), to actually filter the
2307 getData(): Add a String quickFind parameter, passing it to getListData().
2308 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
2309 va: getData(): Pass an empty string to getListData() for the
2310 quickFind parameter.
2312 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2314 ListTable: Minor change.
2316 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2317 createCellTable(): Make this protected instead of public.
2319 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2321 Many files: Use final for the parameters and use the @override attribute.
2323 2012-01-22 Ben Konrath <ben@bagu.org>
2325 Add anchor links for single line text that starts with http, ftp and www.
2329 2012-01-22 Ben Konrath <ben@bagu.org>
2331 Add ellipsis to single line text in details view.
2335 2012-01-04 Murray Cumming <murrayc@murrayc.com>
2337 Remove all javadoc author tags.
2339 Because they are awkward and meaningless when many people touch
2341 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
2343 2012-01-04 Murray Cumming <murrayc@murrayc.com>
2345 Revert the COPYING.LESSER to COPYING rename.
2347 Apparently both should be there if it is LGPL.
2349 2012-01-03 Murray Cumming <murrayc@murrayc.com>
2351 *View: Remove unused imports.
2353 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2354 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
2355 * src/main/java/org/glom/web/client/ui/ListView.java:
2356 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2357 Remove unused imports, as suggested by Eclipse.
2359 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2361 Move the *View::Presenter types, and some API into one base View.
2363 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2364 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2365 * src/main/java/org/glom/web/client/ui/ListView.java:
2366 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
2367 Presenter, setPresenter() and clear() into a shared base interface,
2368 to avoid the unnecessary duplicate Presenter types and to more clearly
2369 show how the *Views share the same structure, even if they are not
2370 used polymorphically.
2372 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2373 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2375 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2376 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2377 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
2379 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2382 Feel free to revert this if there is a good reason for the duplicate
2385 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2387 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
2389 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
2390 a class member instead of a local variable in the method.
2391 This lets us use it to get the view instances, for use in tests.
2392 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2393 beforeOnlineGlom(): Test some more details of the initial view.
2394 Again, this is not very useful.
2396 To really test gwt-glom we will need to start a local postgresql
2397 instance with local data, like the Glom tests in C++.
2399 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2401 pom.xml: Mention the LGPL license.
2403 * pom.xml: Add a licenses section.
2404 * COPYING.LESSER: Move this to COPYING, which
2405 previously contained the GPL. But gwt-glom is all LGPL.
2407 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2409 Add project information to README and pom.xml.
2411 * README: Add a brief description and mention some mvn
2413 * pom.xml: This extra information shows up in mvn site
2416 2011-01-02 Murray Cumming <murrayc@murrayc.com>
2418 Use the latest java-libglom version.
2420 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
2422 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2424 GwtTestOnlineGlom: Test a little more.
2426 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
2427 protected rather than private, as suggested by the gwt-test-utils
2429 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
2430 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
2431 Test the initial visibility of the panels.
2433 However, this is not a very useful test.
2434 And I wonder how we should generally test using this idea for an
2435 activity/places app like ours where the real changes happen implicitly
2436 based on the history token/URL.
2438 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2440 Slight modification to *Mapper comments.
2442 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
2443 (DataActivityMapper)
2444 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
2446 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
2448 Remove comments mentioning GIN because they are just copied from
2449 the example code and are apparently not helpful:
2450 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
2451 Also change the mention of a class that is only in the example code.
2453 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2455 GwtTestOnlineGlom test: Minor changes.
2457 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2458 Avoid the long qualified class name and modify the comment
2459 because it is now obvious to me that the mocked class is the only
2460 custom one created via GWT.create().
2462 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2464 Tests: Added the beginnings of a test using gwt-test-utils.
2466 * pom.xml: Add dependencies on gwt-test-utils and easymock.
2467 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
2468 which tells gwt-test-utils what class will be tested.
2469 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2470 Add a simple (but empty) test case. One class, used by the OnlineGlom
2471 class, is mocked so that it can be created. However, I am not sure
2472 why only this class needs to be mocked.
2474 Note that mockito seems more popular, and clearer, than easymock,
2475 but I have not got that working yet. It might be a matter of the
2478 This test is run during mvn integration-test.
2480 2011-12-31 Murray Cumming <murrayc@murrayc.com>
2482 Tests: Use junit4-style syntax instead of junit3-style.
2484 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2485 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2486 * src/test/java/org/glom/web/shared/DataItemTest.java:
2487 Use the @Test annotation rather than relying on the test*() prefix.
2488 Also no longer implement TestCase, to avoid triggering support for
2489 the junit3-way, which stops the annotations from working.
2490 Change the imports from import junit.framework.* to
2491 import org.junit.*, which is apparently the new way.
2493 2011-12-31 Murray Cumming <murrayc@murrayc.com>
2495 Added a test for ListPlace token parsing and creation.
2497 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2498 This is much the same as DetailsPlaceTest.
2500 I wonder how we could test the other parts of the *Place API.
2502 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2504 DetailsPlace test: Also test getToken() and recreation via getPlace().
2506 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2507 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
2508 recreate it, testing the recreated DetailsPlace for the same parameter
2511 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2513 Use the surefire-report plugin.
2515 * pom.xml: This generates a HTML report about the tests in
2516 target/site/surefire-report.html
2517 when you do mvn surefire-report:report. It seems to be popular/normal.
2519 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2521 Added a test for DetailsPlace.
2523 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2524 Test the getPlace() token parsing.
2526 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2528 Added a first unit test.
2530 * pom.xml: Add a test goal, and a dependency on junit in that scope.
2531 * src/test/java/org/glom/web/shared/DataItemTest.java:
2532 This is a silly test but it is just to get things started. Note that
2533 maven/junit finds the test because it looks in src/test by default.
2535 2011-12-22 Ben Konrath <ben@bagu.org>
2537 Change charsetName to "UTF-8" when replacing line breaks.
2539 JavaScript requires the charsetName to be "UTF-8". CharsetName values
2540 that work in Java (such as "UTF8") will not work when compiled to
2543 This fixes a problem with multi-line details view fields that have hard
2544 line breaks. The "License Text" field on this page demonstrates the
2547 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
2549 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2551 2011-12-22 Ben Konrath <ben@bagu.org>
2553 Fix another bug with related list navigation.
2555 I've tested all the navigation buttons in all of the related lists
2556 so things should be good now.
2558 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2560 2011-12-22 Ben Konrath <ben@bagu.org>
2562 Fix a crasher when refreshing the list view with the default table.
2564 This crash will also happen when loading the list view with the default
2565 table from a link or bookmark.
2567 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
2568 to the main document selection page when the document id hasn't been
2570 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
2571 the main document selection page when the document id hasn't been
2573 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
2574 values for the details place when the document id hasn't been set.
2575 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
2576 values for the list place when the document id hasn't been set.
2578 2011-12-21 Ben Konrath <ben@bagu.org>
2580 Protect against NPE when glom.document.locale is not in config.
2582 This patch protects against an NPE when glom.document.locale is not in
2583 the config file. This NPE will also happen if glom.document.locale is
2586 The patch also updates the error message to display the class name when
2587 the getMessage() returns null. This was happening when the NPE was
2588 thrown and I had "Configuration Error: null". If an NPE is encountered
2589 with this patch, "Configuration Error: NullPointerException " will be
2592 This commit closes this bug:
2594 https://bugzilla.gnome.org/show_bug.cgi?id=666669
2596 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2598 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2600 Rename onlineglom.properties to onlineglom.properties.sample.
2602 * src/main/resources/onlineglom.properties: Rename to:
2603 * src/main/resources/onlineglom.properties.sample:
2604 * src/main/resources/README: And add this file explaining that people
2605 should rename it back when deploying.
2607 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2609 Allow choosing the translation in the .properties file.
2611 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2612 init(): Read a glom.document.locale value from the configuration file
2613 and call Glom's TransatableItem::set_current_locale() method.
2614 * src/main/resources/onlineglom.properties: Add a commented-out
2615 example of this new setting.
2617 It would be better to add &lang=de_DE to the URL, but the current
2618 libglom API does not allow us to do this easily. I am working on that.
2620 2011-12-19 Murray Cumming <murrayc@murrayc.com>
2622 Avoid a crash in parsing of token parameters.
2624 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
2625 ava: getTokenParams(): Do not crash if a parameter has a key but no
2626 value, and ignore parameters with neither.
2628 2011-12-17 Murray Cumming <murrayc@murayc.com>
2630 History token building/handling: Improve use of token parameters.
2632 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2633 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
2634 and buildParamsToken(HashMap), for use by derived classes.
2635 Make the separator private because it is no longer be needed.
2636 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2637 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
2638 instead of manual string concatenation.
2639 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
2640 of hardcoded indices and awkward splitting code.
2641 * src/main/java/org/glom/web/client/place/ListPlace.java
2642 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
2643 instead of manual string concatenation.
2644 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
2645 of hardcoded indices and awkward splitting code.
2646 This should fix bug #666420
2648 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2650 Fix a Navgiation->Navigation typo in the code.
2652 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2653 Rename processNavgiation() to processNavigation().
2655 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2657 Fix a seperator->separator typo in the code.
2659 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2660 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2661 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
2664 2011-12-15 Ben Konrath <ben@bagu.org>
2666 Cleanup some comments.
2668 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2670 2011-12-14 Ben Konrath <ben@bagu.org>
2672 Replace \n with <br/> for multiline text in the details view.
2674 Vertical scrollbars are added when needed as well.
2676 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2678 2011-12-14 Ben Konrath <ben@bagu.org>
2680 Specify the font for document selection links.
2682 * src/main/webapp/style.css:
2684 2011-12-14 Ben Konrath <ben@bagu.org>
2686 Fix bouncy CellTable while paging.
2688 This doesn't currently work with related list tables in unselected
2691 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2693 2011-12-14 Ben Konrath <ben@bagu.org>
2695 Revamp the appearance of the document selection page.
2697 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2698 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2699 * src/main/webapp/style.css:
2701 2011-12-13 Ben Konrath <ben@bagu.org>
2703 Set navigation button column to the smallest size possible.
2705 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2707 2011-12-13 Ben Konrath <ben@bagu.org>
2709 Change OpenButton nomenclature to NavigationButton.
2711 Using NavigtionButton makes things more generic. Classes, methods and
2712 variables have been changed.
2714 This is a rename-only refactor.
2716 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2717 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2718 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
2719 Renamed from OpenButtonCell.
2720 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2721 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2722 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2724 2011-12-12 Ben Konrath <ben@bagu.org>
2726 Remove unnecessary String argument in RelatedListTable and ListViewTable.
2728 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2729 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2730 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2731 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2733 2011-12-12 Ben Konrath <ben@bagu.org>
2735 Update variable names and comments.
2737 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2738 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2740 2011-12-12 Ben Konrath <ben@bagu.org>
2742 Properly initialize numNonEmptyRows variable to zero.
2744 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2745 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2747 2011-12-05 Ben Konrath <ben@bagu.org>
2749 Add latest mockup with HTML tables.
2751 Features of this mockup:
2753 -> HTML table for flowtable
2754 -> HTML table for flowtable column
2755 -> Example of how related lists would look
2756 -> Not using text entries for data items
2758 The current version of Online Glom doesn't use HTML tables for the
2761 This mockup has been sent to the glom-devel mailing list but it's good
2762 to have it here as well.
2764 * mockups/details-view-html-tables.html:
2766 2011-12-05 Ben Konrath <ben@bagu.org>
2768 Remove unnecessary getPrimaryKeyField() method.
2770 getPrimaryKeyFieldForTable(String) has been renamed to
2771 getPrimaryKeyField(String).
2773 * src/main/java/org/glom/web/server/database/DBAccess.java:
2774 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2775 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2777 2011-12-05 Ben Konrath <ben@bagu.org>
2779 Add string representation of TypedDataItem value to conversion error message.
2781 * src/main/java/org/glom/web/server/Utils.java: Logging the error
2782 message was extracted into its own method to avoid duplication.
2784 2011-12-05 Ben Konrath <ben@bagu.org>
2786 Add type checking to navigation primary key value creation.
2788 Create navigation primary key only if the expected type from the Glom
2789 document matches the type returned by the SQL query.
2791 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2793 2011-12-05 Ben Konrath <ben@bagu.org>
2795 Rename a couple of variables in RelatedListNavigation.
2797 This is a rename-only refactor.
2799 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2801 2011-12-05 Ben Konrath <ben@bagu.org>
2803 Move getListLayoutGroup() into getListViewLayoutGroup().
2805 This removes getListLayoutGroup(). It was only being called by
2806 getListViewLayoutGroup().
2808 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2810 2011-12-05 Ben Konrath <ben@bagu.org>
2812 Remove check for LayoutItem_Portal in list table method.
2814 This check is no longer necessary because the method isn't being used
2815 to create the LayoutItemPortal DTO.
2817 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2819 2011-12-05 Ben Konrath <ben@bagu.org>
2821 Properly support related list navigation.
2823 Navigation from the "Repository Analyzer -> Package Scans ->
2824 Dependencies" related table wasn't working because the primary key for
2825 related tables wasn't being set properly. This commit fixes the
2828 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
2829 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
2830 doesn't set the primary key properly for related list tables.
2831 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
2832 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
2833 useful for getting the primary key for list view tables and for related
2835 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2836 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2837 Move code to set the primary key for the table from the abstract
2838 ListDBAccess class to ListViewDBAccess as it's only correct for list
2840 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2841 Properly add primary key to related list tables.
2843 2011-12-02 Ben Konrath <ben@bagu.org>
2845 Properly set the horizontal alignment of fields.
2847 This fix is for both the list tables and the details view.
2849 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2850 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
2851 to set the horizontal alignment of fields.
2853 2011-12-02 Ben Konrath <ben@bagu.org>
2855 Display currency codes in the details view.
2857 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2859 2011-12-02 Ben Konrath <ben@bagu.org>
2861 Avoid duplicate JNI call.
2863 JNI is not as efficient as pure Java and this is an easy (and small)
2866 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2867 Use previously retrieved value for whereClauseToTableName instead of
2870 2011-12-02 Ben Konrath <ben@bagu.org>
2872 Rename a couple of variables in RelatedListNavigation.
2874 This is a rename-only refactor.
2876 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2878 2011-12-02 Ben Konrath <ben@bagu.org>
2880 Indicate clearly that a mismatched primary key type is a bug.
2882 * src/main/java/org/glom/web/server/Utils.java: Change log level from
2883 warning to error. Add 'This is a bug.' to message.
2885 2011-12-02 Ben Konrath <ben@bagu.org>
2887 Update / fix some comments.
2889 * src/main/java/org/glom/web/client/OnlineGlomService.java: