1 2012-04-19 Murray Cumming <murrayc@murrayc.com>
3 Reports: Show a message while waiting for the report.
5 * src/main/java/org/glom/web/client/ui/ReportView.java
6 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
7 Add setWaitingText(), to show a message saying that we are
8 waiting for the report to be ready.
9 * src/main/java/org/glom/web/client/activity/ReportActivity.java
10 start(): Call setWaitingText() before calling the async
13 2012-04-19 Murray Cumming <murrayc@murrayc.com>
15 ReportGenerator: Specify date and time formats.
17 * src/main/java/org/glom/web/server/ReportGenerator.java:
18 createFieldValueElement(): Use the default (and localized)
19 short formats, though we still need a way to show 4-digit
20 years without providing the format for every locale.
21 * src/main/java/org/glom/web/server/database/DBAccess.java:
22 convertResultSetToDTO(): Use the short formats here too.
24 2012-04-18 Murray Cumming <murrayc@murrayc.com>
26 ReportGenerator: Use the correct numeric formatting.
28 * src/main/java/org/glom/web/server/ReportGenerator.java
29 createFieldExpression(), createFieldValueElement(): Take the
30 whole LayoutItem_Field instead of just the field name, so
31 we have access to the formatting.
32 createFieldValueElement(): Use JRTextField.setPattern() to
33 specify the numeric formatting, with the help of a
34 regular DecimalFormat.
36 2012-04-18 Murray Cumming <murrayc@murrayc.com>
38 ReportGenerator: Avoid showing null for group by titles.
40 * src/main/java/org/glom/web/server/ReportGenerator.java
41 generateReport(): Use setBlankWhenNull() on the field title
42 style too, because this is used for values in group by
45 2012-04-18 Murray Cumming <murrayc@murrayc.com>
47 ReportGenerator: Add a colon to titles in vertical groups.
49 * src/main/java/org/glom/web/server/ReportGenerator.java
50 addFieldToDetailBandVertical(): Pass true for the withColon
53 2012-04-18 Murray Cumming <murrayc@murrayc.com>
55 ReportGenerator: Simplify the code by using Position more.
57 2012-04-18 Murray Cumming <murrayc@murrayc.com>
59 Reports: Support vertical groups, roughly.
61 * src/main/java/org/glom/web/server/ReportGenerator.java:
62 addToReport(): Rename to addGroupToReport() and, if necessary,
63 call the new addVerticalGroupToReport() method.
64 createFieldValueElement(): Let the caller specify the Y position
67 2012-04-17 Murray Cumming <murrayc@murrayc.com>
69 Reports: Allow a second report to be shown.
71 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
72 clear(): Do not remove the HTML widget, which broke the whole layout.
74 2012-04-17 Murray Cumming <murrayc@murrayc.com>
76 Locales drop-down: Show that we use English by default.
78 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
79 fillView(): When we use English, just because that is the default, when
80 no locale is specified, show that in the Locales drop-down instead of
81 just showing the first item.
83 2012-04-17 Murray Cumming <murrayc@murrayc.com>
85 Unselect the Report/Locale/Table combo item when appropriate.
87 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
88 setPlace(): clear reportName if this is not a ReportPlace.
89 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
90 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
91 When the provided name is empty, unselect all items, so that none are
92 indicated. This uses a for loop because I cannot find a single method
95 2012-04-17 Murray Cumming <murrayc@murrayc.com>
97 Report: Give the user a way to get back to the list.
99 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
100 start(), setPlace(): Show the Back To List link on reports, and also
101 interpret selecting the empty report item as back to list.
103 2012-04-17 Murray Cumming <murrayc@murrayc.com>
105 Style: Remove overflow:hidden from searchbox
107 * src/main/webapp/style.css: Because this pushes the Back To Link
108 label/link on to the next row, which is then hidden due to the
109 hard-coded (in ems) height.
111 2012-04-13 Murray Cumming <murrayc@murrayc.com>
113 Really show the selected Report name.
115 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
116 setPlace(): Store the reportName here, if it is that kind of Place.
117 fillView(): Set the selected Report after filling the list of reports.
118 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
119 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
120 null Strings, though we need some way to unselect all ListBox items
123 2012-04-13 Murray Cumming <murrayc@murrayc.com>
125 ReportGenerator: Try to avoid some problems.
127 * src/main/java/org/glom/web/server/ReportGenerator.java
128 addField(): Try to avoid duplicates, and avoid using a null
131 2012-04-13 Murray Cumming <murrayc@murrayc.com>
133 Reports: Use quickFind.
135 * src/main/java/org/glom/web/client/OnlineGlomService.java;
136 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
138 getReportHTML(): Add a quickFind parameter.
139 * src/main/java/org/glom/web/client/activity/ReportActivity.java
140 start(): Pass the quickFind parameter.
141 * src/main/java/org/glom/web/server/ReportGenerator.java
142 generateReport(): Take a quickFind parameter.
144 2012-04-13 Murray Cumming <murrayc@murrayc.com>
146 ReportPlace: Actually use the report name.
148 * src/main/java/org/glom/web/client/place/ReportPlace.java
149 getPlace(): Do not assign the report name to the quickfind.
151 2012-04-13 Murray Cumming <murrayc@murrayc.com>
153 Show java.library.path when complaining.
155 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
156 init(): When telling us to check java.library.path, show the
159 2012-04-12 Murray Cumming <murrayc@murrayc.com>
161 Adapt to the java-libglom 1.21.8 API.
163 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
164 java-libglom's FieldFormatting is now Formatting.
166 2012-04-12 Murray Cumming <murrayc@murrayc.com>
168 Use the latest java-libglom version.
170 * pom.xml: Use java-libglom 1.21.8.
172 2012-03-15 Murray Cumming <murrayc@murrayc.com>
174 Adapt to the java-libglom 1.21.7 API.
176 * src/main/java/org/glom/web/server/ReportGenerator.java:
177 addToReport(): get_group_secondary_fields() is now
178 get_secondary_fields().
180 2012-03-15 Murray Cumming <murrayc@murrayc.com>
182 Use the latest java-libglom version.
184 * pom.xml: Use java-libglom 1.21.7.
186 2012-03-06 Murray Cumming <murrayc@murrayc.com>
188 ReportGenerator: Do not show nulls.
190 2012-03-06 Murray Cumming <murrayc@murrayc.com>
192 ReportGenerator: Make the title font larger.
194 2012-03-06 Murray Cumming <murrayc@murrayc.com>
196 ReportGenerator: Put field titles inside groups, if there are groups.
198 2012-03-06 Murray Cumming <murrayc@murrayc.com>
200 ReportGenerator: Take the Report itself instead of the name and group.
202 * src/main/java/org/glom/web/server/ConfiguredDocument.java
203 Remove getReportLayoutGroup().
204 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
205 getReportHTML(): Pass the report instead
206 of its name and layout group.
207 * src/main/java/org/glom/web/server/ReportGenerator.java
208 generateReport(): Use the report object to use the title
211 2012-03-06 Murray Cumming <murrayc@murrayc.com>
213 ReportGenerator: Remove designBand parameters.
215 * src/main/java/org/glom/web/server/ReportGenerator.java:
216 Make designBand a class member instead of passing it to all
219 2012-03-06 Murray Cumming <murrayc@murrayc.com>
221 ReportGenerator: Add lines, a bit like in the desktop version.
223 * src/main/java/org/glom/web/server/ReportGenerator.java
224 addToReport(): Use JRDesignLine.
226 2012-03-06 Murray Cumming <murrayc@murrayc.com>
228 ReportGenerator: Correct the title positions and use some bold style.
230 * src/main/java/org/glom/web/server/ReportGenerator.java:
231 Break the code up into reusable functions, correct the placement of
232 titles, and use normal/bold styles as in the reports in the desktop
235 2012-03-06 Murray Cumming <murrayc@murrayc.com>
237 ReportGenerator: Add a header band to show the field titles.
239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
240 getReportHTML(): Pass the localeId to the ReportGenerator
242 * src/main/java/org/glom/web/server/ReportGenerator.java
243 constructor: Take the localeID so we can get translated field
245 generateReport(), addToReport(), addFieldToBand(): Add field
246 titles in a column header band.
248 2012-03-05 Murray Cumming <murrayc@murrayc.com>
250 Reports drop-down list: Some improvement.
252 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
253 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
254 Adedd setSelectedReport(),
255 setReportList(): Add a blank line so that the user can select the
257 * src/main/java/org/glom/web/client/activity/ReportActivity.java
258 start(): Show the current report by calling setSelectedReport().
259 This does not seem to work yet.
261 2012-03-05 Murray Cumming <murrayc@murrayc.com>
263 DetailsActivity, ListActivity: Move some variables into a base class.
265 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
266 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
267 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
268 the clientFactory, documentID, tableName and authenticationPopup into
269 a base class, to avoid duplication.
271 2012-03-05 Murray Cumming <murrayc@murrayc.com>
273 Translate the Reports label.
275 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
276 Get the "Reports" label string from the constants.
277 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
278 perties: Add Reports to the constants.
280 2012-03-03 Ben Konrath <ben@bagu.org>
282 Display date and time in details view.
284 https://bugzilla.gnome.org/show_bug.cgi?id=671257
286 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
288 2012-03-05 Murray Cumming <murrayc@murrayc.com>
290 Require the latest java-libglom.
292 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
294 2012-03-05 Murray Cumming <murrayc@murrayc.com>
296 Reports: Implement grouping.
298 * src/main/java/org/glom/web/server/ReportGenerator.java:
299 Handle LayoutItem_GroupBy items and try to do the right thing
300 with JRDesignGroup. It seems to work.
302 2012-03-04 Murray Cumming <murrayc@murrayc.com>
304 Actually show some data with JasperReports.
306 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
307 getReportHTML(): Move most code into a ReportGenerator class.
308 * src/main/java/org/glom/web/server/ReportGenerator.java:
309 Recurse into sub-groups, adding fields to the JasperDesign's details
310 band. Note that we must set an arbitrary width and height, or it just
311 will not show any data.
313 2012-03-04 Murray Cumming <murrayc@murrayc.com>
315 Reports Chooser: Show the titles, not the names.
317 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
318 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
319 and the names as the values.
320 * src/main/java/org/glom/web/server/ConfiguredDocument.java
321 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
322 group now that we provide the report name, so it should always
325 2012-03-04 Murray Cumming <murrayc@murrayc.com>
327 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
329 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
330 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
331 an empty quickfind string. I also corrected libglom to create only
332 empty where clauses for empty quickfind strings, but this avoids the
335 2012-02-24 Ben Konrath <ben@bagu.org>
337 Improve the tabs in the Notebook widget.
341 2012-02-15 Murray Cumming <murrayc@murrayc.com>
343 Depend on jasperreports.
345 * pom.xml: Add the dependency. My plan is to use this on the
348 2012-01-31 Murray Cumming <murrayc@murrayc.com>
350 Implement navigation to report places.
352 * src/main/java/org/glom/web/client/activity/ReportActivity.java
353 start(): Do not bother to handle all events here.
354 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
355 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
356 Added getSelectedReport().
357 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
358 .java: start(): When handling a change to the reports chooser,
359 call getSelectedReport() and goTo() its ReportPlace.
360 * src/main/java/org/glom/web/client/ui/ReportView.java
361 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
362 Added setReportHTML() which puts the html in a gwt HTML widget.
363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
364 getReportHTML(): Return "TODO" just to show that this works.
366 2012-01-31 Murray Cumming <murrayc@murrayc.com>
368 Make ReportPlace usable.
370 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
372 * src/main/java/org/glom/web/client/place/ReportPlace.java:
373 Correct the @prefix annotation.
375 2012-01-31 Murray Cumming <murrayc@murrayc.com>
377 OnlineGlomService: Return report HTML rather than the LayoutGroup.
379 * src/main/java/org/glom/web/client/OnlineGlomService.java:
380 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
381 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
382 Change getReportLayout() to getReportHMTL() because we will not need to
383 parse or render the report layout on the client side.
384 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
385 getReportLayout(): Return the libglom LayoutGroup type because we will
386 not need to convert to a shared type, because this will not be used on
388 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
391 Note that there is still no implementation for this.
393 2012-01-30 Murray Cumming <murrayc@murrayc.com>
395 Translations: Try to translate the strings.
397 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
398 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
399 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
400 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
401 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
402 Take the Open translation from GTK+'s .po files.
403 Take the Details translation from Glom's po files.
404 I have added the other strings to Glom so we can get translations that way:
405 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
407 2012-01-27 Murray Cumming <murrayc@murrayc.com>
409 Add a (empty) Report Place, View, and Activity.
411 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
413 * src/main/java/org/glom/web/client/place/HasTablePlace.java
414 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
415 this into a superclass:
416 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
417 and also use it as the base of this new ReportPlace:
418 * src/main/java/org/glom/web/client/place/ReportPlace.java
420 * src/main/java/org/glom/web/client/ui/ReportView.java
421 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
422 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
423 Add these, containing mostly boiler-plate for now.
425 * src/main/java/org/glom/web/client/OnlineGlomService.java
426 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
427 * src/main/java/org/glom/web/server/ConfiguredDocument.java
428 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
429 Add API to get the LayoutGroup for the report.
431 2012-01-27 Murray Cumming <murrayc@murrayc.com>
433 TableSelectionViewImpl: Put the search label and entry in a div.
435 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
436 Put the search widgets in a FlowTable so that the CSS can be used to
437 style them while keeping them together.
438 * src/main/webapp/style.css: Mention the new div.
440 2012-01-27 Murray Cumming <murrayc@murrayc.com>
442 Translate more strings in more locales.
444 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
445 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
446 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
447 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
448 Translate the "Details" and "Open" string too.
450 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
451 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
452 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
453 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
454 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
455 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
456 Add these new locales as placeholders though they currently contain English.
458 2012-01-27 Murray Cumming <murrayc@murrayc.com>
460 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
462 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
463 Check the ConfiguredDocument* for null before using it.
465 2012-01-26 Murray Cumming <murrayc@murrayc.com>
467 Tell Eclipse about the generated java files.
469 * .classpath: This lets it find OnlineGlomConstants.java.
470 It would be nice if Eclipse just used the maven build files.
472 2012-01-26 Murray Cumming <murrayc@murrayc.com>
474 Prevent a crash when no locale is specified in the URL.
476 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
477 Avoid returning a null string, obtained from
478 Window.Location.getParameter(). This caused a crash when it was
479 later passed to libglom's API.
480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
481 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
482 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
483 guard against future null strings.
485 2012-01-26 Murray Cumming <murrayc@murrayc.com>
487 Use the ?locale= query param instead of the &lang= token param.
489 * src/main/java/org/glom/web/client/place/ListPlace.java
490 * src/main/java/org/glom/web/client/place/DetailsPlace.java
491 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
492 Remove the lang token key and value.
494 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
495 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
496 When the user selects a different locale from the chooser, use
497 Window.Location.assign() to change the URL, which then causes a reload.
499 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
500 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
501 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
502 * src/main/java/org/glom/web/client/activity/ListActivity.java
503 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
504 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
505 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
506 * src/main/java/org/glom/web/client/ui/ListView.java:
507 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
509 Remove localeID member variables and method/constructor parameters, instead
510 using Utils.getCurrentLocaleID() when we need a localID to pass to
513 2012-01-26 Murray Cumming <murrayc@murrayc.com>
515 Internationalize the UI strings.
517 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
518 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
519 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
520 because it is unused. Messages are apparently strings that can have
521 parameters, but we do not need that yet, so Contants will be enough for now.
522 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
523 to say that we support the en and de locales.
524 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
525 The original English strings.
526 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
527 Some German translations of the English strings.
528 The i18n goal then uses the .properties file to generate an
529 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
530 returns an implementation that returns the translated strings.
531 The documentation suggests putting these in src/java/*/client/, but it seems
532 best to put it in src/resources/*/client/.
533 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
534 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
535 instead of hard-coding them.
536 Note that we cannot import OnlineGlomConstants because it does not exist yet,
537 but that does not seem to stop the build, though it confuses Eclipse.
539 You can see the translated string by adding ?locale=de to the URL, like so:
540 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
542 2012-01-24 Murray Cumming <murrayc@murrayc.com>
544 Improve null/empty String checks.
546 * pom.xml: Add a dependency on commons-lang, to use
547 org.apache.commons.lang.StringUtils.
548 * src/main/java/org/glom/web/server/ConfiguredDocument.java
549 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
550 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
551 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
552 Use StringUtils.isEmpty().
554 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
555 StringUtils class with a static isEmpty() function because we
556 cannot use org.apache.commons.lang.StringUtils in client-side
557 GWT code because it (apparently) cannot be compiled to javascript.
558 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
559 * src/main/java/org/glom/web/client/activity/ListActivity.java
560 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
561 * src/main/java/org/glom/web/client/place/DetailsPlace.java
562 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
563 * src/main/java/org/glom/web/client/place/ListPlace.java
564 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
565 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
566 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
567 * src/main/java/org/glom/web/client/ui/details/Group.java
568 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
569 our StringUtils.isEmpty() function.
571 2012-01-24 Murray Cumming <murrayc@murrayc.com>
573 Update to the latest java-libglom API.
575 * pom.xml: Require java-libglom 1.21.4.
576 * src/main/java/org/glom/web/server/ConfiguredDocument.java
577 getDocumentInfo(), getListViewLayoutGroup():
578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
580 * src/main/java/org/glom/web/server/database/DBAccess.java
581 getFieldsToShowForSQLQueryAddGroup(),
582 getPrimaryKeyLayoutItemField(): Replace get_database_title()
583 with either get_database_title_original() or
584 get_database_title(localeID).
586 2012-01-24 Murray Cumming <murrayc@murrayc.com>
588 ConfiguredDocument: Avoid a null pointer exception.
590 * src/main/java/org/glom/web/server/ConfiguredDocument.java
591 Initialize localeID to "" to avoid returning a null String which
592 causes a crash in java-libglom's swing-generated code.
594 2012-01-23 Murray Cumming <murrayc@murrayc.com>
596 Some simple renaming.
598 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
599 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
600 for localeChooser. This seems more appropriate and is less ambiguous
601 particularly in the .css file.
603 2012-01-23 Murray Cumming <murrayc@murrayc.com>
605 ConfiguredDocument: Rename the localedID private member variable.
607 2012-01-23 Murray Cumming <murrayc@murrayc.com>
609 Adapt to the latest java-libglom API from git master.
611 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
612 libglom now uses only Vector instead of List, which uses add() instead of
615 2012-01-23 Murray Cumming <murrayc@murrayc.com>
617 Add and fill a Reports drop-down list box.
619 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
621 * src/main/java/org/glom/web/client/OnlineGlomService.java:
622 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
623 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
624 Added getReports(document, table, localeID), calling
625 ConfiguredDocument.getReports().
626 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
627 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
628 Added setReportsList() and a list widget.
629 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
630 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
632 2012-01-22 Murray Cumming <murrayc@murrayc.com>
634 ConfiguredDocument: Rename the localedID private member variable.
636 2012-01-20 Murray Cumming <murrayc@murrayc.com>
638 Build a source tarball with mvn assembly:single
640 * assembly.xml: Add this file.
641 * pom.xml: Use the maven-assembly-plugin and tell it to use
642 our assembly.xml file.
644 2012-01-19 Murray Cumming <murrayc@murrayc.com>
646 OnlineGlomServiceImpl: Get .glom files recursively.
648 * pom.xml: Depend on commons-io from org.apache.commons.
649 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
650 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
651 files recursively, and with the easier filter for the extension.
652 Use org.apache.commons.io.FilenameUtils.removeExtension() to
653 simplify that code too.
655 2012-01-19 Murray Cumming <murrayc@murrayc.com>
657 README: Mention that you must install java-libglom packages separately.
659 But then it works, because java-libglom is now in the central maven
662 2012-01-18 Murray Cumming <murrayc@murrayc.com>
664 locales drop-down: Show the correct selected locale when the URL changes.
666 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
667 .java: setPlace(): Move some code into fillView().
669 2012-01-18 Murray Cumming <murrayc@murrayc.com>
671 locales drop-down: Do not lose the primary key.
673 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
674 start(): onLocaleChange(): Pass the current primary key value,
675 instead of an empty value.
677 2012-01-18 Murray Cumming <murrayc@murrayc.com>
679 locales drop-down: Do not lose the drop-down selection.
681 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
682 .java (TableSelectionActivity.fillView): Set the selected locale
683 after changing the drop-down items (though we do not really need
684 to change them just because the locale changes.)
686 2012-01-18 Murray Cumming <murrayc@murrayc.com>
688 locales drop-down: Change the tables list when this changes.
690 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
691 .java: TableSelectionActivity.start(): Move the async table titles
692 retrieval into a private fillView() method and also call this when
693 the chosen locale changes.
694 Note that the document title is not actually translatable yet, but
695 that is a problem that I should fix soon in libglom.
697 2012-01-18 Murray Cumming <murrayc@murrayc.com>
699 Improve the placement of the locales drop-down.
701 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
702 Put the title and locales drop-down in a div (gwt.FlowTable).
703 * src/main/webapp/style.css: Add magic css properties to make this work.
704 Also remove the left margin from the title so that it lines up with the
707 2012-01-18 Murray Cumming <murrayc@murrayc.com>
709 locales selector: Show human-readable locale titles.
711 * src/main/java/org/glom/web/server/ConfiguredDocument.java
712 getDocumentInfo(): Use java.util.Locale to show a real title of
713 each locale, in the locale's own language.
715 2012-01-17 Murray Cumming <murrayc@murrayc.com>
717 Add a language/locale selector drop-down.
719 * src/main/java/org/glom/web/shared/DocumentInfo.java:
720 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
721 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
722 getDocumentInfo(): Store the available Locales in the DocumentInfo.
723 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
724 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
725 Add a ListBox to show the available locales. Add getLocaleSelector(),
726 setLocaleList(), getSelectedLocale(), setSelectedLocale().
727 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
728 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
729 java: Add these classes.
730 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
731 start(): Fill the locales ListBox. Handle its change event, firing a
733 setPlace(): Show the selected locale as specified by the URL token.
734 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
735 * src/main/java/org/glom/web/client/activity/ListActivity.java:
736 Handle LocaleChangeEvent, going to a new *Place with that locale.
738 The placement of the ListBox is not pretty, and it currently uses the ID
739 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
743 2012-01-17 Murray Cumming <murrayc@murrayc.com>
745 Search box: Show the search text from the URL token.
747 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
748 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
749 Add setQuickFindText().
750 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
751 .java: setPlace(): Store the queryText if the place is a ListPlace,
752 and call TableSelectionView.setQuickFindText().
754 2012-01-17 Murray Cumming <murrayc@murrayc.com>
756 Allow use of translations via, for instance, &lang=de in the URL.
758 * pom.xml: Use the unstable java-libglom 1.21 version.
760 * src/main/java/org/glom/web/client/OnlineGlomService.java:
761 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
762 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
763 init(): Instead of calling TranslatableItem.set_current_locale()
764 (now removed), call ConfiguredDocument.setDefaultLocaleID().
765 However, this is only for default locales, which are not needed to
766 change the locale in the URL.
767 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
768 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
769 getSortedRelatedListData(): Add a localeID parameter, so we can get the
770 layout for a particular locale.
771 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
772 Add get/setDefaultLocaleID().
773 getDocumentInfo(), getListViewData(), getRelatedListData(),
774 getDetailsLayoutGroup(), getListViewLayoutGroup(),
775 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
776 localeID parameter, so we can get the layout for a particular locale.
778 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
779 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
780 * src/main/java/org/glom/web/client/place/ListPlace.java:
781 Parse and construct a lang parameter too.
783 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
784 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
785 passed to subsequent methods and constructors.
786 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
787 * src/main/java/org/glom/web/client/activity/ListActivity.java:
788 Store the localeID from the *Place and pass it to other constructors
789 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
791 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
792 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
793 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
794 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
795 * src/main/java/org/glom/web/client/ui/ListView.java:
796 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
797 Take localeID parameters and pass them to subsequent constructors and
798 methods, so that the layout is always retrieved for that locale.
800 This is rather repetitive.
802 Note that "" means the original (default) locale of the Glom document,
803 which is usually English.
805 2012-01-17 Murray Cumming <murrayc@murrayc.com>
807 Documents: Remove final keyword to fix startup configuration.
809 * src/main/java/org/glom/web/shared/Documents.java: Remove the
810 final keywords on the private member variables because that breaks
811 the startup, apparently (there are warnings) because it stops them
812 from being serialized. I added these in the previous commit.
814 2012-01-13 Murray Cumming <murrayc@murrayc.com>
816 Documents: Add some final keywords.
818 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
821 2012-01-13 Murray Cumming <murrayc@murrayc.com>
823 OnlineGlomServiceImpl: Add to overview comments.
825 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
826 Note that this is where all the document are loaded. They are not
827 loaded freshly for each page.
829 2012-01-12 Murray Cumming <murrayc@murrayc.com>
833 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
834 Add a TextBox for the text of a quick find.
835 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
837 setBackLink(): Add a String quickFind parameter.
838 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
839 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
840 to the base interface, because that is how TableSelectionViewImpl is used.
841 * src/main/webapp/style.css: Add style for the search box and its label.
843 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
844 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
845 Add these files, based on the existing TableChangeEvent and
846 TableChangeEventHandlers.
847 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
848 start(): Handle QuickFindChangeEvent, passing its quickFind text to
849 a ListPlace() that the user should be taken to.
850 * src/main/java/org/glom/web/client/activity/ListActivity.java
851 start(): Handle it here too and adapt the TableChangeEvent handler to
852 pass the extra "" quickFind parameter to ListPlace.
853 * src/main/java/org/glom/web/client/place/ListPlace.java:
854 Constructor: Take an extra String quickFind parameter and store it,
855 returning it from a new getQuickFind() method.
856 getToken(): Put the quickFind text in the URL token.
857 getPlace(): Parse the quickFind text from the URL token.
858 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
859 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
860 ListPlace constructor.
861 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
862 .java: start(): Add a Change handler for the TableSelectionView's
863 TextBox (via its base HasChangeHandlers interface), firing the new
864 QuickFindChangeEvent.
865 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
866 pass the extra "" quickFind parameter.
868 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
869 setCellTable(): Add a String quickFind parameter and pass it to
870 the ListViewTable() constructor.
871 * src/main/java/org/glom/web/client/ui/ListView.java: Change
872 setCellTable() in the base interface, because that is how ListViewImpl
875 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
876 Add a String quickFind member variable.
877 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
878 Constructor: Add a String quickFind parameter, storing it in the
879 base ListTable's member variable.
880 onRangeChanged(): Pass quickFind to the
881 OnlineGlomServiceAsync.getSortedListViewData() and
882 OnlineGlomServiceAsync.getListViewData() methods.
884 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
885 getListViewData(), getSortedListViewData(): Add a String quickFind
886 parameter, passing it to ConfiguredDocument.getListViewData().
887 * src/main/java/org/glom/web/client/OnlineGlomService.java:
888 Change getListViewData(), getSortedListViewData() in the base interface,
889 because that is how OnlineGlomServiceImpl is used, via this:
890 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
891 Change getListViewData(), getSortedListViewData() here too.
892 This class can apparently be used to asynchronously call methods on
893 OnlineGlomService, and GWT seems to implement that after recognizing
894 just the *Async name convention and the extra AsyncCallback parameters.
896 * src/main/java/org/glom/web/server/ConfiguredDocument.java
897 getListViewData(): Add a String quickFind parameter, and pass it to
898 ListViewDBAccess.getData().
899 * src/main/java/org/glom/web/server/database/ListDBAccess.java
900 getListData(): Add a String quickFind parameter and pass it to
902 getSelectQuery(): Add a String quickFind parameter.
903 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
904 getSelectQuery(): Add a String quickFind parameter and use it with
905 Glom.get_find_where_clause_quick() to pass a where_clause to
906 Glom.build_sql_select_with_where_clause(), to actually filter the
908 getData(): Add a String quickFind parameter, passing it to getListData().
909 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
910 va: getData(): Pass an empty string to getListData() for the
913 2012-01-12 Murray Cumming <murrayc@murrayc.com>
915 ListTable: Minor change.
917 * src/main/java/org/glom/web/client/ui/list/ListTable.java
918 createCellTable(): Make this protected instead of public.
920 2012-01-12 Murray Cumming <murrayc@murrayc.com>
922 Many files: Use final for the parameters and use the @override attribute.
924 2012-01-22 Ben Konrath <ben@bagu.org>
926 Add anchor links for single line text that starts with http, ftp and www.
930 2012-01-22 Ben Konrath <ben@bagu.org>
932 Add ellipsis to single line text in details view.
936 2012-01-04 Murray Cumming <murrayc@murrayc.com>
938 Remove all javadoc author tags.
940 Because they are awkward and meaningless when many people touch
942 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
944 2012-01-04 Murray Cumming <murrayc@murrayc.com>
946 Revert the COPYING.LESSER to COPYING rename.
948 Apparently both should be there if it is LGPL.
950 2012-01-03 Murray Cumming <murrayc@murrayc.com>
952 *View: Remove unused imports.
954 * src/main/java/org/glom/web/client/ui/DetailsView.java:
955 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
956 * src/main/java/org/glom/web/client/ui/ListView.java:
957 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
958 Remove unused imports, as suggested by Eclipse.
960 2012-01-02 Murray Cumming <murrayc@murrayc.com>
962 Move the *View::Presenter types, and some API into one base View.
964 * src/main/java/org/glom/web/client/ui/DetailsView.java:
965 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
966 * src/main/java/org/glom/web/client/ui/ListView.java:
967 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
968 Presenter, setPresenter() and clear() into a shared base interface,
969 to avoid the unnecessary duplicate Presenter types and to more clearly
970 show how the *Views share the same structure, even if they are not
971 used polymorphically.
973 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
974 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
976 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
977 * src/main/java/org/glom/web/client/activity/ListActivity.java:
978 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
980 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
983 Feel free to revert this if there is a good reason for the duplicate
986 2012-01-02 Murray Cumming <murrayc@murrayc.com>
988 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
990 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
991 a class member instead of a local variable in the method.
992 This lets us use it to get the view instances, for use in tests.
993 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
994 beforeOnlineGlom(): Test some more details of the initial view.
995 Again, this is not very useful.
997 To really test gwt-glom we will need to start a local postgresql
998 instance with local data, like the Glom tests in C++.
1000 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1002 pom.xml: Mention the LGPL license.
1004 * pom.xml: Add a licenses section.
1005 * COPYING.LESSER: Move this to COPYING, which
1006 previously contained the GPL. But gwt-glom is all LGPL.
1008 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1010 Add project information to README and pom.xml.
1012 * README: Add a brief description and mention some mvn
1014 * pom.xml: This extra information shows up in mvn site
1017 2011-01-02 Murray Cumming <murrayc@murrayc.com>
1019 Use the latest java-libglom version.
1021 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
1023 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1025 GwtTestOnlineGlom: Test a little more.
1027 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
1028 protected rather than private, as suggested by the gwt-test-utils
1030 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
1031 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
1032 Test the initial visibility of the panels.
1034 However, this is not a very useful test.
1035 And I wonder how we should generally test using this idea for an
1036 activity/places app like ours where the real changes happen implicitly
1037 based on the history token/URL.
1039 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1041 Slight modification to *Mapper comments.
1043 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
1044 (DataActivityMapper)
1045 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
1047 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
1049 Remove comments mentioning GIN because they are just copied from
1050 the example code and are apparently not helpful:
1051 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
1052 Also change the mention of a class that is only in the example code.
1054 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1056 GwtTestOnlineGlom test: Minor changes.
1058 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1059 Avoid the long qualified class name and modify the comment
1060 because it is now obvious to me that the mocked class is the only
1061 custom one created via GWT.create().
1063 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1065 Tests: Added the beginnings of a test using gwt-test-utils.
1067 * pom.xml: Add dependencies on gwt-test-utils and easymock.
1068 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
1069 which tells gwt-test-utils what class will be tested.
1070 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1071 Add a simple (but empty) test case. One class, used by the OnlineGlom
1072 class, is mocked so that it can be created. However, I am not sure
1073 why only this class needs to be mocked.
1075 Note that mockito seems more popular, and clearer, than easymock,
1076 but I have not got that working yet. It might be a matter of the
1079 This test is run during mvn integration-test.
1081 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1083 Tests: Use junit4-style syntax instead of junit3-style.
1085 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1086 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1087 * src/test/java/org/glom/web/shared/DataItemTest.java:
1088 Use the @Test annotation rather than relying on the test*() prefix.
1089 Also no longer implement TestCase, to avoid triggering support for
1090 the junit3-way, which stops the annotations from working.
1091 Change the imports from import junit.framework.* to
1092 import org.junit.*, which is apparently the new way.
1094 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1096 Added a test for ListPlace token parsing and creation.
1098 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1099 This is much the same as DetailsPlaceTest.
1101 I wonder how we could test the other parts of the *Place API.
1103 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1105 DetailsPlace test: Also test getToken() and recreation via getPlace().
1107 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1108 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
1109 recreate it, testing the recreated DetailsPlace for the same parameter
1112 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1114 Use the surefire-report plugin.
1116 * pom.xml: This generates a HTML report about the tests in
1117 target/site/surefire-report.html
1118 when you do mvn surefire-report:report. It seems to be popular/normal.
1120 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1122 Added a test for DetailsPlace.
1124 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1125 Test the getPlace() token parsing.
1127 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1129 Added a first unit test.
1131 * pom.xml: Add a test goal, and a dependency on junit in that scope.
1132 * src/test/java/org/glom/web/shared/DataItemTest.java:
1133 This is a silly test but it is just to get things started. Note that
1134 maven/junit finds the test because it looks in src/test by default.
1136 2011-12-22 Ben Konrath <ben@bagu.org>
1138 Change charsetName to "UTF-8" when replacing line breaks.
1140 JavaScript requires the charsetName to be "UTF-8". CharsetName values
1141 that work in Java (such as "UTF8") will not work when compiled to
1144 This fixes a problem with multi-line details view fields that have hard
1145 line breaks. The "License Text" field on this page demonstrates the
1148 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
1150 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1152 2011-12-22 Ben Konrath <ben@bagu.org>
1154 Fix another bug with related list navigation.
1156 I've tested all the navigation buttons in all of the related lists
1157 so things should be good now.
1159 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1161 2011-12-22 Ben Konrath <ben@bagu.org>
1163 Fix a crasher when refreshing the list view with the default table.
1165 This crash will also happen when loading the list view with the default
1166 table from a link or bookmark.
1168 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
1169 to the main document selection page when the document id hasn't been
1171 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
1172 the main document selection page when the document id hasn't been
1174 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
1175 values for the details place when the document id hasn't been set.
1176 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
1177 values for the list place when the document id hasn't been set.
1179 2011-12-21 Ben Konrath <ben@bagu.org>
1181 Protect against NPE when glom.document.locale is not in config.
1183 This patch protects against an NPE when glom.document.locale is not in
1184 the config file. This NPE will also happen if glom.document.locale is
1187 The patch also updates the error message to display the class name when
1188 the getMessage() returns null. This was happening when the NPE was
1189 thrown and I had "Configuration Error: null". If an NPE is encountered
1190 with this patch, "Configuration Error: NullPointerException " will be
1193 This commit closes this bug:
1195 https://bugzilla.gnome.org/show_bug.cgi?id=666669
1197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1199 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1201 Rename onlineglom.properties to onlineglom.properties.sample.
1203 * src/main/resources/onlineglom.properties: Rename to:
1204 * src/main/resources/onlineglom.properties.sample:
1205 * src/main/resources/README: And add this file explaining that people
1206 should rename it back when deploying.
1208 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1210 Allow choosing the translation in the .properties file.
1212 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1213 init(): Read a glom.document.locale value from the configuration file
1214 and call Glom's TransatableItem::set_current_locale() method.
1215 * src/main/resources/onlineglom.properties: Add a commented-out
1216 example of this new setting.
1218 It would be better to add &lang=de_DE to the URL, but the current
1219 libglom API does not allow us to do this easily. I am working on that.
1221 2011-12-19 Murray Cumming <murrayc@murrayc.com>
1223 Avoid a crash in parsing of token parameters.
1225 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
1226 ava: getTokenParams(): Do not crash if a parameter has a key but no
1227 value, and ignore parameters with neither.
1229 2011-12-17 Murray Cumming <murrayc@murayc.com>
1231 History token building/handling: Improve use of token parameters.
1233 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1234 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
1235 and buildParamsToken(HashMap), for use by derived classes.
1236 Make the separator private because it is no longer be needed.
1237 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1238 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
1239 instead of manual string concatenation.
1240 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
1241 of hardcoded indices and awkward splitting code.
1242 * src/main/java/org/glom/web/client/place/ListPlace.java
1243 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
1244 instead of manual string concatenation.
1245 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
1246 of hardcoded indices and awkward splitting code.
1247 This should fix bug #666420
1249 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1251 Fix a Navgiation->Navigation typo in the code.
1253 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1254 Rename processNavgiation() to processNavigation().
1256 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1258 Fix a seperator->separator typo in the code.
1260 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1261 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1262 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
1265 2011-12-15 Ben Konrath <ben@bagu.org>
1267 Cleanup some comments.
1269 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1271 2011-12-14 Ben Konrath <ben@bagu.org>
1273 Replace \n with <br/> for multiline text in the details view.
1275 Vertical scrollbars are added when needed as well.
1277 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1279 2011-12-14 Ben Konrath <ben@bagu.org>
1281 Specify the font for document selection links.
1283 * src/main/webapp/style.css:
1285 2011-12-14 Ben Konrath <ben@bagu.org>
1287 Fix bouncy CellTable while paging.
1289 This doesn't currently work with related list tables in unselected
1292 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1294 2011-12-14 Ben Konrath <ben@bagu.org>
1296 Revamp the appearance of the document selection page.
1298 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1299 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1300 * src/main/webapp/style.css:
1302 2011-12-13 Ben Konrath <ben@bagu.org>
1304 Set navigation button column to the smallest size possible.
1306 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1308 2011-12-13 Ben Konrath <ben@bagu.org>
1310 Change OpenButton nomenclature to NavigationButton.
1312 Using NavigtionButton makes things more generic. Classes, methods and
1313 variables have been changed.
1315 This is a rename-only refactor.
1317 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1318 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1319 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
1320 Renamed from OpenButtonCell.
1321 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1322 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1323 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1325 2011-12-12 Ben Konrath <ben@bagu.org>
1327 Remove unnecessary String argument in RelatedListTable and ListViewTable.
1329 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1330 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1331 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1332 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1334 2011-12-12 Ben Konrath <ben@bagu.org>
1336 Update variable names and comments.
1338 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1339 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1341 2011-12-12 Ben Konrath <ben@bagu.org>
1343 Properly initialize numNonEmptyRows variable to zero.
1345 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1346 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1348 2011-12-05 Ben Konrath <ben@bagu.org>
1350 Add latest mockup with HTML tables.
1352 Features of this mockup:
1354 -> HTML table for flowtable
1355 -> HTML table for flowtable column
1356 -> Example of how related lists would look
1357 -> Not using text entries for data items
1359 The current version of Online Glom doesn't use HTML tables for the
1362 This mockup has been sent to the glom-devel mailing list but it's good
1363 to have it here as well.
1365 * mockups/details-view-html-tables.html:
1367 2011-12-05 Ben Konrath <ben@bagu.org>
1369 Remove unnecessary getPrimaryKeyField() method.
1371 getPrimaryKeyFieldForTable(String) has been renamed to
1372 getPrimaryKeyField(String).
1374 * src/main/java/org/glom/web/server/database/DBAccess.java:
1375 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1376 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1378 2011-12-05 Ben Konrath <ben@bagu.org>
1380 Add string representation of TypedDataItem value to conversion error message.
1382 * src/main/java/org/glom/web/server/Utils.java: Logging the error
1383 message was extracted into its own method to avoid duplication.
1385 2011-12-05 Ben Konrath <ben@bagu.org>
1387 Add type checking to navigation primary key value creation.
1389 Create navigation primary key only if the expected type from the Glom
1390 document matches the type returned by the SQL query.
1392 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1394 2011-12-05 Ben Konrath <ben@bagu.org>
1396 Rename a couple of variables in RelatedListNavigation.
1398 This is a rename-only refactor.
1400 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1402 2011-12-05 Ben Konrath <ben@bagu.org>
1404 Move getListLayoutGroup() into getListViewLayoutGroup().
1406 This removes getListLayoutGroup(). It was only being called by
1407 getListViewLayoutGroup().
1409 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1411 2011-12-05 Ben Konrath <ben@bagu.org>
1413 Remove check for LayoutItem_Portal in list table method.
1415 This check is no longer necessary because the method isn't being used
1416 to create the LayoutItemPortal DTO.
1418 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1420 2011-12-05 Ben Konrath <ben@bagu.org>
1422 Properly support related list navigation.
1424 Navigation from the "Repository Analyzer -> Package Scans ->
1425 Dependencies" related table wasn't working because the primary key for
1426 related tables wasn't being set properly. This commit fixes the
1429 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
1430 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
1431 doesn't set the primary key properly for related list tables.
1432 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
1433 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
1434 useful for getting the primary key for list view tables and for related
1436 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1437 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1438 Move code to set the primary key for the table from the abstract
1439 ListDBAccess class to ListViewDBAccess as it's only correct for list
1441 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1442 Properly add primary key to related list tables.
1444 2011-12-02 Ben Konrath <ben@bagu.org>
1446 Properly set the horizontal alignment of fields.
1448 This fix is for both the list tables and the details view.
1450 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1451 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
1452 to set the horizontal alignment of fields.
1454 2011-12-02 Ben Konrath <ben@bagu.org>
1456 Display currency codes in the details view.
1458 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1460 2011-12-02 Ben Konrath <ben@bagu.org>
1462 Avoid duplicate JNI call.
1464 JNI is not as efficient as pure Java and this is an easy (and small)
1467 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1468 Use previously retrieved value for whereClauseToTableName instead of
1471 2011-12-02 Ben Konrath <ben@bagu.org>
1473 Rename a couple of variables in RelatedListNavigation.
1475 This is a rename-only refactor.
1477 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1479 2011-12-02 Ben Konrath <ben@bagu.org>
1481 Indicate clearly that a mismatched primary key type is a bug.
1483 * src/main/java/org/glom/web/server/Utils.java: Change log level from
1484 warning to error. Add 'This is a bug.' to message.
1486 2011-12-02 Ben Konrath <ben@bagu.org>
1488 Update / fix some comments.
1490 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
1492 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
1494 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1495 Fix comments. Add some TODOs.
1497 2011-12-02 Ben Konrath <ben@bagu.org>
1499 Enable navigation to details view with string primary key from related list.
1501 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1502 Create a text primary key value when return type of result is
1503 java.sql.Types.VARCHAR.
1505 2011-12-02 Ben Konrath <ben@bagu.org>
1507 Use checkboxes for booleans in the details view.
1509 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1511 2011-12-01 Ben Konrath <ben@bagu.org>
1513 Improve performance of related list height calculation.
1515 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1516 Put code to calculate the expected height in a static initializer so
1517 that that it's only called once.
1519 2011-12-01 Ben Konrath <ben@bagu.org>
1521 Show related list tables in notebooks (again).
1523 Calculate the height of the related list tables so the Notebook can be
1524 set the correct height. The height of the related list table is also needed by
1525 FlowTable to be able decide how to create the layout.
1527 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
1528 and set the Portal height based on the height of the related list
1529 table and the Portal container.
1530 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1531 Add method to calculate the height of the related list tables.
1532 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1533 * src/main/webapp/style.css: Add css class for Pager. This is needed to
1534 calculate the height of the Pager widget.
1536 2011-12-01 Ben Konrath <ben@bagu.org>
1538 Use CellTable API for table property instead of setting style on Element.
1540 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1542 2011-12-01 Ben Konrath <ben@bagu.org>
1544 Make ListViewTable and RelatedListTable a consistent height.
1546 The tables are now a consistent height regardless of the contents of
1547 the table. A hidden button is added to empty rows to ensure that the
1548 height of these rows will match the height of rows with data.
1550 A navigation button column is now added to every table. The width of
1551 the navigation column is set to 0px when a RelatedListTable shouldn't
1552 have navigation buttons. This maintains the a consistent row height in
1553 tables that don't show the navigation buttons.
1555 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
1556 navigation column when not needed.
1557 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
1558 arguments for navigation button to constructor of ListViewTable.
1559 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
1560 hidden button for empty data rows.
1561 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
1562 arguments for navigation button to constructor.
1563 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
1564 create navigation buttons. Add hideNavigationButtons() method.
1565 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
1566 arguments for navigation button to constructor.
1568 2011-12-01 Ben Konrath <ben@bagu.org>
1570 Use 'visibility: hidden' in Utils.getWidgetHeight().
1572 This is better choice because hidden elements are invisible, don't
1573 respond to events and are not part of the tab order. They will,
1574 however, take up space which is required to be able to calculate the
1575 height of the widget.
1577 * src/main/java/org/glom/web/client/Utils.java:
1579 2011-12-01 Ben Konrath <ben@bagu.org>
1581 Use Utils.getWidgetHeight() in FlowTable.
1583 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
1585 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1587 2011-12-01 Ben Konrath <ben@bagu.org>
1589 Put the details css class name on the correct table column.
1591 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1593 2011-11-30 Ben Konrath <ben@bagu.org>
1595 Update for java-libglom API change.
1597 The getters and setters on FieldFormatting and NumericFormat were
1598 changed to remove the 'M'.
1600 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1602 2011-11-29 Ben Konrath <ben@bagu.org>
1604 Only allow RelatedListTables in Portals.
1606 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1608 2011-11-29 Ben Konrath <ben@bagu.org>
1610 Only create a contents panel for Portals when title is being set.
1612 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1614 2011-11-29 Ben Konrath <ben@bagu.org>
1616 Set TabLayoutPanel height based on calculated height its widgets.
1618 This is a potential fix for this bug:
1620 https://bugzilla.gnome.org/show_bug.cgi?id=665133
1622 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1624 2011-11-29 Ben Konrath <ben@bagu.org>
1626 Align details field labels and data with the Open buttons.
1628 * src/main/webapp/style.css:
1630 2011-11-29 Ben Konrath <ben@bagu.org>
1632 Remove unnecessary <div> in the Notebook widget.
1634 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
1635 method to get container FlowPanel (<div>).
1636 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
1637 initWidget() method directly on the TabLayoutPanel widget instead of
1638 Group's container widget.
1640 2011-11-29 Ben Konrath <ben@bagu.org>
1642 Don't add group titles for Portals in Notebooks.
1644 This reverts the previous patch and fixes a bug I introduced with
1645 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
1647 * src/main/java/org/glom/web/client/ui/details/Group.java:
1648 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1650 2011-11-28 Ben Konrath <ben@bagu.org>
1652 Remove unused boolean argument in Portal constructor.
1654 Just a code cleanup.
1656 * src/main/java/org/glom/web/client/ui/details/Group.java:
1657 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1659 2011-11-28 Ben Konrath <ben@bagu.org>
1661 Remove hack for glom 1.18 style glom files.
1663 * src/main/java/org/glom/web/client/ui/details/Group.java:
1664 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1665 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1667 2011-11-28 Ben Konrath <ben@bagu.org>
1669 Use Gda Value version of primary key to log result too large error.
1671 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1673 2011-11-28 Ben Konrath <ben@bagu.org>
1675 Don't use TypedDataItem.getText() for Unknown types from the URL.
1677 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1678 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
1679 instead of getText().
1680 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
1681 String field and getUnknown() method.
1683 2011-11-28 Ben Konrath <ben@bagu.org>
1685 Log an error message when the java-libglom .so is not present.
1687 The error message was being set in the exception but not logged.
1689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1691 2011-11-28 Ben Konrath <ben@bagu.org>
1693 Ignore LayoutItem_CalendarPortals.
1695 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
1696 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
1698 2011-11-28 Ben Konrath <ben@bagu.org>
1700 Extract method for creating the LayoutItemPortal DTO.
1702 Just breaking the code up into smaller chunks.
1704 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1706 2011-11-28 Ben Konrath <ben@bagu.org>
1710 This should have been added with the refactor. Oops!
1712 * src/main/java/org/glom/web/shared/TypedDataItem.java:
1714 2011-11-28 Ben Konrath <ben@bagu.org>
1716 Create primary key value from URL string using type from Glom document.
1718 See this bug, comments 19 - 25:
1720 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
1722 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
1723 create a TypeDataItem for the primary key here when loading from a
1724 URL. Show the same string for the primary key value as was received
1725 from the URL string (when loading from a URL).
1726 * src/main/java/org/glom/web/server/Utils.java: Update method for
1727 creating the Gda Value from the TypeDataItem to properly deal with
1728 creating a Gda Value based on the Glom document type for the primary
1729 key value string when loading from a URL.
1730 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1731 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1732 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1733 Update for changed method name.
1735 2011-11-27 Ben Konrath <ben@bagu.org>
1737 Rename PrimaryKeyItem to TypedDataItem.
1739 The name PrimaryKeyItem suggests what the class should be used for.
1740 TypedDataItem is a neutral name that describes the class better.
1742 This is a rename-only refactor.
1744 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1745 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1746 * src/main/java/org/glom/web/client/Utils.java:
1747 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1748 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1749 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1750 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1751 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1752 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1754 * src/main/java/org/glom/web/server/Utils.java:
1755 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1756 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1757 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1758 * src/main/java/org/glom/web/shared/NavigationRecord.java:
1760 2011-11-25 Ben Konrath <ben@bagu.org>
1762 Improve Gda Value conversion from PrimaryKeyItem.
1764 The value from the PrimaryKeyItem is only used if its type match the
1765 type from the glom document.
1767 * src/main/java/org/glom/web/server/Utils.java:
1769 2011-11-25 Ben Konrath <ben@bagu.org>
1771 Manually check if the java-liblgom .so is visible to the JVM.
1773 It seems that Tomcat has problems when a static initializer throws an
1774 exception. This check is done before the first method call into
1775 java-libglom so that execution doesn't continue if the .so is not
1778 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1780 2011-11-25 Ben Konrath <ben@bagu.org>
1782 Improve browser configuration error messages.
1786 https://bugzilla.gnome.org/show_bug.cgi?id=662792
1788 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1789 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1790 getConfigurationErrorMessage() method.
1791 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1792 Get and display a specific configuration error message when no Glom
1793 documents are found.
1794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1795 Implement getConfigurationErrorMessage() method. Surround configuration
1796 code in the init() method with a try/catch block. This allows the
1797 errors to be caught while keeping the servlet available to retrieve the
1798 configuration error message.
1800 2011-11-25 Ben Konrath <ben@bagu.org>
1802 Don't use Strings to hold primary key values.
1804 The primary key values are now held in a new data object
1805 (PrimaryKeyItem) that holds type information and the primary key value
1806 using the correct type.
1808 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1809 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1810 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1811 PrimaryKeyItem instead of String to hold the primary key value.
1812 * src/main/java/org/glom/web/client/Utils.java: Remove
1813 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
1814 PrimaryKeyItem based on the GlomFieldType and the DataItem.
1815 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
1816 PrimaryKeyItem instead of String to hold the primary key value. Load
1817 document selection page when the documentID has not been set correctly.
1818 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
1819 DetailsPlace -> URL and URL -> DetailsPlace conversion with
1821 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1822 Return empty string for URL instead of "null".
1823 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1824 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1825 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1826 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1827 PrimaryKeyItem instead of String to hold primary key values.
1828 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
1829 PrimaryKeyValue to a Gda Value.
1830 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1831 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1832 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1833 Replace temporary database access code that uses the PrimaryKeyValue to
1834 Gda Value conversion.
1835 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
1836 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
1837 PrimaryKeyItem instead of String.
1838 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
1839 hold primary key values.
1841 2011-11-24 Ben Konrath <ben@bagu.org>
1843 Use newly added java-libglom API to create queries.
1845 This isn't finished. I still need to stop using Strings for primary key
1846 values in the client code.
1848 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
1849 libglom to use fake connections so that retrieving the query string will
1851 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1852 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1853 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1854 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1855 Use the newly added libglom sql methods and classes to create the
1856 query. Add temporary hack to convert primary value strings to Gda
1859 2011-11-23 Ben Konrath <ben@bagu.org>
1861 Don't explicitly set the height of Portals.
1863 See comments 6 - 10 of this bug for details:
1865 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
1867 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1869 2011-11-23 Ben Konrath <ben@bagu.org>
1871 Use an HTML table instead of CSS for the FlowTable layout.
1873 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
1874 GWT's FlexTable to implement the FlowTable.
1875 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
1877 2011-11-18 Ben Konrath <ben@bagu.org>
1879 Add boolean example to HTML table mockup.
1881 * mockups/details-view-html-tables-text-entries.html:
1883 2011-11-17 Ben Konrath <ben@bagu.org>
1885 Ensure the pager buttons are always visible for related lists.
1887 To accomplish this, I've turned off text wrapping in the list view and
1888 related list tables for both the header and data text. The related list
1889 table now has a fixed layout so the it doesn't overflow its container.
1890 This is required to ensure that the cell text is clipped when it
1891 overflows the cell and an ellipsis is added to the right side of the
1892 cell when text is clipped.
1894 A fixed table layout for the related list table in the details view
1895 seems what we want for the details view anyway, so the side-effect is
1898 The ellipsis will only be displayed in Firefox >= 7.
1902 https://bugzilla.gnome.org/show_bug.cgi?id=662930
1904 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
1905 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
1906 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
1908 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1909 Set the 'table-layout: fixed' CSS property to the related list table.
1910 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
1911 'white-space: nowrap;' CSS property on both the list view and the
1912 related list tables.
1914 2011-11-16 Ben Konrath <ben@bagu.org>
1916 Rework the fix for empty notebook tab labels.
1918 Setting the empty group titles with its name caused problems for the
1919 details layout. Instead of using libglom's
1920 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
1921 to the client when the title is empty. This allows the Notebook to use
1922 the name when the title is empty without affecting anything else.
1924 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1925 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1927 2011-11-16 Ben Konrath <ben@bagu.org>
1929 Set group titles with name when title is empty.
1931 This fixes a problem with an empty notebook tab label in the Lesson
1932 Planner document. The forth tab in the notebook should be "Internet":
1934 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
1936 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1937 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
1940 2011-11-16 Ben Konrath <ben@bagu.org>
1942 Remove whitespace from the configured username properties.
1944 This assumes that usernames won't have whitespace at the beginning
1945 or end. But I think this is a reasonable assumption.
1947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1948 String.trim() to remove the whitespace from the username properties.
1950 2011-11-15 Ben Konrath <ben@bagu.org>
1952 Add details view mockup with HTML tables and text entries.
1954 This is from the attachment on this bug:
1956 https://bugzilla.gnome.org/show_bug.cgi?id=663109
1958 * mockups/details-view-html-tables-text-entries.html:
1960 2011-11-15 Ben Konrath <ben@bagu.org>
1962 Add space between the columns of the flow table.
1966 https://bugzilla.gnome.org/show_bug.cgi?id=662918
1968 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
1969 space between columns in the flow table.
1971 2011-11-15 Ben Konrath <ben@bagu.org>
1973 Add backup files to the .gitignore.
1975 * .gitignore: Ignore files that end with ~.
1977 2011-11-09 Ben Konrath <ben@bagu.org>
1979 Use latest release of gwt-log.
1981 Gwt-log releases are now being submitted to the maven central
1982 repository so manual installation of the jar is no longer required.
1984 * pom.xml: Update version and groupId of gwt-log dependency.
1986 2011-10-31 Ben Konrath <ben@bagu.org>
1988 Don't use GWT numeric formatting to override the glom currency formatting.
1990 Currencies are now displayed like they are in Glom. See this bug:
1992 https://bugzilla.gnome.org/show_bug.cgi?id=646216
1994 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
1996 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
1997 currency code to constructor and set it when the cell is rendered.
1998 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1999 currency code to the constructor of the NumericCell.
2001 2011-10-27 Ben Konrath <ben@bagu.org>
2003 Require the latest release of java-libglom (1.17.4).
2007 2011-10-26 Ben Konrath <ben@bagu.org>
2009 Add style to Notebook that matches current theme.
2011 It's not the best style in the world but it's better than the default.
2013 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
2014 padding at the bottom of the child widgets.
2015 * src/main/webapp/style.css: Add style for the Notebook.
2017 2011-10-26 Ben Konrath <ben@bagu.org>
2019 Move servlet initialization code to overridden init method.
2021 This is half of the solution to getting proper error messages
2022 displayed when configuration errors occur. Here's the relevant bug:
2024 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2026 The rest of the solution involves surrounding the init method with a
2027 try/catch block and setting a global variable with the error /
2028 exception. A new async method should be created to retrieve and display
2029 the error message / exception.
2031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
2032 code from constructor to init method adding exceptions as needed.
2034 2011-10-26 Ben Konrath <ben@bagu.org>
2036 Add script to monitor and restart tomcat if required.
2038 * utils/check-and-recover-tomcat.py: New file.
2040 2011-10-26 Ben Konrath <ben@bagu.org>
2042 Display the correct number of data items in the pager.
2046 https://bugzilla.gnome.org/show_bug.cgi?id=661441
2048 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2049 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2050 The implementation is the same for both tables: Keep track of the
2051 number of non-empty rows and fire and RowCountChangeEvent after the data has
2053 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
2054 custom Pager class that subclasses SimplePager to handle displaying
2055 the correct number when empty rows have been added.
2057 2011-10-26 Ben Konrath <ben@bagu.org>
2059 Correct error in previous commit.
2061 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
2062 eventBus parameter from listView.setCellTable().
2064 2011-10-26 Ben Konrath <ben@bagu.org>
2066 Fix error in TODO comment.
2068 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2070 2011-10-24 Ben Konrath <ben@bagu.org>
2072 Create Notebook widgets to the details view.
2074 This isn't finished just yet - I still need to create a reasonable
2075 style to match the current theme.
2077 * src/main/java/org/glom/web/client/Utils.java: Add method for
2078 calculating the height of a widget. This is used in the Notebook class.
2079 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2080 new constructor method in Group.
2081 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
2082 method for creating child widget that can be used by subclasses
2083 like Notebook. New constructor that allows disabling the group
2084 titles - Notebooks don't set a group title for their child groups.
2085 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
2086 to make Notebooks using GWT's TabLayoutPanel.
2087 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
2088 constructor that allows disabling the group titles.
2089 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
2090 LayoutItemNotebook DTO.
2091 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
2092 DTO for Notebooks. It's just an empty class for now but we might need
2093 it to transfer some specific information in the future.
2095 2011-10-21 Ben Konrath <ben@bagu.org>
2097 Add navigation buttons to related list tables.
2099 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2100 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
2102 method getSuitableRecordToViewDetails() for getting the table name
2103 and primary key value for related list navigation buttons.
2104 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2105 private cell renderer class to get the navigation information for
2106 related list tables from the server. Extract the navigation
2107 processing code from the details cell navigation and use it for the
2108 related list navigation as well.
2109 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
2110 cell renderer class for the details open buttons. This was needed
2111 because the related list navigation buttons and the list view
2112 navigation buttons need to react differently when clicked.
2113 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
2114 the onEnterKeyDown() method because it's now overriden in the
2115 subclasses that are specific to the related list tables and the list
2117 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
2118 the vertical size a little because the buttons add a bit of vertical
2119 space to table. This is not a perfect solution because the vertical
2120 size of with table fewer than 5 rows will be a little smaller.
2121 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
2122 changes in how navigation buttons are handled.
2123 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
2124 getSuitableRecordToViewDetails() using the new RelatedListNavigation
2125 database access object.
2126 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
2127 to find the portal for a given relationship name from
2128 RelatedListDBAccess. Add method to find a primary key field for a
2130 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2131 Move code to find the portal for a given relationship name to
2133 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2134 New file: database access object for getting the related list
2135 navigation information (the table name and the primary key value).
2136 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
2137 DTO for transferring a table name to navigate to and a primary key
2139 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2140 boolean and getter/setter to specifies if the related list should add
2143 2011-10-24 Murray Cumming <murrayc@murrayc.com>
2145 Use the master branch of java-libglom
2147 * pom.xml: Depend on java-libglom 1.19 instead.
2149 This is the master branch. See also the libglom-1-18 branch.
2151 2011-10-11 Ben Konrath <ben@bagu.org>
2153 Enable the open navigation button when the data has been set.
2155 This avoids having active buttons that don't do anything when the data
2158 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2160 2011-10-11 Ben Konrath <ben@bagu.org>
2162 Use IsWidget interface for FlowTableItem.
2164 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
2165 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
2167 2011-10-11 Ben Konrath <ben@bagu.org>
2169 Remove GWT styling from open button in details view.
2171 There are still some issues with how the details cell is arranged but
2172 this should be made to match Glom 1.20. I'm going to leave fixing this
2173 until I have Glom 1.20 up and running.
2175 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
2176 style name on open button.
2177 * src/main/webapp/style.css: Move and edit details-navigation class.
2178 Re-arrange some classes to make them appear in the same order as the
2181 2011-10-07 Ben Konrath <ben@bagu.org>
2183 Update to GWT 2.4.0.
2185 * .gitignore: Ignore new cache directory.
2186 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
2187 * pom.xml: Change GWT and maven plugin to 2.4.0.
2188 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
2190 * src/main/java/org/glom/web/client/ClientFactory.java:
2191 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2192 * src/main/java/org/glom/web/client/OnlineGlom.java:
2193 Update source for API changes.
2194 * utils/build-onlineglom-war.sh: Remove cache directory before the
2197 2011-10-07 Ben Konrath <ben@bagu.org>
2199 Add navigation buttons in the details view.
2201 This isn't finished but I thought I'd commit what I have as it's a
2202 pretty good start. I still need to:
2204 1. Change the style so that it fits better into the current theme
2205 2. Adjust the details cell to expand as much as possible.
2207 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2208 click handlers to navigation buttons in the DetailsCells. Create a
2209 refreshData() method to get just the data from the server without the
2211 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2212 Update the tableSelector and browser title when the table name
2213 changes without using the tableSelector.
2214 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2215 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2216 getDetailsCells() to getCells(). Update variable names.
2217 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
2218 method to set click handler on navigation button. Rename a few
2219 variables. Add navigation buttons where needed.
2220 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
2221 variables and methods.
2222 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
2223 navigation boolean and navigation table as required in the
2224 LayoutItemField DTO.
2225 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2226 variables for navigation along with getter/setter methods.
2228 2011-10-07 Ben Konrath <ben@bagu.org>
2230 Rename Field to DetailsCell.
2232 This is a refactor-only commit. No functionality has been added or
2235 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2236 Update variable and method names.
2237 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2238 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
2239 variable and method names.
2240 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2242 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
2243 variable and method names.
2245 2011-10-07 Ben Konrath <ben@bagu.org>
2247 Create separate methods for layout and data the details view.
2249 This is a refactor-only commit. No functionality has been added or
2252 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
2253 private methods: setData(), createLayout().
2255 2011-10-07 Ben Konrath <ben@bagu.org>
2257 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
2259 This is part of a change to get navigation buttons in the details view
2260 but it should have been done this way from the start.
2262 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2263 for method name change in TableSelectionView.
2264 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2265 Create TableChangeEvent and set the browser title using the
2266 TableSelectionView API.
2267 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2268 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2269 Change getSelectedTable() to getSelectedTableName(). Add
2270 getSelectedTableTitle().
2272 2011-10-07 Ben Konrath <ben@bagu.org>
2274 Use primaryKeyValue naming convention in constructor of DetailsPlace.
2276 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2278 2011-10-07 Ben Konrath <ben@bagu.org>
2280 Update TableChangeEvent to use newTableName naming convention.
2282 This makes the class more consistent with GWT naming conventions.
2284 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2285 Update for method name change in TableChangeEvent.
2286 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2287 for method name change in TableChangeEvent.
2288 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
2289 newTableName variable and getter method. Make toDebugString()
2292 2011-09-30 Ben Konrath <ben@bagu.org>
2294 Disable the pager in the list tables when the data row count is less than the minimum.
2296 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2297 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2299 2011-09-30 Ben Konrath <ben@bagu.org>
2301 Add empty rows to the end of related list and list view tables.
2303 I also extracted the cell rendering classes from the ListTable because
2304 the code was becoming a little crazy with all the anonymous inner
2305 classes. My plan is to use these cell rendering classes in the details
2306 view as well so this refactor will be needed for that change.
2308 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
2309 set the row count in related list tables if the data has more rows
2310 than the minimum number of rows visible.
2311 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
2312 row count in list view tables if the data has more rows than the
2313 minimum number of rows visible.
2314 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
2315 for rendering TYPE_BOOLEAN cells. The code was extracted from the
2317 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
2318 for rendering TYPE_NUMERIC cells. The code was extracted from the
2320 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
2321 class for rendering cells with buttons in list views. The code was
2322 extracted from the ListTable class.
2323 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
2324 for rendering TYPE_TEXT cells. The code was extracted from the
2326 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2327 Add empty rows to the end of the data if required. Implement
2328 ListTable.getMinNumVisibleRows().
2329 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
2330 cell renderer code to public classes. Return null in
2331 Column.getValue() for empty rows. Add new abstract method:
2332 getMinNumVisibleRows(). Move code to set the row count of the list view
2333 table to ListViewImpl.
2334 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
2335 empty rows to the end of the data if required. Implement
2336 ListTable.getMinNumVisibleRows().
2339 2011-09-27 Ben Konrath <ben@bagu.org>
2341 Use GWT.log for client-side debugging statements.
2343 These are optimized out when deployed so I should have used this method
2344 in the first place. These statements will eventually be replaced with some sort
2345 of notification in the browser.
2347 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2348 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2349 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2350 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2351 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2353 2011-09-27 Ben Konrath <ben@bagu.org>
2355 Put tableselector on the right, back to list link on right.
2357 The idea is that the table selector is acting like a label for the
2358 currently displayed table so it should be placed below the document title. This
2359 puts the table title in a similar position to where it is in Glom.
2361 * mockups/details-contacts.html:
2362 * mockups/details-projects.html:
2363 * mockups/listview-contacts.html:
2364 * mockups/listview-projects.html:
2365 * mockups/style.css:
2366 Update mockups to match how the interfaces currently look.
2367 * src/main/webapp/style.css: Swap positions of backlink with the table
2368 selector. Add some space on the left side of the table selector to
2369 line things up with the document title.
2371 2011-09-27 Ben Konrath <ben@bagu.org>
2373 Add field colouring to details view.
2375 This change re-works how field colouring works. The colour formatting
2376 information is now set to the client with the layout information instead of
2377 with the data. This eliminates the need to send the same colour strings for
2378 data in list view column when colour information is set.
2380 In order to set an alternate colour for negative numeric values, the
2381 number is now sent to client and formatted with the GWT NumberFormat class.
2383 This change also fixes:
2385 https://bugzilla.gnome.org/show_bug.cgi?id=659752
2387 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
2388 internationalization framework which is needed for client side numeric
2390 * src/main/java/org/glom/web/client/Utils.java: New file for some
2391 client static utility methods.
2392 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2393 the DataItem object to the Field class. Use a utility method to
2394 create the foreignKeyValue string.
2395 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
2396 alignment and text colours in the constructor. Add setData(DataItem)
2397 method. Remove setText(String) method.
2398 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2399 colour information to GlomTextCell. Create and use GlomNumberCell for
2400 rendering numbers. Use utility method to get the string for the
2401 primary key of the key provider. Re-work how the horizontal alignment
2403 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2404 formatting to layout information. Methods for converting the libglom
2405 formatting information were moved from DBAccess.
2406 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
2407 numeric formatting (it's now done on the client side). Don't set text
2408 colours in DataItem. Move libglom formatting conversion methods to
2410 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
2411 getters/setters for text colour information.
2412 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
2413 for transferring the libglom NumericFormat information to the client.
2414 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
2415 and getters/setters for: GlomNumericFormat, background colour and
2416 foreground colour strings.
2418 2011-09-26 Ben Konrath <ben@bagu.org>
2420 Simplify code that iterates through the LayoutGroup.
2422 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2424 2011-09-26 Ben Konrath <ben@bagu.org>
2426 Accept Eclipse formatting for OnlineGlomServiceAsync.
2428 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2430 2011-09-26 Ben Konrath <ben@bagu.org>
2432 Don't use the ListDBAccess classes to get the primary key layout information.
2434 This was causing a bug where the wrong index for the hidden primary key
2435 was being sent to the client.
2437 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
2438 primary key while creating the LayoutGroup DTO. Create a
2439 LayoutItemField DTO for hidden primary keys. Don't use the
2440 RelatedListDBAccess because it was only used for getting the primary
2442 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
2443 access modifier from public to protected for getPrimaryKeyField() and
2444 getPrimaryKeyLayoutItemField().
2445 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
2446 abstract method getExpectedResultSize() because RelatedListDBAccess
2447 doesn't have enough info to implement it.
2448 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2449 Remove @Override for getExpectedResultSize().
2450 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2451 Remove method getExpectedResultSize().
2453 2011-09-23 Ben Konrath <ben@bagu.org>
2455 Log which layout (list or details) the ignored item is from.
2457 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2459 2011-09-23 Ben Konrath <ben@bagu.org>
2461 Remove annotations that turn off code formatting in DataItem.
2463 * src/main/java/org/glom/web/shared/DataItem.java:
2465 2011-09-23 Ben Konrath <ben@bagu.org>
2467 Rename GlomField to DataItem and update associated methods.
2469 This is a rename-only refactor. No functionality has been added or
2472 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2473 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2474 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2475 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2476 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2477 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2478 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2479 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2481 * src/main/java/org/glom/web/server/database/DBAccess.java:
2482 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2483 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2484 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2485 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2486 * src/main/java/org/glom/web/shared/DataItem.java:
2487 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
2488 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2490 2011-09-23 Ben Konrath <ben@bagu.org>
2492 Rename GlomDocument to DocumentInfo and update associated methods.
2494 This is a rename-only refactor. No functionality has been added or
2497 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2498 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2499 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2500 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2501 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2502 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2503 * src/main/java/org/glom/web/shared/DocumentInfo.java:
2505 2011-09-20 Ben Konrath <ben@bagu.org>
2507 Require java-libglom 1.17.3.
2509 This picks up the fix for the seg fault problem with the Scenes table
2510 in the Openismus Film Manager example.
2514 2011-09-20 Ben Konrath <ben@bagu.org>
2516 Change the way sort clause is added for primary key when no sort clause is requested.
2518 The primary key is now added to the LayoutFieldVector (fieldsToGet)
2519 before the sort clause is created. When a sort clause is not requested, the
2520 sort clause is created by finding the primary key in the LayoutFieldVector
2523 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2525 2011-09-20 Ben Konrath <ben@bagu.org>
2527 Log error message if no documents are found in the configured directory.
2529 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
2530 Extract the glom file extension string to a private static final class
2531 variable (mostly as syntactic sugar). Accept a minor formatting change.
2532 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
2533 the example glom.document.directory configuration property to make it
2534 more clear that it can any directory, not just the home directory.
2536 2011-09-18 Ben Konrath <ben@bagu.org>
2538 Add related lists to details view.
2540 The related list table has support for paging and sorting just like the
2541 table in the list view.
2543 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
2544 SQL queries for the related list tables.
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/server/OnlineGlomServiceImpl.java:
2548 Rename getList methods to getListView and add comments. Remove
2549 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
2550 it being unused. Add methods: getDetailsLayoutAndData(),
2551 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
2552 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2553 Create the layout and set the data for the fields in one async call
2554 instead of two. Create related lists where appropriate.
2555 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
2556 for method name changes in OnlineGlomService.
2557 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2558 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2559 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
2561 * src/main/java/org/glom/web/client/ui/ListView.java:
2562 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
2563 tableName from setCellTable(). Create a ListViewTable instead of
2565 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
2566 represent a data field in the details view.
2567 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
2568 from addDetailsCell() to Field class. Keep track of the Fields and
2569 Portals in the details view.
2570 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
2571 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
2572 and add a method to get it. Add method to set the contents of the
2574 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2575 New class for related list tables. This class has the data provider
2576 for the related list table.
2577 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
2578 abstract class which is the base class for the ListViewTable and the
2580 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2581 New class for list view tables. This class has the data provider for
2582 the list view table.
2583 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2584 methods for related list tables. Add more information to the
2585 LayoutItemField and LayoutItemPortal DTOs.
2586 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2587 Remove debugging print statement.
2588 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2589 Remove debugging print statements. Add primary key field to SQL count
2591 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2592 Remove unnecessary LayoutFieldVector parameter from
2593 getResultSizeOfSQLQuery() method.
2594 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2595 New class for related list table database access.
2596 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
2597 class that is a wrapper DTO for details view layout and data.
2598 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2599 new 'fromField' string to this DTO.
2600 * src/main/webapp/style.css: Remove bottom margin and override top
2603 2011-09-15 Ben Konrath <ben@bagu.org>
2605 Breakup the OnlineGlomServiceImpl class to make it more manageable.
2607 This sets things up to make it easier to add the data retrieval for
2608 related lists (portals). No user noticeable changes were made with
2611 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
2612 class has the code to retrieve the layouts and access the
2613 database using the new database helper classes.
2614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2615 Most of the functionality has been removed from this class. This
2616 class now represents the public interface for the client side
2617 code. It also deals with configuring the servlet and cleaning
2618 things up when the servlet is stopped.
2619 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
2620 of static methods into this utility class.
2621 * src/main/java/org/glom/web/server/database/DBAccess.java:
2622 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2623 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2624 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2625 These classes have the database retrieval code. The class hierarchy
2626 has been setup to make it easy to reuse code for similar
2629 2011-09-06 Ben Konrath <ben@bagu.org>
2631 Create separate classes for list table code and the data provider.
2633 As part of this refactor, I also split up the code a bit to make it
2636 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
2637 table code to two new classes (below).
2638 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
2639 with code from ListViewImpl.
2640 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
2641 New file with code from ListViewImpl.
2643 2011-09-06 Ben Konrath <ben@bagu.org>
2645 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
2647 This fixes the LayoutItemPortal DTO to match the libglom layout object
2650 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
2652 2011-09-01 Ben Konrath <ben@bagu.org>
2654 Set title of Portals in the Details View.
2656 * pom.xml: Bump required version of java-libglom to 1.17.1.
2657 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
2658 widget creation to its own class. Add comments to constructor.
2659 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
2660 The code is mostly from the Group class with the title now set.
2661 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2662 title of Portal. Update some comments. Fix some code formatting.
2664 2011-09-01 Ben Konrath <ben@bagu.org>
2666 Remove TODO comment for the flow table column width.
2668 The flow table column width is working correctly and doesn't need to be
2669 changed. See this mailing list post for more info:
2671 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
2673 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
2675 2011-08-27 Ben Konrath <ben@bagu.org>
2677 Add document title (database name) to top of the browser page.
2679 I added the document title to the TableSelecitonView but that will
2680 change if / when we add a view that doesn't require table selection.
2682 * mockups/details-contacts.html:
2683 * mockups/details-projects.html:
2684 * mockups/listview-contacts.html:
2685 * mockups/listview-projects.html:
2686 * mockups/style.css: Add document title to mockups to keep things
2688 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
2689 sizes to account for the document title.
2690 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2691 Set the document title when it has been retrieved from the server.
2692 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2693 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
2694 and implement setDocumentTitle(String) method.
2695 * src/main/webapp/style.css: Add ID for document title style.
2697 2011-08-25 Ben Konrath <ben@bagu.org>
2699 Add NavigationType enum to LayoutItemPortal DTO.
2701 This is the start of adding support for Portals to the Details View.
2703 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
2704 LayoutItem_Portal.navigation_type enum from libglom to
2705 LayoutItemPortal.NavigationType enum.
2706 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2707 NavigationType enum, field for storing the NavigationType and getter
2710 2011-08-25 Ben Konrath <ben@bagu.org>
2712 Implement the flow table layout in the Details View.
2714 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2715 FlowTable to Group to account for the renamed class.
2716 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
2717 File. This is a container widget that implements the Glom details view
2718 flow table behaviour.
2719 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
2720 org/glom/web/client/ui/FlowTable.java.
2721 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
2722 so that the size of the subgroups are a closer match to the size of
2723 the Glom subgroups. This makes the flowtable layout match the layout
2724 in Glom for the Music Collection example file.
2726 2011-08-16 Ben Konrath <ben@bagu.org>
2728 Create container element for LayoutItemPortal in Details View.
2730 This will help me develop the layout for the FlowTable.
2732 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
2733 fieldPanel variable to detailsCell.
2735 2011-08-15 Ben Konrath <ben@bagu.org>
2737 Set the height of the data element in the Details View.
2739 I changed the InlineLabels (text in a span element) to Labels (text in
2740 a div element) so that I could set the height of the details-data
2741 elements instead of the details-cell parent elements. This allows the
2742 the details-data element to display the correct height if style is
2743 applied that shows the height.
2745 This change has the added benefit of allowing the order of the labels
2746 and data elements to be changed for right-to-left languages.
2748 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2749 InlineLabels to Labels.
2750 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
2751 InlineLabels to Labels. Set the height of the data element.
2752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2753 multiline text height in the Formatting DTO.
2754 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
2755 for multiline height along with getter and setter methods.
2756 * src/main/webapp/style.css: Adjust style to account for the change
2757 from span elements to div elements in the details cell.
2759 2011-08-15 Ben Konrath <ben@bagu.org>
2761 Make the List View appearance match the mockups.
2763 It doesn't match exactly but it's much better than it was.
2765 * mockups/listview-contacts.html: Remove unused css classes.
2766 * mockups/listview-projects.html: Remove unused css classes.
2767 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
2768 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
2769 for mainPanel instead of VerticalPanel (table). Set style name on
2770 CellTable. Set style name on Details column. Right-align Details
2772 * src/main/webapp/style.css: Adjust properties to match the mockups.
2774 2011-08-12 Ben Konrath <ben@bagu.org>
2776 Add better support for subgroups in the details view.
2778 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2779 changed FlowTable constructor.
2780 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
2781 support for subgroups and subgroup-titles.
2782 * src/main/webapp/style.css: Add CSS class for subgroups and
2785 2011-08-12 Ben Konrath <ben@bagu.org>
2787 Return the top level LayoutGroup title.
2789 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2791 2011-08-11 Ben Konrath <ben@bagu.org>
2793 Make the TableSelector header match the mockup.
2795 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
2796 the layout panel. Properly lineup the table selection header with
2797 the list and details view.
2798 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
2799 margin around the details view.
2800 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2801 Rename listBox variable to tableSelector. Set id for the style sheet.
2802 Use a FlowPanel instead of a HorizontalPanel.
2803 * src/main/webapp/style.css: Add properties to make the TableSelector
2804 box match the mockups.
2806 2011-07-13 Ben Konrath <ben@bagu.org>
2808 Update install script for java-libglom version change.
2810 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
2813 2011-07-13 Ben Konrath <ben@bagu.org>
2815 Add support sub-group in the details view.
2817 I also removed the code that special-cased the default details view
2820 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
2822 I still have to make a proper flowtable.
2824 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2825 Don't special-case default details view layout.
2826 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
2827 addLayoutField() as I'm going to use it.
2828 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
2829 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
2831 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
2832 extracted from DetailsViewImpl.GroupPanel. Add support for
2834 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2835 column count when getting the details layout.
2837 2011-07-12 Ben Konrath <ben@bagu.org>
2839 Set browser title with database and table titles.
2841 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2842 Set the browser title when the table changes and when the activity
2844 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2845 title when retrieving document info (the GlomDocument object).
2846 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
2847 with getter and setter methods. Remove unused convenience constructor.
2848 Use default code formatting.
2850 2011-07-12 Ben Konrath <ben@bagu.org>
2852 Ignore LayoutItemPortals in the details view.
2854 I added a new DTO for the LayoutItemPortal so that I can ignore it in
2857 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
2858 LayoutItemPortal layout objects.
2859 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2860 LayoutItemPortal objects when retrieving the details layout.
2861 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
2862 file. This is an empty class and just used to get type information for
2865 2011-07-12 Ben Konrath <ben@bagu.org>
2867 Use java-libglom 1.17.0.
2871 2011-07-11 Ben Konrath <ben@bagu.org>
2873 Remove "Table:" label from table selector.
2875 This matches a recent change in the Glom UI.
2877 * mockups/details-contacts.html:
2878 * mockups/details-projects.html:
2879 * mockups/listview-contacts.html:
2880 * mockups/listview-projects.html: Remove the "Table:" label from the
2882 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2884 2011-07-11 Ben Konrath <ben@bagu.org>
2886 Add main groups to the details view.
2888 This makes things look a little nicer in the details view. The next step
2889 is to implement the flowtable.
2891 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
2892 resources from the standard gwt css theme. Standard.css is now
2893 included in OnlineGlom.html so that the online glom css rules have
2894 precedence over the gwt theme.
2895 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2896 the whole LayoutGroup to the DetailsView instead of just the titles.
2897 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2898 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
2899 details layout with a helper class (GroupPanel). I might extract this
2900 class when I make the full flowtable.
2901 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
2902 string as default so I don't have to worry about NPEs when processing
2904 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
2905 note beside OnlineGlom.gwt.xml above).
2906 * src/main/webapp/style.css: Add default font-size to body to override
2907 the font-size set by the standard theme. Don't use h2 tags for
2908 group-title. Create new details-cell class.
2910 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2912 ConfiguredDocument: Set the port number too.
2914 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2915 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
2916 Glom document. Presumably this worked sometimes so far because there is a
2917 default port number.
2919 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2921 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
2923 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2924 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
2925 correct, though we should throw an exception too.
2927 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2929 Fix a addDocuemnt typo.
2931 * src/main/java/org/glom/web/shared/Documents.java
2932 (Documents.addDocuemnt): Rename to addDocument().
2933 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2934 (OnlineGlomServiceImpl.getDocuments): Adapt.
2936 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2938 Slightly improved log output when connection fails.
2940 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2941 (ConfiguredDocument.setUsernameAndPassword):
2942 We don't know for sure if it' the username/password that's wrong, so
2943 rephrase the message.
2944 Also ouput the exception message, though it's generic in this case.
2946 2011-07-08 Ben Konrath <ben@bagu.org>
2950 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
2951 added braces to a one line if statement because the Eclipse formatter
2952 was getting confused.
2954 2011-07-07 Ben Konrath <ben@bagu.org>
2956 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
2958 These should really be two separate tasks but I counldn't get things to
2959 work with GWT 2.2.0 and Eclipse 3.7.
2963 * .settings/org.eclipse.jdt.core.prefs:
2964 * .settings/org.eclipse.jdt.ui.prefs:
2965 * .settings/org.eclipse.ltk.core.refactoring.prefs:
2966 * .settings/org.eclipse.m2e.core.prefs:
2967 Add new config files. Update current files. Remove references to the
2968 webtools plugins as we're not using any of the webtools features.
2969 * .gitignore: Add logs directory which is created when running with
2971 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
2972 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
2973 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
2975 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
2977 2011-07-07 Murray Cumming <murrayc@murrayc.com>
2979 onlineglom.properties: Add explanatory comments.
2981 * src/main/resources/onlineglom.properties: Also change the default user
2982 from ben to someuser, to avoid the risk of people thinking we just
2983 stupidly hard-coded a locale path, when they see that on stderr or in a log.
2985 2011-06-28 Ben Konrath <ben@bagu.org>
2987 Use filename in Log for incorrect passwords.
2989 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2990 getFileName(String) method to get the filename from the URI.
2992 2011-06-28 Ben Konrath <ben@bagu.org>
2994 Add the table name to the URL token for the ListPlace.
2996 This makes things consistent between the DetailsPlace and the
2997 ListPlace. It also allows the the ListPlace to be bookmarked.
2999 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3000 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3002 Remove getDefaultListLayout(). The default layout is now returned
3003 by the getListLayout() method when the table name is an empty string.
3004 * src/main/java/org/glom/web/client/activity/ListActivity.java:
3005 Add table name field. Change to a new ListPlace when the table
3006 has been changed. Use getListLayout() for getting the default
3008 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3009 Add table name field. Set the correct table name in the list box
3010 when loading from bookmark. This corrects a problem for the
3012 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3013 Move table name to super-class (HasSelectableTable). Move document
3014 and table URL keys to super-class in HasSelectableTable.
3015 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
3016 Add table name field. Add Tokenizer class with URL key common to
3017 the subclasses (DetailsPlace and ListPlace).
3018 * src/main/java/org/glom/web/client/place/ListPlace.java:
3019 Add table name. Add code to parse the URL token.
3020 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
3021 Update ListPlace construction with empty table name string.
3022 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3023 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3024 Change setTableSelectedIndex(int) to setSelectedTableName(String).
3025 Update ListPlace construction with table name string.
3026 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
3027 Change defaultTableName field to tableName to reflect how it's now
3028 used. Update the getter and setter methods.
3030 2011-06-28 Ben Konrath <ben@bagu.org>
3032 Enable the table selector in the DetailsView.
3034 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3035 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3036 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3037 Remove getDefaultDetailsLayout(). The default layout is now returned
3038 by the getDetailsLayout() method when the table name is an empty
3040 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
3041 event handler for table change event. Change to using
3042 getDetailsLayout() for the default details layout.
3043 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
3045 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
3046 when navigating to the details place.
3048 2011-06-27 Ben Konrath <ben@bagu.org>
3050 Use filename based unique document ID in URL and for RPC.
3052 The document ID is the glom document name with spaces (' ') replaced
3053 with pluses ('+') and without the .glom extension.
3055 This change is mostly a string substitution of 'documentTitle' for
3056 'documentID'. The only code change is the addition of a Documents DTO to get the
3057 filename to document title mappings as indicated below.
3059 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3060 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3061 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3062 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
3063 Use Documents DTO to create the document links in the document
3065 * src/main/java/org/glom/web/client/activity/ListActivity.java:
3066 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3067 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3068 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
3069 * src/main/java/org/glom/web/client/place/ListPlace.java:
3070 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
3071 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
3072 * src/main/java/org/glom/web/client/ui/ListView.java:
3073 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3074 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3075 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3076 * src/main/java/org/glom/web/server/Log.java:
3077 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3078 getDocumentTitles() to getDocuments() and return the Documents DTO.
3079 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
3080 transferring the filename to document title mappings.
3082 2011-06-25 Ben Konrath <ben@bagu.org>
3084 Make the authentication popup work again.
3086 This bug was introduced when I extracted ConfiguredDocument to its own class.
3088 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
3089 correct success / fail status in setUsernameAndPassword().
3091 2011-06-25 Ben Konrath <ben@bagu.org>
3093 Use filename as unique key for configuring database usernames and passwords.
3095 This replaces the use of the Glom document title which could change
3096 depending on the locale. Thanks to Murray Cumming for pointing out this
3099 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3100 * src/main/resources/onlineglom.properties:
3102 2011-06-24 Ben Konrath <ben@bagu.org>
3104 Pass primary key value to DetailsView.
3106 This enables the DetailsView to load the correct data.
3108 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
3109 primary key value field and set in constructor. Pass primary key
3110 value to getDetailsData().
3111 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
3112 variables for document title and primary key value.
3113 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
3114 key value to the DetailsPlace.
3116 2011-06-24 Ben Konrath <ben@bagu.org>
3118 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
3120 This allows the primary key to be retrieved by the Details button. This
3121 functionality has not been implemented yet but it's in the works.
3123 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
3124 the LayoutGroup result to ListView.setCellTable instead of all of its
3125 fields individually.
3126 * src/main/java/org/glom/web/client/ui/ListView.java:
3127 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
3128 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
3129 get the primary key for the table.
3130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
3131 index of the primary key in the LayoutGroup accounting for hidden
3132 primary keys. Rename getJavaNumberFormat() to
3133 convertToJavaNumberFormat() for consistency. Cleanup / add some
3135 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
3136 field for primary key index and a field to indicate whether the
3137 primary key is hidden or not.
3139 2011-06-23 Ben Konrath <ben@bagu.org>
3141 Rename getTableData methods to getListData.
3143 This is a rename refactor for consistency with other methods.
3145 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3146 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3147 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3148 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3150 2011-06-23 Ben Konrath <ben@bagu.org>
3152 Extract the ConfiguredDocument innerclass into its own class.
3154 This makes the servlet code more object oriented.
3156 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
3157 from private ConfiguredDocument class in OnlineGlomServiceImpl.
3158 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
3159 new ConfiguredDocument class.
3161 2011-06-21 Ben Konrath <ben@bagu.org>
3163 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
3165 This makes things more inline with how libglom works and reduces code
3166 duplication. This refactor lays the groundwork for adding the primary key to
3167 the LayoutGroup object.
3169 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3170 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3171 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3172 Change method names to getListLayout and getDefaultListLayout for
3173 consistency. Use LayoutGroup as the DTO for the list layout instead of
3174 ColumnInfo and LayoutListTable.
3175 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
3176 new method names along with the LayoutGroup object for transferring the
3178 * src/main/java/org/glom/web/client/ui/ListView.java:
3179 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3180 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
3181 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
3183 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
3184 Replaced with LayoutGroup.
3185 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
3186 expectedResultSize and defaultTableName fields which are needed for
3188 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
3189 type field which is needed for the list layout but will also be
3190 useful for the details layout as things progress.
3191 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
3192 Make class abstract. Remove the unnecessary
3193 getFormattingHorizontalAlignment method. Add setFormatting method.
3195 2011-06-16 Ben Konrath <ben@bagu.org>
3197 Add scripts for building and installing war.
3199 These will help when updating OnlineGlom but they're also good
3200 supplemental documentation of the build and deployment proceeding.
3202 * utils/build-onlineglom-war.sh: New file.
3203 * utils/install-onlineglom-war.sh: New file.
3205 2011-06-16 Ben Konrath <ben@bagu.org>
3207 Create wrapper class to create consistent log messages.
3209 I wrapped methods in the Log class of gwt-log to add the method names
3210 from the servlet and create consistent formatting of the document title
3211 and table names in the log messages.
3213 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
3214 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
3215 log methods to use methods from wrapped Log class.
3217 2011-06-16 Ben Konrath <ben@bagu.org>
3219 Remove superfluous conditional return.
3221 Thanks to Murray Cumming for pointing this out!
3223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3225 2011-06-15 Ben Konrath <ben@bagu.org>
3227 Return an ArrayList of LayoutGroups for the Details layout.
3229 This corrects a problem with the details layout as it can have more
3230 than one top level LayoutGroup.
3232 * src/main/java/org/glom/web/client/OnlineGlomService.java:
3233 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
3234 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
3235 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
3236 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
3237 with ArrayList of LayoutGroups for the details view layout.
3238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3239 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
3240 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
3241 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
3242 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
3243 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
3245 2011-06-14 Ben Konrath <ben@ba