SelfHosting test: Also try using a relationship.
[online-glom:gwt-glom.git] / ChangeLog
1 2012-11-28  Murray Cumming  <murrayc@murrayc.com>
2
3         SelfHosting test: Also try using a relationship.
4
5         * src/main/java/org/glom/web/server/database/DBAccess.java:
6         convertResultSetToDTO(): Move some code into a public 
7         method as:
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
16         a relationship.
17
18 2012-11-22  Murray Cumming  <murrayc@murrayc.com>
19
20         Build: Specify the source encoding.
21
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
25
26 1.23.1:
27
28 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
29
30         Update the jasperreports version.
31
32         * pom.xml: This was shown by
33         mvn versions:display-dependency-updates
34
35 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
36
37         Eclipse: Reorder the Java Build Path to fix the build in Eclipse.
38
39         * .classpath: This prevents an error saying that getTextContent()
40         is undefined.
41         See http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/
42
43 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
44
45         Explicitly declare some dependencies (and scopes) that we use.
46
47         * pom.xml: The dependency report showed what we use.
48
49 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
50
51         Update the gwt-test-utils version.
52
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,
55         with this error:
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
58
59 2012-11-19  Murray Cumming  <murrayc@murrayc.com>
60
61         DocumentTest: testLocales(): Update for the latest example version.
62
63         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
64         The .glom file, updated in the previous commit, now has more translations.
65
66 2012-11-19  Murray Cumming  <murrayc@murrayc.com>
67
68         Update the .glom files used for tests.
69
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.
75
76 2012-11-18  Murray Cumming  <murrayc@murrayc.com>
77
78         Update versions of dependencies.
79
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.
86
87 2012-11-18  Murray Cumming  <murrayc@murrayc.com>
88
89         Document: Correct an import to use the correct Log API.
90
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.
94
95 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
96
97         Details: Get static image data from our images services.
98
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.
102         setData():
103         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
104         Adapted.
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
113         our images service.
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,
117         via its layout path.
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.
123
124 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
125
126         Document: Static image items: Store an image URL, using the layout path. 
127
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 
131         LayoutItemImage URL.
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
137         URL.
138
139 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
140
141         Document: Add getLayoutItemByPath().
142
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 
150         that it works.
151
152         This will be useful in subsequent commits.
153
154 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
155
156         Document: Use a better base64 decoder to read static image data.
157
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.
163
164 2012-11-14  Murray Cumming  <murrayc@murrayc.com>
165
166         Document: Do not use == to compare strings. Use equals().
167
168         * src/main/java/org/glom/web/server/libglom/Document.java:
169         == only checks that they are the same object, so it can 
170         seem to fail.
171
172 2012-11-14  Murray Cumming  <murrayc@murrayc.com>
173
174         Document: Add and use public constants for layout names.
175
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.
183
184 2012-11-13  Murray Cumming  <murrayc@murrayc.com>
185
186         Document: Load static text and image items too.
187
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 
195         new classes.
196         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
197         Add testLayoutItemText() to check that the text is loaded properly.
198
199 2012-11-13  Murray Cumming  <murrayc@murrayc.com>
200
201         Do not use client.GWT for shared code.
202
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.
205
206 2012-11-12  Murray Cumming  <murrayc@murrayc.com>
207
208         Use image data when recreating databases for testing.
209
210         * src/main/java/org/glom/web/shared/DataItem.java: Add get/setImageData(),
211         for use locally (not acrosss the network) when recreating databases
212         for testing.
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().
217
218 2012-11-09  Murray Cumming  <murrayc@murrayc.com>
219
220         OnlineGlomImages: Detect the mime-type (content type).
221
222         * src/main/java/org/glom/web/server/OnlineGlomImages.java:
223         doGet(): Instead of hard-coding image/png.
224
225 2012-11-09  Murray Cumming  <murrayc@murrayc.com>
226
227         Eclipse project files: Use JDK 1.7 instead of JDK 1.6.
228
229         * .classpath:
230         * .settings/org.eclipse.jdt.core.prefs: By changing the Eclipse
231         Java Compiler and Java Build path settings in the UI.
232
233 2012-11-09  Murray Cumming  <murrayc@murrayc.com>
234
235         Use the latest (now stable) version of GWT.
236
237         * pom.xml: And the latest version of the gwt-maven-plugin.
238
239 2012-11-08  Murray Cumming  <murrayc@murrayc.com>
240
241         Added an Indonesian translation.
242
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.
246
247 2012-07-23  Murray Cumming  <murrayc@murrayc.com>
248
249         Details: Show images.
250
251         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
252         Move some code into
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.
258
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.
263
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().
271
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:
275         Adapted.
276
277 2012-07-22  Murray Cumming  <murrayc@murrayc.com>
278
279         Rename the servlet.
280
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.
286
287 2012-07-22  Murray Cumming  <murrayc@murrayc.com>
288
289         Tests: Make the imports of assert*() consistent.
290
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:
301         Just do
302         import static org.junit.Assert.*;
303         which seems fairly common.
304
305 1.21.10 (unstable):
306
307 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
308
309         tests: Move a test that needs a database connection.
310
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.
315
316 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
317
318         tests: Use @BeforeClass on tearDown().
319
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.
323
324 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
325
326         tests: Test translations more.
327
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.
331
332 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
333
334         tests: Add SelfHostConfiguredDocumentTest
335  
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.
340
341 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
342
343         Document: Load title translations and test them.
344
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.
350
351 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
352
353         Set JDBC timeouts.
354
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.
358
359 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
360
361         tests: ConfiguredDocumentTest: Make this pass.
362
363         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
364         Disable tests that need a database connection.
365
366 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
367
368         Use Java 1.7 instead of Java 1.6.
369
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.
373
374 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
375
376         Some error checking.
377
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.
381
382 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
383
384         tests: Add a ConfiguredDocument test.
385
386         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
387         Add this test.
388
389 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
390
391         LayoutItemFIeld: getName(): Use the Field if it is set.
392
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.
399
400 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
401
402         tests: SelfHoster: Test SqlUtils too.
403
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.
409
410 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
411
412         tests: SelfHoster: createConnection(): Do not warn about expected failures.
413         
414         Let the caller say if the connection is expected to fail, to avoid 
415         irrelevant error output.
416
417 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
418
419         tests: SelfHoster: createAndSelfHostNewEmpty(): Sleep after starting server.
420         
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
424         starts.
425
426 2012-07-20  Murray Cumming  <murrayc@murray.com>
427
428         tests: SelfHoster: createConnection(): Set a timeout.
429
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.
433
434 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
435
436         tests: SelfHoster: selfHost(): Close the test connection.
437
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.
441
442 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
443
444         Use slf4j-simple to see JDBC errors.
445
446         * pom.xml: Depend on slf4j-simple so we can see errors from JDBC.
447
448 2012-07-19  Murray Cumming  <murrayc@murrayc.com>
449
450         SelfHoster.discoverFirstFreePort(): Close the socket.
451
452         * src/test/java/org/glom/web/server/SelfHoster.java:
453         discoverFirstFreePort(): Close the socket. Eclipse Juno warns about this.
454
455 2012-07-19  Murray Cumming  <murrayc@murrayc.com>
456
457         Avoid another code warning in Eclipse Juno.
458
459         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
460         Do instanceof checks on the FileUtils.listFiles() result and its 
461         items.
462
463 2012-07-13  Murray Cumming  <murrayc@murrayc.com>
464
465         Avoid some code warnings in Eclipse Juno
466
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.
471
472 2012-06-22  Murray Cumming  <murrayc@murrayc.com>
473
474         Added OnlineGlomPropertiesTest.
475
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.
480
481 2012-06-20  Murray Cumming  <murrayc@murrayc.com>
482
483         Make OnlineGlomProperties be a normal class.
484
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.
489
490 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
491
492         OnlineGlomServiceImpl.init(): Move some code into a new method.
493
494         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
495         Create addDocument().
496
497 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
498
499         OnlineGlomServiceImpl.OnlineGlomProperties: Improve getKey().
500
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.
504
505 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
506
507         OnlineGlomServiceImpl: Improve the OnlineGlomProperties class.
508
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.
512
513 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
514
515         SelfHostExampleTest: Make sure we cleanup on failure.
516
517         * src/test/java/org/glom/web/server/SelfHostExampleTest.java: Move
518         the use of cleanup() to a tearDown() JUnit method.
519
520 1.21.9.3:
521
522 2012-06-12  Murray Cumming  <murrayc@murrayc.com>
523
524         ConfiguredDocument: Add a primary key to portals at least once.
525
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.
531
532 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
533
534         SelfHoster: Avoid some compiler warnings.
535
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.
543
544 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
545
546         LayoutItemPortalDeepCloneTest: Test something to avoid warnings.
547
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.
551
552 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
553
554         SelfHoster: Keep trying pg_ctl after starting postgres.
555
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.
561
562 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
563
564         SelfHoster: Wait until the server is really ready.
565
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.
571
572 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
573
574         ConfiguredDocument: Do not add a primary key to portals each time.
575
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
579         layouts cache.
580         This should fix bug #676986 (Ben Konrath) 
581
582 2012-05-25  Murray Cumming  <murrayc@murrayc.com>
583
584         Document.load(): Support version 7 documents. 
585
586         * src/main/java/org/glom/web/server/libglom/Document.java: Load the 
587         database_title attribute if the title attribute is not there.
588         Bug #676737
589
590 2012-05-24  Ben Konrath  <ben@bagu.org>
591
592         Add configuration for auto-generating mvn:i18n from with Eclipse.
593
594         * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
595
596 2012-05-24  Murray Cumming  <murrayc@murrayc.com>
597
598         Update translations, adding French.
599
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.
603
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.
608
609 2012-05-24  Murray Cumming  <murrayc@murrayc.com>
610
611         SelfHoster: Add some debug println messages to help when things fail.
612
613         * src/test/java/org/glom/web/server/SelfHoster.java: Add several
614         System.out.println() lines.
615
616 2012-05-23  Murray Cumming  <murrayc@murrayc.com>
617
618         Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
619
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 
623         using this method.
624
625 2012-05-23  Murray Cumming  <murrayc@murrayc.com>
626
627         Remove LayoutItemPortal.get/setNavigationTable().
628         
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
632         the server.
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:
638         Adapted.
639
640 2012-05-21  Murray Cumming  <murrayc@murrayc.com>
641
642         Initial self-hosting for tests.
643
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.
648
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 
653         to be.
654         * src/test/java/org/glom/web/server/libglom/DocumentTest.java
655         testReadTableExampleRows(): Adapted.
656
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
667         fail.
668         * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple 
669         test of this new class.
670
671 2012-05-21  Murray Cumming  <murrayc@murrayc.com>
672
673         Document: loading example data: Handle exceptions.
674
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.
678
679 2012-05-20  Murray Cumming  <murrayc@murrayc.com>
680
681         Document: load(), save(): Handle the example rows.
682
683         * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate() 
684         and get/setImage().
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.
690
691 2012-05-20  Murray Cumming  <murrayc@murrayc.com>
692
693         Document: Add save().
694
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.
701
702         This will be useful while testing via self-hosting.
703         It is not complete, but should be complete enough for testing.
704
705 2012-05-17  Murray Cumming  <murrayc@murrayc.com>
706
707         OnlineGlomService: Simplify the getList/RelatedViewData() methods.
708
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:
719         getDataProvider():
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:
725         getListData():
726         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
727         getData():
728         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
729         getData(): Adapted.
730
731 1.21.9.2:
732
733 2012-05-16  Murray Cumming  <murrayc@murrayc.com>
734
735         Use translations for top-level groups too.
736
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.
740
741 1.21.9.1:
742
743 Just recompiled to fix a problem in the released .tar.gz file.
744
745 1.21.9:
746
747 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
748
749         Corrections to navigation to related records.
750         
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 
757         on the layout.
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 
762         more basic way.
763         
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:
770         Adapted.
771
772 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
773
774         Fix the use of translations.
775
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.
783
784 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
785
786         Document: Correctly report the number of available translation locales.
787
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.
792
793 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
794
795         SqlUtils: Use camelCase.
796
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.
803
804 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
805
806         Use jOOQ's tableByName() and fieldByName.
807
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.
814
815 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
816
817         SqlUtils: Remove the Connection parameters.
818
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 
825         a SQL string:
826         https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
827
828         * src/main/java/org/glom/web/server/ReportGenerator.java:
829         generateReport():
830         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
831         getData():
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.
840
841 2012-05-14  Murray Cumming  <murrayc@murrayc.com>
842
843         Fix quick find.
844
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.
850
851 2012-05-14  Murray Cumming  <murrayc@murrayc.com>
852
853         TableToViewDetails: Use a real serialization ID.
854
855         * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
856         Though this does not fix the serialization problem.
857
858 2012-05-12  Murray Cumming  <murrayc@murrayc.com>
859
860         Added LayoutItemPortalDeepCloneTest.
861
862 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
863
864         Make navigation work again.
865
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.
873         
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.
881
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
887         do that in Java.
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.
893         
894         TODO: Find out why deepClone() is not quite working.
895         
896 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
897
898         DBAccess: Simplify the retrievel of full field details.
899
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.
903
904 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
905
906         Document: Correct loading of doubly-related layout fields.
907
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.
911
912 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
913
914         Replace all appearances of Colour with color.
915
916         Because US English is dominant.
917
918 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
919
920         Use colors in HTML format, solving a warning about an unused function.
921
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.
931
932 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
933
934         ListViewTable: Constructor: Take the table name as a parameter.
935
936         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
937         Constructor: Take the tableName, and set the member variable, because
938         we use it here.
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.
943
944 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
945
946         ConfiguredDocument: Restore correct addition of hidden primary key items.
947
948         * src/main/java/org/glom/web/client/ui/list/ListTable.java
949         (ListTable.createCellTable): Uncomment out the check for the hidden
950         primary key.
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.
959
960 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
961
962         Fix Formatting loading.
963
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.
972
973 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
974
975         RelatedListTable: Make sure that the tableName is set.
976
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
980         relationship in it.
981         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
982         setData(): Pass the tableName to the RelatedListTable constructor.
983
984 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
985
986         Add some checks.
987
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:
991         getDataProvider():
992         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
993         addColumn():
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
997         getListData():
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.
1001
1002 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
1003
1004         Portals: some corrections.
1005
1006         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1007         setData():
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.
1015
1016 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
1017
1018         LayoutItemPortal: Also override getTitleOriginal().
1019
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.
1023
1024 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1025
1026         LayoutItemPortal: getTitle*(): Use the relationship title.
1027
1028 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1029
1030         LayoutItemField: Fix loading of custom titles.
1031
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
1036         class.
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:
1041         Adapt.
1042
1043 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1044
1045         LayoutItemField: Fall back to field titles, so some are really shown.
1046
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.
1051
1052 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1053
1054         Correct use of setExpectedResultSize().
1055
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.
1062
1063 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1064
1065         Document: Interpret no group column count as 1.
1066
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.
1069
1070 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1071
1072         More null checks.
1073
1074 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1075
1076         Translatable: Use Hashmap instead of Treemap because GWT supports it.
1077
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 
1080         further clue:
1081         "The response could not be deserialized"
1082
1083 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1084
1085         OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
1086
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.
1090
1091 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1092
1093         ListTable.addColumn(): Protect against a null Formatting.
1094
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
1097         way to do this.
1098
1099 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1100
1101         ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
1102
1103         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1104         updateLayoutGroup(): Check that the field is not null.
1105
1106 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1107
1108         ListViewImpl: Protected against a bad cast error.
1109
1110         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1111         onEnterKeyDown(): Do not cast without an instanceof check.
1112
1113 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1114
1115         ListTable: Protect against an out of range error.
1116
1117         * src/main/java/org/glom/web/client/ui/list/ListTable.java
1118         createCellTable(): This is unlikely, but can happen while debugging.
1119
1120 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1121
1122         AsyncMessage onFailure() callbacks: Log the exception message.
1123
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.
1132
1133 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1134
1135         ConfiguredDocument: Avoid a null dereference.
1136
1137         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1138         TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and 
1139         details maps are created.
1140
1141 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1142
1143         Document: Correct the port number parsing.
1144
1145         * src/main/java/org/glom/web/server/libglom/Document.java:
1146         This lets us actually connect to the database and show the document.
1147
1148 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1149
1150         Fix mvn gwt:test
1151
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 
1158         the exception.
1159
1160 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1161
1162         DocumentTest: Move the .glom files into the resources directory.
1163
1164         * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
1165         URI via getResource().
1166
1167 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1168
1169         Document: Remove the FieldIdentifies inner class.
1170
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.
1174
1175 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1176
1177         Document.load() Remove the error code parameter.
1178
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:
1184         init():
1185         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
1186         setUp(), testGetSuitableTableToViewDetails(): Adapt.
1187
1188 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1189
1190         Make some inner classes static.
1191
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.
1197
1198 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1199
1200         OnlineGlomServiceImpl: Do not load and check for java-libglom.
1201
1202         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1203         init(): We do not use java-libglom any more.
1204
1205 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1206
1207         Remove mentions of java-libglom.
1208
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.
1214
1215 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1216
1217         Fix the build (mvn package)
1218
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.
1224
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
1234
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.
1237
1238 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1239
1240         ConfiguredDocument: Cache the cloned and stripped layouts.
1241
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.
1245
1246 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1247
1248         UsesRelationshipImpl: Complete the relationshipEquals() implementation.
1249
1250 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1251
1252         libglom classes: Implement some auto-generated emthods.
1253
1254 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1255
1256         Add GwtTestOnlineGlomService.
1257
1258         * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1259         However, this (and the other GwtTest*) does not seem to run during 
1260         mvn test. 
1261
1262 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1263
1264         Remove use of unsupported features from client code.
1265
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.
1270         
1271         However, the GWT Javascript compliation still fails.
1272
1273 2012-04-25  Murray Cumming  <murrayc@murrayc.com>
1274
1275         Add a Field class and implement some loading of it in Document.
1276
1277 2012-04-25  Murray Cumming  <murrayc@murrayc.com>
1278
1279         Initial Document loading implementation, instead of libglom.
1280
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.
1284
1285 2012-04-24  Murray Cumming  <murrayc@murrayc.com>
1286
1287         Use of jOOQ: Move Field creation into a utility method.
1288
1289         * src/main/java/org/glom/web/server/SqlUtils.java:
1290         This lets us improve it more easily.
1291
1292 2012-04-24  Murray Cumming  <murrayc@murrayc.com>
1293
1294         Use of jOOQ: Improve the code to COUNT a sub-select.
1295
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.
1302
1303 2012-04-23  Murray Cumming  <murrayc@murrayc.com>
1304
1305         Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
1306
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
1312         where clause.
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.
1323
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
1327
1328 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1329
1330         Move use of Glom.build_sql*() into a new SqlUtils class.
1331
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.
1336
1337 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1338
1339         Update the project URL.
1340
1341         * pom.xml: Use an OnlineGlom-specific URL for the project URL.
1342
1343 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1344
1345         Main layout: Use a FlowTable instead of absolute positioning.
1346
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.
1351
1352 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1353
1354         GwtTestOnlineGlom: Comment out unused code.
1355
1356         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1357         Eclipse has started to say that some code is unused.
1358
1359 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1360
1361         Update to the latest versions of dependencies.
1362
1363         * pom.xml: Update version numbers of dependencies to the latest
1364         versions.
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.
1371         java:
1372         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1373         Modify the imports where necessary.
1374
1375 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1376
1377         Style: Remove overflow:hidden from searchbox
1378
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.
1382
1383 2012-04-20  Murray Cumming  <murrayc@murrayc.com>
1384
1385         Remove some duplicate code.
1386
1387         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1388         getDocumentInfo(): This must have been duplicated during the merge from the
1389         reports branch.
1390
1391 1.21.8.1:
1392
1393 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
1394
1395         Reports: Localize the waiting for report message.
1396
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.
1407
1408 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
1409
1410         Reports: Show a message while waiting for the report.
1411
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
1418         report generation.
1419
1420 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
1421
1422         ReportGenerator: Specify date and time formats.
1423
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.
1430
1431 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1432
1433         ReportGenerator: Use the correct numeric formatting.
1434
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.
1442
1443 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1444
1445         ReportGenerator: Avoid showing null for group by titles.
1446
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
1450         sections.
1451
1452 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1453
1454         ReportGenerator: Add a colon to titles in vertical groups.
1455
1456         * src/main/java/org/glom/web/server/ReportGenerator.java
1457         addFieldToDetailBandVertical(): Pass true for the withColon
1458         parameter.
1459
1460 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1461
1462         ReportGenerator: Simplify the code by using Position more.
1463
1464 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1465
1466         Reports: Support vertical groups, roughly.
1467
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
1472         too.
1473
1474 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1475
1476         Reports: Allow a second report to be shown.
1477
1478         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1479         clear(): Do not remove the HTML widget, which broke the whole layout.
1480
1481 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1482
1483         Locales drop-down: Show that we use English by default.
1484
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.
1489
1490 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1491
1492         Unselect the Report/Locale/Table combo item when appropriate.
1493
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
1500         to do this.
1501
1502 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1503
1504         Report: Give the user a way to get back to the list.
1505
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.
1509
1510 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1511
1512         Really show the selected Report name.
1513
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
1520         in that case.
1521
1522 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1523
1524         ReportGenerator: Try to avoid some problems.
1525
1526         * src/main/java/org/glom/web/server/ReportGenerator.java
1527         addField(): Try to avoid duplicates, and avoid using a null
1528         class type.
1529
1530 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1531
1532         Reports: Use quickFind.
1533
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.
1542
1543 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1544
1545         ReportPlace: Actually use the report name.
1546
1547         * src/main/java/org/glom/web/client/place/ReportPlace.java
1548         getPlace(): Do not assign the report name to the quickfind.
1549
1550 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1551
1552         Show java.library.path when complaining.
1553
1554         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1555         init(): When telling us to check java.library.path, show the
1556         current value.
1557
1558 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1559
1560         ReportGenerator: Do not show nulls.
1561
1562 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1563
1564         ReportGenerator: Make the title font larger.
1565
1566 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1567
1568         ReportGenerator: Put field titles inside groups, if there are groups.
1569
1570 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1571
1572         ReportGenerator: Take the Report itself instead of the name and group.
1573
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.
1582
1583 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1584
1585         ReportGenerator: Remove designBand parameters.
1586
1587         * src/main/java/org/glom/web/server/ReportGenerator.java:
1588         Make designBand a class member instead of passing it to all
1589         methods.
1590
1591 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1592
1593         ReportGenerator: Add lines, a bit like in the desktop version.
1594
1595         * src/main/java/org/glom/web/server/ReportGenerator.java
1596         addToReport(): Use JRDesignLine.
1597
1598 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1599
1600         ReportGenerator: Correct the title positions and use some bold style.
1601
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 
1605         version.
1606
1607 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1608
1609         ReportGenerator: Add a header band to show the field titles.
1610
1611         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1612         getReportHTML(): Pass the localeId to the ReportGenerator 
1613         constructor.
1614         * src/main/java/org/glom/web/server/ReportGenerator.java
1615         constructor: Take the localeID so we can get translated field
1616         titles.
1617         generateReport(), addToReport(), addFieldToBand(): Add field 
1618         titles in a column header band.
1619
1620 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1621
1622         Reports drop-down list: Some improvement.
1623
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 
1628         first one.
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.
1632
1633 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1634
1635         DetailsActivity, ListActivity: Move some variables into a base class.
1636
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.
1642
1643 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1644
1645         Translate the Reports label.
1646
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.
1651
1652 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1653
1654         Reports: Implement grouping.
1655
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.
1659
1660 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1661
1662         Actually show some data with JasperReports.
1663
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.
1670
1671 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1672
1673         Reports Chooser: Show the titles, not the names.
1674
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 
1681         succeed.
1682
1683 2012-02-15  Murray Cumming  <murrayc@murrayc.com>
1684
1685         Depend on jasperreports.
1686
1687         * pom.xml: Add the dependency. My plan is to use this on the 
1688         server side.
1689
1690 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1691
1692         Implement navigation to report places.
1693
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.
1707
1708 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1709
1710         Make ReportPlace usable.
1711
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.
1716
1717 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1718
1719         OnlineGlomService: Return report HTML rather than the LayoutGroup.
1720
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
1729         the client side.
1730         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1731         Adapted.
1732
1733         Note that there is still no implementation for this.
1734
1735
1736 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1737
1738         Add a (empty) Report Place, View, and Activity.
1739
1740         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1741         Rename to:
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
1748
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.
1753
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.
1759
1760 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
1761
1762         Add and fill a Reports drop-down list box.
1763
1764         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1765         Aded getReports():
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.
1776
1777
1778 1.21.8:
1779
1780 2012-04-12  Murray Cumming  <murrayc@murrayc.com>
1781
1782         Translations: Add Esperanto.
1783
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.
1787
1788 2012-03-15  Murray Cumming  <murrayc@murrayc.com>
1789
1790         Adapt to the java-libglom 1.21.7 API. 
1791
1792         * src/main/java/org/glom/web/server/ReportGenerator.java:
1793         addToReport(): get_group_secondary_fields() is now
1794         get_secondary_fields().
1795
1796
1797 2012-03-15  Murray Cumming  <murrayc@murrayc.com>
1798
1799         Use the latest java-libglom version.
1800
1801         * pom.xml: Use java-libglom 1.21.7.
1802
1803 2012-03-03  Ben Konrath  <ben@bagu.org>
1804
1805         Display date and time in details view.
1806
1807         https://bugzilla.gnome.org/show_bug.cgi?id=671257
1808
1809         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1810
1811 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1812
1813         Require the latest java-libglom.
1814
1815         * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1816
1817 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1818
1819         ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1820
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
1825         need for that fix.
1826
1827 2012-02-24  Ben Konrath  <ben@bagu.org>
1828
1829         Improve the tabs in the Notebook widget.
1830
1831         Bug #670728
1832
1833 2012-01-30  Murray Cumming  <murrayc@murrayc.com>
1834
1835         Translations: Try to translate the strings.
1836
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
1846
1847 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1848
1849         TableSelectionViewImpl: Put the search label and entry in a div.
1850
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.
1855
1856 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1857
1858         Translate more strings in more locales.
1859
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.
1865
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.
1873
1874 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1875
1876         OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
1877
1878         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
1879         Check the ConfiguredDocument* for null before using it.
1880
1881 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1882
1883         Tell Eclipse about the generated java files.
1884
1885         * .classpath: This lets it find OnlineGlomConstants.java.
1886         It would be nice if Eclipse just used the maven build files.
1887
1888 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1889
1890         Prevent a crash when no locale is specified in the URL.
1891
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.
1900
1901 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1902
1903         Use the ?locale= query param instead of the &lang= token param. 
1904
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.
1909         
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.
1914         
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:
1924
1925         Remove localeID member variables and method/constructor parameters, instead
1926         using Utils.getCurrentLocaleID() when we need a localID to pass to 
1927         OnlineGlomService.
1928
1929 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1930
1931         Internationalize the UI strings.
1932
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.
1954         
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
1957
1958 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
1959
1960         Improve null/empty String checks. 
1961
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().
1969
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.
1986
1987 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
1988
1989         Update to the latest java-libglom API.
1990
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
1995         getDocuments():
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).
2001
2002 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
2003
2004         ConfiguredDocument: Avoid a null pointer exception.
2005
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.
2009
2010 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
2011
2012         Some simple renaming.
2013
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.
2018
2019 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
2020
2021         ConfiguredDocument: Rename the localedID private member variable.
2022
2023 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
2024
2025         Adapt to the latest java-libglom API from git master.
2026
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
2029         addLast(). 
2030
2031 2012-01-22  Murray Cumming  <murrayc@murrayc.com>
2032
2033         ConfiguredDocument: Rename the localedID private member variable.
2034
2035 2012-01-20  Murray Cumming  <murrayc@murrayc.com>
2036
2037         Build a source tarball with mvn assembly:single
2038
2039         * assembly.xml: Add this file.
2040         * pom.xml: Use the maven-assembly-plugin and tell it to use 
2041         our assembly.xml file.
2042
2043 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
2044
2045         OnlineGlomServiceImpl: Get .glom files recursively.
2046
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.
2053
2054 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
2055
2056         README: Mention that you must install java-libglom packages separately.
2057
2058         But then it works, because java-libglom is now in the central maven 
2059         repository.
2060
2061 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2062
2063         locales drop-down: Show the correct selected locale when the URL changes.
2064
2065         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2066         .java: setPlace(): Move some code into fillView().
2067
2068 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2069
2070         locales drop-down: Do not lose the primary key.
2071
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.
2075
2076 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2077
2078         locales drop-down: Do not lose the drop-down selection.
2079
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.)
2084
2085 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2086
2087         locales drop-down: Change the tables list when this changes.
2088
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.
2095
2096 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2097
2098         Improve the placement of the locales drop-down.
2099
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 
2104         headerbox below it.
2105
2106 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2107
2108         locales selector: Show human-readable locale titles.
2109
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.
2113
2114 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2115
2116         Add a language/locale selector drop-down.
2117
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 
2131         LocaleChangeEvent.
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.
2136
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 
2139         is a start.
2140
2141
2142 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2143
2144         Search box: Show the search text from the URL token.
2145
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().
2152
2153 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2154
2155         Allow use of translations via, for instance, &lang=de in the URL.
2156
2157         * pom.xml: Use the unstable java-libglom 1.21 version.
2158
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.
2176
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.
2181
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().
2189
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.
2198
2199         This is rather repetitive.
2200
2201         Note that "" means the original (default) locale of the Glom document,
2202         which is usually English.       
2203
2204 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2205
2206         Documents: Remove final keyword to fix startup configuration.
2207
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.
2212
2213 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
2214
2215         Documents: Add some final keywords.
2216
2217         * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
2218         this.
2219
2220 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
2221
2222         OnlineGlomServiceImpl: Add to overview comments.
2223
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.
2227
2228 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
2229
2230         Add a search box.
2231
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 
2235         get the text.
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.
2241
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.
2266
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
2272         is used.
2273
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.
2282
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.
2294
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 
2300         getSelectQuery().
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 
2306         list view results.
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.
2311
2312 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
2313
2314         ListTable: Minor change.
2315
2316         * src/main/java/org/glom/web/client/ui/list/ListTable.java
2317         createCellTable(): Make this protected instead of public.
2318
2319 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
2320
2321         Many files: Use final for the parameters and use the @override attribute.
2322
2323 2012-01-22  Ben Konrath <ben@bagu.org>
2324
2325         Add anchor links for single line text that starts with http, ftp and www.
2326
2327         Bug #667269
2328
2329 2012-01-22  Ben Konrath <ben@bagu.org>
2330
2331         Add ellipsis to single line text in details view.
2332
2333         Bug #667269
2334
2335 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
2336
2337         Remove all javadoc author tags.
2338
2339         Because they are awkward and meaningless when many people touch
2340         many files.
2341         See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
2342  
2343 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
2344
2345         Revert the COPYING.LESSER to COPYING rename.
2346
2347         Apparently both should be there if it is LGPL.
2348
2349 2012-01-03  Murray Cumming  <murrayc@murrayc.com>
2350
2351         *View: Remove unused imports.
2352
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.
2358
2359 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2360
2361         Move the *View::Presenter types, and some API into one base View.
2362
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.
2371
2372         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2373         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2374         va:
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
2378         ity.java:
2379         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2380         .java: Adapt.
2381
2382         Feel free to revert this if there is a good reason for the duplicate
2383         types.
2384
2385 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2386
2387         OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
2388
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.
2395
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++.
2398
2399 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2400
2401         pom.xml: Mention the LGPL license.
2402
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.
2406
2407 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2408
2409         Add project information to README and pom.xml.
2410
2411         * README: Add a brief description and mention some mvn
2412         commands.
2413         * pom.xml: This extra information shows up in mvn site
2414         generated pages.
2415
2416 2011-01-02  Murray Cumming  <murrayc@murrayc.com>
2417
2418         Use the latest java-libglom version.
2419
2420         * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
2421
2422 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2423
2424         GwtTestOnlineGlom: Test a little more.
2425
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
2428         maintianer here:
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.
2432
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.
2437
2438 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2439
2440         Slight modification to *Mapper comments.
2441
2442         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
2443         (DataActivityMapper)
2444         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
2445         pper.java
2446         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
2447         r.java
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.
2452
2453 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2454
2455         GwtTestOnlineGlom test: Minor changes.
2456
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().
2461
2462 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2463
2464         Tests: Added the beginnings of a test using gwt-test-utils.
2465
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.
2473
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 
2476         mockito version.
2477
2478         This test is run during mvn integration-test.
2479
2480 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
2481
2482         Tests: Use junit4-style syntax instead of junit3-style.
2483
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.
2492
2493 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
2494
2495         Added a test for ListPlace token parsing and creation.
2496
2497         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2498         This is much the same as DetailsPlaceTest.
2499
2500         I wonder how we could test the other parts of the *Place API.
2501
2502 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2503
2504         DetailsPlace test: Also test getToken() and recreation via getPlace().
2505
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
2509         values.
2510
2511 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2512
2513         Use the surefire-report plugin.
2514
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.
2518
2519 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2520
2521         Added a test for DetailsPlace.
2522
2523         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2524         Test the getPlace() token parsing.
2525
2526 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2527
2528         Added a first unit test.
2529
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.
2534
2535 2011-12-22  Ben Konrath  <ben@bagu.org>
2536
2537         Change charsetName to "UTF-8" when replacing line breaks.
2538
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
2541         JavaScript.
2542
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
2545         problem:
2546
2547         http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
2548
2549         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2550
2551 2011-12-22  Ben Konrath  <ben@bagu.org>
2552
2553         Fix another bug with related list navigation.
2554
2555         I've tested all the navigation buttons in all of the related lists
2556         so things should be good now.
2557
2558         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2559
2560 2011-12-22  Ben Konrath  <ben@bagu.org>
2561
2562         Fix a crasher when refreshing the list view with the default table.
2563
2564         This crash will also happen when loading the list view with the default
2565         table from a link or bookmark.
2566
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
2569         set.
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
2572         set.
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.
2577
2578 2011-12-21  Ben Konrath  <ben@bagu.org>
2579
2580         Protect against NPE when glom.document.locale is not in config.
2581
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
2584         commented out.
2585
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
2590         displayed.
2591
2592         This commit closes this bug:
2593
2594         https://bugzilla.gnome.org/show_bug.cgi?id=666669
2595
2596         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2597
2598 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
2599
2600         Rename onlineglom.properties to onlineglom.properties.sample.
2601
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.
2606
2607 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
2608
2609         Allow choosing the translation in the .properties file.
2610
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.
2616
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.
2619
2620 2011-12-19  Murray Cumming  <murrayc@murrayc.com>
2621
2622         Avoid a crash in parsing of token parameters.
2623
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.
2627
2628 2011-12-17  Murray Cumming  <murrayc@murayc.com>
2629
2630         History token building/handling: Improve use of token parameters.
2631
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
2647
2648 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
2649
2650         Fix a Navgiation->Navigation typo in the code.
2651
2652         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2653         Rename processNavgiation() to processNavigation().
2654
2655 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
2656
2657         Fix a seperator->separator typo in the code.
2658
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 
2662         misspelling.
2663
2664 2011-12-15  Ben Konrath <ben@bagu.org>
2665
2666         Cleanup some comments.
2667
2668         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2669
2670 2011-12-14  Ben Konrath <ben@bagu.org>
2671
2672         Replace \n with <br/> for multiline text in the details view.
2673
2674         Vertical scrollbars are added when needed as well.
2675
2676         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2677
2678 2011-12-14  Ben Konrath <ben@bagu.org>
2679
2680         Specify the font for document selection links.
2681
2682         * src/main/webapp/style.css:
2683
2684 2011-12-14  Ben Konrath <ben@bagu.org>
2685
2686         Fix bouncy CellTable while paging.
2687
2688         This doesn't currently work with related list tables in unselected
2689         Notebook tabs.
2690
2691         * src/main/java/org/glom/web/client/ui/list/ListTable.java
2692
2693 2011-12-14  Ben Konrath <ben@bagu.org>
2694
2695         Revamp the appearance of the document selection page.
2696
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:
2700
2701 2011-12-13  Ben Konrath <ben@bagu.org>
2702
2703         Set navigation button column to the smallest size possible.
2704
2705         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2706
2707 2011-12-13  Ben Konrath <ben@bagu.org>
2708
2709         Change OpenButton nomenclature to NavigationButton.
2710
2711         Using NavigtionButton makes things more generic. Classes, methods and
2712         variables have been changed.
2713
2714         This is a rename-only refactor.
2715
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:
2723
2724 2011-12-12  Ben Konrath <ben@bagu.org>
2725
2726         Remove unnecessary String argument in RelatedListTable and ListViewTable.
2727
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:
2732
2733 2011-12-12  Ben Konrath <ben@bagu.org>
2734
2735         Update variable names and comments.
2736
2737         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2738         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2739
2740 2011-12-12  Ben Konrath <ben@bagu.org>
2741
2742         Properly initialize numNonEmptyRows variable to zero.
2743
2744         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2745         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2746
2747 2011-12-05  Ben Konrath  <ben@bagu.org>
2748
2749         Add latest mockup with HTML tables.
2750
2751         Features of this mockup:
2752
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
2757
2758         The current version of Online Glom doesn't use HTML tables for the
2759         flowtable columns.
2760
2761         This mockup has been sent to the glom-devel mailing list but it's good
2762         to have it here as well.
2763
2764         * mockups/details-view-html-tables.html:
2765
2766 2011-12-05  Ben Konrath  <ben@bagu.org>
2767
2768         Remove unnecessary getPrimaryKeyField() method.
2769
2770         getPrimaryKeyFieldForTable(String) has been renamed to
2771         getPrimaryKeyField(String).
2772
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:
2776
2777 2011-12-05  Ben Konrath  <ben@bagu.org>
2778
2779         Add string representation of TypedDataItem value to conversion error message.
2780
2781         * src/main/java/org/glom/web/server/Utils.java: Logging the error
2782         message was extracted into its own method to avoid duplication.
2783
2784 2011-12-05  Ben Konrath  <ben@bagu.org>
2785
2786         Add type checking to navigation primary key value creation.
2787
2788         Create navigation primary key only if the expected type from the Glom
2789         document matches the type returned by the SQL query.
2790
2791         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2792
2793 2011-12-05  Ben Konrath  <ben@bagu.org>
2794
2795         Rename a couple of variables in RelatedListNavigation.
2796
2797         This is a rename-only refactor.
2798
2799         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2800
2801 2011-12-05  Ben Konrath  <ben@bagu.org>
2802
2803         Move getListLayoutGroup() into getListViewLayoutGroup().
2804
2805         This removes getListLayoutGroup(). It was only being called by
2806         getListViewLayoutGroup().
2807
2808         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2809
2810 2011-12-05  Ben Konrath  <ben@bagu.org>
2811
2812         Remove check for LayoutItem_Portal in list table method.
2813
2814         This check is no longer necessary because the method isn't being used
2815         to create the LayoutItemPortal DTO.
2816
2817         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2818
2819 2011-12-05  Ben Konrath  <ben@bagu.org>
2820
2821         Properly support related list navigation.
2822
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
2826         problem.
2827
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
2834         list tables.
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
2839         view tables.
2840         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2841         Properly add primary key to related list tables.
2842
2843 2011-12-02  Ben Konrath  <ben@bagu.org>
2844
2845         Properly set the horizontal alignment of fields.
2846
2847         This fix is for both the list tables and the details view.
2848
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.
2852
2853 2011-12-02  Ben Konrath  <ben@bagu.org>
2854
2855         Display currency codes in the details view.
2856
2857         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2858
2859 2011-12-02  Ben Konrath  <ben@bagu.org>
2860
2861         Avoid duplicate JNI call.
2862
2863         JNI is not as efficient as pure Java and this is an easy (and small)
2864         optimization.
2865
2866         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2867         Use previously retrieved value for whereClauseToTableName instead of
2868         getting it again.
2869
2870 2011-12-02  Ben Konrath  <ben@bagu.org>
2871
2872         Rename a couple of variables in RelatedListNavigation.
2873
2874         This is a rename-only refactor.
2875
2876         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2877
2878 2011-12-02  Ben Konrath  <ben@bagu.org>
2879
2880         Indicate clearly that a mismatched primary key type is a bug.
2881
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.
2884
2885 2011-12-02  Ben Konrath  <ben@bagu.org>
2886
2887         Update / fix some comments.
2888
2889         * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
2890         comments.
2891         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
2892         comment.
2893         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2894         Fix comments. Add some TODOs.
2895
2896 2011-12-02  Ben Konrath  <ben@bagu.org>
2897
2898         Enable navigation to details view with string primary key from related list.
2899
2900         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2901         Create a text primary key value when return type of result is
2902         java.sql.Types.VARCHAR.
2903
2904 2011-12-02  Ben Konrath  <ben@bagu.org>
2905
2906         Use checkboxes for booleans in the details view.
2907
2908         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2909
2910 2011-12-01  Ben Konrath  <ben@bagu.org>
2911
2912         Improve performance of related list height calculation.
2913
2914         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2915         Put code to calculate the expected height in a static initializer so
2916         that that it's only called once.
2917
2918 2011-12-01  Ben Konrath  <ben@bagu.org>
2919
2920         Show related list tables in notebooks (again).
2921
2922         Calculate the height of the related list tables so the Notebook can be
2923         set the correct height. The height of the related list table is also needed by
2924         FlowTable to be able decide how to create the layout.
2925
2926         * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
2927         and set the Portal height based on the height of the related list
2928         table and the Portal container.
2929         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2930         Add method to calculate the height of the related list tables.
2931         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2932         * src/main/webapp/style.css: Add css class for Pager. This is needed to
2933         calculate the height of the Pager widget.
2934
2935 2011-12-01  Ben Konrath  <ben@bagu.org>
2936
2937         Use CellTable API for table property instead of setting style on Element.
2938
2939         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2940
2941 2011-12-01  Ben Konrath  <ben@bagu.org>
2942
2943         Make ListViewTable and RelatedListTable a consistent height.
2944
2945         The tables are now a consistent height regardless of the contents of
2946         the table. A hidden button is added to empty rows to ensure that the
2947         height of these rows will match the height of rows with data.
2948
2949         A navigation button column is now added to every table. The width of
2950         the navigation column is set to 0px when a RelatedListTable shouldn't
2951         have navigation buttons. This maintains the a consistent row height in
2952         tables that don't show the navigation buttons.
2953
2954         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
2955         navigation column when not needed.
2956         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
2957         arguments for navigation button to constructor of ListViewTable.
2958         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
2959         hidden button for empty data rows.
2960         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
2961         arguments for navigation button to constructor.
2962         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
2963         create navigation buttons. Add hideNavigationButtons() method.
2964         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
2965         arguments for navigation button to constructor.
2966
2967 2011-12-01  Ben Konrath  <ben@bagu.org>
2968
2969         Use 'visibility: hidden' in Utils.getWidgetHeight().
2970
2971         This is better choice because hidden elements are invisible, don't
2972         respond to events and are not part of the tab order. They will,
2973         however, 
2974