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