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