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