1 2012-04-21 Murray Cumming <murrayc@murrayc.com>
3 GwtTestOnlineGlom: Comment out unused code.
5 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
6 Eclipse has started to say that some code is unused.
8 2012-04-21 Murray Cumming <murrayc@murrayc.com>
10 Update to the latest versions of dependencies.
12 * pom.xml: Update version numbers of dependencies to the latest
14 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
15 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
16 * src/main/java/org/glom/web/server/ReportGenerator.java:
17 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
18 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
19 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
21 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
22 Modify the imports where necessary.
24 2012-04-17 Murray Cumming <murrayc@murrayc.com>
26 Style: Remove overflow:hidden from searchbox
28 * src/main/webapp/style.css: Because this pushes the Back To Link
29 label/link on to the next row, which is then hidden due to the
30 hard-coded (in ems) height.
32 2012-04-20 Murray Cumming <murrayc@murrayc.com>
34 Remove some duplicate code.
36 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
37 getDocumentInfo(): This must have been duplicated during the merge from the
42 2012-04-19 Murray Cumming <murrayc@murrayc.com>
44 Reports: Localize the waiting for report message.
46 * src/main/java/org/glom/web/client/activity/ReportActivity.java
47 start(): Get the message from the contants.
48 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
50 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
51 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
52 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
53 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
54 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
55 Update these files with the English text for newer strings for now.
57 2012-04-19 Murray Cumming <murrayc@murrayc.com>
59 Reports: Show a message while waiting for the report.
61 * src/main/java/org/glom/web/client/ui/ReportView.java
62 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
63 Add setWaitingText(), to show a message saying that we are
64 waiting for the report to be ready.
65 * src/main/java/org/glom/web/client/activity/ReportActivity.java
66 start(): Call setWaitingText() before calling the async
69 2012-04-19 Murray Cumming <murrayc@murrayc.com>
71 ReportGenerator: Specify date and time formats.
73 * src/main/java/org/glom/web/server/ReportGenerator.java:
74 createFieldValueElement(): Use the default (and localized)
75 short formats, though we still need a way to show 4-digit
76 years without providing the format for every locale.
77 * src/main/java/org/glom/web/server/database/DBAccess.java:
78 convertResultSetToDTO(): Use the short formats here too.
80 2012-04-18 Murray Cumming <murrayc@murrayc.com>
82 ReportGenerator: Use the correct numeric formatting.
84 * src/main/java/org/glom/web/server/ReportGenerator.java
85 createFieldExpression(), createFieldValueElement(): Take the
86 whole LayoutItem_Field instead of just the field name, so
87 we have access to the formatting.
88 createFieldValueElement(): Use JRTextField.setPattern() to
89 specify the numeric formatting, with the help of a
90 regular DecimalFormat.
92 2012-04-18 Murray Cumming <murrayc@murrayc.com>
94 ReportGenerator: Avoid showing null for group by titles.
96 * src/main/java/org/glom/web/server/ReportGenerator.java
97 generateReport(): Use setBlankWhenNull() on the field title
98 style too, because this is used for values in group by
101 2012-04-18 Murray Cumming <murrayc@murrayc.com>
103 ReportGenerator: Add a colon to titles in vertical groups.
105 * src/main/java/org/glom/web/server/ReportGenerator.java
106 addFieldToDetailBandVertical(): Pass true for the withColon
109 2012-04-18 Murray Cumming <murrayc@murrayc.com>
111 ReportGenerator: Simplify the code by using Position more.
113 2012-04-18 Murray Cumming <murrayc@murrayc.com>
115 Reports: Support vertical groups, roughly.
117 * src/main/java/org/glom/web/server/ReportGenerator.java:
118 addToReport(): Rename to addGroupToReport() and, if necessary,
119 call the new addVerticalGroupToReport() method.
120 createFieldValueElement(): Let the caller specify the Y position
123 2012-04-17 Murray Cumming <murrayc@murrayc.com>
125 Reports: Allow a second report to be shown.
127 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
128 clear(): Do not remove the HTML widget, which broke the whole layout.
130 2012-04-17 Murray Cumming <murrayc@murrayc.com>
132 Locales drop-down: Show that we use English by default.
134 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
135 fillView(): When we use English, just because that is the default, when
136 no locale is specified, show that in the Locales drop-down instead of
137 just showing the first item.
139 2012-04-17 Murray Cumming <murrayc@murrayc.com>
141 Unselect the Report/Locale/Table combo item when appropriate.
143 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
144 setPlace(): clear reportName if this is not a ReportPlace.
145 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
146 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
147 When the provided name is empty, unselect all items, so that none are
148 indicated. This uses a for loop because I cannot find a single method
151 2012-04-17 Murray Cumming <murrayc@murrayc.com>
153 Report: Give the user a way to get back to the list.
155 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
156 start(), setPlace(): Show the Back To List link on reports, and also
157 interpret selecting the empty report item as back to list.
159 2012-04-13 Murray Cumming <murrayc@murrayc.com>
161 Really show the selected Report name.
163 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
164 setPlace(): Store the reportName here, if it is that kind of Place.
165 fillView(): Set the selected Report after filling the list of reports.
166 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
167 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
168 null Strings, though we need some way to unselect all ListBox items
171 2012-04-13 Murray Cumming <murrayc@murrayc.com>
173 ReportGenerator: Try to avoid some problems.
175 * src/main/java/org/glom/web/server/ReportGenerator.java
176 addField(): Try to avoid duplicates, and avoid using a null
179 2012-04-13 Murray Cumming <murrayc@murrayc.com>
181 Reports: Use quickFind.
183 * src/main/java/org/glom/web/client/OnlineGlomService.java;
184 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
186 getReportHTML(): Add a quickFind parameter.
187 * src/main/java/org/glom/web/client/activity/ReportActivity.java
188 start(): Pass the quickFind parameter.
189 * src/main/java/org/glom/web/server/ReportGenerator.java
190 generateReport(): Take a quickFind parameter.
192 2012-04-13 Murray Cumming <murrayc@murrayc.com>
194 ReportPlace: Actually use the report name.
196 * src/main/java/org/glom/web/client/place/ReportPlace.java
197 getPlace(): Do not assign the report name to the quickfind.
199 2012-04-13 Murray Cumming <murrayc@murrayc.com>
201 Show java.library.path when complaining.
203 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
204 init(): When telling us to check java.library.path, show the
207 2012-03-06 Murray Cumming <murrayc@murrayc.com>
209 ReportGenerator: Do not show nulls.
211 2012-03-06 Murray Cumming <murrayc@murrayc.com>
213 ReportGenerator: Make the title font larger.
215 2012-03-06 Murray Cumming <murrayc@murrayc.com>
217 ReportGenerator: Put field titles inside groups, if there are groups.
219 2012-03-06 Murray Cumming <murrayc@murrayc.com>
221 ReportGenerator: Take the Report itself instead of the name and group.
223 * src/main/java/org/glom/web/server/ConfiguredDocument.java
224 Remove getReportLayoutGroup().
225 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
226 getReportHTML(): Pass the report instead
227 of its name and layout group.
228 * src/main/java/org/glom/web/server/ReportGenerator.java
229 generateReport(): Use the report object to use the title
232 2012-03-06 Murray Cumming <murrayc@murrayc.com>
234 ReportGenerator: Remove designBand parameters.
236 * src/main/java/org/glom/web/server/ReportGenerator.java:
237 Make designBand a class member instead of passing it to all
240 2012-03-06 Murray Cumming <murrayc@murrayc.com>
242 ReportGenerator: Add lines, a bit like in the desktop version.
244 * src/main/java/org/glom/web/server/ReportGenerator.java
245 addToReport(): Use JRDesignLine.
247 2012-03-06 Murray Cumming <murrayc@murrayc.com>
249 ReportGenerator: Correct the title positions and use some bold style.
251 * src/main/java/org/glom/web/server/ReportGenerator.java:
252 Break the code up into reusable functions, correct the placement of
253 titles, and use normal/bold styles as in the reports in the desktop
256 2012-03-06 Murray Cumming <murrayc@murrayc.com>
258 ReportGenerator: Add a header band to show the field titles.
260 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
261 getReportHTML(): Pass the localeId to the ReportGenerator
263 * src/main/java/org/glom/web/server/ReportGenerator.java
264 constructor: Take the localeID so we can get translated field
266 generateReport(), addToReport(), addFieldToBand(): Add field
267 titles in a column header band.
269 2012-03-05 Murray Cumming <murrayc@murrayc.com>
271 Reports drop-down list: Some improvement.
273 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
274 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
275 Adedd setSelectedReport(),
276 setReportList(): Add a blank line so that the user can select the
278 * src/main/java/org/glom/web/client/activity/ReportActivity.java
279 start(): Show the current report by calling setSelectedReport().
280 This does not seem to work yet.
282 2012-03-05 Murray Cumming <murrayc@murrayc.com>
284 DetailsActivity, ListActivity: Move some variables into a base class.
286 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
287 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
288 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
289 the clientFactory, documentID, tableName and authenticationPopup into
290 a base class, to avoid duplication.
292 2012-03-05 Murray Cumming <murrayc@murrayc.com>
294 Translate the Reports label.
296 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
297 Get the "Reports" label string from the constants.
298 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
299 perties: Add Reports to the constants.
301 2012-03-05 Murray Cumming <murrayc@murrayc.com>
303 Reports: Implement grouping.
305 * src/main/java/org/glom/web/server/ReportGenerator.java:
306 Handle LayoutItem_GroupBy items and try to do the right thing
307 with JRDesignGroup. It seems to work.
309 2012-03-04 Murray Cumming <murrayc@murrayc.com>
311 Actually show some data with JasperReports.
313 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
314 getReportHTML(): Move most code into a ReportGenerator class.
315 * src/main/java/org/glom/web/server/ReportGenerator.java:
316 Recurse into sub-groups, adding fields to the JasperDesign's details
317 band. Note that we must set an arbitrary width and height, or it just
318 will not show any data.
320 2012-03-04 Murray Cumming <murrayc@murrayc.com>
322 Reports Chooser: Show the titles, not the names.
324 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
325 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
326 and the names as the values.
327 * src/main/java/org/glom/web/server/ConfiguredDocument.java
328 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
329 group now that we provide the report name, so it should always
332 2012-02-15 Murray Cumming <murrayc@murrayc.com>
334 Depend on jasperreports.
336 * pom.xml: Add the dependency. My plan is to use this on the
339 2012-01-31 Murray Cumming <murrayc@murrayc.com>
341 Implement navigation to report places.
343 * src/main/java/org/glom/web/client/activity/ReportActivity.java
344 start(): Do not bother to handle all events here.
345 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
346 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
347 Added getSelectedReport().
348 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
349 .java: start(): When handling a change to the reports chooser,
350 call getSelectedReport() and goTo() its ReportPlace.
351 * src/main/java/org/glom/web/client/ui/ReportView.java
352 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
353 Added setReportHTML() which puts the html in a gwt HTML widget.
354 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
355 getReportHTML(): Return "TODO" just to show that this works.
357 2012-01-31 Murray Cumming <murrayc@murrayc.com>
359 Make ReportPlace usable.
361 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
363 * src/main/java/org/glom/web/client/place/ReportPlace.java:
364 Correct the @prefix annotation.
366 2012-01-31 Murray Cumming <murrayc@murrayc.com>
368 OnlineGlomService: Return report HTML rather than the LayoutGroup.
370 * src/main/java/org/glom/web/client/OnlineGlomService.java:
371 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
372 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
373 Change getReportLayout() to getReportHMTL() because we will not need to
374 parse or render the report layout on the client side.
375 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
376 getReportLayout(): Return the libglom LayoutGroup type because we will
377 not need to convert to a shared type, because this will not be used on
379 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
382 Note that there is still no implementation for this.
385 2012-01-27 Murray Cumming <murrayc@murrayc.com>
387 Add a (empty) Report Place, View, and Activity.
389 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
391 * src/main/java/org/glom/web/client/place/HasTablePlace.java
392 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
393 this into a superclass:
394 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
395 and also use it as the base of this new ReportPlace:
396 * src/main/java/org/glom/web/client/place/ReportPlace.java
398 * src/main/java/org/glom/web/client/ui/ReportView.java
399 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
400 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
401 Add these, containing mostly boiler-plate for now.
403 * src/main/java/org/glom/web/client/OnlineGlomService.java
404 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
405 * src/main/java/org/glom/web/server/ConfiguredDocument.java
406 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
407 Add API to get the LayoutGroup for the report.
409 2012-01-23 Murray Cumming <murrayc@murrayc.com>
411 Add and fill a Reports drop-down list box.
413 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
415 * src/main/java/org/glom/web/client/OnlineGlomService.java:
416 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
418 Added getReports(document, table, localeID), calling
419 ConfiguredDocument.getReports().
420 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
421 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
422 Added setReportsList() and a list widget.
423 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
424 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
429 2012-04-12 Murray Cumming <murrayc@murrayc.com>
431 Translations: Add Esperanto.
433 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
434 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
435 properties: Add this translation because someone took the time to make it.
437 2012-03-15 Murray Cumming <murrayc@murrayc.com>
439 Adapt to the java-libglom 1.21.7 API.
441 * src/main/java/org/glom/web/server/ReportGenerator.java:
442 addToReport(): get_group_secondary_fields() is now
443 get_secondary_fields().
446 2012-03-15 Murray Cumming <murrayc@murrayc.com>
448 Use the latest java-libglom version.
450 * pom.xml: Use java-libglom 1.21.7.
452 2012-03-03 Ben Konrath <ben@bagu.org>
454 Display date and time in details view.
456 https://bugzilla.gnome.org/show_bug.cgi?id=671257
458 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
460 2012-03-05 Murray Cumming <murrayc@murrayc.com>
462 Require the latest java-libglom.
464 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
466 2012-03-04 Murray Cumming <murrayc@murrayc.com>
468 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
470 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
471 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
472 an empty quickfind string. I also corrected libglom to create only
473 empty where clauses for empty quickfind strings, but this avoids the
476 2012-02-24 Ben Konrath <ben@bagu.org>
478 Improve the tabs in the Notebook widget.
482 2012-01-30 Murray Cumming <murrayc@murrayc.com>
484 Translations: Try to translate the strings.
486 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
487 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
488 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
489 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
490 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
491 Take the Open translation from GTK+'s .po files.
492 Take the Details translation from Glom's po files.
493 I have added the other strings to Glom so we can get translations that way:
494 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
496 2012-01-27 Murray Cumming <murrayc@murrayc.com>
498 TableSelectionViewImpl: Put the search label and entry in a div.
500 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
501 Put the search widgets in a FlowTable so that the CSS can be used to
502 style them while keeping them together.
503 * src/main/webapp/style.css: Mention the new div.
505 2012-01-27 Murray Cumming <murrayc@murrayc.com>
507 Translate more strings in more locales.
509 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
510 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
511 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
512 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
513 Translate the "Details" and "Open" string too.
515 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
516 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
517 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
518 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
519 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
520 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
521 Add these new locales as placeholders though they currently contain English.
523 2012-01-27 Murray Cumming <murrayc@murrayc.com>
525 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
527 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
528 Check the ConfiguredDocument* for null before using it.
530 2012-01-26 Murray Cumming <murrayc@murrayc.com>
532 Tell Eclipse about the generated java files.
534 * .classpath: This lets it find OnlineGlomConstants.java.
535 It would be nice if Eclipse just used the maven build files.
537 2012-01-26 Murray Cumming <murrayc@murrayc.com>
539 Prevent a crash when no locale is specified in the URL.
541 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
542 Avoid returning a null string, obtained from
543 Window.Location.getParameter(). This caused a crash when it was
544 later passed to libglom's API.
545 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
546 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
547 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
548 guard against future null strings.
550 2012-01-26 Murray Cumming <murrayc@murrayc.com>
552 Use the ?locale= query param instead of the &lang= token param.
554 * src/main/java/org/glom/web/client/place/ListPlace.java
555 * src/main/java/org/glom/web/client/place/DetailsPlace.java
556 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
557 Remove the lang token key and value.
559 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
560 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
561 When the user selects a different locale from the chooser, use
562 Window.Location.assign() to change the URL, which then causes a reload.
564 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
565 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
566 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
567 * src/main/java/org/glom/web/client/activity/ListActivity.java
568 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
569 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
570 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
571 * src/main/java/org/glom/web/client/ui/ListView.java:
572 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
574 Remove localeID member variables and method/constructor parameters, instead
575 using Utils.getCurrentLocaleID() when we need a localID to pass to
578 2012-01-26 Murray Cumming <murrayc@murrayc.com>
580 Internationalize the UI strings.
582 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
583 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
584 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
585 because it is unused. Messages are apparently strings that can have
586 parameters, but we do not need that yet, so Contants will be enough for now.
587 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
588 to say that we support the en and de locales.
589 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
590 The original English strings.
591 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
592 Some German translations of the English strings.
593 The i18n goal then uses the .properties file to generate an
594 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
595 returns an implementation that returns the translated strings.
596 The documentation suggests putting these in src/java/*/client/, but it seems
597 best to put it in src/resources/*/client/.
598 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
599 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
600 instead of hard-coding them.
601 Note that we cannot import OnlineGlomConstants because it does not exist yet,
602 but that does not seem to stop the build, though it confuses Eclipse.
604 You can see the translated string by adding ?locale=de to the URL, like so:
605 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
607 2012-01-24 Murray Cumming <murrayc@murrayc.com>
609 Improve null/empty String checks.
611 * pom.xml: Add a dependency on commons-lang, to use
612 org.apache.commons.lang.StringUtils.
613 * src/main/java/org/glom/web/server/ConfiguredDocument.java
614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
615 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
616 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
617 Use StringUtils.isEmpty().
619 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
620 StringUtils class with a static isEmpty() function because we
621 cannot use org.apache.commons.lang.StringUtils in client-side
622 GWT code because it (apparently) cannot be compiled to javascript.
623 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
624 * src/main/java/org/glom/web/client/activity/ListActivity.java
625 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
626 * src/main/java/org/glom/web/client/place/DetailsPlace.java
627 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
628 * src/main/java/org/glom/web/client/place/ListPlace.java
629 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
630 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
631 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
632 * src/main/java/org/glom/web/client/ui/details/Group.java
633 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
634 our StringUtils.isEmpty() function.
636 2012-01-24 Murray Cumming <murrayc@murrayc.com>
638 Update to the latest java-libglom API.
640 * pom.xml: Require java-libglom 1.21.4.
641 * src/main/java/org/glom/web/server/ConfiguredDocument.java
642 getDocumentInfo(), getListViewLayoutGroup():
643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
645 * src/main/java/org/glom/web/server/database/DBAccess.java
646 getFieldsToShowForSQLQueryAddGroup(),
647 getPrimaryKeyLayoutItemField(): Replace get_database_title()
648 with either get_database_title_original() or
649 get_database_title(localeID).
651 2012-01-24 Murray Cumming <murrayc@murrayc.com>
653 ConfiguredDocument: Avoid a null pointer exception.
655 * src/main/java/org/glom/web/server/ConfiguredDocument.java
656 Initialize localeID to "" to avoid returning a null String which
657 causes a crash in java-libglom's swing-generated code.
659 2012-01-23 Murray Cumming <murrayc@murrayc.com>
661 Some simple renaming.
663 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
664 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
665 for localeChooser. This seems more appropriate and is less ambiguous
666 particularly in the .css file.
668 2012-01-23 Murray Cumming <murrayc@murrayc.com>
670 ConfiguredDocument: Rename the localedID private member variable.
672 2012-01-23 Murray Cumming <murrayc@murrayc.com>
674 Adapt to the latest java-libglom API from git master.
676 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
677 libglom now uses only Vector instead of List, which uses add() instead of
680 2012-01-22 Murray Cumming <murrayc@murrayc.com>
682 ConfiguredDocument: Rename the localedID private member variable.
684 2012-01-20 Murray Cumming <murrayc@murrayc.com>
686 Build a source tarball with mvn assembly:single
688 * assembly.xml: Add this file.
689 * pom.xml: Use the maven-assembly-plugin and tell it to use
690 our assembly.xml file.
692 2012-01-19 Murray Cumming <murrayc@murrayc.com>
694 OnlineGlomServiceImpl: Get .glom files recursively.
696 * pom.xml: Depend on commons-io from org.apache.commons.
697 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
698 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
699 files recursively, and with the easier filter for the extension.
700 Use org.apache.commons.io.FilenameUtils.removeExtension() to
701 simplify that code too.
703 2012-01-19 Murray Cumming <murrayc@murrayc.com>
705 README: Mention that you must install java-libglom packages separately.
707 But then it works, because java-libglom is now in the central maven
710 2012-01-18 Murray Cumming <murrayc@murrayc.com>
712 locales drop-down: Show the correct selected locale when the URL changes.
714 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
715 .java: setPlace(): Move some code into fillView().
717 2012-01-18 Murray Cumming <murrayc@murrayc.com>
719 locales drop-down: Do not lose the primary key.
721 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
722 start(): onLocaleChange(): Pass the current primary key value,
723 instead of an empty value.
725 2012-01-18 Murray Cumming <murrayc@murrayc.com>
727 locales drop-down: Do not lose the drop-down selection.
729 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
730 .java (TableSelectionActivity.fillView): Set the selected locale
731 after changing the drop-down items (though we do not really need
732 to change them just because the locale changes.)
734 2012-01-18 Murray Cumming <murrayc@murrayc.com>
736 locales drop-down: Change the tables list when this changes.
738 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
739 .java: TableSelectionActivity.start(): Move the async table titles
740 retrieval into a private fillView() method and also call this when
741 the chosen locale changes.
742 Note that the document title is not actually translatable yet, but
743 that is a problem that I should fix soon in libglom.
745 2012-01-18 Murray Cumming <murrayc@murrayc.com>
747 Improve the placement of the locales drop-down.
749 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
750 Put the title and locales drop-down in a div (gwt.FlowTable).
751 * src/main/webapp/style.css: Add magic css properties to make this work.
752 Also remove the left margin from the title so that it lines up with the
755 2012-01-18 Murray Cumming <murrayc@murrayc.com>
757 locales selector: Show human-readable locale titles.
759 * src/main/java/org/glom/web/server/ConfiguredDocument.java
760 getDocumentInfo(): Use java.util.Locale to show a real title of
761 each locale, in the locale's own language.
763 2012-01-17 Murray Cumming <murrayc@murrayc.com>
765 Add a language/locale selector drop-down.
767 * src/main/java/org/glom/web/shared/DocumentInfo.java:
768 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
769 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
770 getDocumentInfo(): Store the available Locales in the DocumentInfo.
771 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
772 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
773 Add a ListBox to show the available locales. Add getLocaleSelector(),
774 setLocaleList(), getSelectedLocale(), setSelectedLocale().
775 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
776 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
777 java: Add these classes.
778 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
779 start(): Fill the locales ListBox. Handle its change event, firing a
781 setPlace(): Show the selected locale as specified by the URL token.
782 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
783 * src/main/java/org/glom/web/client/activity/ListActivity.java:
784 Handle LocaleChangeEvent, going to a new *Place with that locale.
786 The placement of the ListBox is not pretty, and it currently uses the ID
787 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
791 2012-01-17 Murray Cumming <murrayc@murrayc.com>
793 Search box: Show the search text from the URL token.
795 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
796 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
797 Add setQuickFindText().
798 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
799 .java: setPlace(): Store the queryText if the place is a ListPlace,
800 and call TableSelectionView.setQuickFindText().
802 2012-01-17 Murray Cumming <murrayc@murrayc.com>
804 Allow use of translations via, for instance, &lang=de in the URL.
806 * pom.xml: Use the unstable java-libglom 1.21 version.
808 * src/main/java/org/glom/web/client/OnlineGlomService.java:
809 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
810 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
811 init(): Instead of calling TranslatableItem.set_current_locale()
812 (now removed), call ConfiguredDocument.setDefaultLocaleID().
813 However, this is only for default locales, which are not needed to
814 change the locale in the URL.
815 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
816 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
817 getSortedRelatedListData(): Add a localeID parameter, so we can get the
818 layout for a particular locale.
819 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
820 Add get/setDefaultLocaleID().
821 getDocumentInfo(), getListViewData(), getRelatedListData(),
822 getDetailsLayoutGroup(), getListViewLayoutGroup(),
823 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
824 localeID parameter, so we can get the layout for a particular locale.
826 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
827 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
828 * src/main/java/org/glom/web/client/place/ListPlace.java:
829 Parse and construct a lang parameter too.
831 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
832 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
833 passed to subsequent methods and constructors.
834 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
835 * src/main/java/org/glom/web/client/activity/ListActivity.java:
836 Store the localeID from the *Place and pass it to other constructors
837 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
839 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
840 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
841 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
842 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
843 * src/main/java/org/glom/web/client/ui/ListView.java:
844 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
845 Take localeID parameters and pass them to subsequent constructors and
846 methods, so that the layout is always retrieved for that locale.
848 This is rather repetitive.
850 Note that "" means the original (default) locale of the Glom document,
851 which is usually English.
853 2012-01-17 Murray Cumming <murrayc@murrayc.com>
855 Documents: Remove final keyword to fix startup configuration.
857 * src/main/java/org/glom/web/shared/Documents.java: Remove the
858 final keywords on the private member variables because that breaks
859 the startup, apparently (there are warnings) because it stops them
860 from being serialized. I added these in the previous commit.
862 2012-01-13 Murray Cumming <murrayc@murrayc.com>
864 Documents: Add some final keywords.
866 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
869 2012-01-13 Murray Cumming <murrayc@murrayc.com>
871 OnlineGlomServiceImpl: Add to overview comments.
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 Note that this is where all the document are loaded. They are not
875 loaded freshly for each page.
877 2012-01-12 Murray Cumming <murrayc@murrayc.com>
881 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
882 Add a TextBox for the text of a quick find.
883 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
885 setBackLink(): Add a String quickFind parameter.
886 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
887 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
888 to the base interface, because that is how TableSelectionViewImpl is used.
889 * src/main/webapp/style.css: Add style for the search box and its label.
891 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
892 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
893 Add these files, based on the existing TableChangeEvent and
894 TableChangeEventHandlers.
895 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
896 start(): Handle QuickFindChangeEvent, passing its quickFind text to
897 a ListPlace() that the user should be taken to.
898 * src/main/java/org/glom/web/client/activity/ListActivity.java
899 start(): Handle it here too and adapt the TableChangeEvent handler to
900 pass the extra "" quickFind parameter to ListPlace.
901 * src/main/java/org/glom/web/client/place/ListPlace.java:
902 Constructor: Take an extra String quickFind parameter and store it,
903 returning it from a new getQuickFind() method.
904 getToken(): Put the quickFind text in the URL token.
905 getPlace(): Parse the quickFind text from the URL token.
906 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
907 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
908 ListPlace constructor.
909 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
910 .java: start(): Add a Change handler for the TableSelectionView's
911 TextBox (via its base HasChangeHandlers interface), firing the new
912 QuickFindChangeEvent.
913 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
914 pass the extra "" quickFind parameter.
916 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
917 setCellTable(): Add a String quickFind parameter and pass it to
918 the ListViewTable() constructor.
919 * src/main/java/org/glom/web/client/ui/ListView.java: Change
920 setCellTable() in the base interface, because that is how ListViewImpl
923 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
924 Add a String quickFind member variable.
925 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
926 Constructor: Add a String quickFind parameter, storing it in the
927 base ListTable's member variable.
928 onRangeChanged(): Pass quickFind to the
929 OnlineGlomServiceAsync.getSortedListViewData() and
930 OnlineGlomServiceAsync.getListViewData() methods.
932 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
933 getListViewData(), getSortedListViewData(): Add a String quickFind
934 parameter, passing it to ConfiguredDocument.getListViewData().
935 * src/main/java/org/glom/web/client/OnlineGlomService.java:
936 Change getListViewData(), getSortedListViewData() in the base interface,
937 because that is how OnlineGlomServiceImpl is used, via this:
938 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
939 Change getListViewData(), getSortedListViewData() here too.
940 This class can apparently be used to asynchronously call methods on
941 OnlineGlomService, and GWT seems to implement that after recognizing
942 just the *Async name convention and the extra AsyncCallback parameters.
944 * src/main/java/org/glom/web/server/ConfiguredDocument.java
945 getListViewData(): Add a String quickFind parameter, and pass it to
946 ListViewDBAccess.getData().
947 * src/main/java/org/glom/web/server/database/ListDBAccess.java
948 getListData(): Add a String quickFind parameter and pass it to
950 getSelectQuery(): Add a String quickFind parameter.
951 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
952 getSelectQuery(): Add a String quickFind parameter and use it with
953 Glom.get_find_where_clause_quick() to pass a where_clause to
954 Glom.build_sql_select_with_where_clause(), to actually filter the
956 getData(): Add a String quickFind parameter, passing it to getListData().
957 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
958 va: getData(): Pass an empty string to getListData() for the
961 2012-01-12 Murray Cumming <murrayc@murrayc.com>
963 ListTable: Minor change.
965 * src/main/java/org/glom/web/client/ui/list/ListTable.java
966 createCellTable(): Make this protected instead of public.
968 2012-01-12 Murray Cumming <murrayc@murrayc.com>
970 Many files: Use final for the parameters and use the @override attribute.
972 2012-01-22 Ben Konrath <ben@bagu.org>
974 Add anchor links for single line text that starts with http, ftp and www.
978 2012-01-22 Ben Konrath <ben@bagu.org>
980 Add ellipsis to single line text in details view.
984 2012-01-04 Murray Cumming <murrayc@murrayc.com>
986 Remove all javadoc author tags.
988 Because they are awkward and meaningless when many people touch
990 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
992 2012-01-04 Murray Cumming <murrayc@murrayc.com>
994 Revert the COPYING.LESSER to COPYING rename.
996 Apparently both should be there if it is LGPL.
998 2012-01-03 Murray Cumming <murrayc@murrayc.com>
1000 *View: Remove unused imports.
1002 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1003 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1004 * src/main/java/org/glom/web/client/ui/ListView.java:
1005 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1006 Remove unused imports, as suggested by Eclipse.
1008 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1010 Move the *View::Presenter types, and some API into one base View.
1012 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1013 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1014 * src/main/java/org/glom/web/client/ui/ListView.java:
1015 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
1016 Presenter, setPresenter() and clear() into a shared base interface,
1017 to avoid the unnecessary duplicate Presenter types and to more clearly
1018 show how the *Views share the same structure, even if they are not
1019 used polymorphically.
1021 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1022 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1024 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1025 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1026 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
1028 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1031 Feel free to revert this if there is a good reason for the duplicate
1034 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1036 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
1038 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
1039 a class member instead of a local variable in the method.
1040 This lets us use it to get the view instances, for use in tests.
1041 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1042 beforeOnlineGlom(): Test some more details of the initial view.
1043 Again, this is not very useful.
1045 To really test gwt-glom we will need to start a local postgresql
1046 instance with local data, like the Glom tests in C++.
1048 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1050 pom.xml: Mention the LGPL license.
1052 * pom.xml: Add a licenses section.
1053 * COPYING.LESSER: Move this to COPYING, which
1054 previously contained the GPL. But gwt-glom is all LGPL.
1056 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1058 Add project information to README and pom.xml.
1060 * README: Add a brief description and mention some mvn
1062 * pom.xml: This extra information shows up in mvn site
1065 2011-01-02 Murray Cumming <murrayc@murrayc.com>
1067 Use the latest java-libglom version.
1069 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
1071 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1073 GwtTestOnlineGlom: Test a little more.
1075 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
1076 protected rather than private, as suggested by the gwt-test-utils
1078 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
1079 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
1080 Test the initial visibility of the panels.
1082 However, this is not a very useful test.
1083 And I wonder how we should generally test using this idea for an
1084 activity/places app like ours where the real changes happen implicitly
1085 based on the history token/URL.
1087 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1089 Slight modification to *Mapper comments.
1091 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
1092 (DataActivityMapper)
1093 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
1095 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
1097 Remove comments mentioning GIN because they are just copied from
1098 the example code and are apparently not helpful:
1099 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
1100 Also change the mention of a class that is only in the example code.
1102 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1104 GwtTestOnlineGlom test: Minor changes.
1106 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1107 Avoid the long qualified class name and modify the comment
1108 because it is now obvious to me that the mocked class is the only
1109 custom one created via GWT.create().
1111 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1113 Tests: Added the beginnings of a test using gwt-test-utils.
1115 * pom.xml: Add dependencies on gwt-test-utils and easymock.
1116 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
1117 which tells gwt-test-utils what class will be tested.
1118 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1119 Add a simple (but empty) test case. One class, used by the OnlineGlom
1120 class, is mocked so that it can be created. However, I am not sure
1121 why only this class needs to be mocked.
1123 Note that mockito seems more popular, and clearer, than easymock,
1124 but I have not got that working yet. It might be a matter of the
1127 This test is run during mvn integration-test.
1129 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1131 Tests: Use junit4-style syntax instead of junit3-style.
1133 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1134 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1135 * src/test/java/org/glom/web/shared/DataItemTest.java:
1136 Use the @Test annotation rather than relying on the test*() prefix.
1137 Also no longer implement TestCase, to avoid triggering support for
1138 the junit3-way, which stops the annotations from working.
1139 Change the imports from import junit.framework.* to
1140 import org.junit.*, which is apparently the new way.
1142 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1144 Added a test for ListPlace token parsing and creation.
1146 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1147 This is much the same as DetailsPlaceTest.
1149 I wonder how we could test the other parts of the *Place API.
1151 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1153 DetailsPlace test: Also test getToken() and recreation via getPlace().
1155 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1156 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
1157 recreate it, testing the recreated DetailsPlace for the same parameter
1160 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1162 Use the surefire-report plugin.
1164 * pom.xml: This generates a HTML report about the tests in
1165 target/site/surefire-report.html
1166 when you do mvn surefire-report:report. It seems to be popular/normal.
1168 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1170 Added a test for DetailsPlace.
1172 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1173 Test the getPlace() token parsing.
1175 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1177 Added a first unit test.
1179 * pom.xml: Add a test goal, and a dependency on junit in that scope.
1180 * src/test/java/org/glom/web/shared/DataItemTest.java:
1181 This is a silly test but it is just to get things started. Note that
1182 maven/junit finds the test because it looks in src/test by default.
1184 2011-12-22 Ben Konrath <ben@bagu.org>
1186 Change charsetName to "UTF-8" when replacing line breaks.
1188 JavaScript requires the charsetName to be "UTF-8". CharsetName values
1189 that work in Java (such as "UTF8") will not work when compiled to
1192 This fixes a problem with multi-line details view fields that have hard
1193 line breaks. The "License Text" field on this page demonstrates the
1196 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
1198 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1200 2011-12-22 Ben Konrath <ben@bagu.org>
1202 Fix another bug with related list navigation.
1204 I've tested all the navigation buttons in all of the related lists
1205 so things should be good now.
1207 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1209 2011-12-22 Ben Konrath <ben@bagu.org>
1211 Fix a crasher when refreshing the list view with the default table.
1213 This crash will also happen when loading the list view with the default
1214 table from a link or bookmark.
1216 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
1217 to the main document selection page when the document id hasn't been
1219 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
1220 the main document selection page when the document id hasn't been
1222 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
1223 values for the details place when the document id hasn't been set.
1224 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
1225 values for the list place when the document id hasn't been set.
1227 2011-12-21 Ben Konrath <ben@bagu.org>
1229 Protect against NPE when glom.document.locale is not in config.
1231 This patch protects against an NPE when glom.document.locale is not in
1232 the config file. This NPE will also happen if glom.document.locale is
1235 The patch also updates the error message to display the class name when
1236 the getMessage() returns null. This was happening when the NPE was
1237 thrown and I had "Configuration Error: null". If an NPE is encountered
1238 with this patch, "Configuration Error: NullPointerException " will be
1241 This commit closes this bug:
1243 https://bugzilla.gnome.org/show_bug.cgi?id=666669
1245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1247 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1249 Rename onlineglom.properties to onlineglom.properties.sample.
1251 * src/main/resources/onlineglom.properties: Rename to:
1252 * src/main/resources/onlineglom.properties.sample:
1253 * src/main/resources/README: And add this file explaining that people
1254 should rename it back when deploying.
1256 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1258 Allow choosing the translation in the .properties file.
1260 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1261 init(): Read a glom.document.locale value from the configuration file
1262 and call Glom's TransatableItem::set_current_locale() method.
1263 * src/main/resources/onlineglom.properties: Add a commented-out
1264 example of this new setting.
1266 It would be better to add &lang=de_DE to the URL, but the current
1267 libglom API does not allow us to do this easily. I am working on that.
1269 2011-12-19 Murray Cumming <murrayc@murrayc.com>
1271 Avoid a crash in parsing of token parameters.
1273 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
1274 ava: getTokenParams(): Do not crash if a parameter has a key but no
1275 value, and ignore parameters with neither.
1277 2011-12-17 Murray Cumming <murrayc@murayc.com>
1279 History token building/handling: Improve use of token parameters.
1281 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1282 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
1283 and buildParamsToken(HashMap), for use by derived classes.
1284 Make the separator private because it is no longer be needed.
1285 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1286 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
1287 instead of manual string concatenation.
1288 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
1289 of hardcoded indices and awkward splitting code.
1290 * src/main/java/org/glom/web/client/place/ListPlace.java
1291 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
1292 instead of manual string concatenation.
1293 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
1294 of hardcoded indices and awkward splitting code.
1295 This should fix bug #666420
1297 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1299 Fix a Navgiation->Navigation typo in the code.
1301 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1302 Rename processNavgiation() to processNavigation().
1304 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1306 Fix a seperator->separator typo in the code.
1308 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1309 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1310 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
1313 2011-12-15 Ben Konrath <ben@bagu.org>
1315 Cleanup some comments.
1317 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1319 2011-12-14 Ben Konrath <ben@bagu.org>
1321 Replace \n with <br/> for multiline text in the details view.
1323 Vertical scrollbars are added when needed as well.
1325 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1327 2011-12-14 Ben Konrath <ben@bagu.org>
1329 Specify the font for document selection links.
1331 * src/main/webapp/style.css:
1333 2011-12-14 Ben Konrath <ben@bagu.org>
1335 Fix bouncy CellTable while paging.
1337 This doesn't currently work with related list tables in unselected
1340 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1342 2011-12-14 Ben Konrath <ben@bagu.org>
1344 Revamp the appearance of the document selection page.
1346 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1347 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1348 * src/main/webapp/style.css:
1350 2011-12-13 Ben Konrath <ben@bagu.org>
1352 Set navigation button column to the smallest size possible.
1354 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1356 2011-12-13 Ben Konrath <ben@bagu.org>
1358 Change OpenButton nomenclature to NavigationButton.
1360 Using NavigtionButton makes things more generic. Classes, methods and
1361 variables have been changed.
1363 This is a rename-only refactor.
1365 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1366 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1367 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
1368 Renamed from OpenButtonCell.
1369 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1370 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1371 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1373 2011-12-12 Ben Konrath <ben@bagu.org>
1375 Remove unnecessary String argument in RelatedListTable and ListViewTable.
1377 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1378 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1379 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1380 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1382 2011-12-12 Ben Konrath <ben@bagu.org>
1384 Update variable names and comments.
1386 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1387 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1389 2011-12-12 Ben Konrath <ben@bagu.org>
1391 Properly initialize numNonEmptyRows variable to zero.
1393 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1394 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1396 2011-12-05 Ben Konrath <ben@bagu.org>
1398 Add latest mockup with HTML tables.
1400 Features of this mockup:
1402 -> HTML table for flowtable
1403 -> HTML table for flowtable column
1404 -> Example of how related lists would look
1405 -> Not using text entries for data items
1407 The current version of Online Glom doesn't use HTML tables for the
1410 This mockup has been sent to the glom-devel mailing list but it's good
1411 to have it here as well.
1413 * mockups/details-view-html-tables.html:
1415 2011-12-05 Ben Konrath <ben@bagu.org>
1417 Remove unnecessary getPrimaryKeyField() method.
1419 getPrimaryKeyFieldForTable(String) has been renamed to
1420 getPrimaryKeyField(String).
1422 * src/main/java/org/glom/web/server/database/DBAccess.java:
1423 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1424 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1426 2011-12-05 Ben Konrath <ben@bagu.org>
1428 Add string representation of TypedDataItem value to conversion error message.
1430 * src/main/java/org/glom/web/server/Utils.java: Logging the error
1431 message was extracted into its own method to avoid duplication.
1433 2011-12-05 Ben Konrath <ben@bagu.org>
1435 Add type checking to navigation primary key value creation.
1437 Create navigation primary key only if the expected type from the Glom
1438 document matches the type returned by the SQL query.
1440 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1442 2011-12-05 Ben Konrath <ben@bagu.org>
1444 Rename a couple of variables in RelatedListNavigation.
1446 This is a rename-only refactor.
1448 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1450 2011-12-05 Ben Konrath <ben@bagu.org>
1452 Move getListLayoutGroup() into getListViewLayoutGroup().
1454 This removes getListLayoutGroup(). It was only being called by
1455 getListViewLayoutGroup().
1457 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1459 2011-12-05 Ben Konrath <ben@bagu.org>
1461 Remove check for LayoutItem_Portal in list table method.
1463 This check is no longer necessary because the method isn't being used
1464 to create the LayoutItemPortal DTO.
1466 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1468 2011-12-05 Ben Konrath <ben@bagu.org>
1470 Properly support related list navigation.
1472 Navigation from the "Repository Analyzer -> Package Scans ->
1473 Dependencies" related table wasn't working because the primary key for
1474 related tables wasn't being set properly. This commit fixes the
1477 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
1478 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
1479 doesn't set the primary key properly for related list tables.
1480 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
1481 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
1482 useful for getting the primary key for list view tables and for related
1484 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1485 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1486 Move code to set the primary key for the table from the abstract
1487 ListDBAccess class to ListViewDBAccess as it's only correct for list
1489 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1490 Properly add primary key to related list tables.
1492 2011-12-02 Ben Konrath <ben@bagu.org>
1494 Properly set the horizontal alignment of fields.
1496 This fix is for both the list tables and the details view.
1498 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1499 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
1500 to set the horizontal alignment of fields.
1502 2011-12-02 Ben Konrath <ben@bagu.org>
1504 Display currency codes in the details view.
1506 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1508 2011-12-02 Ben Konrath <ben@bagu.org>
1510 Avoid duplicate JNI call.
1512 JNI is not as efficient as pure Java and this is an easy (and small)
1515 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1516 Use previously retrieved value for whereClauseToTableName instead of
1519 2011-12-02 Ben Konrath <ben@bagu.org>
1521 Rename a couple of variables in RelatedListNavigation.
1523 This is a rename-only refactor.
1525 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1527 2011-12-02 Ben Konrath <ben@bagu.org>
1529 Indicate clearly that a mismatched primary key type is a bug.
1531 * src/main/java/org/glom/web/server/Utils.java: Change log level from
1532 warning to error. Add 'This is a bug.' to message.
1534 2011-12-02 Ben Konrath <ben@bagu.org>
1536 Update / fix some comments.
1538 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
1540 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
1542 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1543 Fix comments. Add some TODOs.
1545 2011-12-02 Ben Konrath <ben@bagu.org>
1547 Enable navigation to details view with string primary key from related list.
1549 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1550 Create a text primary key value when return type of result is
1551 java.sql.Types.VARCHAR.
1553 2011-12-02 Ben Konrath <ben@bagu.org>
1555 Use checkboxes for booleans in the details view.
1557 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1559 2011-12-01 Ben Konrath <ben@bagu.org>
1561 Improve performance of related list height calculation.
1563 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1564 Put code to calculate the expected height in a static initializer so
1565 that that it's only called once.
1567 2011-12-01 Ben Konrath <ben@bagu.org>
1569 Show related list tables in notebooks (again).
1571 Calculate the height of the related list tables so the Notebook can be
1572 set the correct height. The height of the related list table is also needed by
1573 FlowTable to be able decide how to create the layout.
1575 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
1576 and set the Portal height based on the height of the related list
1577 table and the Portal container.
1578 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1579 Add method to calculate the height of the related list tables.
1580 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1581 * src/main/webapp/style.css: Add css class for Pager. This is needed to
1582 calculate the height of the Pager widget.
1584 2011-12-01 Ben Konrath <ben@bagu.org>
1586 Use CellTable API for table property instead of setting style on Element.
1588 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1590 2011-12-01 Ben Konrath <ben@bagu.org>
1592 Make ListViewTable and RelatedListTable a consistent height.
1594 The tables are now a consistent height regardless of the contents of
1595 the table. A hidden button is added to empty rows to ensure that the
1596 height of these rows will match the height of rows with data.
1598 A navigation button column is now added to every table. The width of
1599 the navigation column is set to 0px when a RelatedListTable shouldn't
1600 have navigation buttons. This maintains the a consistent row height in
1601 tables that don't show the navigation buttons.
1603 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
1604 navigation column when not needed.
1605 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
1606 arguments for navigation button to constructor of ListViewTable.
1607 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
1608 hidden button for empty data rows.
1609 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
1610 arguments for navigation button to constructor.
1611 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
1612 create navigation buttons. Add hideNavigationButtons() method.
1613 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
1614 arguments for navigation button to constructor.
1616 2011-12-01 Ben Konrath <ben@bagu.org>
1618 Use 'visibility: hidden' in Utils.getWidgetHeight().
1620 This is better choice because hidden elements are invisible, don't
1621 respond to events and are not part of the tab order. They will,
1622 however, take up space which is required to be able to calculate the
1623 height of the widget.
1625 * src/main/java/org/glom/web/client/Utils.java:
1627 2011-12-01 Ben Konrath <ben@bagu.org>
1629 Use Utils.getWidgetHeight() in FlowTable.
1631 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
1633 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1635 2011-12-01 Ben Konrath <ben@bagu.org>
1637 Put the details css class name on the correct table column.
1639 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1641 2011-11-30 Ben Konrath <ben@bagu.org>
1643 Update for java-libglom API change.
1645 The getters and setters on FieldFormatting and NumericFormat were
1646 changed to remove the 'M'.
1648 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1650 2011-11-29 Ben Konrath <ben@bagu.org>
1652 Only allow RelatedListTables in Portals.
1654 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1656 2011-11-29 Ben Konrath <ben@bagu.org>
1658 Only create a contents panel for Portals when title is being set.
1660 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1662 2011-11-29 Ben Konrath <ben@bagu.org>
1664 Set TabLayoutPanel height based on calculated height its widgets.
1666 This is a potential fix for this bug:
1668 https://bugzilla.gnome.org/show_bug.cgi?id=665133
1670 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1672 2011-11-29 Ben Konrath <ben@bagu.org>
1674 Align details field labels and data with the Open buttons.
1676 * src/main/webapp/style.css:
1678 2011-11-29 Ben Konrath <ben@bagu.org>
1680 Remove unnecessary <div> in the Notebook widget.
1682 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
1683 method to get container FlowPanel (<div>).
1684 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
1685 initWidget() method directly on the TabLayoutPanel widget instead of
1686 Group's container widget.
1688 2011-11-29 Ben Konrath <ben@bagu.org>
1690 Don't add group titles for Portals in Notebooks.
1692 This reverts the previous patch and fixes a bug I introduced with
1693 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
1695 * src/main/java/org/glom/web/client/ui/details/Group.java:
1696 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1698 2011-11-28 Ben Konrath <ben@bagu.org>
1700 Remove unused boolean argument in Portal constructor.
1702 Just a code cleanup.
1704 * src/main/java/org/glom/web/client/ui/details/Group.java:
1705 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1707 2011-11-28 Ben Konrath <ben@bagu.org>
1709 Remove hack for glom 1.18 style glom files.
1711 * src/main/java/org/glom/web/client/ui/details/Group.java:
1712 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1713 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1715 2011-11-28 Ben Konrath <ben@bagu.org>
1717 Use Gda Value version of primary key to log result too large error.
1719 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1721 2011-11-28 Ben Konrath <ben@bagu.org>
1723 Don't use TypedDataItem.getText() for Unknown types from the URL.
1725 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1726 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
1727 instead of getText().
1728 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
1729 String field and getUnknown() method.
1731 2011-11-28 Ben Konrath <ben@bagu.org>
1733 Log an error message when the java-libglom .so is not present.
1735 The error message was being set in the exception but not logged.
1737 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1739 2011-11-28 Ben Konrath <ben@bagu.org>
1741 Ignore LayoutItem_CalendarPortals.
1743 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
1744 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
1746 2011-11-28 Ben Konrath <ben@bagu.org>
1748 Extract method for creating the LayoutItemPortal DTO.
1750 Just breaking the code up into smaller chunks.
1752 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1754 2011-11-28 Ben Konrath <ben@bagu.org>
1758 This should have been added with the refactor. Oops!
1760 * src/main/java/org/glom/web/shared/TypedDataItem.java:
1762 2011-11-28 Ben Konrath <ben@bagu.org>
1764 Create primary key value from URL string using type from Glom document.
1766 See this bug, comments 19 - 25:
1768 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
1770 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
1771 create a TypeDataItem for the primary key here when loading from a
1772 URL. Show the same string for the primary key value as was received
1773 from the URL string (when loading from a URL).
1774 * src/main/java/org/glom/web/server/Utils.java: Update method for
1775 creating the Gda Value from the TypeDataItem to properly deal with
1776 creating a Gda Value based on the Glom document type for the primary
1777 key value string when loading from a URL.
1778 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1779 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1780 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1781 Update for changed method name.
1783 2011-11-27 Ben Konrath <ben@bagu.org>
1785 Rename PrimaryKeyItem to TypedDataItem.
1787 The name PrimaryKeyItem suggests what the class should be used for.
1788 TypedDataItem is a neutral name that describes the class better.
1790 This is a rename-only refactor.
1792 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1793 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1794 * src/main/java/org/glom/web/client/Utils.java:
1795 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1796 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1797 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1798 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1799 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1800 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1801 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1802 * src/main/java/org/glom/web/server/Utils.java:
1803 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1804 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1805 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1806 * src/main/java/org/glom/web/shared/NavigationRecord.java:
1808 2011-11-25 Ben Konrath <ben@bagu.org>
1810 Improve Gda Value conversion from PrimaryKeyItem.
1812 The value from the PrimaryKeyItem is only used if its type match the
1813 type from the glom document.
1815 * src/main/java/org/glom/web/server/Utils.java:
1817 2011-11-25 Ben Konrath <ben@bagu.org>
1819 Manually check if the java-liblgom .so is visible to the JVM.
1821 It seems that Tomcat has problems when a static initializer throws an
1822 exception. This check is done before the first method call into
1823 java-libglom so that execution doesn't continue if the .so is not
1826 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1828 2011-11-25 Ben Konrath <ben@bagu.org>
1830 Improve browser configuration error messages.
1834 https://bugzilla.gnome.org/show_bug.cgi?id=662792
1836 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1837 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1838 getConfigurationErrorMessage() method.
1839 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1840 Get and display a specific configuration error message when no Glom
1841 documents are found.
1842 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1843 Implement getConfigurationErrorMessage() method. Surround configuration
1844 code in the init() method with a try/catch block. This allows the
1845 errors to be caught while keeping the servlet available to retrieve the
1846 configuration error message.
1848 2011-11-25 Ben Konrath <ben@bagu.org>
1850 Don't use Strings to hold primary key values.
1852 The primary key values are now held in a new data object
1853 (PrimaryKeyItem) that holds type information and the primary key value
1854 using the correct type.
1856 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1857 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1858 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1859 PrimaryKeyItem instead of String to hold the primary key value.
1860 * src/main/java/org/glom/web/client/Utils.java: Remove
1861 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
1862 PrimaryKeyItem based on the GlomFieldType and the DataItem.
1863 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
1864 PrimaryKeyItem instead of String to hold the primary key value. Load
1865 document selection page when the documentID has not been set correctly.
1866 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
1867 DetailsPlace -> URL and URL -> DetailsPlace conversion with
1869 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1870 Return empty string for URL instead of "null".
1871 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1872 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1873 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1874 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1875 PrimaryKeyItem instead of String to hold primary key values.
1876 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
1877 PrimaryKeyValue to a Gda Value.
1878 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1879 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1880 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1881 Replace temporary database access code that uses the PrimaryKeyValue to
1882 Gda Value conversion.
1883 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
1884 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
1885 PrimaryKeyItem instead of String.
1886 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
1887 hold primary key values.
1889 2011-11-24 Ben Konrath <ben@bagu.org>
1891 Use newly added java-libglom API to create queries.
1893 This isn't finished. I still need to stop using Strings for primary key
1894 values in the client code.
1896 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
1897 libglom to use fake connections so that retrieving the query string will
1899 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1900 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1901 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1902 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1903 Use the newly added libglom sql methods and classes to create the
1904 query. Add temporary hack to convert primary value strings to Gda
1907 2011-11-23 Ben Konrath <ben@bagu.org>
1909 Don't explicitly set the height of Portals.
1911 See comments 6 - 10 of this bug for details:
1913 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
1915 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1917 2011-11-23 Ben Konrath <ben@bagu.org>
1919 Use an HTML table instead of CSS for the FlowTable layout.
1921 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
1922 GWT's FlexTable to implement the FlowTable.
1923 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
1925 2011-11-18 Ben Konrath <ben@bagu.org>
1927 Add boolean example to HTML table mockup.
1929 * mockups/details-view-html-tables-text-entries.html:
1931 2011-11-17 Ben Konrath <ben@bagu.org>
1933 Ensure the pager buttons are always visible for related lists.
1935 To accomplish this, I've turned off text wrapping in the list view and
1936 related list tables for both the header and data text. The related list
1937 table now has a fixed layout so the it doesn't overflow its container.
1938 This is required to ensure that the cell text is clipped when it
1939 overflows the cell and an ellipsis is added to the right side of the
1940 cell when text is clipped.
1942 A fixed table layout for the related list table in the details view
1943 seems what we want for the details view anyway, so the side-effect is
1946 The ellipsis will only be displayed in Firefox >= 7.
1950 https://bugzilla.gnome.org/show_bug.cgi?id=662930
1952 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
1953 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
1954 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
1956 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1957 Set the 'table-layout: fixed' CSS property to the related list table.
1958 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
1959 'white-space: nowrap;' CSS property on both the list view and the
1960 related list tables.
1962 2011-11-16 Ben Konrath <ben@bagu.org>
1964 Rework the fix for empty notebook tab labels.
1966 Setting the empty group titles with its name caused problems for the
1967 details layout. Instead of using libglom's
1968 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
1969 to the client when the title is empty. This allows the Notebook to use
1970 the name when the title is empty without affecting anything else.
1972 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1973 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1975 2011-11-16 Ben Konrath <ben@bagu.org>
1977 Set group titles with name when title is empty.
1979 This fixes a problem with an empty notebook tab label in the Lesson
1980 Planner document. The forth tab in the notebook should be "Internet":
1982 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
1984 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1985 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
1988 2011-11-16 Ben Konrath <ben@bagu.org>
1990 Remove whitespace from the configured username properties.
1992 This assumes that usernames won't have whitespace at the beginning
1993 or end. But I think this is a reasonable assumption.
1995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1996 String.trim() to remove the whitespace from the username properties.
1998 2011-11-15 Ben Konrath <ben@bagu.org>
2000 Add details view mockup with HTML tables and text entries.
2002 This is from the attachment on this bug:
2004 https://bugzilla.gnome.org/show_bug.cgi?id=663109
2006 * mockups/details-view-html-tables-text-entries.html:
2008 2011-11-15 Ben Konrath <ben@bagu.org>
2010 Add space between the columns of the flow table.
2014 https://bugzilla.gnome.org/show_bug.cgi?id=662918
2016 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
2017 space between columns in the flow table.
2019 2011-11-15 Ben Konrath <ben@bagu.org>
2021 Add backup files to the .gitignore.
2023 * .gitignore: Ignore files that end with ~.
2025 2011-11-09 Ben Konrath <ben@bagu.org>
2027 Use latest release of gwt-log.
2029 Gwt-log releases are now being submitted to the maven central
2030 repository so manual installation of the jar is no longer required.
2032 * pom.xml: Update version and groupId of gwt-log dependency.
2034 2011-10-31 Ben Konrath <ben@bagu.org>
2036 Don't use GWT numeric formatting to override the glom currency formatting.
2038 Currencies are now displayed like they are in Glom. See this bug:
2040 https://bugzilla.gnome.org/show_bug.cgi?id=646216
2042 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
2044 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
2045 currency code to constructor and set it when the cell is rendered.
2046 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2047 currency code to the constructor of the NumericCell.
2049 2011-10-27 Ben Konrath <ben@bagu.org>
2051 Require the latest release of java-libglom (1.17.4).
2055 2011-10-26 Ben Konrath <ben@bagu.org>
2057 Add style to Notebook that matches current theme.
2059 It's not the best style in the world but it's better than the default.
2061 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
2062 padding at the bottom of the child widgets.
2063 * src/main/webapp/style.css: Add style for the Notebook.
2065 2011-10-26 Ben Konrath <ben@bagu.org>
2067 Move servlet initialization code to overridden init method.
2069 This is half of the solution to getting proper error messages
2070 displayed when configuration errors occur. Here's the relevant bug:
2072 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2074 The rest of the solution involves surrounding the init method with a
2075 try/catch block and setting a global variable with the error /
2076 exception. A new async method should be created to retrieve and display
2077 the error message / exception.
2079 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
2080 code from constructor to init method adding exceptions as needed.
2082 2011-10-26 Ben Konrath <ben@bagu.org>
2084 Add script to monitor and restart tomcat if required.
2086 * utils/check-and-recover-tomcat.py: New file.
2088 2011-10-26 Ben Konrath <ben@bagu.org>
2090 Display the correct number of data items in the pager.
2094 https://bugzilla.gnome.org/show_bug.cgi?id=661441
2096 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2097 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2098 The implementation is the same for both tables: Keep track of the
2099 number of non-empty rows and fire and RowCountChangeEvent after the data has
2101 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
2102 custom Pager class that subclasses SimplePager to handle displaying
2103 the correct number when empty rows have been added.
2105 2011-10-26 Ben Konrath <ben@bagu.org>
2107 Correct error in previous commit.
2109 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
2110 eventBus parameter from listView.setCellTable().
2112 2011-10-26 Ben Konrath <ben@bagu.org>
2114 Fix error in TODO comment.
2116 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2118 2011-10-24 Ben Konrath <ben@bagu.org>
2120 Create Notebook widgets to the details view.
2122 This isn't finished just yet - I still need to create a reasonable
2123 style to match the current theme.
2125 * src/main/java/org/glom/web/client/Utils.java: Add method for
2126 calculating the height of a widget. This is used in the Notebook class.
2127 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2128 new constructor method in Group.
2129 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
2130 method for creating child widget that can be used by subclasses
2131 like Notebook. New constructor that allows disabling the group
2132 titles - Notebooks don't set a group title for their child groups.
2133 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
2134 to make Notebooks using GWT's TabLayoutPanel.
2135 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
2136 constructor that allows disabling the group titles.
2137 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
2138 LayoutItemNotebook DTO.
2139 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
2140 DTO for Notebooks. It's just an empty class for now but we might need
2141 it to transfer some specific information in the future.
2143 2011-10-21 Ben Konrath <ben@bagu.org>
2145 Add navigation buttons to related list tables.
2147 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2148 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2149 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
2150 method getSuitableRecordToViewDetails() for getting the table name
2151 and primary key value for related list navigation buttons.
2152 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2153 private cell renderer class to get the navigation information for
2154 related list tables from the server. Extract the navigation
2155 processing code from the details cell navigation and use it for the
2156 related list navigation as well.
2157 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
2158 cell renderer class for the details open buttons. This was needed
2159 because the related list navigation buttons and the list view
2160 navigation buttons need to react differently when clicked.
2161 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
2162 the onEnterKeyDown() method because it's now overriden in the
2163 subclasses that are specific to the related list tables and the list
2165 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
2166 the vertical size a little because the buttons add a bit of vertical
2167 space to table. This is not a perfect solution because the vertical
2168 size of with table fewer than 5 rows will be a little smaller.
2169 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
2170 changes in how navigation buttons are handled.
2171 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
2172 getSuitableRecordToViewDetails() using the new RelatedListNavigation
2173 database access object.
2174 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
2175 to find the portal for a given relationship name from
2176 RelatedListDBAccess. Add method to find a primary key field for a
2178 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2179 Move code to find the portal for a given relationship name to
2181 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2182 New file: database access object for getting the related list
2183 navigation information (the table name and the primary key value).
2184 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
2185 DTO for transferring a table name to navigate to and a primary key
2187 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2188 boolean and getter/setter to specifies if the related list should add
2191 2011-10-24 Murray Cumming <murrayc@murrayc.com>
2193 Use the master branch of java-libglom
2195 * pom.xml: Depend on java-libglom 1.19 instead.
2197 This is the master branch. See also the libglom-1-18 branch.
2199 2011-10-11 Ben Konrath <ben@bagu.org>
2201 Enable the open navigation button when the data has been set.
2203 This avoids having active buttons that don't do anything when the data
2206 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2208 2011-10-11 Ben Konrath <ben@bagu.org>
2210 Use IsWidget interface for FlowTableItem.
2212 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
2213 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
2215 2011-10-11 Ben Konrath <ben@bagu.org>
2217 Remove GWT styling from open button in details view.
2219 There are still some issues with how the details cell is arranged but
2220 this should be made to match Glom 1.20. I'm going to leave fixing this
2221 until I have Glom 1.20 up and running.
2223 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
2224 style name on open button.
2225 * src/main/webapp/style.css: Move and edit details-navigation class.
2226 Re-arrange some classes to make them appear in the same order as the
2229 2011-10-07 Ben Konrath <ben@bagu.org>
2231 Update to GWT 2.4.0.
2233 * .gitignore: Ignore new cache directory.
2234 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
2235 * pom.xml: Change GWT and maven plugin to 2.4.0.
2236 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
2238 * src/main/java/org/glom/web/client/ClientFactory.java:
2239 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2240 * src/main/java/org/glom/web/client/OnlineGlom.java:
2241 Update source for API changes.
2242 * utils/build-onlineglom-war.sh: Remove cache directory before the
2245 2011-10-07 Ben Konrath <ben@bagu.org>
2247 Add navigation buttons in the details view.
2249 This isn't finished but I thought I'd commit what I have as it's a
2250 pretty good start. I still need to:
2252 1. Change the style so that it fits better into the current theme
2253 2. Adjust the details cell to expand as much as possible.
2255 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2256 click handlers to navigation buttons in the DetailsCells. Create a
2257 refreshData() method to get just the data from the server without the
2259 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2260 Update the tableSelector and browser title when the table name
2261 changes without using the tableSelector.
2262 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2263 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2264 getDetailsCells() to getCells(). Update variable names.
2265 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
2266 method to set click handler on navigation button. Rename a few
2267 variables. Add navigation buttons where needed.
2268 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
2269 variables and methods.
2270 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
2271 navigation boolean and navigation table as required in the
2272 LayoutItemField DTO.
2273 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2274 variables for navigation along with getter/setter methods.
2276 2011-10-07 Ben Konrath <ben@bagu.org>
2278 Rename Field to DetailsCell.
2280 This is a refactor-only commit. No functionality has been added or
2283 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2284 Update variable and method names.
2285 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2286 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
2287 variable and method names.
2288 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2290 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
2291 variable and method names.
2293 2011-10-07 Ben Konrath <ben@bagu.org>
2295 Create separate methods for layout and data the details view.
2297 This is a refactor-only commit. No functionality has been added or
2300 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
2301 private methods: setData(), createLayout().
2303 2011-10-07 Ben Konrath <ben@bagu.org>
2305 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
2307 This is part of a change to get navigation buttons in the details view
2308 but it should have been done this way from the start.
2310 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2311 for method name change in TableSelectionView.
2312 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2313 Create TableChangeEvent and set the browser title using the
2314 TableSelectionView API.
2315 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2316 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2317 Change getSelectedTable() to getSelectedTableName(). Add
2318 getSelectedTableTitle().
2320 2011-10-07 Ben Konrath <ben@bagu.org>
2322 Use primaryKeyValue naming convention in constructor of DetailsPlace.
2324 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2326 2011-10-07 Ben Konrath <ben@bagu.org>
2328 Update TableChangeEvent to use newTableName naming convention.
2330 This makes the class more consistent with GWT naming conventions.
2332 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2333 Update for method name change in TableChangeEvent.
2334 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2335 for method name change in TableChangeEvent.
2336 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
2337 newTableName variable and getter method. Make toDebugString()
2340 2011-09-30 Ben Konrath <ben@bagu.org>
2342 Disable the pager in the list tables when the data row count is less than the minimum.
2344 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2345 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2347 2011-09-30 Ben Konrath <ben@bagu.org>
2349 Add empty rows to the end of related list and list view tables.
2351 I also extracted the cell rendering classes from the ListTable because
2352 the code was becoming a little crazy with all the anonymous inner
2353 classes. My plan is to use these cell rendering classes in the details
2354 view as well so this refactor will be needed for that change.
2356 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
2357 set the row count in related list tables if the data has more rows
2358 than the minimum number of rows visible.
2359 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
2360 row count in list view tables if the data has more rows than the
2361 minimum number of rows visible.
2362 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
2363 for rendering TYPE_BOOLEAN cells. The code was extracted from the
2365 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
2366 for rendering TYPE_NUMERIC cells. The code was extracted from the
2368 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
2369 class for rendering cells with buttons in list views. The code was
2370 extracted from the ListTable class.
2371 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
2372 for rendering TYPE_TEXT cells. The code was extracted from the
2374 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2375 Add empty rows to the end of the data if required. Implement
2376 ListTable.getMinNumVisibleRows().
2377 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
2378 cell renderer code to public classes. Return null in
2379 Column.getValue() for empty rows. Add new abstract method:
2380 getMinNumVisibleRows(). Move code to set the row count of the list view
2381 table to ListViewImpl.
2382 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
2383 empty rows to the end of the data if required. Implement
2384 ListTable.getMinNumVisibleRows().
2387 2011-09-27 Ben Konrath <ben@bagu.org>
2389 Use GWT.log for client-side debugging statements.
2391 These are optimized out when deployed so I should have used this method
2392 in the first place. These statements will eventually be replaced with some sort
2393 of notification in the browser.
2395 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2396 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2397 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2398 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2399 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2401 2011-09-27 Ben Konrath <ben@bagu.org>
2403 Put tableselector on the right, back to list link on right.
2405 The idea is that the table selector is acting like a label for the
2406 currently displayed table so it should be placed below the document title. This
2407 puts the table title in a similar position to where it is in Glom.
2409 * mockups/details-contacts.html:
2410 * mockups/details-projects.html:
2411 * mockups/listview-contacts.html:
2412 * mockups/listview-projects.html:
2413 * mockups/style.css:
2414 Update mockups to match how the interfaces currently look.
2415 * src/main/webapp/style.css: Swap positions of backlink with the table
2416 selector. Add some space on the left side of the table selector to
2417 line things up with the document title.
2419 2011-09-27 Ben Konrath <ben@bagu.org>
2421 Add field colouring to details view.
2423 This change re-works how field colouring works. The colour formatting
2424 information is now set to the client with the layout information instead of
2425 with the data. This eliminates the need to send the same colour strings for
2426 data in list view column when colour information is set.
2428 In order to set an alternate colour for negative numeric values, the
2429 number is now sent to client and formatted with the GWT NumberFormat class.
2431 This change also fixes:
2433 https://bugzilla.gnome.org/show_bug.cgi?id=659752
2435 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
2436 internationalization framework which is needed for client side numeric
2438 * src/main/java/org/glom/web/client/Utils.java: New file for some
2439 client static utility methods.
2440 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2441 the DataItem object to the Field class. Use a utility method to
2442 create the foreignKeyValue string.
2443 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
2444 alignment and text colours in the constructor. Add setData(DataItem)
2445 method. Remove setText(String) method.
2446 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2447 colour information to GlomTextCell. Create and use GlomNumberCell for
2448 rendering numbers. Use utility method to get the string for the
2449 primary key of the key provider. Re-work how the horizontal alignment
2451 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2452 formatting to layout information. Methods for converting the libglom
2453 formatting information were moved from DBAccess.
2454 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
2455 numeric formatting (it's now done on the client side). Don't set text
2456 colours in DataItem. Move libglom formatting conversion methods to
2458 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
2459 getters/setters for text colour information.
2460 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
2461 for transferring the libglom NumericFormat information to the client.
2462 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
2463 and getters/setters for: GlomNumericFormat, background colour and
2464 foreground colour strings.
2466 2011-09-26 Ben Konrath <ben@bagu.org>
2468 Simplify code that iterates through the LayoutGroup.
2470 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2472 2011-09-26 Ben Konrath <ben@bagu.org>
2474 Accept Eclipse formatting for OnlineGlomServiceAsync.
2476 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2478 2011-09-26 Ben Konrath <ben@bagu.org>
2480 Don't use the ListDBAccess classes to get the primary key layout information.
2482 This was causing a bug where the wrong index for the hidden primary key
2483 was being sent to the client.
2485 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
2486 primary key while creating the LayoutGroup DTO. Create a
2487 LayoutItemField DTO for hidden primary keys. Don't use the
2488 RelatedListDBAccess because it was only used for getting the primary
2490 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
2491 access modifier from public to protected for getPrimaryKeyField() and
2492 getPrimaryKeyLayoutItemField().
2493 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
2494 abstract method getExpectedResultSize() because RelatedListDBAccess
2495 doesn't have enough info to implement it.
2496 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2497 Remove @Override for getExpectedResultSize().
2498 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2499 Remove method getExpectedResultSize().
2501 2011-09-23 Ben Konrath <ben@bagu.org>
2503 Log which layout (list or details) the ignored item is from.
2505 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2507 2011-09-23 Ben Konrath <ben@bagu.org>
2509 Remove annotations that turn off code formatting in DataItem.
2511 * src/main/java/org/glom/web/shared/DataItem.java:
2513 2011-09-23 Ben Konrath <ben@bagu.org>
2515 Rename GlomField to DataItem and update associated methods.
2517 This is a rename-only refactor. No functionality has been added or
2520 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2521 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2522 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2523 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2524 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2525 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2526 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2527 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2528 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2529 * src/main/java/org/glom/web/server/database/DBAccess.java:
2530 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2531 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2532 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2533 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2534 * src/main/java/org/glom/web/shared/DataItem.java:
2535 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
2536 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2538 2011-09-23 Ben Konrath <ben@bagu.org>
2540 Rename GlomDocument to DocumentInfo and update associated methods.
2542 This is a rename-only refactor. No functionality has been added or
2545 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2546 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2547 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2548 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2549 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2550 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2551 * src/main/java/org/glom/web/shared/DocumentInfo.java:
2553 2011-09-20 Ben Konrath <ben@bagu.org>
2555 Require java-libglom 1.17.3.
2557 This picks up the fix for the seg fault problem with the Scenes table
2558 in the Openismus Film Manager example.
2562 2011-09-20 Ben Konrath <ben@bagu.org>
2564 Change the way sort clause is added for primary key when no sort clause is requested.
2566 The primary key is now added to the LayoutFieldVector (fieldsToGet)
2567 before the sort clause is created. When a sort clause is not requested, the
2568 sort clause is created by finding the primary key in the LayoutFieldVector
2571 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2573 2011-09-20 Ben Konrath <ben@bagu.org>
2575 Log error message if no documents are found in the configured directory.
2577 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
2578 Extract the glom file extension string to a private static final class
2579 variable (mostly as syntactic sugar). Accept a minor formatting change.
2580 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
2581 the example glom.document.directory configuration property to make it
2582 more clear that it can any directory, not just the home directory.
2584 2011-09-18 Ben Konrath <ben@bagu.org>
2586 Add related lists to details view.
2588 The related list table has support for paging and sorting just like the
2589 table in the list view.
2591 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
2592 SQL queries for the related list tables.
2593 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2594 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2595 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2596 Rename getList methods to getListView and add comments. Remove
2597 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
2598 it being unused. Add methods: getDetailsLayoutAndData(),
2599 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
2600 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2601 Create the layout and set the data for the fields in one async call
2602 instead of two. Create related lists where appropriate.
2603 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
2604 for method name changes in OnlineGlomService.
2605 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2606 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2607 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
2609 * src/main/java/org/glom/web/client/ui/ListView.java:
2610 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
2611 tableName from setCellTable(). Create a ListViewTable instead of
2613 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
2614 represent a data field in the details view.
2615 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
2616 from addDetailsCell() to Field class. Keep track of the Fields and
2617 Portals in the details view.
2618 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
2619 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
2620 and add a method to get it. Add method to set the contents of the
2622 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2623 New class for related list tables. This class has the data provider
2624 for the related list table.
2625 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
2626 abstract class which is the base class for the ListViewTable and the
2628 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2629 New class for list view tables. This class has the data provider for
2630 the list view table.
2631 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2632 methods for related list tables. Add more information to the
2633 LayoutItemField and LayoutItemPortal DTOs.
2634 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2635 Remove debugging print statement.
2636 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2637 Remove debugging print statements. Add primary key field to SQL count
2639 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2640 Remove unnecessary LayoutFieldVector parameter from
2641 getResultSizeOfSQLQuery() method.
2642 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2643 New class for related list table database access.
2644 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
2645 class that is a wrapper DTO for details view layout and data.
2646 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2647 new 'fromField' string to this DTO.
2648 * src/main/webapp/style.css: Remove bottom margin and override top
2651 2011-09-15 Ben Konrath <ben@bagu.org>
2653 Breakup the OnlineGlomServiceImpl class to make it more manageable.
2655 This sets things up to make it easier to add the data retrieval for
2656 related lists (portals). No user noticeable changes were made with
2659 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
2660 class has the code to retrieve the layouts and access the
2661 database using the new database helper classes.
2662 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2663 Most of the functionality has been removed from this class. This
2664 class now represents the public interface for the client side
2665 code. It also deals with configuring the servlet and cleaning
2666 things up when the servlet is stopped.
2667 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
2668 of static methods into this utility class.
2669 * src/main/java/org/glom/web/server/database/DBAccess.java:
2670 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2671 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2672 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2673 These classes have the database retrieval code. The class hierarchy
2674 has been setup to make it easy to reuse code for similar
2677 2011-09-06 Ben Konrath <ben@bagu.org>
2679 Create separate classes for list table code and the data provider.
2681 As part of this refactor, I also split up the code a bit to make it
2684 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
2685 table code to two new classes (below).
2686 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
2687 with code from ListViewImpl.
2688 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
2689 New file with code from ListViewImpl.
2691 2011-09-06 Ben Konrath <ben@bagu.org>
2693 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
2695 This fixes the LayoutItemPortal DTO to match the libglom layout object
2698 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
2700 2011-09-01 Ben Konrath <ben@bagu.org>
2702 Set title of Portals in the Details View.
2704 * pom.xml: Bump required version of java-libglom to 1.17.1.
2705 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
2706 widget creation to its own class. Add comments to constructor.
2707 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
2708 The code is mostly from the Group class with the title now set.
2709 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2710 title of Portal. Update some comments. Fix some code formatting.
2712 2011-09-01 Ben Konrath <ben@bagu.org>
2714 Remove TODO comment for the flow table column width.
2716 The flow table column width is working correctly and doesn't need to be
2717 changed. See this mailing list post for more info:
2719 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
2721 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
2723 2011-08-27 Ben Konrath <ben@bagu.org>
2725 Add document title (database name) to top of the browser page.
2727 I added the document title to the TableSelecitonView but that will
2728 change if / when we add a view that doesn't require table selection.
2730 * mockups/details-contacts.html:
2731 * mockups/details-projects.html:
2732 * mockups/listview-contacts.html:
2733 * mockups/listview-projects.html:
2734 * mockups/style.css: Add document title to mockups to keep things
2736 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
2737 sizes to account for the document title.
2738 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2739 Set the document title when it has been retrieved from the server.
2740 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2741 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
2742 and implement setDocumentTitle(String) method.
2743 * src/main/webapp/style.css: Add ID for document title style.
2745 2011-08-25 Ben Konrath <ben@bagu.org>
2747 Add NavigationType enum to LayoutItemPortal DTO.
2749 This is the start of adding support for Portals to the Details View.
2751 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
2752 LayoutItem_Portal.navigation_type enum from libglom to
2753 LayoutItemPortal.NavigationType enum.
2754 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2755 NavigationType enum, field for storing the NavigationType and getter
2758 2011-08-25 Ben Konrath <ben@bagu.org>
2760 Implement the flow table layout in the Details View.
2762 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2763 FlowTable to Group to account for the renamed class.
2764 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
2765 File. This is a container widget that implements the Glom details view
2766 flow table behaviour.
2767 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
2768 org/glom/web/client/ui/FlowTable.java.
2769 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
2770 so that the size of the subgroups are a closer match to the size of
2771 the Glom subgroups. This makes the flowtable layout match the layout
2772 in Glom for the Music Collection example file.
2774 2011-08-16 Ben Konrath <ben@bagu.org>
2776 Create container element for LayoutItemPortal in Details View.
2778 This will help me develop the layout for the FlowTable.
2780 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
2781 fieldPanel variable to detailsCell.
2783 2011-08-15 Ben Konrath <ben@bagu.org>
2785 Set the height of the data element in the Details View.
2787 I changed the InlineLabels (text in a span element) to Labels (text in
2788 a div element) so that I could set the height of the details-data
2789 elements instead of the details-cell parent elements. This allows the
2790 the details-data element to display the correct height if style is
2791 applied that shows the height.
2793 This change has the added benefit of allowing the order of the labels
2794 and data elements to be changed for right-to-left languages.
2796 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2797 InlineLabels to Labels.
2798 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
2799 InlineLabels to Labels. Set the height of the data element.
2800 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2801 multiline text height in the Formatting DTO.
2802 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
2803 for multiline height along with getter and setter methods.
2804 * src/main/webapp/style.css: Adjust style to account for the change
2805 from span elements to div elements in the details cell.
2807 2011-08-15 Ben Konrath <ben@bagu.org>
2809 Make the List View appearance match the mockups.
2811 It doesn't match exactly but it's much better than it was.
2813 * mockups/listview-contacts.html: Remove unused css classes.
2814 * mockups/listview-projects.html: Remove unused css classes.
2815 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
2816 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
2817 for mainPanel instead of VerticalPanel (table). Set style name on
2818 CellTable. Set style name on Details column. Right-align Details
2820 * src/main/webapp/style.css: Adjust properties to match the mockups.
2822 2011-08-12 Ben Konrath <ben@bagu.org>
2824 Add better support for subgroups in the details view.
2826 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2827 changed FlowTable constructor.
2828 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
2829 support for subgroups and subgroup-titles.
2830 * src/main/webapp/style.css: Add CSS class for subgroups and
2833 2011-08-12 Ben Konrath <ben@bagu.org>
2835 Return the top level LayoutGroup title.
2837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2839 2011-08-11 Ben Konrath <ben@bagu.org>
2841 Make the TableSelector header match the mockup.
2843 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
2844 the layout panel. Properly lineup the table selection header with
2845 the list and details view.
2846 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
2847 margin around the details view.
2848 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2849 Rename listBox variable to tableSelector. Set id for the style sheet.
2850 Use a FlowPanel instead of a HorizontalPanel.
2851 * src/main/webapp/style.css: Add properties to make the TableSelector
2852 box match the mockups.
2854 2011-07-13 Ben Konrath <ben@bagu.org>
2856 Update install script for java-libglom version change.
2858 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
2861 2011-07-13 Ben Konrath <ben@bagu.org>
2863 Add support sub-group in the details view.
2865 I also removed the code that special-cased the default details view
2868 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
2870 I still have to make a proper flowtable.
2872 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2873 Don't special-case default details view layout.
2874 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
2875 addLayoutField() as I'm going to use it.
2876 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
2877 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
2879 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
2880 extracted from DetailsViewImpl.GroupPanel. Add support for
2882 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2883 column count when getting the details layout.
2885 2011-07-12 Ben Konrath <ben@bagu.org>
2887 Set browser title with database and table titles.
2889 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2890 Set the browser title when the table changes and when the activity
2892 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2893 title when retrieving document info (the GlomDocument object).
2894 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
2895 with getter and setter methods. Remove unused convenience constructor.
2896 Use default code formatting.
2898 2011-07-12 Ben Konrath <ben@bagu.org>
2900 Ignore LayoutItemPortals in the details view.
2902 I added a new DTO for the LayoutItemPortal so that I can ignore it in
2905 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
2906 LayoutItemPortal layout objects.
2907 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2908 LayoutItemPortal objects when retrieving the details layout.
2909 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
2910 file. This is an empty class and just used to get type information for
2913 2011-07-12 Ben Konrath <ben@bagu.org>
2915 Use java-libglom 1.17.0.
2919 2011-07-11 Ben Konrath <ben@bagu.org>
2921 Remove "Table:" label from table selector.
2923 This matches a recent change in the Glom UI.
2925 * mockups/details-contacts.html:
2926 * mockups/details-projects.html:
2927 * mockups/listview-contacts.html:
2928 * mockups/listview-projects.html: Remove the "Table:" label from the
2930 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2932 2011-07-11 Ben Konrath <ben@bagu.org>
2934 Add main groups to the details view.
2936 This makes things look a little nicer in the details view. The next step
2937 is to implement the flowtable.
2939 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
2940 resources from the standard gwt css theme. Standard.css is now
2941 included in OnlineGlom.html so that the online glom css rules have
2942 precedence over the gwt theme.
2943 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2944 the whole LayoutGroup to the DetailsView instead of just the titles.
2945 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2946 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
2947 details layout with a helper class (GroupPanel). I might extract this
2948 class when I make the full flowtable.
2949 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
2950 string as default so I don't have to worry about NPEs when processing
2952 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
2953 note beside OnlineGlom.gwt.xml above).
2954 * src/main/webapp/style.css: Add default font-size to body to override
2955 the font-size set by the standard theme. Don't use h2 tags for
2956 group-title. Create new details-cell class.
2958 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2960 ConfiguredDocument: Set the port number too.
2962 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2963 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
2964 Glom document. Presumably this worked sometimes so far because there is a
2965 default port number.
2967 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2969 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
2971 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2972 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
2973 correct, though we should throw an exception too.
2975 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2977 Fix a addDocuemnt typo.
2979 * src/main/java/org/glom/web/shared/Documents.java
2980 (Documents.addDocuemnt): Rename to addDocument().
2981 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2982 (OnlineGlomServiceImpl.getDocuments): Adapt.
2984 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2986 Slightly improved log output when connection fails.
2988 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2989 (ConfiguredDocument.setUsernameAndPassword):
2990 We don't know for sure if it' the username/password that's wrong, so
2991 rephrase the message.
2992 Also ouput the exception message, though it's generic in this case.
2994 2011-07-08 Ben Konrath <ben@bagu.org>
2998 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
2999 added braces to a one line if statement because the Eclipse formatter
3000 was getting confused.
3002 2011-07-07 Ben Konrath <ben@bagu.org>
3004 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
3006 These should really be two separate tasks but I counldn't get things to
3007 work with GWT 2.2.0 and Eclipse 3.7.
3011 * .settings/org.eclipse.jdt.core.prefs:
3012 * .settings/org.eclipse.jdt.ui.prefs:
3013 * .settings/org.eclipse.ltk.core.refactoring.prefs:
3014 * .settings/org.eclipse.m2e.core.prefs:
3015 Add new config files. Update current files. Remove references to the
3016 webtools plugins as we're not using any of the webtools features.
3017 * .gitignore: Add logs directory which is created when running with
3019 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
3020 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
3021 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
3023 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
3025 2011-07-07 Murray Cumming <murrayc@murrayc.com>
3027 onlineglom.properties: Add explanatory comments.
3029 * src/main/resources/onlineglom.properties: Also change the default user
3030 from ben to someuser, to avoid the risk of people thinking we just
3031 stupidly hard-coded a locale path, when they see that on stderr or in a log.
3033 2011-06-28 Ben Konrath <ben@bagu.org>
3035 Use filename in Log for incorrect passwords.
3037 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
3038 getFileName(String) method to get the filename from the URI.
3040 2011-06-28 Ben Konrath <ben@bagu.org>
3042 Add the table name to the URL token for the ListPlace.
3044 This makes things consistent between the DetailsPlace and the
3045 ListPlace. It also allows the the ListPlace to be bookmarked.
3047 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3048 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3049 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3050 Remove getDefaultListLayout(). The default layout is now returned
3051 by the getListLayout() method when the table name is an empty string.
3052 * src/main/java/org/glom/web/client/activity/ListActivity.java:
3053 Add table name field. Change to a new ListPlace when the table
3054 has been changed. Use getListLayout() for getting the default
3056 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3057 Add table name field. Set the correct table name in the list box
3058 when loading from bookmark. This corrects a problem for the
3060 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3061 Move table name to super-class (HasSelectableTable). Move document
3062 and table URL keys to super-class in HasSelectableTable.
3063 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
3064 Add table name field. Add Tokenizer class with URL key common to
3065 the subclasses (DetailsPlace and ListPlace).
3066 * src/main/java/org/glom/web/client/place/ListPlace.java:
3067 Add table name. Add code to parse the URL token.
3068 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
3069 Update ListPlace construction with empty table name string.
3070 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3071 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3072 Change setTableSelectedIndex(int) to setSelectedTableName(String).
3073 Update ListPlace construction with table name string.
3074 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
3075 Change defaultTableName field to tableName to reflect how it's now
3076 used. Update the getter and setter methods.
3078 2011-06-28 Ben Konrath <ben@bagu.org>
3080 Enable the table selector in the DetailsView.
3082 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3083 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3084 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3085 Remove getDefaultDetailsLayout(). The default layout is now returned
3086 by the getDetailsLayout() method when the table name is an empty
3088 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
3089 event handler for table change event. Change to using
3090 getDetailsLayout() for the default details layout.
3091 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
3093 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
3094 when navigating to the details place.
3096 2011-06-27 Ben Konrath <ben@bagu.org>
3098 Use filename based unique document ID in URL and for RPC.
3100 The document ID is the glom document name with spaces (' ') replaced
3101 with pluses ('+') and without the .glom extension.
3103 This change is mostly a string substitution of 'documentTitle' for
3104 'documentID'. The only code change is the addition of a Documents DTO to get the
3105 filename to document title mappings as indicated below.
3107 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3108 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3109 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3110 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
3111 Use Documents DTO to create the document links in the document
3113 * src/main/java/org/glom/web/client/activity/ListActivity.java:
3114 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3115 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3116 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
3117 * src/main/java/org/glom/web/client/place/ListPlace.java:
3118 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
3119 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
3120 * src/main/java/org/glom/web/client/ui/ListView.java:
3121 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3122 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3123 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3124 * src/main/java/org/glom/web/server/Log.java:
3125 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3126 getDocumentTitles() to getDocuments() and return the Documents DTO.
3127 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
3128 transferring the filename to document title mappings.
3130 2011-06-25 Ben Konrath <ben@bagu.org>
3132 Make the authentication popup work again.
3134 This bug was introduced when I extracted ConfiguredDocument to its own class.
3136 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
3137 correct success / fail status in setUsernameAndPassword().
3139 2011-06-25 Ben Konrath <ben@bagu.org>
3141 Use filename as unique key for configuring database usernames and passwords.
3143 This replaces the use of the Glom document title which could change
3144 depending on the locale. Thanks to Murray Cumming for pointing out this
3147 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3148 * src/main/resources/onlineglom.properties:
3150 2011-06-24 Ben Konrath <ben@bagu.org>
3152 Pass primary key value to DetailsView.
3154 This enables the DetailsView to load the correct data.
3156 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
3157 primary key value field and set in constructor. Pass primary key
3158 value to getDetailsData().
3159 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
3160 variables for document title and primary key value.
3161 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
3162 key value to the DetailsPlace.
3164 2011-06-24 Ben Konrath <ben@bagu.org>
3166 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
3168 This allows the primary key to be retrieved by the Details button. This
3169 functionality has not been implemented yet but it's in the works.
3171 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
3172 the LayoutGroup result to ListView.setCellTable instead of all of its
3173 fields individually.
3174 * src/main/java/org/glom/web/client/ui/ListView.java:
3175 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
3176 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
3177 get the primary key for the table.
3178 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
3179 index of the primary key in the LayoutGroup accounting for hidden
3180 primary keys. Rename getJavaNumberFormat() to
3181 convertToJavaNumberFormat() for consistency. Cleanup / add some
3183 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
3184 field for primary key index and a field to indicate whether the
3185 primary key is hidden or not.
3187 2011-06-23 Ben Konrath <ben@bagu.org>
3189 Rename getTableData methods to getListData.
3191 This is a rename refactor for consistency with other methods.
3193 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3194 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3195 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3198 2011-06-23 Ben Konrath <ben@bagu.org>
3200 Extract the ConfiguredDocument innerclass into its own class.
3202 This makes the servlet code more object oriented.
3204 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
3205 from private ConfiguredDocument class in OnlineGlomServiceImpl.
3206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
3207 new ConfiguredDocument class.
3209 2011-06-21 Ben Konrath <ben@bagu.org>
3211 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
3213 This makes things more inline with how libglom works and reduces code
3214 duplication. This refactor lays the groundwork for adding the primary key to
3215 the LayoutGroup object.
3217 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3218 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3219 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3220 Change method names to getListLayout and getDefaultListLayout for
3221 consistency. Use LayoutGroup as the DTO for the list layout instead of
3222 ColumnInfo and LayoutListTable.
3223 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
3224 new method names along with the LayoutGroup object for transferring the
3226 * src/main/java/org/glom/web/client/ui/ListView.java:
3227 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3228 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
3229 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
3231 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
3232 Replaced with LayoutGroup.
3233 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
3234 expectedResultSize and defaultTableName fields which are needed for
3236 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
3237 type field which is needed for the list layout but will also be
3238 useful for the details layout as things progress.
3239 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
3240 Make class abstract. Remove the unnecessary
3241 getFormattingHorizontalAlignment method. Add setFormatting method.
3243 2011-06-16 Ben Konrath <ben@bagu.org>
3245 Add scripts for building and installing war.
3247 These will help when updating OnlineGlom but they'