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