Update the jasperreports version.
[online-glom:gwt-glom.git] / ChangeLog
1 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
2
3         Update the jasperreports version.
4
5         * pom.xml: This was shown by
6         mvn versions:display-dependency-updates
7
8 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
9
10         Eclipse: Reorder the Java Build Path to fix the build in Eclipse.
11
12         * .classpath: This prevents an error saying that getTextContent()
13         is undefined.
14         See http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/
15
16 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
17
18         Explicitly declare some dependencies (and scopes) that we use.
19
20         * pom.xml: The dependency report showed what we use.
21
22 2012-11-20  Murray Cumming  <murrayc@murrayc.com>
23
24         Update the gwt-test-utils version.
25
26         * pom.xml: gwt-test-utils 0.43 uses GWT 2.5.0, not GWT 2.4.0.
27         Using both in the same project was causing gwt-log to fail in GWTBrige,
28         with this error:
29         testOutOfBounds(org.glom.web.server.libglom.DocumentLayoutPathTest):
30         (class: com/google/gwt/core/client/GWT, method: setBridge signature: (Lcom/google/gwt/core/client/GWTBridge;)V) Incompatible argument to function
31
32 2012-11-19  Murray Cumming  <murrayc@murrayc.com>
33
34         DocumentTest: testLocales(): Update for the latest example version.
35
36         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
37         The .glom file, updated in the previous commit, now has more translations.
38
39 2012-11-19  Murray Cumming  <murrayc@murrayc.com>
40
41         Update the .glom files used for tests.
42
43         * src/test/resources/org/glom/web/server/example_film_manager.glom:
44         * src/test/resources/org/glom/web/server/example_music_collection.glom:
45         * src/test/resources/org/glom/web/server/libglom/example_film_manager.glom:
46         * src/test/resources/org/glom/web/server/libglom/example_music_collection.glom:
47         Copy them from git master of Glom.
48
49 2012-11-18  Murray Cumming  <murrayc@murrayc.com>
50
51         Update versions of dependencies.
52
53         * pom.xml: Increase some version numbers based on the output of
54         , using mvn versions:display-dependency-updates.
55         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
56         Use the annotation instead of getModuleName().
57         * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
58         Do not use deprecated assert() classes/methods.
59
60 2012-11-18  Murray Cumming  <murrayc@murrayc.com>
61
62         Document: Correct an import to use the correct Log API.
63
64         * src/main/java/org/glom/web/server/libglom/Document.java:
65         Use our Utils.Log API rather than the jfree one that Eclipse
66         must have suggested at some time.
67
68 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
69
70         Details: Get static image data from our images services.
71
72         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
73         Add constructors for LayoutItemText and LayoutItemImage and
74         deal with their common type instead of just LayoutItemField.
75         setData():
76         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
77         Adapted.
78         * src/main/java/org/glom/web/client/ui/details/Group.java:
79         createChildWidget(): Use the other DetailsCell constructors for
80         these layout items, and do not add them to the list of
81         cells with data from the database.
82         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
83         getValidListViewLayoutGroup(), getDetailsLayoutGroup():
84         Remove the image data when cloning the layout and storing it in the
85         cache. Clients will instead get it via the URL, from
86         our images service.
87         * src/main/java/org/glom/web/server/OnlineGlomImages.java:
88         doGet(): Depending on the URI parameters, optionally get 
89         image data from a layout_item_image in the document,
90         via its layout path.
91         * src/main/java/org/glom/web/server/database/DBAccess.java:
92         convertResultSetToDTO(): Move some URIBuilder code to:
93         * src/main/java/org/glom/web/server/Utils.java:
94         Add buildImageDataUrl() taking the primary key, etc, to
95         get data from the database.
96
97 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
98
99         Document: Static image items: Store an image URL, using the layout path. 
100
101         * src/main/java/org/glom/web/server/Utils.java: Add buildImageDataUrl().
102         * src/main/java/org/glom/web/server/libglom/Document.java:
103         Add a constructor that takes the documentID, for use in the 
104         LayoutItemImage URL.
105         loadLayoutNode(): Pass a Path object to the helper methods, so we 
106         can use it to create a URL for LayoutItemImage items.
107         This seems as good a way as any to specify a layout item in the document.
108         * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
109         Pass the documentID to the constructor, for use in the LayoutItemImage
110         URL.
111
112 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
113
114         Document: Add getLayoutItemByPath().
115
116         * src/main/java/org/glom/web/server/Utils.java:
117         Add buildLayoutPath() and parseLayoutPath().
118         * src/test/java/org/glom/web/server/LayoutPathTest.java: Test that these 
119         utility methods work.
120         * src/main/java/org/glom/web/server/libglom/Document.java:
121         Add Add getLayoutItemByPath().
122         * src/test/java/org/glom/web/server/libglom/DocumentLayoutPathTest.java: Test 
123         that it works.
124
125         This will be useful in subsequent commits.
126
127 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
128
129         Need a short description (OOPS!).
130         Need the bug URL (OOPS!).
131
132         Reviewed by NOBODY (OOPS!).
133
134         Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).
135
136         * .classpath:
137         * .settings/com.google.gdt.eclipse.core.prefs:
138         * .settings/com.google.gwt.eclipse.core.prefs:
139         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
140         (DetailsActivity.createLayout):
141         (DetailsActivity.setData):
142         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
143         (DetailsCell):
144         (DetailsCell.DetailsCell):
145         (DetailsCell.setupWidgets):
146         (DetailsCell.setData):
147         (DetailsCell.getLayoutItem):
148         * src/main/java/org/glom/web/client/ui/details/Group.java:
149         (Group.createChildWidget):
150         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
151         (ConfiguredDocument.getValidListViewLayoutGroup):
152         (ConfiguredDocument.getDetailsLayoutGroup):
153         (ConfiguredDocument):
154         (ConfiguredDocument.updateLayoutItemImages):
155         * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
156         (ConfiguredDocumentSet.getDocumentIdForFilename):
157         (ConfiguredDocumentSet):
158         (ConfiguredDocumentSet.addDocument):
159         (ConfiguredDocumentSet.readConfiguration):
160         * src/main/java/org/glom/web/server/OnlineGlomImages.java:
161         (OnlineGlomImages.OnlineGlomImages):
162         (OnlineGlomImages.doGet):
163         (OnlineGlomImages):
164         (OnlineGlomImages.getImageFromDocument):
165         (OnlineGlomImages.getImageFromDatabase):
166         * src/main/java/org/glom/web/server/Utils.java:
167         (Utils):
168         (Utils.buildImageDataUrl):
169         (Utils.buildImageDataUrlStart):
170         (Utils.buildLayoutPath):
171         (Utils.parseLayoutPath):
172         * src/main/java/org/glom/web/server/database/DBAccess.java:
173         (DBAccess.convertResultSetToDTO):
174         * src/main/java/org/glom/web/server/libglom/Document.java:
175         (Document):
176         (Document.Path):
177         (Document.Document):
178         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
179         (DocumentTest.TestThread.run):
180
181 2012-11-15  Murray Cumming  <murrayc@murrayc.com>
182
183         Document: Use a better base64 decoder to read static image data.
184
185         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
186         getNodeTextChildAsValue(): Use the apache commons base64 decoder
187         instead of the gwt one, because it correctly decodes the strings
188         from g_base64_encode(). It is probably more correct.
189         The newlines might be confusing the gwt decoder.
190
191 2012-11-14  Murray Cumming  <murrayc@murrayc.com>
192
193         Document: Do not use == to compare strings. Use equals().
194
195         * src/main/java/org/glom/web/server/libglom/Document.java:
196         == only checks that they are the same object, so it can 
197         seem to fail.
198
199 2012-11-14  Murray Cumming  <murrayc@murrayc.com>
200
201         Document: Add and use public constants for layout names.
202
203         * src/main/java/org/glom/web/server/libglom/Document.java:
204         Make LAYOUT_NAME_DETAILS and LAYOUT_NAME_LIST public.
205         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
206         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
207         * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
208         * src/test/java/org/glom/web/server/libglom/DocumentTest.java: Use 
209         them here instead of hard-coded the strings repeatedly.
210
211 2012-11-13  Murray Cumming  <murrayc@murrayc.com>
212
213         Document: Load static text and image items too.
214
215         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemImage.java:
216         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemText.java:
217         New LayoutItem classes to represent these layout items.
218         * src/main/java/org/glom/web/shared/libglom/layout/StaticText.java: The 
219         main text of a LayoutItemText.
220         * src/main/java/org/glom/web/server/libglom/Document.java:
221         load_after_layout_group(): Handle the node types and instantiate the 
222         new classes.
223         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
224         Add testLayoutItemText() to check that the text is loaded properly.
225
226 2012-11-13  Murray Cumming  <murrayc@murrayc.com>
227
228         Do not use client.GWT for shared code.
229
230         * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
231         Import shared.GWT instead of client.GWT, which seems to be appropriate.
232
233 2012-11-12  Murray Cumming  <murrayc@murrayc.com>
234
235         Use image data when recreating databases for testing.
236
237         * src/main/java/org/glom/web/shared/DataItem.java: Add get/setImageData(),
238         for use locally (not acrosss the network) when recreating databases
239         for testing.
240         getValue(): Use it here instead of getImageDataUrl(), noting that 
241         this method is only for use when recreating databases.
242         * src/main/java/org/glom/web/server/libglom/Document.java:
243         getNodeTextChildAsValue(): Use it instead of setImageDataUrl().
244
245 2012-11-09  Murray Cumming  <murrayc@murrayc.com>
246
247         OnlineGlomImages: Detect the mime-type (content type).
248
249         * src/main/java/org/glom/web/server/OnlineGlomImages.java:
250         doGet(): Instead of hard-coding image/png.
251
252 2012-11-09  Murray Cumming  <murrayc@murrayc.com>
253
254         Eclipse project files: Use JDK 1.7 instead of JDK 1.6.
255
256         * .classpath:
257         * .settings/org.eclipse.jdt.core.prefs: By changing the Eclipse
258         Java Compiler and Java Build path settings in the UI.
259
260 2012-11-09  Murray Cumming  <murrayc@murrayc.com>
261
262         Use the latest (now stable) version of GWT.
263
264         * pom.xml: And the latest version of the gwt-maven-plugin.
265
266 2012-11-08  Murray Cumming  <murrayc@murrayc.com>
267
268         Added an Indonesian translation.
269
270         * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
271         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_id.properties:
272         This is from the new translation in Glom.
273
274 2012-07-23  Murray Cumming  <murrayc@murrayc.com>
275
276         Details: Show images.
277
278         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
279         Move some code into
280         * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
281         so it can be used in:
282         * src/main/java/org/glom/web/server/OnlineGlomImages.java: A new servlet just
283         for serving image data.
284         * src/main/webapp/WEB-INF/web.xml: Mention the new servlet.
285
286         * src/main/java/org/glom/web/shared/DataItem.java: Added get/setImageDataUrl().
287         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
288         setData(): For image field types, add a GWT Image widget, 
289         with the URL that was set in the DataItem.
290
291         * pom.xml: Depend on org.apache.httpcomponents for UriBuilder.
292         * src/main/java/org/glom/web/server/database/DBAccess.java:
293         convertResultSetToDTO(): Set the URL for image data, so the client browser
294         can retrieve the image from our new servlet. This uses UriBuilder.
295         Move getPrimaryKeyField to:
296         * src/main/java/org/glom/web/server/libglom/Document.java:
297         Added getTablePrimaryKeyField().
298
299         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
300         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
301         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
302         Adapted.
303
304 2012-07-22  Murray Cumming  <murrayc@murrayc.com>
305
306         Rename the servlet.
307
308         * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
309         * src/main/java/org/glom/web/client/OnlineGlomService.java:
310         * src/main/webapp/WEB-INF/web.xml: Change the servlet-name from libGlom
311         to gwtGlom, which is more appropriate.
312         This servlet name does not seem to be visible to the client side anyway.
313
314 2012-07-22  Murray Cumming  <murrayc@murrayc.com>
315
316         Tests: Make the imports of assert*() consistent.
317
318         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
319         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
320         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
321         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
322         * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
323         * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
324         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
325         * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
326         * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
327         * src/test/java/org/glom/web/shared/DataItemTest.java:
328         Just do
329         import static org.junit.Assert.*;
330         which seems fairly common.
331
332 1.21.10 (unstable):
333
334 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
335
336         tests: Move a test that needs a database connection.
337
338         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
339         Move testGetListViewLayoutGroup() to
340         * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
341         because it needs a database connection.
342
343 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
344
345         tests: Use @BeforeClass on tearDown().
346
347         * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
348         * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
349         This avoids leaking a postgres process in SelfHostExampleTest.
350
351 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
352
353         tests: Test translations more.
354
355         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
356         * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
357         Test titles in the non-default locale.
358
359 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
360
361         tests: Add SelfHostConfiguredDocumentTest
362  
363         * src/test/java/org/glom/web/server/SelfHoster.java: Add getters for the 
364         username and password, for use by ConfiguredDocument.
365         * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java: 
366         This tests some of the ConfiguredDocument API that requires a database connection.
367
368 2012-07-21  Murray Cumming  <murrayc@murrayc.com>
369
370         Document: Load title translations and test them.
371
372         * src/main/java/org/glom/web/server/libglom/Document.java: Load the translations
373         of titles. I am surprised that we do not do this yet.
374         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
375         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
376         Test translations more.
377
378 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
379
380         Set JDBC timeouts.
381
382         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
383         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
384         Set the timeout here too.
385
386 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
387
388         tests: ConfiguredDocumentTest: Make this pass.
389
390         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
391         Disable tests that need a database connection.
392
393 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
394
395         Use Java 1.7 instead of Java 1.6.
396
397         * pom.xml: Specify the 1.7 JDK, though I don't like how we seem to need
398         to do this twice, at least for Eclipse.
399         This seems OK because it is the current version.
400
401 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
402
403         Some error checking.
404
405         * src/main/java/org/glom/web/server/Log.java: Avoid using null strings.
406         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
407         Avoid using a null Connection.
408
409 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
410
411         tests: Add a ConfiguredDocument test.
412
413         * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
414         Add this test.
415
416 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
417
418         LayoutItemFIeld: getName(): Use the Field if it is set.
419
420         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
421         getName(): If the full field details have been set, return its name, so that
422         callers do not need to set the name separately.
423         * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
424         testExampleMusiccollectionData): Do not use a TYPE_FORWARD_ONLY statement,
425         so we can count the rows.
426
427 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
428
429         tests: SelfHoster: Test SqlUtils too.
430
431         * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
432         Retrieve some data and check it too, as in the regular Glom
433         test_selfhosting_new_from_example.cc test.
434         * src/test/java/org/glom/web/server/SelfHoster.java:
435         createConnection(): Make this public.
436
437 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
438
439         tests: SelfHoster: createConnection(): Do not warn about expected failures.
440         
441         Let the caller say if the connection is expected to fail, to avoid 
442         irrelevant error output.
443
444 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
445
446         tests: SelfHoster: createAndSelfHostNewEmpty(): Sleep after starting server.
447         
448         * src/test/java/org/glom/web/server/SelfHoster.java:
449         createAndSelfHostNewEmpty(): Sleep initially, to avoid distracting errors
450         due to the inevitable need to retry the connection while the database server
451         starts.
452
453 2012-07-20  Murray Cumming  <murrayc@murray.com>
454
455         tests: SelfHoster: createConnection(): Set a timeout.
456
457         * src/test/java/org/glom/web/server/SelfHoster.java:
458         createConnection(): Use setLoginTimeout() because it otherwise seems to take
459         ages to actually return when it fails.
460
461 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
462
463         tests: SelfHoster: selfHost(): Close the test connection.
464
465         * src/test/java/org/glom/web/server/SelfHoster.java: selfHost():
466         When we check that the connection works, close the connection. This seems
467         to not be closed automatically otherwise.
468
469 2012-07-20  Murray Cumming  <murrayc@murrayc.com>
470
471         Use slf4j-simple to see JDBC errors.
472
473         * pom.xml: Depend on slf4j-simple so we can see errors from JDBC.
474
475 2012-07-19  Murray Cumming  <murrayc@murrayc.com>
476
477         SelfHoster.discoverFirstFreePort(): Close the socket.
478
479         * src/test/java/org/glom/web/server/SelfHoster.java:
480         discoverFirstFreePort(): Close the socket. Eclipse Juno warns about this.
481
482 2012-07-19  Murray Cumming  <murrayc@murrayc.com>
483
484         Avoid another code warning in Eclipse Juno.
485
486         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
487         Do instanceof checks on the FileUtils.listFiles() result and its 
488         items.
489
490 2012-07-13  Murray Cumming  <murrayc@murrayc.com>
491
492         Avoid some code warnings in Eclipse Juno
493
494         * src/main/java/org/glom/web/server/libglom/Document.java:
495         getNodeTextChildAsValue(), setNodeTextChildAsValue(): Handle the invalid type.
496         * src/test/java/org/glom/web/server/SelfHoster.java
497         createTextFile(): Make sure that the FileOutputStream is closed.
498
499 2012-06-22  Murray Cumming  <murrayc@murrayc.com>
500
501         Added OnlineGlomPropertiesTest.
502
503         * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
504         Make sure we never return a null string.
505         * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
506         Added tests of the OnlineGlomProperties API, using our sample file.
507
508 2012-06-20  Murray Cumming  <murrayc@murrayc.com>
509
510         Make OnlineGlomProperties be a normal class.
511
512         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
513         Move OnlineGlomProperties into its own file to be a regular class:
514         * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
515         This makes testing simpler.
516
517 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
518
519         OnlineGlomServiceImpl.init(): Move some code into a new method.
520
521         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
522         Create addDocument().
523
524 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
525
526         OnlineGlomServiceImpl.OnlineGlomProperties: Improve getKey().
527
528         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
529         OnlineGlomProperties.getKey(): Make this more robust by moving the
530         check for *.*.filename to here.
531
532 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
533
534         OnlineGlomServiceImpl: Improve the OnlineGlomProperties class.
535
536         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
537         init(): Move knowledge of the config file format into the 
538         OnlineGlomProperties inner class.
539
540 2012-06-15  Murray Cumming  <murrayc@murrayc.com>
541
542         SelfHostExampleTest: Make sure we cleanup on failure.
543
544         * src/test/java/org/glom/web/server/SelfHostExampleTest.java: Move
545         the use of cleanup() to a tearDown() JUnit method.
546
547 1.21.9.3:
548
549 2012-06-12  Murray Cumming  <murrayc@murrayc.com>
550
551         ConfiguredDocument: Add a primary key to portals at least once.
552
553         * src/main/java/org/glom/web/server/ConfiguredDocument.java
554         updatePortalsExtras): Fix a typo so that we add the primary key
555         column at least once.
556         This is a fix for the previous commit:
557         ConfiguredDocument: Do not add a primary key to portals each time.
558
559 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
560
561         SelfHoster: Avoid some compiler warnings.
562
563         * src/test/java/org/glom/web/server/SelfHoster.java
564         executeCommandLineAndWait():
565         executeCommandLineAndWaitUntilSecondCommandReturnsSuccess(): Comment out
566         the now-unused streams for stdout and stderr from the command Processes.
567         These are not used because readln() hangs while waiting for a new line,
568         where there may be no next line. The commented out code is still there
569         to help us figure out how to do this properly.
570
571 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
572
573         LayoutItemPortalDeepCloneTest: Test something to avoid warnings.
574
575         * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
576         Make this actually test the cloning again, though it is not very useful
577         now that we do not use the part that had a problem with cloning before.
578
579 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
580
581         SelfHoster: Keep trying pg_ctl after starting postgres.
582
583         * src/test/java/org/glom/web/server/SelfHoster.java
584         executeCommandLineAndWaitUntilSecondCommandReturnsSuccess():
585         Try pg_ctl repeatedly (for ever) until it succeeds, as we do in 
586         regular Glom. This seems mad but it seems to work because the first
587         command would fail if pg_ctl would eventually fail.
588
589 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
590
591         SelfHoster: Wait until the server is really ready.
592
593         * src/test/java/org/glom/web/server/SelfHoster.java
594         selfHost(): Attempt the connection after starting the server, retrying 
595         a few times if necessary, so that the server is really ready already when
596         we return from this method.
597         The regular Glom code does this too because pg_ctl reports success too soon.
598
599 2012-06-08  Murray Cumming  <murrayc@murrayc.com>
600
601         ConfiguredDocument: Do not add a primary key to portals each time.
602
603         * src/main/java/org/glom/web/server/ConfiguredDocument.java
604         updatePortalsExtras(): Only add an extra primary key field if there is 
605         none, to avoid adding one each time we retrieve the details layout from the
606         layouts cache.
607         This should fix bug #676986 (Ben Konrath) 
608
609 2012-05-25  Murray Cumming  <murrayc@murrayc.com>
610
611         Document.load(): Support version 7 documents. 
612
613         * src/main/java/org/glom/web/server/libglom/Document.java: Load the 
614         database_title attribute if the title attribute is not there.
615         Bug #676737
616
617 2012-05-24  Ben Konrath  <ben@bagu.org>
618
619         Add configuration for auto-generating mvn:i18n from with Eclipse.
620
621         * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
622
623 2012-05-24  Murray Cumming  <murrayc@murrayc.com>
624
625         Update translations, adding French.
626
627         * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
628         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_fr.properties:
629         Add a French translation, using the translation from Glom.
630
631         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
632         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
633         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
634         Update these based on the translations from Glom.
635
636 2012-05-24  Murray Cumming  <murrayc@murrayc.com>
637
638         SelfHoster: Add some debug println messages to help when things fail.
639
640         * src/test/java/org/glom/web/server/SelfHoster.java: Add several
641         System.out.println() lines.
642
643 2012-05-23  Murray Cumming  <murrayc@murrayc.com>
644
645         Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
646
647         * src/test/java/org/glom/web/server/SelfHoster.java:
648         getPathToPostgresExecutable(): Try some common paths (as on Ubuntu, for 
649         instance) instead of just /usr/bin (as on Fedora). Check the result when 
650         using this method.
651
652 2012-05-23  Murray Cumming  <murrayc@murrayc.com>
653
654         Remove LayoutItemPortal.get/setNavigationTable().
655         
656         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
657         Remove get/setNavigationTable(), which is only a cache, because it is not
658         used, and does not need to be used, because that decision should be made on
659         the server.
660         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
661         updatePortalsExtras():
662         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
663         getNavigationRecord():
664         * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
665         Adapted.
666
667 2012-05-21  Murray Cumming  <murrayc@murrayc.com>
668
669         Initial self-hosting for tests.
670
671         * pom.xml: Change the scope for log4j, to hopefully make it 
672         available to the test code which uses it indirectly via jOOQ.
673         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Allow
674         self-hosting, though we only use it for testing.
675
676         * src/main/java/org/glom/web/server/libglom/Document.java:
677         example rows: Use a map instead of a list for each row of values,
678         so we know what field they are for, instead of relying on the sequence
679         being correct. This is not very efficient, but it does not really need 
680         to be.
681         * src/test/java/org/glom/web/server/libglom/DocumentTest.java
682         testReadTableExampleRows(): Adapted.
683
684         * src/main/java/org/glom/web/shared/DataItem.java: Added getValue()
685         that returns an Object, for generic use. Note that Object seems to be 
686         the implicit base even of double.
687         * src/main/java/org/glom/web/shared/libglom/Field.java: Add getSqlType(),
688         for use in CREATE TABLE SQL queries.
689         * src/test/java/org/glom/web/server/SelfHoster.java: Add this class 
690         to do self-hosting of PostgreSQL databases via its command-line 
691         utilities, based on Glom's C++ code in test_selfhosting_utils.cc and
692         backends/postgres_self.cc. This is incomplete - it needs more 
693         warnings about failures and it needs to clean up properly when things
694         fail.
695         * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple 
696         test of this new class.
697
698 2012-05-21  Murray Cumming  <murrayc@murrayc.com>
699
700         Document: loading example data: Handle exceptions.
701
702         * src/main/java/org/glom/web/server/libglom/Document.java:
703         DateFormat.parse() and Double.valueOf() can throw exceptions, though
704         Eclipse did not warn about that.
705
706 2012-05-20  Murray Cumming  <murrayc@murrayc.com>
707
708         Document: load(), save(): Handle the example rows.
709
710         * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate() 
711         and get/setImage().
712         * src/main/java/org/glom/web/server/libglom/Document.java:
713         load(), save(): Load and save the example rows, though the date, time
714         and image types are not handled properly yet.
715         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
716         Add testReadTableExampleRows() just to check that something is read.
717
718 2012-05-20  Murray Cumming  <murrayc@murrayc.com>
719
720         Document: Add save().
721
722         * src/main/java/org/glom/web/shared/libglom/Translatable.java:
723         Added getTranslationsMap() for use while saving.
724         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
725         Adedd getUseDefaultFormatting() for use while saving.
726         * src/main/java/org/glom/web/server/libglom/Document.java: Added save()
727         and several private methods that it uses.
728
729         This will be useful while testing via self-hosting.
730         It is not complete, but should be complete enough for testing.
731
732 2012-05-17  Murray Cumming  <murrayc@murrayc.com>
733
734         OnlineGlomService: Simplify the getList/RelatedViewData() methods.
735
736         * src/main/java/org/glom/web/client/OnlineGlomService.java
737         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
738         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
739         Remove getSortedListViewData() and getSortedRelatedListData(), adding
740         the sort column index and ascending bool to the regular method.
741         Instead, a sort column index of -1 now means no sort.
742         This is less explicit, but it's fairly simple, reduces the amount of 
743         code, and makes the OnlineGlomService API slightly smaller.
744         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
745         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
746         getDataProvider():
747         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
748         getListViewData(), getRelatedListData():
749         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
750         getListViewData(), getRelatedListData():
751         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
752         getListData():
753         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
754         getData():
755         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
756         getData(): Adapted.
757
758 1.21.9.2:
759
760 2012-05-16  Murray Cumming  <murrayc@murrayc.com>
761
762         Use translations for top-level groups too.
763
764         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
765         updateTitlesForLocale(): Use the translation for the group 
766         as well as for child items.
767
768 1.21.9.1:
769
770 Just recompiled to fix a problem in the released .tar.gz file.
771
772 1.21.9:
773
774 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
775
776         Corrections to navigation to related records.
777         
778         * src/main/java/org/glom/web/client/OnlineGlomService.java:
779         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
780         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
781         getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
782         getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a 
783         relationship name, because the relationship name is not necessarily unique 
784         on the layout.
785         TOOD: This is inefficient, because it passes the whole list of 
786         child field items back to the server, but it is more correct, and happens
787         to fix a bug with the primary key being lost after a few navigations.
788         There is probably a chance to make this more efficient anyway in some 
789         more basic way.
790         
791         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
792         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
793         * src/main/java/org/glom/web/server/ConfiguredDocument.java
794         * src/main/java/org/glom/web/server/database/DBAccess.java
795         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
796         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
797         Adapted.
798
799 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
800
801         Fix the use of translations.
802
803         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
804         Add updateTitlesForLocale().
805         getValidListViewLayoutGroup(), getDetailsLayoutGroup():
806         Call it to discard unwanted translations and to make getTitle() return
807         the wanted translation wihout the need for the client code to specify a locale.
808         * src/main/java/org/glom/web/shared/libglom/Translatable.java:
809         getTitle(): Fallback to the original title, as libglom does.
810
811 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
812
813         Document: Correctly report the number of available translation locales.
814
815         * src/main/java/org/glom/web/server/libglom/Document.java: Fill
816         the available locale IDs list.
817         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
818         testLocales: Test this.
819
820 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
821
822         SqlUtils: Use camelCase.
823
824         * src/main/java/org/glom/web/server/SqlUtils.java: Use camelCase.
825         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
826         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
827         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
828         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
829         * src/main/java/org/glom/web/server/ReportGenerator.java: Adapt.
830
831 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
832
833         Use jOOQ's tableByName() and fieldByName.
834
835         * pom.xml: Use jOOQ 2.3.1 to get the new API.
836         * src/main/java/org/glom/web/server/SqlUtils.java:
837         build_sql_select_step_with_where_clause(), .createField(),
838         builder_add_join(): Use Factory.tableByName() and Factory.fieldByName()
839         so we can get correct quoting and escaping. Thanks to Lukas Eder for 
840         adding this, and other things, to jOOQ.
841
842 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
843
844         SqlUtils: Remove the Connection parameters.
845
846         * src/main/java/org/glom/web/server/SqlUtils.java:
847         build_sql_select_with_key(), build_sql_select_with_where_clause(),
848         createSelect(), build_sql_select_step_with_where_clause(),
849         build_sql_count_select_with_where_clause(),
850         build_sql_select_count_rows(): Remove the Connection parameter because
851         jOOQ does not actually need a connectionwhen it is just used to build 
852         a SQL string:
853         https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
854
855         * src/main/java/org/glom/web/server/ReportGenerator.java:
856         generateReport():
857         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
858         getData():
859         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
860         Constructor, getListData(), getResultSizeOfSQLQuery():
861         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
862         getSelectQuery(), getCountQuery():
863         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
864         getSelectQuery(), getCountQuery():
865         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
866         getNavigationRecord(): Adapted.
867
868 2012-05-14  Murray Cumming  <murrayc@murrayc.com>
869
870         Fix quick find.
871
872         * src/main/java/org/glom/web/server/SqlUtils.java:
873         get_find_where_clause_quick(): Use a comparison of 
874         lowercase values, instead of a simple equals. Regular Glom
875         uses the PostgreSQL ILIKE operator but jOOQ does not 
876         support that just yet, though it will soon.
877
878 2012-05-14  Murray Cumming  <murrayc@murrayc.com>
879
880         TableToViewDetails: Use a real serialization ID.
881
882         * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
883         Though this does not fix the serialization problem.
884
885 2012-05-12  Murray Cumming  <murrayc@murrayc.com>
886
887         Added LayoutItemPortalDeepCloneTest.
888
889 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
890
891         Make navigation work again.
892
893         * src/main/java/org/glom/web/server/libglom/Document.java:
894         Add getLayoutItemFieldShouldHaveNavigation().
895         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
896         Replace get/setAddNavigation() with the partly-existing 
897         get/setNavigationTableName(), with an empty string being no navigation,
898         because this is simpler. Use the new 
899         Document.getLayoutItemFieldShouldHaveNavigation() method to set this.
900         
901         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
902         Add updateFieldsExtras() and call setNavigationTableName in it.
903         getDetailsLayoutGroup(), 
904         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
905         createLayout(): Adapted.
906         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
907         Constructor: Adapted.
908
909         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
910         Replace get/setAddNavigation() with get/setNavigation(), returning a
911         TableToViewDetails class with both the table name and UsesRelationship,
912         because both are need. The previous code used java-libglom's output 
913         variable (strangely, via sharedptr) to return both, but we cannot really
914         do that in Java.
915         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
916         getNavigationRecord(): Adapt. However, we cannot actually use the cache
917         here because it somehow gets set to null during deepCopy(). I must test this.
918         * src/test/java/org/glom/web/server/libglom/DocumentTest.java
919         testGetSuitableTableToViewDetails(): Adapted.
920         
921         TODO: Find out why deepClone() is not quite working.
922         
923 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
924
925         DBAccess: Simplify the retrievel of full field details.
926
927         * src/main/java/org/glom/web/server/database/DBAccess.java
928         getFieldsToShowForSQLQueryAddGroup(). This might be unnecessary anyway,
929         because the Document loading should have done this.
930
931 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
932
933         Document: Correct loading of doubly-related layout fields.
934
935         * src/main/java/org/glom/web/server/libglom/Document.java:
936         loadUsesRelationship(): Actually set the related relationship, instead
937         of only setting it if it's not found.
938
939 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
940
941         Replace all appearances of Colour with color.
942
943         Because US English is dominant.
944
945 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
946
947         Use colors in HTML format, solving a warning about an unused function.
948
949         * src/main/java/org/glom/web/shared/libglom/NumericFormat.java
950         * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
951         Add *asHTMLColor() versions of methods.
952         TODO: However, we should create and cache the results on the server.
953         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
954         * src/main/java/org/glom/web/client/ui/list/ListTable.java
955         * src/main/java/org/glom/web/server/ConfiguredDocument.java
956         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
957         Use the asHTMLcolor() versions.
958
959 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
960
961         ListViewTable: Constructor: Take the table name as a parameter.
962
963         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
964         Constructor: Take the tableName, and set the member variable, because
965         we use it here.
966         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
967         setCellTable(): Pass the table name.
968         This makes navigation to non-default tables work again. I don't know 
969         why it worked before in the master branch.
970
971 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
972
973         ConfiguredDocument: Restore correct addition of hidden primary key items.
974
975         * src/main/java/org/glom/web/client/ui/list/ListTable.java
976         (ListTable.createCellTable): Uncomment out the check for the hidden
977         primary key.
978         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Only
979         add primary key items for top-level lists and portals, as before, 
980         instead of adding them to each group.
981         * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java:
982         Actually implement the extra methods such as setHiddenPrimaryKey() and
983         comment that these are used only for top-level list groups and in portals.
984         This strangeness suggests even more that this should not be squeezed
985         into the LayoutGroup class.
986
987 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
988
989         Fix Formatting loading.
990
991         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
992         getFormattingUsed(): Remove the duplicate Formatting member variable
993         in favour of the one from the base class.
994         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
995         Initialize a new Formatting instead of using null by default, so we 
996         have some defaults, instead of having to initialize one later just to 
997         get the same defaults. This also makes loading of formatting from the
998         document work, because that expected a non-null.
999
1000 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
1001
1002         RelatedListTable: Make sure that the tableName is set.
1003
1004         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1005         Constructor: Take the tableName so it is available later. Otherwise, 
1006         the server assumes that we mean the default table and cannot find the
1007         relationship in it.
1008         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1009         setData(): Pass the tableName to the RelatedListTable constructor.
1010
1011 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
1012
1013         Add some checks.
1014
1015         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1016         RelatedListNavigationButtonCell.onEnterKeyDown(), setData():
1017         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1018         getDataProvider():
1019         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1020         addColumn():
1021         * src/main/java/org/glom/web/server/database/DBAccess.java:
1022         convertResultSetToDTO(), getPortal():
1023         * src/main/java/org/glom/web/server/database/ListDBAccess.java
1024         getListData():
1025         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1026         Add checks for null objects and out of range access, with log messages to
1027         give hints so we can fix these properly.
1028
1029 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
1030
1031         Portals: some corrections.
1032
1033         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1034         setData():
1035         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1036         constructor: Use getRelationshipNameUsed() instead of getName(), because
1037         that is what is meant.
1038         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1039         getFromField(): Fix a typo, to get the field name, not the table name.
1040         * src/main/java/org/glom/web/server/database/DBAccess.java:
1041         getPortal(): Fix a typo that stopped this from working.
1042
1043 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
1044
1045         LayoutItemPortal: Also override getTitleOriginal().
1046
1047         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1048         This lets the base getTitle() with no parameters work.
1049         TODO: Test this properly.
1050
1051 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1052
1053         LayoutItemPortal: getTitle*(): Use the relationship title.
1054
1055 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1056
1057         LayoutItemField: Fix loading of custom titles.
1058
1059         * src/main/java/org/glom/web/server/libglom/Document.java
1060         loadDataLayoutItemField(): The title, if any, instead of the field 
1061         title, is stored in a title_custom node. Load it from there.
1062         * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
1063         class.
1064         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
1065         Add getCustomTitle() and use it, instead of super.getTitle*(), in the
1066         getTitle*() overrides.
1067         * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1068         Adapt.
1069
1070 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1071
1072         LayoutItemField: Fall back to field titles, so some are really shown.
1073
1074         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
1075         Override getTitleOriginal() and getTitle(), as in java-libglom.
1076         * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1077         Test this behaviour.
1078
1079 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1080
1081         Correct use of setExpectedResultSize().
1082
1083         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1084         getValidListViewLayoutGroup(), getDetailsLayoutGroup():
1085         Use setExpectedResultSize only on top-level groups (for instance, the
1086         list layout) or on child portals (in details views).
1087         Use the correct table name for portals to avoid SQL errors.
1088         Update the expected counts when returning cached layouts.
1089
1090 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1091
1092         Document: Interpret no group column count as 1.
1093
1094         * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
1095         default, though we now check for this in the UI code anyway.
1096
1097 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1098
1099         More null checks.
1100
1101 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1102
1103         Translatable: Use Hashmap instead of Treemap because GWT supports it.
1104
1105         * src/main/java/org/glom/web/shared/libglom/Translatable.java:
1106         The use of Treemap lead to this error from async methods, with no 
1107         further clue:
1108         "The response could not be deserialized"
1109
1110 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1111
1112         OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
1113
1114         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary 
1115         when using the Google -> GWT Compile, or 
1116         g toolbar button -> GWT Compile Project... feature in Eclipse.
1117
1118 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1119
1120         ListTable.addColumn(): Protect against a null Formatting.
1121
1122         * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
1123         Create a default Formatting if it is null, because that is the simplest
1124         way to do this.
1125
1126 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1127
1128         ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
1129
1130         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1131         updateLayoutGroup(): Check that the field is not null.
1132
1133 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1134
1135         ListViewImpl: Protected against a bad cast error.
1136
1137         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1138         onEnterKeyDown(): Do not cast without an instanceof check.
1139
1140 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1141
1142         ListTable: Protect against an out of range error.
1143
1144         * src/main/java/org/glom/web/client/ui/list/ListTable.java
1145         createCellTable(): This is unlikely, but can happen while debugging.
1146
1147 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1148
1149         AsyncMessage onFailure() callbacks: Log the exception message.
1150
1151         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1152         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1153         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1154         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1155         * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1156         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1157         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1158         These are useful clues when something is wrong.
1159
1160 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1161
1162         ConfiguredDocument: Avoid a null dereference.
1163
1164         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1165         TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and 
1166         details maps are created.
1167
1168 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
1169
1170         Document: Correct the port number parsing.
1171
1172         * src/main/java/org/glom/web/server/libglom/Document.java:
1173         This lets us actually connect to the database and show the document.
1174
1175 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1176
1177         Fix mvn gwt:test
1178
1179         * pom.xml: Use htmlunit mode for gwt:test, because the default demands
1180         user-interaction, asking us to load a temporary URL in a browser.s
1181         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
1182         which is apparently necessary for testing the service. See the comment.
1183         * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java: 
1184         Show the exception, if any. This is how I saw the 404 in the HTML in 
1185         the exception.
1186
1187 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1188
1189         DocumentTest: Move the .glom files into the resources directory.
1190
1191         * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
1192         URI via getResource().
1193
1194 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1195
1196         Document: Remove the FieldIdentifies inner class.
1197
1198         * src/main/java/org/glom/web/server/libglom/Document.java: We only
1199         use the Relationship (though the same function in libglom is maybe
1200         used in other ways) and so this removes a compiler warning.
1201
1202 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1203
1204         Document.load() Remove the error code parameter.
1205
1206         * src/main/java/org/glom/web/server/libglom/Document.java: load():
1207         Remove the parameter. We do not set it yet and it could never have
1208         worked as an output parameter (though maybe it did in java-libglom).
1209         We could use an exception if we really want the failure reason.
1210         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1211         init():
1212         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
1213         setUp(), testGetSuitableTableToViewDetails(): Adapt.
1214
1215 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1216
1217         Make some inner classes static.
1218
1219         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1220         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1221         * src/main/java/org/glom/web/server/ReportGenerator.java
1222         * src/main/java/org/glom/web/server/libglom/Document.java
1223         Make all inner classes static that can be static.
1224
1225 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1226
1227         OnlineGlomServiceImpl: Do not load and check for java-libglom.
1228
1229         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1230         init(): We do not use java-libglom any more.
1231
1232 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1233
1234         Remove mentions of java-libglom.
1235
1236         * README: Remove mention of java-libglom, because it no longer needed.
1237         * utils/build-onlineglom-war.sh:
1238         * utils/check-and-recover-tomcat.py:
1239         * utils/install-onlineglom-war.sh: Remove these as they are no longer
1240         useful. Building is now far easier, with no need for jhbuild.
1241
1242 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
1243
1244         Fix the build (mvn package)
1245
1246         * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
1247         (LayoutGroup): Make the LayoutItemList inner class static and protected.
1248         Otherwise the GWT Java->Javascript compilation fails with just this
1249         error, during mvn package or when attempting to view in a browser, 
1250         in the GWT developer mode in Eclipse.
1251
1252         [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
1253         [INFO] auto discovered modules [org.glom.web.OnlineGlom]
1254         [INFO] Compiling module org.glom.web.OnlineGlom
1255         [INFO]    [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
1256         [INFO]       [ERROR] Line 46:  Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
1257         [INFO]    Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1258         [INFO]       [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
1259         [INFO]          [WARN] org.glom.web.client.OnlineGlomService_Proxy
1260         [INFO]    [ERROR] Cannot proceed due to previous errors
1261
1262         It has taken me 2 days to find out what was causing that. After reducing
1263         the code, the compiler eventually showed me the full error message.
1264
1265 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1266
1267         ConfiguredDocument: Cache the cloned and stripped layouts.
1268
1269         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1270         getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
1271         layout in a map, so we can retrieve it again without rebuilding it.
1272
1273 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1274
1275         UsesRelationshipImpl: Complete the relationshipEquals() implementation.
1276
1277 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1278
1279         libglom classes: Implement some auto-generated emthods.
1280
1281 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1282
1283         Add GwtTestOnlineGlomService.
1284
1285         * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1286         However, this (and the other GwtTest*) does not seem to run during 
1287         mvn test. 
1288
1289 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
1290
1291         Remove use of unsupported features from client code.
1292
1293         * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
1294         * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
1295         * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
1296         Use our client version of StringUtils instead of the apache commons one.
1297         
1298         However, the GWT Javascript compliation still fails.
1299
1300 2012-04-25  Murray Cumming  <murrayc@murrayc.com>
1301
1302         Add a Field class and implement some loading of it in Document.
1303
1304 2012-04-25  Murray Cumming  <murrayc@murrayc.com>
1305
1306         Initial Document loading implementation, instead of libglom.
1307
1308         * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
1309         and Translatable classes, and adapt the rest of the code to use them.
1310         However, this is still missing Layout and Field classes and loading.
1311
1312 2012-04-24  Murray Cumming  <murrayc@murrayc.com>
1313
1314         Use of jOOQ: Move Field creation into a utility method.
1315
1316         * src/main/java/org/glom/web/server/SqlUtils.java:
1317         This lets us improve it more easily.
1318
1319 2012-04-24  Murray Cumming  <murrayc@murrayc.com>
1320
1321         Use of jOOQ: Improve the code to COUNT a sub-select.
1322
1323         * src/main/java/org/glom/web/server/SqlUtils.java:
1324         Move initial query creation into 
1325         build_sql_select_step_with_where_clause().
1326         build_sql_select_count_rows(): Use the jOOQ API instead of
1327         concatentating text, because a jOOQ Select*Step is a TableLike,
1328         which is what from() takes.
1329
1330 2012-04-23  Murray Cumming  <murrayc@murrayc.com>
1331
1332         Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
1333
1334         * pom.xml: Depend on jooq.
1335         * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
1336         methods with jOOQ, based on the C++ implementations in libglom,
1337         with some changes to the logic required by jooQ.
1338         Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
1339         where clause.
1340         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1341         * src/main/java/org/glom/web/server/ReportGenerator.java:
1342         * src/main/java/org/glom/web/server/SqlUtils.java:
1343         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1344         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1345         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1346         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1347         * src/main/java/org/glom/web/server/database/RelatedListNavigation:
1348         Adapt. In particular, the SqlUtils methods now need to take a Connection,
1349         because jOOQ needs that, though it seems unnecessary.
1350
1351         This is not quite finished. Ideally jOOQ would help us to build 
1352         table_name.field_name names, quoting and escaping them properly.
1353         See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
1354
1355 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1356
1357         Move use of Glom.build_sql*() into a new SqlUtils class.
1358
1359         * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
1360         to wrap Glom.build_sql*(). The parameter types are still Glom one,
1361         but this will make it easier to start using something other than 
1362         libglom or SqlBuilder.
1363
1364 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1365
1366         Update the project URL.
1367
1368         * pom.xml: Use an OnlineGlom-specific URL for the project URL.
1369
1370 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1371
1372         Main layout: Use a FlowTable instead of absolute positioning.
1373
1374         * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
1375         The RootLayoutPanel is a (extends) AbsolutePanel, so each of its 
1376         child panels/widgets must have an absolute position. But that is annoying, so
1377         this adds a FlowTable and puts the child panels in there.
1378
1379 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1380
1381         GwtTestOnlineGlom: Comment out unused code.
1382
1383         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1384         Eclipse has started to say that some code is unused.
1385
1386 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
1387
1388         Update to the latest versions of dependencies.
1389
1390         * pom.xml: Update version numbers of dependencies to the latest
1391         versions.
1392         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1393         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1394         * src/main/java/org/glom/web/server/ReportGenerator.java:
1395         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1396         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1397         * src/main/java/org/glom/web/server/database/RelatedListNavigation.
1398         java:
1399         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1400         Modify the imports where necessary.
1401
1402 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1403
1404         Style: Remove overflow:hidden from searchbox
1405
1406         * src/main/webapp/style.css: Because this pushes the Back To Link
1407         label/link on to the next row, which is then hidden due to the 
1408         hard-coded (in ems) height.
1409
1410 2012-04-20  Murray Cumming  <murrayc@murrayc.com>
1411
1412         Remove some duplicate code.
1413
1414         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1415         getDocumentInfo(): This must have been duplicated during the merge from the
1416         reports branch.
1417
1418 1.21.8.1:
1419
1420 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
1421
1422         Reports: Localize the waiting for report message.
1423
1424         * src/main/java/org/glom/web/client/activity/ReportActivity.java
1425         start(): Get the message from the contants.
1426         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1427         Add the string here.
1428         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1429         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1430         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1431         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1432         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1433         Update these files with the English text for newer strings for now.
1434
1435 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
1436
1437         Reports: Show a message while waiting for the report.
1438
1439         * src/main/java/org/glom/web/client/ui/ReportView.java
1440         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1441         Add setWaitingText(), to show a message saying that we are 
1442         waiting for the report to be ready.
1443         * src/main/java/org/glom/web/client/activity/ReportActivity.java
1444         start(): Call setWaitingText() before calling the async
1445         report generation.
1446
1447 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
1448
1449         ReportGenerator: Specify date and time formats.
1450
1451         * src/main/java/org/glom/web/server/ReportGenerator.java:
1452         createFieldValueElement(): Use the default (and localized)
1453         short formats, though we still need a way to show 4-digit
1454         years without providing the format for every locale.
1455         * src/main/java/org/glom/web/server/database/DBAccess.java:
1456         convertResultSetToDTO(): Use the short formats here too.
1457
1458 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1459
1460         ReportGenerator: Use the correct numeric formatting.
1461
1462         * src/main/java/org/glom/web/server/ReportGenerator.java
1463         createFieldExpression(), createFieldValueElement(): Take the
1464         whole LayoutItem_Field instead of just the field name, so
1465         we have access to the formatting.
1466         createFieldValueElement(): Use JRTextField.setPattern() to
1467         specify the numeric formatting, with the help of a 
1468         regular DecimalFormat.
1469
1470 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1471
1472         ReportGenerator: Avoid showing null for group by titles.
1473
1474         * src/main/java/org/glom/web/server/ReportGenerator.java
1475         generateReport(): Use setBlankWhenNull() on the field title
1476         style too, because this is used for values in group by
1477         sections.
1478
1479 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1480
1481         ReportGenerator: Add a colon to titles in vertical groups.
1482
1483         * src/main/java/org/glom/web/server/ReportGenerator.java
1484         addFieldToDetailBandVertical(): Pass true for the withColon
1485         parameter.
1486
1487 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1488
1489         ReportGenerator: Simplify the code by using Position more.
1490
1491 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
1492
1493         Reports: Support vertical groups, roughly.
1494
1495         * src/main/java/org/glom/web/server/ReportGenerator.java:
1496         addToReport(): Rename to addGroupToReport() and, if necessary,
1497         call the new addVerticalGroupToReport() method.
1498         createFieldValueElement(): Let the caller specify the Y position
1499         too.
1500
1501 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1502
1503         Reports: Allow a second report to be shown.
1504
1505         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1506         clear(): Do not remove the HTML widget, which broke the whole layout.
1507
1508 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1509
1510         Locales drop-down: Show that we use English by default.
1511
1512         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1513         fillView(): When we use English, just because that is the default, when
1514         no locale is specified, show that in the Locales drop-down instead of 
1515         just showing the first item.
1516
1517 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1518
1519         Unselect the Report/Locale/Table combo item when appropriate.
1520
1521         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1522         setPlace(): clear reportName if this is not a ReportPlace.
1523         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1524         setSelectedTableName(), setSelectedLocale(), setSelectedReport():
1525         When the provided name is empty, unselect all items, so that none are
1526         indicated. This uses a for loop because I cannot find a single method
1527         to do this.
1528
1529 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
1530
1531         Report: Give the user a way to get back to the list.
1532
1533         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1534         start(), setPlace(): Show the Back To List link on reports, and also 
1535         interpret selecting the empty report item as back to list.
1536
1537 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1538
1539         Really show the selected Report name.
1540
1541         * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1542         setPlace(): Store the reportName here, if it is that kind of Place.
1543         fillView(): Set the selected Report after filling the list of reports.
1544         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1545         setSelectedLocale(), setSelectedReport(): Avoid possible uses of
1546         null Strings, though we need some way to unselect all ListBox items
1547         in that case.
1548
1549 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1550
1551         ReportGenerator: Try to avoid some problems.
1552
1553         * src/main/java/org/glom/web/server/ReportGenerator.java
1554         addField(): Try to avoid duplicates, and avoid using a null
1555         class type.
1556
1557 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1558
1559         Reports: Use quickFind.
1560
1561         * src/main/java/org/glom/web/client/OnlineGlomService.java;
1562         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1563         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1564         getReportHTML(): Add a quickFind parameter.
1565         * src/main/java/org/glom/web/client/activity/ReportActivity.java
1566         start(): Pass the quickFind parameter.
1567         * src/main/java/org/glom/web/server/ReportGenerator.java
1568         generateReport(): Take a quickFind parameter.
1569
1570 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1571
1572         ReportPlace: Actually use the report name.
1573
1574         * src/main/java/org/glom/web/client/place/ReportPlace.java
1575         getPlace(): Do not assign the report name to the quickfind.
1576
1577 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
1578
1579         Show java.library.path when complaining.
1580
1581         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1582         init(): When telling us to check java.library.path, show the
1583         current value.
1584
1585 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1586
1587         ReportGenerator: Do not show nulls.
1588
1589 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1590
1591         ReportGenerator: Make the title font larger.
1592
1593 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1594
1595         ReportGenerator: Put field titles inside groups, if there are groups.
1596
1597 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1598
1599         ReportGenerator: Take the Report itself instead of the name and group.
1600
1601         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1602         Remove getReportLayoutGroup().
1603         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1604         getReportHTML(): Pass the report instead
1605         of its name and layout group.
1606         * src/main/java/org/glom/web/server/ReportGenerator.java
1607         generateReport(): Use the report object to use the title 
1608         instead of the name.
1609
1610 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1611
1612         ReportGenerator: Remove designBand parameters.
1613
1614         * src/main/java/org/glom/web/server/ReportGenerator.java:
1615         Make designBand a class member instead of passing it to all
1616         methods.
1617
1618 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1619
1620         ReportGenerator: Add lines, a bit like in the desktop version.
1621
1622         * src/main/java/org/glom/web/server/ReportGenerator.java
1623         addToReport(): Use JRDesignLine.
1624
1625 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1626
1627         ReportGenerator: Correct the title positions and use some bold style.
1628
1629         * src/main/java/org/glom/web/server/ReportGenerator.java:
1630         Break the code up into reusable functions, correct the placement of 
1631         titles, and use normal/bold styles as in the reports in the desktop 
1632         version.
1633
1634 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1635
1636         ReportGenerator: Add a header band to show the field titles.
1637
1638         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1639         getReportHTML(): Pass the localeId to the ReportGenerator 
1640         constructor.
1641         * src/main/java/org/glom/web/server/ReportGenerator.java
1642         constructor: Take the localeID so we can get translated field
1643         titles.
1644         generateReport(), addToReport(), addFieldToBand(): Add field 
1645         titles in a column header band.
1646
1647 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1648
1649         Reports drop-down list: Some improvement.
1650
1651         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1652         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1653         Adedd setSelectedReport(),
1654         setReportList(): Add a blank line so that the user can select the 
1655         first one.
1656         * src/main/java/org/glom/web/client/activity/ReportActivity.java
1657         start(): Show the current report by calling setSelectedReport().
1658         This does not seem to work yet.
1659
1660 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1661
1662         DetailsActivity, ListActivity: Move some variables into a base class.
1663
1664         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1665         * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
1666         * src/main/java/org/glom/web/client/activity/ListActivity.java: Move 
1667         the clientFactory, documentID, tableName and authenticationPopup into
1668         a base class, to avoid duplication.
1669
1670 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1671
1672         Translate the Reports label.
1673
1674         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1675         Get the "Reports" label string from the constants.
1676         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
1677         perties: Add Reports to the constants.
1678
1679 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1680
1681         Reports: Implement grouping.
1682
1683         * src/main/java/org/glom/web/server/ReportGenerator.java:
1684         Handle LayoutItem_GroupBy items and try to do the right thing
1685         with JRDesignGroup. It seems to work.
1686
1687 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1688
1689         Actually show some data with JasperReports.
1690
1691         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 
1692         getReportHTML(): Move most code into a ReportGenerator class.
1693         * src/main/java/org/glom/web/server/ReportGenerator.java:
1694         Recurse into sub-groups, adding fields to the JasperDesign's details
1695         band. Note that we must set an arbitrary width and height, or it just
1696         will not show any data.
1697
1698 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1699
1700         Reports Chooser: Show the titles, not the names.
1701
1702         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1703         (TableSelectionViewImpl.setReportList): Show the titles in the UI,
1704         and the names as the values.
1705         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1706         (ConfiguredDocument.getReportLayoutGroup): Do not return a default
1707         group now that we provide the report name, so it should always 
1708         succeed.
1709
1710 2012-02-15  Murray Cumming  <murrayc@murrayc.com>
1711
1712         Depend on jasperreports.
1713
1714         * pom.xml: Add the dependency. My plan is to use this on the 
1715         server side.
1716
1717 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1718
1719         Implement navigation to report places.
1720
1721         * src/main/java/org/glom/web/client/activity/ReportActivity.java
1722         start(): Do not bother to handle all events here.
1723         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1724         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1725         Added getSelectedReport().
1726         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1727         .java: start(): When handling a change to the reports chooser,
1728         call getSelectedReport() and goTo() its ReportPlace.
1729         * src/main/java/org/glom/web/client/ui/ReportView.java
1730         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1731         Added setReportHTML() which puts the html in a gwt HTML widget.
1732         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1733         getReportHTML(): Return "TODO" just to show that this works.
1734
1735 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1736
1737         Make ReportPlace usable.
1738
1739         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1740         Mention ReportPlace.
1741         * src/main/java/org/glom/web/client/place/ReportPlace.java:
1742         Correct the @prefix annotation.
1743
1744 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1745
1746         OnlineGlomService: Return report HTML rather than the LayoutGroup.
1747
1748         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1749         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1750         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1751         Change getReportLayout() to getReportHMTL() because we will not need to 
1752         parse or render the report layout on the client side.
1753         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1754         getReportLayout(): Return the libglom LayoutGroup type because we will
1755         not need to convert to a shared type, because this will not be used on
1756         the client side.
1757         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1758         Adapted.
1759
1760         Note that there is still no implementation for this.
1761
1762
1763 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1764
1765         Add a (empty) Report Place, View, and Activity.
1766
1767         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1768         Rename to:
1769         * src/main/java/org/glom/web/client/place/HasTablePlace.java
1770         * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
1771         this into a superclass:
1772         * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
1773         and also use it as the base of this new ReportPlace:
1774         * src/main/java/org/glom/web/client/place/ReportPlace.java
1775
1776         * src/main/java/org/glom/web/client/ui/ReportView.java
1777         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
1778         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1779         Add these, containing mostly boiler-plate for now.
1780
1781         * src/main/java/org/glom/web/client/OnlineGlomService.java
1782         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1783         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1784         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1785         Add API to get the LayoutGroup for the report.
1786
1787 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
1788
1789         Add and fill a Reports drop-down list box.
1790
1791         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1792         Aded getReports():
1793         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1794         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1795         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1796         Added getReports(document, table, localeID), calling 
1797         ConfiguredDocument.getReports().
1798         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1799         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1800         Added setReportsList() and a list widget.
1801         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1802         .java (TableSelectionActivity.fillView(): Fill the view's reports list.
1803
1804
1805 1.21.8:
1806
1807 2012-04-12  Murray Cumming  <murrayc@murrayc.com>
1808
1809         Translations: Add Esperanto.
1810
1811         * src/main/java/org/glom/web/OnlineGlom.gwt.xml
1812         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
1813         properties: Add this translation because someone took the time to make it.
1814
1815 2012-03-15  Murray Cumming  <murrayc@murrayc.com>
1816
1817         Adapt to the java-libglom 1.21.7 API. 
1818
1819         * src/main/java/org/glom/web/server/ReportGenerator.java:
1820         addToReport(): get_group_secondary_fields() is now
1821         get_secondary_fields().
1822
1823
1824 2012-03-15  Murray Cumming  <murrayc@murrayc.com>
1825
1826         Use the latest java-libglom version.
1827
1828         * pom.xml: Use java-libglom 1.21.7.
1829
1830 2012-03-03  Ben Konrath  <ben@bagu.org>
1831
1832         Display date and time in details view.
1833
1834         https://bugzilla.gnome.org/show_bug.cgi?id=671257
1835
1836         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1837
1838 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1839
1840         Require the latest java-libglom.
1841
1842         * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1843
1844 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1845
1846         ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1847
1848         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1849         ListViewDBAccess.getSelectQuery(): Do not create a where clause for 
1850         an empty quickfind string. I also corrected libglom to create only 
1851         empty where clauses for empty quickfind strings, but this avoids the
1852         need for that fix.
1853
1854 2012-02-24  Ben Konrath  <ben@bagu.org>
1855
1856         Improve the tabs in the Notebook widget.
1857
1858         Bug #670728
1859
1860 2012-01-30  Murray Cumming  <murrayc@murrayc.com>
1861
1862         Translations: Try to translate the strings.
1863
1864         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1865         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1866         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1867         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1868         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1869         Take the Open translation from GTK+'s .po files.
1870         Take the Details translation from Glom's po files.
1871         I have added the other strings to Glom so we can get translations that way:
1872         http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
1873
1874 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1875
1876         TableSelectionViewImpl: Put the search label and entry in a div.
1877
1878         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1879         Put the search widgets in a FlowTable so that the CSS can be used to
1880         style them while keeping them together.
1881         * src/main/webapp/style.css: Mention the new div.
1882
1883 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1884
1885         Translate more strings in more locales.
1886
1887         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1888         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1889         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1890         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1891         Translate the "Details" and "Open" string too.
1892
1893         * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
1894         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1895         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1896         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1897         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1898         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1899         Add these new locales as placeholders though they currently contain English.
1900
1901 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1902
1903         OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
1904
1905         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
1906         Check the ConfiguredDocument* for null before using it.
1907
1908 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1909
1910         Tell Eclipse about the generated java files.
1911
1912         * .classpath: This lets it find OnlineGlomConstants.java.
1913         It would be nice if Eclipse just used the maven build files.
1914
1915 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1916
1917         Prevent a crash when no locale is specified in the URL.
1918
1919         * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
1920         Avoid returning a null string, obtained from 
1921         Window.Location.getParameter(). This caused a crash when it was
1922         later passed to libglom's API.
1923         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1924         init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
1925         getDetailsLayoutAndData(): Use StringUtils.defaultString() to
1926         guard against future null strings.
1927
1928 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1929
1930         Use the ?locale= query param instead of the &lang= token param. 
1931
1932         * src/main/java/org/glom/web/client/place/ListPlace.java
1933         * src/main/java/org/glom/web/client/place/DetailsPlace.java
1934         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1935         Remove the lang token key and value.
1936         
1937         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1938         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1939         When the user selects a different locale from the chooser, use 
1940         Window.Location.assign() to change the URL, which then causes a reload.
1941         
1942         * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
1943         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1944         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
1945         * src/main/java/org/glom/web/client/activity/ListActivity.java
1946         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1947         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1948         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1949         * src/main/java/org/glom/web/client/ui/ListView.java:
1950         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1951
1952         Remove localeID member variables and method/constructor parameters, instead
1953         using Utils.getCurrentLocaleID() when we need a localID to pass to 
1954         OnlineGlomService.
1955
1956 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1957
1958         Internationalize the UI strings.
1959
1960         * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a 
1961         <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
1962         * src/main/resources/org/glom/web/client/Messages.properties: Remove this
1963         because it is unused. Messages are apparently strings that can have 
1964         parameters, but we do not need that yet, so Contants will be enough for now.
1965         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
1966         to say that we support the en and de locales.
1967         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1968         The original English strings.
1969         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1970         Some German translations of the English strings.
1971         The i18n goal then uses the .properties file to generate an 
1972         OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
1973         returns an implementation that returns the translated strings.
1974         The documentation suggests putting these in src/java/*/client/, but it seems
1975         best to put it in src/resources/*/client/.
1976         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1977         Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
1978         instead of hard-coding them.
1979         Note that we cannot import OnlineGlomConstants because it does not exist yet,
1980         but that does not seem to stop the build, though it confuses Eclipse.
1981         
1982         You can see the translated string by adding ?locale=de to the URL, like so:
1983         http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
1984
1985 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
1986
1987         Improve null/empty String checks. 
1988
1989         * pom.xml: Add a dependency on commons-lang, to use
1990         org.apache.commons.lang.StringUtils.
1991         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1992         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1993         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
1994         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1995         Use StringUtils.isEmpty().
1996
1997         * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
1998         StringUtils class with a static isEmpty() function because we 
1999         cannot use org.apache.commons.lang.StringUtils in client-side
2000         GWT code because it (apparently) cannot be compiled to javascript.
2001         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2002         * src/main/java/org/glom/web/client/activity/ListActivity.java
2003         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
2004         * src/main/java/org/glom/web/client/place/DetailsPlace.java
2005         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2006         * src/main/java/org/glom/web/client/place/ListPlace.java
2007         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
2008         * src/main/java/org/glom/web/client/ui/cell/TextCell.java
2009         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
2010         * src/main/java/org/glom/web/client/ui/details/Group.java
2011         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use 
2012         our StringUtils.isEmpty() function.
2013
2014 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
2015
2016         Update to the latest java-libglom API.
2017
2018         * pom.xml: Require java-libglom 1.21.4.
2019         * src/main/java/org/glom/web/server/ConfiguredDocument.java
2020         getDocumentInfo(), getListViewLayoutGroup():
2021         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2022         getDocuments():
2023         * src/main/java/org/glom/web/server/database/DBAccess.java
2024         getFieldsToShowForSQLQueryAddGroup(),
2025         getPrimaryKeyLayoutItemField(): Replace get_database_title()
2026         with either get_database_title_original() or 
2027         get_database_title(localeID).
2028
2029 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
2030
2031         ConfiguredDocument: Avoid a null pointer exception.
2032
2033         * src/main/java/org/glom/web/server/ConfiguredDocument.java
2034         Initialize localeID to "" to avoid returning a null String which 
2035         causes a crash in java-libglom's swing-generated code.
2036
2037 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
2038
2039         Some simple renaming.
2040
2041         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2042         * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
2043         for localeChooser. This seems more appropriate and is less ambiguous 
2044         particularly in the .css file.
2045
2046 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
2047
2048         ConfiguredDocument: Rename the localedID private member variable.
2049
2050 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
2051
2052         Adapt to the latest java-libglom API from git master.
2053
2054         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2055         libglom now uses only Vector instead of List, which uses add() instead of
2056         addLast(). 
2057
2058 2012-01-22  Murray Cumming  <murrayc@murrayc.com>
2059
2060         ConfiguredDocument: Rename the localedID private member variable.
2061
2062 2012-01-20  Murray Cumming  <murrayc@murrayc.com>
2063
2064         Build a source tarball with mvn assembly:single
2065
2066         * assembly.xml: Add this file.
2067         * pom.xml: Use the maven-assembly-plugin and tell it to use 
2068         our assembly.xml file.
2069
2070 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
2071
2072         OnlineGlomServiceImpl: Get .glom files recursively.
2073
2074         * pom.xml: Depend on commons-io from org.apache.commons.
2075         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2076         init(): Use org.apache.commons.io.FileUtils.listFiles() to get the 
2077         files recursively, and with the easier filter for the extension.
2078         Use org.apache.commons.io.FilenameUtils.removeExtension() to 
2079         simplify that code too.
2080
2081 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
2082
2083         README: Mention that you must install java-libglom packages separately.
2084
2085         But then it works, because java-libglom is now in the central maven 
2086         repository.
2087
2088 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2089
2090         locales drop-down: Show the correct selected locale when the URL changes.
2091
2092         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2093         .java: setPlace(): Move some code into fillView().
2094
2095 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2096
2097         locales drop-down: Do not lose the primary key.
2098
2099         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2100         start(): onLocaleChange(): Pass the current primary key value, 
2101         instead of an empty value.
2102
2103 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2104
2105         locales drop-down: Do not lose the drop-down selection.
2106
2107         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2108         .java (TableSelectionActivity.fillView): Set the selected locale
2109         after changing the drop-down items (though we do not really need
2110         to change them just because the locale changes.)
2111
2112 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2113
2114         locales drop-down: Change the tables list when this changes.
2115
2116         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2117         .java: TableSelectionActivity.start(): Move the async table titles
2118         retrieval into a private fillView() method and also call this when 
2119         the chosen locale changes.
2120         Note that the document title is not actually translatable yet, but
2121         that is a problem that I should fix soon in libglom.
2122
2123 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2124
2125         Improve the placement of the locales drop-down.
2126
2127         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2128         Put the title and locales drop-down in a div (gwt.FlowTable).
2129         * src/main/webapp/style.css: Add magic css properties to make this work.
2130         Also remove the left margin from the title so that it lines up with the 
2131         headerbox below it.
2132
2133 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
2134
2135         locales selector: Show human-readable locale titles.
2136
2137         * src/main/java/org/glom/web/server/ConfiguredDocument.java
2138         getDocumentInfo(): Use java.util.Locale to show a real title of 
2139         each locale, in the locale's own language.
2140
2141 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2142
2143         Add a language/locale selector drop-down.
2144
2145         * src/main/java/org/glom/web/shared/DocumentInfo.java:
2146         Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
2147         * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
2148         getDocumentInfo(): Store the available Locales in the DocumentInfo.
2149         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2150         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2151         Add a ListBox to show the available locales. Add getLocaleSelector(),
2152         setLocaleList(), getSelectedLocale(), setSelectedLocale().
2153         * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
2154         * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
2155         java: Add these classes.
2156         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2157         start(): Fill the locales ListBox. Handle its change event, firing a 
2158         LocaleChangeEvent.
2159         setPlace(): Show the selected locale as specified by the URL token.
2160         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2161         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2162         Handle LocaleChangeEvent, going to a new *Place with that locale.
2163
2164         The placement of the ListBox is not pretty, and it currently uses the ID
2165         as a title, instead of "English", "Deutsch", "Espanola", etc, but it 
2166         is a start.
2167
2168
2169 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2170
2171         Search box: Show the search text from the URL token.
2172
2173         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2174         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2175         Add setQuickFindText().
2176         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2177         .java: setPlace(): Store the queryText if the place is a ListPlace, 
2178         and call TableSelectionView.setQuickFindText().
2179
2180 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2181
2182         Allow use of translations via, for instance, &lang=de in the URL.
2183
2184         * pom.xml: Use the unstable java-libglom 1.21 version.
2185
2186         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2187         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
2188         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2189         init(): Instead of calling TranslatableItem.set_current_locale() 
2190         (now removed), call ConfiguredDocument.setDefaultLocaleID().
2191         However, this is only for default locales, which are not needed to 
2192         change the locale in the URL.
2193         getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
2194         getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
2195         getSortedRelatedListData(): Add a localeID parameter, so we can get the 
2196         layout for a particular locale.
2197         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2198         Add get/setDefaultLocaleID().
2199         getDocumentInfo(), getListViewData(), getRelatedListData(),
2200         getDetailsLayoutGroup(), getListViewLayoutGroup(),
2201         createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a 
2202         localeID parameter, so we can get the layout for a particular locale.
2203
2204         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2205         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2206         * src/main/java/org/glom/web/client/place/ListPlace.java:
2207         Parse and construct a lang parameter too.
2208
2209         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2210         start(): Pass the defaultLocaleID to addDocumentLink(). It is then
2211         passed to subsequent methods and constructors.
2212         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2213         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2214         Store the localeID from the *Place and pass it to other constructors
2215         and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
2216
2217         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2218         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2219         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2220         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2221         * src/main/java/org/glom/web/client/ui/ListView.java:
2222         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2223         Take localeID parameters and pass them to subsequent constructors and 
2224         methods, so that the layout is always retrieved for that locale.
2225
2226         This is rather repetitive.
2227
2228         Note that "" means the original (default) locale of the Glom document,
2229         which is usually English.       
2230
2231 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
2232
2233         Documents: Remove final keyword to fix startup configuration.
2234
2235         * src/main/java/org/glom/web/shared/Documents.java: Remove the
2236         final keywords on the private member variables because that breaks
2237         the startup, apparently (there are warnings) because it stops them
2238         from being serialized. I added these in the previous commit.
2239
2240 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
2241
2242         Documents: Add some final keywords.
2243
2244         * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
2245         this.
2246
2247 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
2248
2249         OnlineGlomServiceImpl: Add to overview comments.
2250
2251         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2252         Note that this is where all the document are loaded. They are not 
2253         loaded freshly for each page.
2254
2255 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
2256
2257         Add a search box.
2258
2259         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2260         Add a TextBox for the text of a quick find.
2261         Add getQuickFindBox(), to get the widget, and getQuickFindText() to 
2262         get the text.
2263         setBackLink(): Add a String quickFind parameter.
2264         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2265         (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
2266         to the base interface, because that is how TableSelectionViewImpl is used.
2267         * src/main/webapp/style.css: Add style for the search box and its label.
2268
2269         * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
2270         * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
2271         Add these files, based on the existing TableChangeEvent and 
2272         TableChangeEventHandlers.
2273         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2274         start(): Handle QuickFindChangeEvent, passing its quickFind text to
2275         a ListPlace() that the user should be taken to.
2276         * src/main/java/org/glom/web/client/activity/ListActivity.java
2277         start(): Handle it here too and adapt the TableChangeEvent handler to 
2278         pass the extra "" quickFind parameter to ListPlace.
2279         * src/main/java/org/glom/web/client/place/ListPlace.java: 
2280         Constructor: Take an extra String quickFind parameter and store it, 
2281         returning it from a new  getQuickFind() method.
2282         getToken(): Put the quickFind text in the URL token.
2283         getPlace(): Parse the quickFind text from the URL token.
2284         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2285         va: addDocumentLink(): Pass an extra "" quickFind parameter to the 
2286         ListPlace constructor.
2287         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2288         .java: start(): Add a Change handler for the TableSelectionView's
2289         TextBox (via its base HasChangeHandlers interface), firing the new 
2290         QuickFindChangeEvent.
2291         setPlace(): Adapt the call to TableSelectionView.setbackLink(), to 
2292         pass the extra "" quickFind parameter.
2293
2294         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2295         setCellTable(): Add a String quickFind parameter and pass it to 
2296         the ListViewTable() constructor.
2297         * src/main/java/org/glom/web/client/ui/ListView.java: Change 
2298         setCellTable() in the base interface, because that is how ListViewImpl
2299         is used.
2300
2301         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2302         Add a String quickFind member variable.
2303         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2304         Constructor: Add a String quickFind parameter, storing it in the
2305         base ListTable's member variable.
2306         onRangeChanged(): Pass quickFind to the 
2307         OnlineGlomServiceAsync.getSortedListViewData() and 
2308         OnlineGlomServiceAsync.getListViewData() methods.
2309
2310         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2311         getListViewData(), getSortedListViewData(): Add a String quickFind 
2312         parameter, passing it to ConfiguredDocument.getListViewData().
2313         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2314         Change getListViewData(), getSortedListViewData() in the base interface,
2315         because that is how OnlineGlomServiceImpl is used, via this:
2316         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2317         Change getListViewData(), getSortedListViewData() here too.
2318         This class can apparently be used to asynchronously call methods on 
2319         OnlineGlomService, and GWT seems to implement that after recognizing 
2320         just the *Async name convention and the extra AsyncCallback parameters.
2321
2322         * src/main/java/org/glom/web/server/ConfiguredDocument.java
2323         getListViewData(): Add a String quickFind parameter, and pass it to 
2324         ListViewDBAccess.getData().
2325         * src/main/java/org/glom/web/server/database/ListDBAccess.java
2326         getListData(): Add a String quickFind parameter and pass it to 
2327         getSelectQuery().
2328         getSelectQuery(): Add a String quickFind parameter.
2329         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
2330         getSelectQuery(): Add a String quickFind parameter and use it with 
2331         Glom.get_find_where_clause_quick() to pass a where_clause to 
2332         Glom.build_sql_select_with_where_clause(), to actually filter the 
2333         list view results.
2334         getData(): Add a String quickFind parameter, passing it to getListData().
2335         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
2336         va: getData(): Pass an empty string to getListData() for the 
2337         quickFind parameter.
2338
2339 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
2340
2341         ListTable: Minor change.
2342
2343         * src/main/java/org/glom/web/client/ui/list/ListTable.java
2344         createCellTable(): Make this protected instead of public.
2345
2346 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
2347
2348         Many files: Use final for the parameters and use the @override attribute.
2349
2350 2012-01-22  Ben Konrath <ben@bagu.org>
2351
2352         Add anchor links for single line text that starts with http, ftp and www.
2353
2354         Bug #667269
2355
2356 2012-01-22  Ben Konrath <ben@bagu.org>
2357
2358         Add ellipsis to single line text in details view.
2359
2360         Bug #667269
2361
2362 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
2363
2364         Remove all javadoc author tags.
2365
2366         Because they are awkward and meaningless when many people touch
2367         many files.
2368         See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
2369  
2370 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
2371
2372         Revert the COPYING.LESSER to COPYING rename.
2373
2374         Apparently both should be there if it is LGPL.
2375
2376 2012-01-03  Murray Cumming  <murrayc@murrayc.com>
2377
2378         *View: Remove unused imports.
2379
2380         * src/main/java/org/glom/web/client/ui/DetailsView.java:
2381         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
2382         * src/main/java/org/glom/web/client/ui/ListView.java:
2383         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2384         Remove unused imports, as suggested by Eclipse.
2385
2386 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2387
2388         Move the *View::Presenter types, and some API into one base View.
2389
2390         * src/main/java/org/glom/web/client/ui/DetailsView.java:
2391         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2392         * src/main/java/org/glom/web/client/ui/ListView.java:
2393         * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
2394         Presenter, setPresenter() and clear() into a shared base interface,
2395         to avoid the unnecessary duplicate Presenter types and to more clearly
2396         show how the *Views share the same structure, even if they are not 
2397         used polymorphically.
2398
2399         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2400         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2401         va:
2402         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2403         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2404         * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
2405         ity.java:
2406         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2407         .java: Adapt.
2408
2409         Feel free to revert this if there is a good reason for the duplicate
2410         types.
2411
2412 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2413
2414         OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
2415
2416         * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
2417         a class member instead of a local variable in the method.
2418         This lets us use it to get the view instances, for use in tests.
2419         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2420         beforeOnlineGlom(): Test some more details of the initial view.
2421         Again, this is not very useful.
2422
2423         To really test gwt-glom we will need to start a local postgresql 
2424         instance with local data, like the Glom tests in C++.
2425
2426 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2427
2428         pom.xml: Mention the LGPL license.
2429
2430         * pom.xml: Add a licenses section.
2431         * COPYING.LESSER: Move this to COPYING, which
2432         previously contained the GPL. But gwt-glom is all LGPL.
2433
2434 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
2435
2436         Add project information to README and pom.xml.
2437
2438         * README: Add a brief description and mention some mvn
2439         commands.
2440         * pom.xml: This extra information shows up in mvn site
2441         generated pages.
2442
2443 2011-01-02  Murray Cumming  <murrayc@murrayc.com>
2444
2445         Use the latest java-libglom version.
2446
2447         * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
2448
2449 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2450
2451         GwtTestOnlineGlom: Test a little more.
2452
2453         * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
2454         protected rather than private, as suggested by the gwt-test-utils
2455         maintianer here:
2456         http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
2457         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
2458         Test the initial visibility of the panels.
2459
2460         However, this is not a very useful test.
2461         And I wonder how we should generally test using this idea for an
2462         activity/places app like ours where the real changes happen implicitly
2463         based on the history token/URL.
2464
2465 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2466
2467         Slight modification to *Mapper comments.
2468
2469         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
2470         (DataActivityMapper)
2471         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
2472         pper.java
2473         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
2474         r.java
2475         Remove comments mentioning GIN because they are just copied from 
2476         the example code and are apparently not helpful:
2477         http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
2478         Also change the mention of a class that is only in the example code.
2479
2480 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2481
2482         GwtTestOnlineGlom test: Minor changes.
2483
2484         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2485         Avoid the long qualified class name and modify the comment 
2486         because it is now obvious to me that the mocked class is the only
2487         custom one created via GWT.create().
2488
2489 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
2490
2491         Tests: Added the beginnings of a test using gwt-test-utils.
2492
2493         * pom.xml: Add dependencies on gwt-test-utils and easymock.
2494         * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
2495         which tells gwt-test-utils what class will be tested.
2496         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2497         Add a simple (but empty) test case. One class, used by the OnlineGlom
2498         class, is mocked so that it can be created. However, I am not sure 
2499         why only this class needs to be mocked.
2500
2501         Note that mockito seems more popular, and clearer, than easymock,
2502         but I have not got that working yet. It might be a matter of the 
2503         mockito version.
2504
2505         This test is run during mvn integration-test.
2506
2507 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
2508
2509         Tests: Use junit4-style syntax instead of junit3-style.
2510
2511         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2512         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2513         * src/test/java/org/glom/web/shared/DataItemTest.java:
2514         Use the @Test annotation rather than relying on the test*() prefix.
2515         Also no longer implement TestCase, to avoid triggering support for 
2516         the junit3-way, which stops the annotations from working.
2517         Change the imports from import junit.framework.* to 
2518         import org.junit.*, which is apparently the new way.
2519
2520 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
2521
2522         Added a test for ListPlace token parsing and creation.
2523
2524         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2525         This is much the same as DetailsPlaceTest.
2526
2527         I wonder how we could test the other parts of the *Place API.
2528
2529 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2530
2531         DetailsPlace test: Also test getToken() and recreation via getPlace().
2532
2533         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2534         testGetPlaceParameters(): Get the tokens from the DetailsPlace and 
2535         recreate it, testing the recreated DetailsPlace for the same parameter
2536         values.
2537
2538 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2539
2540         Use the surefire-report plugin.
2541
2542         * pom.xml: This generates a HTML report about the tests in 
2543         target/site/surefire-report.html
2544         when you do mvn surefire-report:report. It seems to be popular/normal.
2545
2546 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2547
2548         Added a test for DetailsPlace.
2549
2550         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2551         Test the getPlace() token parsing.
2552
2553 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
2554
2555         Added a first unit test.
2556
2557         * pom.xml: Add a test goal, and a dependency on junit in that scope.
2558         * src/test/java/org/glom/web/shared/DataItemTest.java:
2559         This is a silly test but it is just to get things started. Note that
2560         maven/junit finds the test because it looks in src/test by default.
2561
2562 2011-12-22  Ben Konrath  <ben@bagu.org>
2563
2564         Change charsetName to "UTF-8" when replacing line breaks.
2565
2566         JavaScript requires the charsetName to be "UTF-8". CharsetName values
2567         that work in Java (such as "UTF8") will not work when compiled to
2568         JavaScript.
2569
2570         This fixes a problem with multi-line details view fields that have hard
2571         line breaks. The "License Text" field on this page demonstrates the
2572         problem:
2573
2574         http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
2575
2576         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2577
2578 2011-12-22  Ben Konrath  <ben@bagu.org>
2579
2580         Fix another bug with related list navigation.
2581
2582         I've tested all the navigation buttons in all of the related lists
2583         so things should be good now.
2584
2585         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2586
2587 2011-12-22  Ben Konrath  <ben@bagu.org>
2588
2589         Fix a crasher when refreshing the list view with the default table.
2590
2591         This crash will also happen when loading the list view with the default
2592         table from a link or bookmark.
2593
2594         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
2595         to the main document selection page when the document id hasn't been
2596         set.
2597         * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
2598         the main document selection page when the document id hasn't been
2599         set.
2600         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
2601         values for the details place when the document id hasn't been set.
2602         * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
2603         values for the list place when the document id hasn't been set.
2604
2605 2011-12-21  Ben Konrath  <ben@bagu.org>
2606
2607         Protect against NPE when glom.document.locale is not in config.
2608
2609         This patch protects against an NPE when glom.document.locale is not in
2610         the config file. This NPE will also happen if glom.document.locale is
2611         commented out.
2612
2613         The patch also updates the error message to display the class name when
2614         the getMessage() returns null. This was happening when the NPE was
2615         thrown and I had "Configuration Error: null". If an NPE is encountered
2616         with this patch, "Configuration Error: NullPointerException " will be
2617         displayed.
2618
2619         This commit closes this bug:
2620
2621         https://bugzilla.gnome.org/show_bug.cgi?id=666669
2622
2623         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2624
2625 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
2626
2627         Rename onlineglom.properties to onlineglom.properties.sample.
2628
2629         * src/main/resources/onlineglom.properties: Rename to:
2630         * src/main/resources/onlineglom.properties.sample:
2631         * src/main/resources/README: And add this file explaining that people
2632         should rename it back when deploying.
2633
2634 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
2635
2636         Allow choosing the translation in the .properties file.
2637
2638         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2639         init(): Read a glom.document.locale value from the configuration file 
2640         and call Glom's TransatableItem::set_current_locale() method.
2641         * src/main/resources/onlineglom.properties: Add a commented-out 
2642         example of this new setting.
2643
2644         It would be better to add &lang=de_DE to the URL, but the current 
2645         libglom API does not allow us to do this easily. I am working on that.
2646
2647 2011-12-19  Murray Cumming  <murrayc@murrayc.com>
2648
2649         Avoid a crash in parsing of token parameters.
2650
2651         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
2652         ava: getTokenParams(): Do not crash if a parameter has a key but no 
2653         value, and ignore parameters with neither.
2654
2655 2011-12-17  Murray Cumming  <murrayc@murayc.com>
2656
2657         History token building/handling: Improve use of token parameters.
2658
2659         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java 
2660         (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
2661         and buildParamsToken(HashMap), for use by derived classes.
2662         Make the separator private because it is no longer be needed.
2663         * src/main/java/org/glom/web/client/place/DetailsPlace.java
2664         (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
2665         instead of manual string concatenation.
2666         (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead 
2667         of hardcoded indices and awkward splitting code.
2668         * src/main/java/org/glom/web/client/place/ListPlace.java
2669         (ListPlace.Tokenizer.getToken): Use buildParamsToken()
2670         instead of manual string concatenation.
2671         (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead 
2672         of hardcoded indices and awkward splitting code.
2673         This should fix bug #666420
2674
2675 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
2676
2677         Fix a Navgiation->Navigation typo in the code.
2678
2679         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2680         Rename processNavgiation() to processNavigation().
2681
2682 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
2683
2684         Fix a seperator->separator typo in the code.
2685
2686         * src/main/java/org/glom/web/client/place/DetailsPlace.java
2687         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2688         * src/main/java/org/glom/web/client/place/ListPlace.java: Just a 
2689         misspelling.
2690
2691 2011-12-15  Ben Konrath <ben@bagu.org>
2692
2693         Cleanup some comments.
2694
2695         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2696
2697 2011-12-14  Ben Konrath <ben@bagu.org>
2698
2699         Replace \n with <br/> for multiline text in the details view.
2700
2701         Vertical scrollbars are added when needed as well.
2702
2703         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2704
2705 2011-12-14  Ben Konrath <ben@bagu.org>
2706
2707         Specify the font for document selection links.
2708
2709         * src/main/webapp/style.css:
2710
2711 2011-12-14  Ben Konrath <ben@bagu.org>
2712
2713         Fix bouncy CellTable while paging.
2714
2715         This doesn't currently work with related list tables in unselected
2716         Notebook tabs.
2717
2718         * src/main/java/org/glom/web/client/ui/list/ListTable.java
2719
2720 2011-12-14  Ben Konrath <ben@bagu.org>
2721
2722         Revamp the appearance of the document selection page.
2723
2724         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2725         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2726         * src/main/webapp/style.css:
2727
2728 2011-12-13  Ben Konrath <ben@bagu.org>
2729
2730         Set navigation button column to the smallest size possible.
2731
2732         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2733
2734 2011-12-13  Ben Konrath <ben@bagu.org>
2735
2736         Change OpenButton nomenclature to NavigationButton.
2737
2738         Using NavigtionButton makes things more generic. Classes, methods and
2739         variables have been changed.
2740
2741         This is a rename-only refactor.
2742
2743         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2744         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2745         * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
2746         Renamed from OpenButtonCell.
2747         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2748         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2749         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2750
2751 2011-12-12  Ben Konrath <ben@bagu.org>
2752
2753         Remove unnecessary String argument in RelatedListTable and ListViewTable.
2754
2755         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2756         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2757         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2758         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2759
2760 2011-12-12  Ben Konrath <ben@bagu.org>
2761
2762         Update variable names and comments.
2763
2764         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2765         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2766
2767 2011-12-12  Ben Konrath <ben@bagu.org>
2768
2769         Properly initialize numNonEmptyRows variable to zero.
2770
2771         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2772         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2773
2774 2011-12-05  Ben Konrath  <ben@bagu.org>
2775
2776         Add latest mockup with HTML tables.
2777
2778         Features of this mockup:
2779
2780         -> HTML table for flowtable
2781         -> HTML table for flowtable column
2782         -> Example of how related lists would look
2783         -> Not using text entries for data items
2784
2785         The current version of Online Glom doesn't use HTML tables for the
2786         flowtable columns.
2787
2788         This mockup has been sent to the glom-devel mailing list but it's good
2789         to have it here as well.
2790
2791         * mockups/details-view-html-tables.html:
2792
2793 2011-12-05  Ben Konrath  <ben@bagu.org>
2794
2795         Remove unnecessary getPrimaryKeyField() method.
2796
2797         getPrimaryKeyFieldForTable(String) has been renamed to
2798         getPrimaryKeyField(String).
2799
2800         * src/main/java/org/glom/web/server/database/DBAccess.java:
2801         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2802         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2803
2804 2011-12-05  Ben Konrath  <ben@bagu.org>
2805
2806         Add string representation of TypedDataItem value to conversion error message.
2807
2808         * src/main/java/org/glom/web/server/Utils.java: Logging the error
2809         message was extracted into its own method to avoid duplication.
2810
2811 2011-12-05  Ben Konrath  <ben@bagu.org>
2812
2813         Add type checking to navigation primary key value creation.
2814
2815         Create navigation primary key only if the expected type from the Glom
2816         document matches the type returned by the SQL query.
2817
2818         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2819
2820 2011-12-05  Ben Konrath  <ben@bagu.org>
2821
2822         Rename a couple of variables in RelatedListNavigation.
2823
2824         This is a rename-only refactor.
2825
2826         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2827
2828 2011-12-05  Ben Konrath  <ben@bagu.org>
2829
2830         Move getListLayoutGroup() into getListViewLayoutGroup().
2831
2832         This removes getListLayoutGroup(). It was only being called by
2833         getListViewLayoutGroup().
2834
2835         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2836
2837 2011-12-05  Ben Konrath  <ben@bagu.org>
2838
2839         Remove check for LayoutItem_Portal in list table method.
2840
2841         This check is no longer necessary because the method isn't being used
2842         to create the LayoutItemPortal DTO.
2843
2844         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2845
2846 2011-12-05  Ben Konrath  <ben@bagu.org>
2847
2848         Properly support related list navigation.
2849
2850         Navigation from the "Repository Analyzer -> Package Scans ->
2851         Dependencies" related table wasn't working because the primary key for
2852         related tables wasn't being set properly. This commit fixes the
2853         problem.
2854
2855         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
2856         getListLayoutGroup() to create the LayoutItemPortal DTO. This method
2857         doesn't set the primary key properly for related list tables.
2858         * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
2859         name parameter to getPrimaryKeyLayoutItemField(). This makes the method
2860         useful for getting the primary key for list view tables and for related
2861         list tables.
2862         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2863         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2864         Move code to set the primary key for the table from the abstract
2865         ListDBAccess class to ListViewDBAccess as it's only correct for list
2866         view tables.
2867         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2868         Properly add primary key to related list tables.
2869
2870 2011-12-02  Ben Konrath  <ben@bagu.org>
2871
2872         Properly set the horizontal alignment of fields.
2873
2874         This fix is for both the list tables and the details view.
2875
2876         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2877         LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
2878         to set the horizontal alignment of fields.
2879
2880 2011-12-02  Ben Konrath  <ben@bagu.org>
2881
2882         Display currency codes in the details view.
2883
2884         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2885
2886 2011-12-02  Ben Konrath  <ben@bagu.org>
2887
2888         Avoid duplicate JNI call.
2889
2890         JNI is not as efficient as pure Java and this is an easy (and small)
2891         optimization.
2892
2893         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2894         Use previously retrieved value for whereClauseToTableName instead of
2895         getting it again.
2896
2897 2011-12-02  Ben Konrath  <ben@bagu.org>
2898
2899         Rename a couple of variables in RelatedListNavigation.
2900
2901         This is a rename-only refactor.
2902
2903         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2904
2905 2011-12-02  Ben Konrath  <ben@bagu.org>
2906
2907         Indicate clearly that a mismatched primary key type is a bug.
2908
2909         * src/main/java/org/glom/web/server/Utils.java: Change log level from
2910         warning to error. Add 'This is a bug.' to message.
2911
2912 2011-12-02  Ben Konrath  <ben@bagu.org>
2913
2914         Update / fix some comments.
2915
2916         * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
2917         comments.
2918         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
2919         comment.
2920         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2921         Fix comments. Add some TODOs.
2922
2923 2011-12-02  Ben Konrath  <ben@bagu.org>
2924
2925         Enable navigation to details view with string primary key from related list.
2926
2927         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2928         Create a text primary key value when return type of result is
2929         java.sql.Types.VARCHAR.
2930
2931 2011-12-02  Ben Konrath  <ben@bagu.org>
2932
2933         Use checkboxes for booleans in the details view.
2934
2935         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2936
2937 2011-12-01  Ben Konrath  <ben@bagu.org>
2938
2939         Improve performance of related list height calculation.
2940
2941         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2942         Put code to calculate the expected height in a static initializer so
2943         that that it's only called once.
2944
2945 2011-12-01  Ben Konrath  <ben@bagu.org>
2946
2947         Show related list tables in notebooks (again).
2948
2949         Calculate the height of the related list tables so the Notebook can be
2950         set the correct height. The height of the related list table is also needed by
2951         FlowTable to be able decide how to create the layout.
2952
2953         * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
2954         and set the Portal height based on the height of the related list
2955         table and the Portal container.
2956         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2957         Add method to calculate the height of the related list tables.
2958         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2959         * src/main/webapp/style.css: Add css class for Pager. This is needed to
2960         calculate the height of the Pager widget.
2961
2962 2011-12-01  Ben Konrath  <ben@bagu.org>
2963
2964         Use CellTable API for table property instead of setting style on Element.
2965
2966         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2967
2968 2011-12-01  Ben Konrath  <ben@bagu.org>
2969
2970         Make ListViewTable and RelatedListTable a consistent height.
2971
2972         The tables are now a consistent height regardless of the contents of
2973         the table. A hidden button is added to empty rows to ensure that the
2974         height of these rows will match the height of rows with data.
2975
2976         A navigation button column is now added to every table. The width of
2977         the navigation column is set to 0px when a RelatedListTable shouldn't
2978         have navigation buttons. This maintains the a consistent row height in
2979         tables that don't show the navigation buttons.
2980
2981         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
2982         navigation column when not needed.
2983         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
2984         arguments for navigation button to constructor of ListViewTable.
2985         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
2986         hidden button for empty data rows.
2987         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
2988         arguments for navigation button to constructor.
2989         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
2990         create navigation buttons. Add hideNavigationButtons() method.
2991         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
2992         arguments for navigation button to constructor.
2993
2994 2011-12-01  Ben Konrath  <ben@bagu.org>
2995
2996         Use 'visibility: hidden' in Utils.getWidgetHeight().
2997
2998         This is better choice because hidden elements are invisible, don't
2999         respond to events and are not part of the tab order. They will,
3000         however, 
3001