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