1 2012-05-06 Murray Cumming <murrayc@murrayc.com>
3 LayoutItemPortal: getTitle*(): Use the relationship title.
5 2012-05-06 Murray Cumming <murrayc@murrayc.com>
7 LayoutItemField: Fix loading of custom titles.
9 * src/main/java/org/glom/web/server/libglom/Document.java
10 loadDataLayoutItemField(): The title, if any, instead of the field
11 title, is stored in a title_custom node. Load it from there.
12 * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
14 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
15 Add getCustomTitle() and use it, instead of super.getTitle*(), in the
16 getTitle*() overrides.
17 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
20 2012-05-06 Murray Cumming <murrayc@murrayc.com>
22 LayoutItemField: Fall back to field titles, so some are really shown.
24 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
25 Override getTitleOriginal() and getTitle(), as in java-libglom.
26 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
29 2012-05-06 Murray Cumming <murrayc@murrayc.com>
31 Correct use of setExpectedResultSize().
33 * src/main/java/org/glom/web/server/ConfiguredDocument.java
34 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
35 Use setExpectedResultSize only on top-level groups (for instance, the
36 list layout) or on child portals (in details views).
37 Use the correct table name for portals to avoid SQL errors.
38 Update the expected counts when returning cached layouts.
40 2012-05-06 Murray Cumming <murrayc@murrayc.com>
42 Document: Interpret no group column count as 1.
44 * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
45 default, though we now check for this in the UI code anyway.
47 2012-05-06 Murray Cumming <murrayc@murrayc.com>
51 2012-05-06 Murray Cumming <murrayc@murrayc.com>
53 Translatable: Use Hashmap instead of Treemap because GWT supports it.
55 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
56 The use of Treemap lead to this error from async methods, with no
58 "The response could not be deserialized"
60 2012-05-06 Murray Cumming <murrayc@murrayc.com>
62 OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
64 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary
65 when using the Google -> GWT Compile, or
66 g toolbar button -> GWT Compile Project... feature in Eclipse.
68 2012-05-06 Murray Cumming <murrayc@murrayc.com>
70 ListTable.addColumn(): Protect against a null Formatting.
72 * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
73 Create a default Formatting if it is null, because that is the simplest
76 2012-05-06 Murray Cumming <murrayc@murrayc.com>
78 ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
80 * src/main/java/org/glom/web/server/ConfiguredDocument.java
81 updateLayoutGroup(): Check that the field is not null.
83 2012-05-06 Murray Cumming <murrayc@murrayc.com>
85 ListViewImpl: Protected against a bad cast error.
87 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
88 onEnterKeyDown(): Do not cast without an instanceof check.
90 2012-05-06 Murray Cumming <murrayc@murrayc.com>
92 ListTable: Protect against an out of range error.
94 * src/main/java/org/glom/web/client/ui/list/ListTable.java
95 createCellTable(): This is unlikely, but can happen while debugging.
97 2012-05-06 Murray Cumming <murrayc@murrayc.com>
99 AsyncMessage onFailure() callbacks: Log the exception message.
101 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
102 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
103 * src/main/java/org/glom/web/client/activity/ListActivity.java:
104 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
105 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
106 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
107 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
108 These are useful clues when something is wrong.
110 2012-05-06 Murray Cumming <murrayc@murrayc.com>
112 ConfiguredDocument: Avoid a null dereference.
114 * src/main/java/org/glom/web/server/ConfiguredDocument.java
115 TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and
116 details maps are created.
118 2012-05-06 Murray Cumming <murrayc@murrayc.com>
120 Document: Correct the port number parsing.
122 * src/main/java/org/glom/web/server/libglom/Document.java:
123 This lets us actually connect to the database and show the document.
125 2012-05-05 Murray Cumming <murrayc@murrayc.com>
129 * pom.xml: Use htmlunit mode for gwt:test, because the default demands
130 user-interaction, asking us to load a temporary URL in a browser.s
131 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
132 which is apparently necessary for testing the service. See the comment.
133 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
134 Show the exception, if any. This is how I saw the 404 in the HTML in
137 2012-05-05 Murray Cumming <murrayc@murrayc.com>
139 DocumentTest: Move the .glom files into the resources directory.
141 * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
142 URI via getResource().
144 2012-05-05 Murray Cumming <murrayc@murrayc.com>
146 Document: Remove the FieldIdentifies inner class.
148 * src/main/java/org/glom/web/server/libglom/Document.java: We only
149 use the Relationship (though the same function in libglom is maybe
150 used in other ways) and so this removes a compiler warning.
152 2012-05-05 Murray Cumming <murrayc@murrayc.com>
154 Document.load() Remove the error code parameter.
156 * src/main/java/org/glom/web/server/libglom/Document.java: load():
157 Remove the parameter. We do not set it yet and it could never have
158 worked as an output parameter (though maybe it did in java-libglom).
159 We could use an exception if we really want the failure reason.
160 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
162 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
163 setUp(), testGetSuitableTableToViewDetails(): Adapt.
165 2012-05-05 Murray Cumming <murrayc@murrayc.com>
167 Make some inner classes static.
169 * src/main/java/org/glom/web/server/ConfiguredDocument.java
170 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
171 * src/main/java/org/glom/web/server/ReportGenerator.java
172 * src/main/java/org/glom/web/server/libglom/Document.java
173 Make all inner classes static that can be static.
175 2012-05-05 Murray Cumming <murrayc@murrayc.com>
177 OnlineGlomServiceImpl: Do not load and check for java-libglom.
179 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
180 init(): We do not use java-libglom any more.
182 2012-05-05 Murray Cumming <murrayc@murrayc.com>
184 Remove mentions of java-libglom.
186 * README: Remove mention of java-libglom, because it no longer needed.
187 * utils/build-onlineglom-war.sh:
188 * utils/check-and-recover-tomcat.py:
189 * utils/install-onlineglom-war.sh: Remove these as they are no longer
190 useful. Building is now far easier, with no need for jhbuild.
192 2012-05-05 Murray Cumming <murrayc@murrayc.com>
194 Fix the build (mvn package)
196 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
197 (LayoutGroup): Make the LayoutItemList inner class static and protected.
198 Otherwise the GWT Java->Javascript compilation fails with just this
199 error, during mvn package or when attempting to view in a browser,
200 in the GWT developer mode in Eclipse.
202 [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
203 [INFO] auto discovered modules [org.glom.web.OnlineGlom]
204 [INFO] Compiling module org.glom.web.OnlineGlom
205 [INFO] [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
206 [INFO] [ERROR] Line 46: Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
207 [INFO] Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
208 [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
209 [INFO] [WARN] org.glom.web.client.OnlineGlomService_Proxy
210 [INFO] [ERROR] Cannot proceed due to previous errors
212 It has taken me 2 days to find out what was causing that. After reducing
213 the code, the compiler eventually showed me the full error message.
215 2012-05-04 Murray Cumming <murrayc@murrayc.com>
217 ConfiguredDocument: Cache the cloned and stripped layouts.
219 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
220 getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
221 layout in a map, so we can retrieve it again without rebuilding it.
223 2012-05-04 Murray Cumming <murrayc@murrayc.com>
225 UsesRelationshipImpl: Complete the relationshipEquals() implementation.
227 2012-05-04 Murray Cumming <murrayc@murrayc.com>
229 libglom classes: Implement some auto-generated emthods.
231 2012-05-04 Murray Cumming <murrayc@murrayc.com>
233 Add GwtTestOnlineGlomService.
235 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
236 However, this (and the other GwtTest*) does not seem to run during
239 2012-05-04 Murray Cumming <murrayc@murrayc.com>
241 Remove use of unsupported features from client code.
243 * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
244 * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
245 * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
246 Use our client version of StringUtils instead of the apache commons one.
248 However, the GWT Javascript compliation still fails.
250 2012-04-25 Murray Cumming <murrayc@murrayc.com>
252 Add a Field class and implement some loading of it in Document.
254 2012-04-25 Murray Cumming <murrayc@murrayc.com>
256 Initial Document loading implementation, instead of libglom.
258 * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
259 and Translatable classes, and adapt the rest of the code to use them.
260 However, this is still missing Layout and Field classes and loading.
262 2012-04-24 Murray Cumming <murrayc@murrayc.com>
264 Use of jOOQ: Move Field creation into a utility method.
266 * src/main/java/org/glom/web/server/SqlUtils.java:
267 This lets us improve it more easily.
269 2012-04-24 Murray Cumming <murrayc@murrayc.com>
271 Use of jOOQ: Improve the code to COUNT a sub-select.
273 * src/main/java/org/glom/web/server/SqlUtils.java:
274 Move initial query creation into
275 build_sql_select_step_with_where_clause().
276 build_sql_select_count_rows(): Use the jOOQ API instead of
277 concatentating text, because a jOOQ Select*Step is a TableLike,
278 which is what from() takes.
280 2012-04-23 Murray Cumming <murrayc@murrayc.com>
282 Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
284 * pom.xml: Depend on jooq.
285 * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
286 methods with jOOQ, based on the C++ implementations in libglom,
287 with some changes to the logic required by jooQ.
288 Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
290 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
291 * src/main/java/org/glom/web/server/ReportGenerator.java:
292 * src/main/java/org/glom/web/server/SqlUtils.java:
293 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
294 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
295 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
296 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
297 * src/main/java/org/glom/web/server/database/RelatedListNavigation:
298 Adapt. In particular, the SqlUtils methods now need to take a Connection,
299 because jOOQ needs that, though it seems unnecessary.
301 This is not quite finished. Ideally jOOQ would help us to build
302 table_name.field_name names, quoting and escaping them properly.
303 See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
305 2012-04-21 Murray Cumming <murrayc@murrayc.com>
307 Move use of Glom.build_sql*() into a new SqlUtils class.
309 * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
310 to wrap Glom.build_sql*(). The parameter types are still Glom one,
311 but this will make it easier to start using something other than
312 libglom or SqlBuilder.
314 2012-04-21 Murray Cumming <murrayc@murrayc.com>
316 Update the project URL.
318 * pom.xml: Use an OnlineGlom-specific URL for the project URL.
320 2012-04-21 Murray Cumming <murrayc@murrayc.com>
322 Main layout: Use a FlowTable instead of absolute positioning.
324 * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
325 The RootLayoutPanel is a (extends) AbsolutePanel, so each of its
326 child panels/widgets must have an absolute position. But that is annoying, so
327 this adds a FlowTable and puts the child panels in there.
329 2012-04-21 Murray Cumming <murrayc@murrayc.com>
331 GwtTestOnlineGlom: Comment out unused code.
333 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
334 Eclipse has started to say that some code is unused.
336 2012-04-21 Murray Cumming <murrayc@murrayc.com>
338 Update to the latest versions of dependencies.
340 * pom.xml: Update version numbers of dependencies to the latest
342 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
343 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
344 * src/main/java/org/glom/web/server/ReportGenerator.java:
345 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
346 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
347 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
349 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
350 Modify the imports where necessary.
352 2012-04-17 Murray Cumming <murrayc@murrayc.com>
354 Style: Remove overflow:hidden from searchbox
356 * src/main/webapp/style.css: Because this pushes the Back To Link
357 label/link on to the next row, which is then hidden due to the
358 hard-coded (in ems) height.
360 2012-04-20 Murray Cumming <murrayc@murrayc.com>
362 Remove some duplicate code.
364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
365 getDocumentInfo(): This must have been duplicated during the merge from the
370 2012-04-19 Murray Cumming <murrayc@murrayc.com>
372 Reports: Localize the waiting for report message.
374 * src/main/java/org/glom/web/client/activity/ReportActivity.java
375 start(): Get the message from the contants.
376 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
378 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
379 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
380 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
381 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
382 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
383 Update these files with the English text for newer strings for now.
385 2012-04-19 Murray Cumming <murrayc@murrayc.com>
387 Reports: Show a message while waiting for the report.
389 * src/main/java/org/glom/web/client/ui/ReportView.java
390 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
391 Add setWaitingText(), to show a message saying that we are
392 waiting for the report to be ready.
393 * src/main/java/org/glom/web/client/activity/ReportActivity.java
394 start(): Call setWaitingText() before calling the async
397 2012-04-19 Murray Cumming <murrayc@murrayc.com>
399 ReportGenerator: Specify date and time formats.
401 * src/main/java/org/glom/web/server/ReportGenerator.java:
402 createFieldValueElement(): Use the default (and localized)
403 short formats, though we still need a way to show 4-digit
404 years without providing the format for every locale.
405 * src/main/java/org/glom/web/server/database/DBAccess.java:
406 convertResultSetToDTO(): Use the short formats here too.
408 2012-04-18 Murray Cumming <murrayc@murrayc.com>
410 ReportGenerator: Use the correct numeric formatting.
412 * src/main/java/org/glom/web/server/ReportGenerator.java
413 createFieldExpression(), createFieldValueElement(): Take the
414 whole LayoutItem_Field instead of just the field name, so
415 we have access to the formatting.
416 createFieldValueElement(): Use JRTextField.setPattern() to
417 specify the numeric formatting, with the help of a
418 regular DecimalFormat.
420 2012-04-18 Murray Cumming <murrayc@murrayc.com>
422 ReportGenerator: Avoid showing null for group by titles.
424 * src/main/java/org/glom/web/server/ReportGenerator.java
425 generateReport(): Use setBlankWhenNull() on the field title
426 style too, because this is used for values in group by
429 2012-04-18 Murray Cumming <murrayc@murrayc.com>
431 ReportGenerator: Add a colon to titles in vertical groups.
433 * src/main/java/org/glom/web/server/ReportGenerator.java
434 addFieldToDetailBandVertical(): Pass true for the withColon
437 2012-04-18 Murray Cumming <murrayc@murrayc.com>
439 ReportGenerator: Simplify the code by using Position more.
441 2012-04-18 Murray Cumming <murrayc@murrayc.com>
443 Reports: Support vertical groups, roughly.
445 * src/main/java/org/glom/web/server/ReportGenerator.java:
446 addToReport(): Rename to addGroupToReport() and, if necessary,
447 call the new addVerticalGroupToReport() method.
448 createFieldValueElement(): Let the caller specify the Y position
451 2012-04-17 Murray Cumming <murrayc@murrayc.com>
453 Reports: Allow a second report to be shown.
455 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
456 clear(): Do not remove the HTML widget, which broke the whole layout.
458 2012-04-17 Murray Cumming <murrayc@murrayc.com>
460 Locales drop-down: Show that we use English by default.
462 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
463 fillView(): When we use English, just because that is the default, when
464 no locale is specified, show that in the Locales drop-down instead of
465 just showing the first item.
467 2012-04-17 Murray Cumming <murrayc@murrayc.com>
469 Unselect the Report/Locale/Table combo item when appropriate.
471 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
472 setPlace(): clear reportName if this is not a ReportPlace.
473 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
474 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
475 When the provided name is empty, unselect all items, so that none are
476 indicated. This uses a for loop because I cannot find a single method
479 2012-04-17 Murray Cumming <murrayc@murrayc.com>
481 Report: Give the user a way to get back to the list.
483 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
484 start(), setPlace(): Show the Back To List link on reports, and also
485 interpret selecting the empty report item as back to list.
487 2012-04-13 Murray Cumming <murrayc@murrayc.com>
489 Really show the selected Report name.
491 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
492 setPlace(): Store the reportName here, if it is that kind of Place.
493 fillView(): Set the selected Report after filling the list of reports.
494 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
495 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
496 null Strings, though we need some way to unselect all ListBox items
499 2012-04-13 Murray Cumming <murrayc@murrayc.com>
501 ReportGenerator: Try to avoid some problems.
503 * src/main/java/org/glom/web/server/ReportGenerator.java
504 addField(): Try to avoid duplicates, and avoid using a null
507 2012-04-13 Murray Cumming <murrayc@murrayc.com>
509 Reports: Use quickFind.
511 * src/main/java/org/glom/web/client/OnlineGlomService.java;
512 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
513 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
514 getReportHTML(): Add a quickFind parameter.
515 * src/main/java/org/glom/web/client/activity/ReportActivity.java
516 start(): Pass the quickFind parameter.
517 * src/main/java/org/glom/web/server/ReportGenerator.java
518 generateReport(): Take a quickFind parameter.
520 2012-04-13 Murray Cumming <murrayc@murrayc.com>
522 ReportPlace: Actually use the report name.
524 * src/main/java/org/glom/web/client/place/ReportPlace.java
525 getPlace(): Do not assign the report name to the quickfind.
527 2012-04-13 Murray Cumming <murrayc@murrayc.com>
529 Show java.library.path when complaining.
531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
532 init(): When telling us to check java.library.path, show the
535 2012-03-06 Murray Cumming <murrayc@murrayc.com>
537 ReportGenerator: Do not show nulls.
539 2012-03-06 Murray Cumming <murrayc@murrayc.com>
541 ReportGenerator: Make the title font larger.
543 2012-03-06 Murray Cumming <murrayc@murrayc.com>
545 ReportGenerator: Put field titles inside groups, if there are groups.
547 2012-03-06 Murray Cumming <murrayc@murrayc.com>
549 ReportGenerator: Take the Report itself instead of the name and group.
551 * src/main/java/org/glom/web/server/ConfiguredDocument.java
552 Remove getReportLayoutGroup().
553 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
554 getReportHTML(): Pass the report instead
555 of its name and layout group.
556 * src/main/java/org/glom/web/server/ReportGenerator.java
557 generateReport(): Use the report object to use the title
560 2012-03-06 Murray Cumming <murrayc@murrayc.com>
562 ReportGenerator: Remove designBand parameters.
564 * src/main/java/org/glom/web/server/ReportGenerator.java:
565 Make designBand a class member instead of passing it to all
568 2012-03-06 Murray Cumming <murrayc@murrayc.com>
570 ReportGenerator: Add lines, a bit like in the desktop version.
572 * src/main/java/org/glom/web/server/ReportGenerator.java
573 addToReport(): Use JRDesignLine.
575 2012-03-06 Murray Cumming <murrayc@murrayc.com>
577 ReportGenerator: Correct the title positions and use some bold style.
579 * src/main/java/org/glom/web/server/ReportGenerator.java:
580 Break the code up into reusable functions, correct the placement of
581 titles, and use normal/bold styles as in the reports in the desktop
584 2012-03-06 Murray Cumming <murrayc@murrayc.com>
586 ReportGenerator: Add a header band to show the field titles.
588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
589 getReportHTML(): Pass the localeId to the ReportGenerator
591 * src/main/java/org/glom/web/server/ReportGenerator.java
592 constructor: Take the localeID so we can get translated field
594 generateReport(), addToReport(), addFieldToBand(): Add field
595 titles in a column header band.
597 2012-03-05 Murray Cumming <murrayc@murrayc.com>
599 Reports drop-down list: Some improvement.
601 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
602 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
603 Adedd setSelectedReport(),
604 setReportList(): Add a blank line so that the user can select the
606 * src/main/java/org/glom/web/client/activity/ReportActivity.java
607 start(): Show the current report by calling setSelectedReport().
608 This does not seem to work yet.
610 2012-03-05 Murray Cumming <murrayc@murrayc.com>
612 DetailsActivity, ListActivity: Move some variables into a base class.
614 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
615 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
616 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
617 the clientFactory, documentID, tableName and authenticationPopup into
618 a base class, to avoid duplication.
620 2012-03-05 Murray Cumming <murrayc@murrayc.com>
622 Translate the Reports label.
624 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
625 Get the "Reports" label string from the constants.
626 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
627 perties: Add Reports to the constants.
629 2012-03-05 Murray Cumming <murrayc@murrayc.com>
631 Reports: Implement grouping.
633 * src/main/java/org/glom/web/server/ReportGenerator.java:
634 Handle LayoutItem_GroupBy items and try to do the right thing
635 with JRDesignGroup. It seems to work.
637 2012-03-04 Murray Cumming <murrayc@murrayc.com>
639 Actually show some data with JasperReports.
641 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
642 getReportHTML(): Move most code into a ReportGenerator class.
643 * src/main/java/org/glom/web/server/ReportGenerator.java:
644 Recurse into sub-groups, adding fields to the JasperDesign's details
645 band. Note that we must set an arbitrary width and height, or it just
646 will not show any data.
648 2012-03-04 Murray Cumming <murrayc@murrayc.com>
650 Reports Chooser: Show the titles, not the names.
652 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
653 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
654 and the names as the values.
655 * src/main/java/org/glom/web/server/ConfiguredDocument.java
656 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
657 group now that we provide the report name, so it should always
660 2012-02-15 Murray Cumming <murrayc@murrayc.com>
662 Depend on jasperreports.
664 * pom.xml: Add the dependency. My plan is to use this on the
667 2012-01-31 Murray Cumming <murrayc@murrayc.com>
669 Implement navigation to report places.
671 * src/main/java/org/glom/web/client/activity/ReportActivity.java
672 start(): Do not bother to handle all events here.
673 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
674 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
675 Added getSelectedReport().
676 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
677 .java: start(): When handling a change to the reports chooser,
678 call getSelectedReport() and goTo() its ReportPlace.
679 * src/main/java/org/glom/web/client/ui/ReportView.java
680 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
681 Added setReportHTML() which puts the html in a gwt HTML widget.
682 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
683 getReportHTML(): Return "TODO" just to show that this works.
685 2012-01-31 Murray Cumming <murrayc@murrayc.com>
687 Make ReportPlace usable.
689 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
691 * src/main/java/org/glom/web/client/place/ReportPlace.java:
692 Correct the @prefix annotation.
694 2012-01-31 Murray Cumming <murrayc@murrayc.com>
696 OnlineGlomService: Return report HTML rather than the LayoutGroup.
698 * src/main/java/org/glom/web/client/OnlineGlomService.java:
699 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
700 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
701 Change getReportLayout() to getReportHMTL() because we will not need to
702 parse or render the report layout on the client side.
703 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
704 getReportLayout(): Return the libglom LayoutGroup type because we will
705 not need to convert to a shared type, because this will not be used on
707 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
710 Note that there is still no implementation for this.
713 2012-01-27 Murray Cumming <murrayc@murrayc.com>
715 Add a (empty) Report Place, View, and Activity.
717 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
719 * src/main/java/org/glom/web/client/place/HasTablePlace.java
720 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
721 this into a superclass:
722 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
723 and also use it as the base of this new ReportPlace:
724 * src/main/java/org/glom/web/client/place/ReportPlace.java
726 * src/main/java/org/glom/web/client/ui/ReportView.java
727 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
728 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
729 Add these, containing mostly boiler-plate for now.
731 * src/main/java/org/glom/web/client/OnlineGlomService.java
732 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
733 * src/main/java/org/glom/web/server/ConfiguredDocument.java
734 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
735 Add API to get the LayoutGroup for the report.
737 2012-01-23 Murray Cumming <murrayc@murrayc.com>
739 Add and fill a Reports drop-down list box.
741 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
743 * src/main/java/org/glom/web/client/OnlineGlomService.java:
744 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
745 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
746 Added getReports(document, table, localeID), calling
747 ConfiguredDocument.getReports().
748 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
749 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
750 Added setReportsList() and a list widget.
751 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
752 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
757 2012-04-12 Murray Cumming <murrayc@murrayc.com>
759 Translations: Add Esperanto.
761 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
762 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
763 properties: Add this translation because someone took the time to make it.
765 2012-03-15 Murray Cumming <murrayc@murrayc.com>
767 Adapt to the java-libglom 1.21.7 API.
769 * src/main/java/org/glom/web/server/ReportGenerator.java:
770 addToReport(): get_group_secondary_fields() is now
771 get_secondary_fields().
774 2012-03-15 Murray Cumming <murrayc@murrayc.com>
776 Use the latest java-libglom version.
778 * pom.xml: Use java-libglom 1.21.7.
780 2012-03-03 Ben Konrath <ben@bagu.org>
782 Display date and time in details view.
784 https://bugzilla.gnome.org/show_bug.cgi?id=671257
786 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
788 2012-03-05 Murray Cumming <murrayc@murrayc.com>
790 Require the latest java-libglom.
792 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
794 2012-03-04 Murray Cumming <murrayc@murrayc.com>
796 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
798 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
799 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
800 an empty quickfind string. I also corrected libglom to create only
801 empty where clauses for empty quickfind strings, but this avoids the
804 2012-02-24 Ben Konrath <ben@bagu.org>
806 Improve the tabs in the Notebook widget.
810 2012-01-30 Murray Cumming <murrayc@murrayc.com>
812 Translations: Try to translate the strings.
814 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
815 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
816 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
817 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
818 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
819 Take the Open translation from GTK+'s .po files.
820 Take the Details translation from Glom's po files.
821 I have added the other strings to Glom so we can get translations that way:
822 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
824 2012-01-27 Murray Cumming <murrayc@murrayc.com>
826 TableSelectionViewImpl: Put the search label and entry in a div.
828 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
829 Put the search widgets in a FlowTable so that the CSS can be used to
830 style them while keeping them together.
831 * src/main/webapp/style.css: Mention the new div.
833 2012-01-27 Murray Cumming <murrayc@murrayc.com>
835 Translate more strings in more locales.
837 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
838 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
839 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
840 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
841 Translate the "Details" and "Open" string too.
843 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
844 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
845 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
846 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
847 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
848 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
849 Add these new locales as placeholders though they currently contain English.
851 2012-01-27 Murray Cumming <murrayc@murrayc.com>
853 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
855 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
856 Check the ConfiguredDocument* for null before using it.
858 2012-01-26 Murray Cumming <murrayc@murrayc.com>
860 Tell Eclipse about the generated java files.
862 * .classpath: This lets it find OnlineGlomConstants.java.
863 It would be nice if Eclipse just used the maven build files.
865 2012-01-26 Murray Cumming <murrayc@murrayc.com>
867 Prevent a crash when no locale is specified in the URL.
869 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
870 Avoid returning a null string, obtained from
871 Window.Location.getParameter(). This caused a crash when it was
872 later passed to libglom's API.
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
875 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
876 guard against future null strings.
878 2012-01-26 Murray Cumming <murrayc@murrayc.com>
880 Use the ?locale= query param instead of the &lang= token param.
882 * src/main/java/org/glom/web/client/place/ListPlace.java
883 * src/main/java/org/glom/web/client/place/DetailsPlace.java
884 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
885 Remove the lang token key and value.
887 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
888 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
889 When the user selects a different locale from the chooser, use
890 Window.Location.assign() to change the URL, which then causes a reload.
892 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
893 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
894 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
895 * src/main/java/org/glom/web/client/activity/ListActivity.java
896 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
897 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
898 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
899 * src/main/java/org/glom/web/client/ui/ListView.java:
900 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
902 Remove localeID member variables and method/constructor parameters, instead
903 using Utils.getCurrentLocaleID() when we need a localID to pass to
906 2012-01-26 Murray Cumming <murrayc@murrayc.com>
908 Internationalize the UI strings.
910 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
911 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
912 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
913 because it is unused. Messages are apparently strings that can have
914 parameters, but we do not need that yet, so Contants will be enough for now.
915 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
916 to say that we support the en and de locales.
917 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
918 The original English strings.
919 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
920 Some German translations of the English strings.
921 The i18n goal then uses the .properties file to generate an
922 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
923 returns an implementation that returns the translated strings.
924 The documentation suggests putting these in src/java/*/client/, but it seems
925 best to put it in src/resources/*/client/.
926 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
927 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
928 instead of hard-coding them.
929 Note that we cannot import OnlineGlomConstants because it does not exist yet,
930 but that does not seem to stop the build, though it confuses Eclipse.
932 You can see the translated string by adding ?locale=de to the URL, like so:
933 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
935 2012-01-24 Murray Cumming <murrayc@murrayc.com>
937 Improve null/empty String checks.
939 * pom.xml: Add a dependency on commons-lang, to use
940 org.apache.commons.lang.StringUtils.
941 * src/main/java/org/glom/web/server/ConfiguredDocument.java
942 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
943 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
944 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
945 Use StringUtils.isEmpty().
947 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
948 StringUtils class with a static isEmpty() function because we
949 cannot use org.apache.commons.lang.StringUtils in client-side
950 GWT code because it (apparently) cannot be compiled to javascript.
951 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
952 * src/main/java/org/glom/web/client/activity/ListActivity.java
953 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
954 * src/main/java/org/glom/web/client/place/DetailsPlace.java
955 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
956 * src/main/java/org/glom/web/client/place/ListPlace.java
957 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
958 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
959 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
960 * src/main/java/org/glom/web/client/ui/details/Group.java
961 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
962 our StringUtils.isEmpty() function.
964 2012-01-24 Murray Cumming <murrayc@murrayc.com>
966 Update to the latest java-libglom API.
968 * pom.xml: Require java-libglom 1.21.4.
969 * src/main/java/org/glom/web/server/ConfiguredDocument.java
970 getDocumentInfo(), getListViewLayoutGroup():
971 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
973 * src/main/java/org/glom/web/server/database/DBAccess.java
974 getFieldsToShowForSQLQueryAddGroup(),
975 getPrimaryKeyLayoutItemField(): Replace get_database_title()
976 with either get_database_title_original() or
977 get_database_title(localeID).
979 2012-01-24 Murray Cumming <murrayc@murrayc.com>
981 ConfiguredDocument: Avoid a null pointer exception.
983 * src/main/java/org/glom/web/server/ConfiguredDocument.java
984 Initialize localeID to "" to avoid returning a null String which
985 causes a crash in java-libglom's swing-generated code.
987 2012-01-23 Murray Cumming <murrayc@murrayc.com>
989 Some simple renaming.
991 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
992 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
993 for localeChooser. This seems more appropriate and is less ambiguous
994 particularly in the .css file.
996 2012-01-23 Murray Cumming <murrayc@murrayc.com>
998 ConfiguredDocument: Rename the localedID private member variable.
1000 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1002 Adapt to the latest java-libglom API from git master.
1004 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1005 libglom now uses only Vector instead of List, which uses add() instead of
1008 2012-01-22 Murray Cumming <murrayc@murrayc.com>
1010 ConfiguredDocument: Rename the localedID private member variable.
1012 2012-01-20 Murray Cumming <murrayc@murrayc.com>
1014 Build a source tarball with mvn assembly:single
1016 * assembly.xml: Add this file.
1017 * pom.xml: Use the maven-assembly-plugin and tell it to use
1018 our assembly.xml file.
1020 2012-01-19 Murray Cumming <murrayc@murrayc.com>
1022 OnlineGlomServiceImpl: Get .glom files recursively.
1024 * pom.xml: Depend on commons-io from org.apache.commons.
1025 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1026 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
1027 files recursively, and with the easier filter for the extension.
1028 Use org.apache.commons.io.FilenameUtils.removeExtension() to
1029 simplify that code too.
1031 2012-01-19 Murray Cumming <murrayc@murrayc.com>
1033 README: Mention that you must install java-libglom packages separately.
1035 But then it works, because java-libglom is now in the central maven
1038 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1040 locales drop-down: Show the correct selected locale when the URL changes.
1042 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1043 .java: setPlace(): Move some code into fillView().
1045 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1047 locales drop-down: Do not lose the primary key.
1049 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1050 start(): onLocaleChange(): Pass the current primary key value,
1051 instead of an empty value.
1053 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1055 locales drop-down: Do not lose the drop-down selection.
1057 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1058 .java (TableSelectionActivity.fillView): Set the selected locale
1059 after changing the drop-down items (though we do not really need
1060 to change them just because the locale changes.)
1062 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1064 locales drop-down: Change the tables list when this changes.
1066 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1067 .java: TableSelectionActivity.start(): Move the async table titles
1068 retrieval into a private fillView() method and also call this when
1069 the chosen locale changes.
1070 Note that the document title is not actually translatable yet, but
1071 that is a problem that I should fix soon in libglom.
1073 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1075 Improve the placement of the locales drop-down.
1077 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1078 Put the title and locales drop-down in a div (gwt.FlowTable).
1079 * src/main/webapp/style.css: Add magic css properties to make this work.
1080 Also remove the left margin from the title so that it lines up with the
1083 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1085 locales selector: Show human-readable locale titles.
1087 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1088 getDocumentInfo(): Use java.util.Locale to show a real title of
1089 each locale, in the locale's own language.
1091 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1093 Add a language/locale selector drop-down.
1095 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1096 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
1097 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
1098 getDocumentInfo(): Store the available Locales in the DocumentInfo.
1099 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1100 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1101 Add a ListBox to show the available locales. Add getLocaleSelector(),
1102 setLocaleList(), getSelectedLocale(), setSelectedLocale().
1103 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
1104 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
1105 java: Add these classes.
1106 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1107 start(): Fill the locales ListBox. Handle its change event, firing a
1109 setPlace(): Show the selected locale as specified by the URL token.
1110 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1111 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1112 Handle LocaleChangeEvent, going to a new *Place with that locale.
1114 The placement of the ListBox is not pretty, and it currently uses the ID
1115 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
1119 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1121 Search box: Show the search text from the URL token.
1123 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1124 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1125 Add setQuickFindText().
1126 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1127 .java: setPlace(): Store the queryText if the place is a ListPlace,
1128 and call TableSelectionView.setQuickFindText().
1130 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1132 Allow use of translations via, for instance, &lang=de in the URL.
1134 * pom.xml: Use the unstable java-libglom 1.21 version.
1136 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1137 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1138 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1139 init(): Instead of calling TranslatableItem.set_current_locale()
1140 (now removed), call ConfiguredDocument.setDefaultLocaleID().
1141 However, this is only for default locales, which are not needed to
1142 change the locale in the URL.
1143 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
1144 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
1145 getSortedRelatedListData(): Add a localeID parameter, so we can get the
1146 layout for a particular locale.
1147 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1148 Add get/setDefaultLocaleID().
1149 getDocumentInfo(), getListViewData(), getRelatedListData(),
1150 getDetailsLayoutGroup(), getListViewLayoutGroup(),
1151 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
1152 localeID parameter, so we can get the layout for a particular locale.
1154 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1155 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1156 * src/main/java/org/glom/web/client/place/ListPlace.java:
1157 Parse and construct a lang parameter too.
1159 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1160 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
1161 passed to subsequent methods and constructors.
1162 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1163 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1164 Store the localeID from the *Place and pass it to other constructors
1165 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
1167 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1168 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1169 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1170 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1171 * src/main/java/org/glom/web/client/ui/ListView.java:
1172 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1173 Take localeID parameters and pass them to subsequent constructors and
1174 methods, so that the layout is always retrieved for that locale.
1176 This is rather repetitive.
1178 Note that "" means the original (default) locale of the Glom document,
1179 which is usually English.
1181 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1183 Documents: Remove final keyword to fix startup configuration.
1185 * src/main/java/org/glom/web/shared/Documents.java: Remove the
1186 final keywords on the private member variables because that breaks
1187 the startup, apparently (there are warnings) because it stops them
1188 from being serialized. I added these in the previous commit.
1190 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1192 Documents: Add some final keywords.
1194 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
1197 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1199 OnlineGlomServiceImpl: Add to overview comments.
1201 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1202 Note that this is where all the document are loaded. They are not
1203 loaded freshly for each page.
1205 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1209 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1210 Add a TextBox for the text of a quick find.
1211 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
1213 setBackLink(): Add a String quickFind parameter.
1214 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1215 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
1216 to the base interface, because that is how TableSelectionViewImpl is used.
1217 * src/main/webapp/style.css: Add style for the search box and its label.
1219 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
1220 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
1221 Add these files, based on the existing TableChangeEvent and
1222 TableChangeEventHandlers.
1223 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1224 start(): Handle QuickFindChangeEvent, passing its quickFind text to
1225 a ListPlace() that the user should be taken to.
1226 * src/main/java/org/glom/web/client/activity/ListActivity.java
1227 start(): Handle it here too and adapt the TableChangeEvent handler to
1228 pass the extra "" quickFind parameter to ListPlace.
1229 * src/main/java/org/glom/web/client/place/ListPlace.java:
1230 Constructor: Take an extra String quickFind parameter and store it,
1231 returning it from a new getQuickFind() method.
1232 getToken(): Put the quickFind text in the URL token.
1233 getPlace(): Parse the quickFind text from the URL token.
1234 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1235 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
1236 ListPlace constructor.
1237 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1238 .java: start(): Add a Change handler for the TableSelectionView's
1239 TextBox (via its base HasChangeHandlers interface), firing the new
1240 QuickFindChangeEvent.
1241 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
1242 pass the extra "" quickFind parameter.
1244 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1245 setCellTable(): Add a String quickFind parameter and pass it to
1246 the ListViewTable() constructor.
1247 * src/main/java/org/glom/web/client/ui/ListView.java: Change
1248 setCellTable() in the base interface, because that is how ListViewImpl
1251 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1252 Add a String quickFind member variable.
1253 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1254 Constructor: Add a String quickFind parameter, storing it in the
1255 base ListTable's member variable.
1256 onRangeChanged(): Pass quickFind to the
1257 OnlineGlomServiceAsync.getSortedListViewData() and
1258 OnlineGlomServiceAsync.getListViewData() methods.
1260 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1261 getListViewData(), getSortedListViewData(): Add a String quickFind
1262 parameter, passing it to ConfiguredDocument.getListViewData().
1263 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1264 Change getListViewData(), getSortedListViewData() in the base interface,
1265 because that is how OnlineGlomServiceImpl is used, via this:
1266 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1267 Change getListViewData(), getSortedListViewData() here too.
1268 This class can apparently be used to asynchronously call methods on
1269 OnlineGlomService, and GWT seems to implement that after recognizing
1270 just the *Async name convention and the extra AsyncCallback parameters.
1272 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1273 getListViewData(): Add a String quickFind parameter, and pass it to
1274 ListViewDBAccess.getData().
1275 * src/main/java/org/glom/web/server/database/ListDBAccess.java
1276 getListData(): Add a String quickFind parameter and pass it to
1278 getSelectQuery(): Add a String quickFind parameter.
1279 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1280 getSelectQuery(): Add a String quickFind parameter and use it with
1281 Glom.get_find_where_clause_quick() to pass a where_clause to
1282 Glom.build_sql_select_with_where_clause(), to actually filter the
1284 getData(): Add a String quickFind parameter, passing it to getListData().
1285 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
1286 va: getData(): Pass an empty string to getListData() for the
1287 quickFind parameter.
1289 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1291 ListTable: Minor change.
1293 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1294 createCellTable(): Make this protected instead of public.
1296 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1298 Many files: Use final for the parameters and use the @override attribute.
1300 2012-01-22 Ben Konrath <ben@bagu.org>
1302 Add anchor links for single line text that starts with http, ftp and www.
1306 2012-01-22 Ben Konrath <ben@bagu.org>
1308 Add ellipsis to single line text in details view.
1312 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1314 Remove all javadoc author tags.
1316 Because they are awkward and meaningless when many people touch
1318 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
1320 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1322 Revert the COPYING.LESSER to COPYING rename.
1324 Apparently both should be there if it is LGPL.
1326 2012-01-03 Murray Cumming <murrayc@murrayc.com>
1328 *View: Remove unused imports.
1330 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1331 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1332 * src/main/java/org/glom/web/client/ui/ListView.java:
1333 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1334 Remove unused imports, as suggested by Eclipse.
1336 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1338 Move the *View::Presenter types, and some API into one base View.
1340 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1341 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1342 * src/main/java/org/glom/web/client/ui/ListView.java:
1343 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
1344 Presenter, setPresenter() and clear() into a shared base interface,
1345 to avoid the unnecessary duplicate Presenter types and to more clearly
1346 show how the *Views share the same structure, even if they are not
1347 used polymorphically.
1349 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1350 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1352 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1353 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1354 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
1356 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1359 Feel free to revert this if there is a good reason for the duplicate
1362 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1364 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
1366 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
1367 a class member instead of a local variable in the method.
1368 This lets us use it to get the view instances, for use in tests.
1369 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1370 beforeOnlineGlom(): Test some more details of the initial view.
1371 Again, this is not very useful.
1373 To really test gwt-glom we will need to start a local postgresql
1374 instance with local data, like the Glom tests in C++.
1376 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1378 pom.xml: Mention the LGPL license.
1380 * pom.xml: Add a licenses section.
1381 * COPYING.LESSER: Move this to COPYING, which
1382 previously contained the GPL. But gwt-glom is all LGPL.
1384 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1386 Add project information to README and pom.xml.
1388 * README: Add a brief description and mention some mvn
1390 * pom.xml: This extra information shows up in mvn site
1393 2011-01-02 Murray Cumming <murrayc@murrayc.com>
1395 Use the latest java-libglom version.
1397 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
1399 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1401 GwtTestOnlineGlom: Test a little more.
1403 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
1404 protected rather than private, as suggested by the gwt-test-utils
1406 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
1407 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
1408 Test the initial visibility of the panels.
1410 However, this is not a very useful test.
1411 And I wonder how we should generally test using this idea for an
1412 activity/places app like ours where the real changes happen implicitly
1413 based on the history token/URL.
1415 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1417 Slight modification to *Mapper comments.
1419 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
1420 (DataActivityMapper)
1421 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
1423 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
1425 Remove comments mentioning GIN because they are just copied from
1426 the example code and are apparently not helpful:
1427 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
1428 Also change the mention of a class that is only in the example code.
1430 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1432 GwtTestOnlineGlom test: Minor changes.
1434 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1435 Avoid the long qualified class name and modify the comment
1436 because it is now obvious to me that the mocked class is the only
1437 custom one created via GWT.create().
1439 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1441 Tests: Added the beginnings of a test using gwt-test-utils.
1443 * pom.xml: Add dependencies on gwt-test-utils and easymock.
1444 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
1445 which tells gwt-test-utils what class will be tested.
1446 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1447 Add a simple (but empty) test case. One class, used by the OnlineGlom
1448 class, is mocked so that it can be created. However, I am not sure
1449 why only this class needs to be mocked.
1451 Note that mockito seems more popular, and clearer, than easymock,
1452 but I have not got that working yet. It might be a matter of the
1455 This test is run during mvn integration-test.
1457 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1459 Tests: Use junit4-style syntax instead of junit3-style.
1461 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1462 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1463 * src/test/java/org/glom/web/shared/DataItemTest.java:
1464 Use the @Test annotation rather than relying on the test*() prefix.
1465 Also no longer implement TestCase, to avoid triggering support for
1466 the junit3-way, which stops the annotations from working.
1467 Change the imports from import junit.framework.* to
1468 import org.junit.*, which is apparently the new way.
1470 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1472 Added a test for ListPlace token parsing and creation.
1474 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1475 This is much the same as DetailsPlaceTest.
1477 I wonder how we could test the other parts of the *Place API.
1479 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1481 DetailsPlace test: Also test getToken() and recreation via getPlace().
1483 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1484 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
1485 recreate it, testing the recreated DetailsPlace for the same parameter
1488 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1490 Use the surefire-report plugin.
1492 * pom.xml: This generates a HTML report about the tests in
1493 target/site/surefire-report.html
1494 when you do mvn surefire-report:report. It seems to be popular/normal.
1496 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1498 Added a test for DetailsPlace.
1500 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1501 Test the getPlace() token parsing.
1503 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1505 Added a first unit test.
1507 * pom.xml: Add a test goal, and a dependency on junit in that scope.
1508 * src/test/java/org/glom/web/shared/DataItemTest.java:
1509 This is a silly test but it is just to get things started. Note that
1510 maven/junit finds the test because it looks in src/test by default.
1512 2011-12-22 Ben Konrath <ben@bagu.org>
1514 Change charsetName to "UTF-8" when replacing line breaks.
1516 JavaScript requires the charsetName to be "UTF-8". CharsetName values
1517 that work in Java (such as "UTF8") will not work when compiled to
1520 This fixes a problem with multi-line details view fields that have hard
1521 line breaks. The "License Text" field on this page demonstrates the
1524 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
1526 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1528 2011-12-22 Ben Konrath <ben@bagu.org>
1530 Fix another bug with related list navigation.
1532 I've tested all the navigation buttons in all of the related lists
1533 so things should be good now.
1535 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1537 2011-12-22 Ben Konrath <ben@bagu.org>
1539 Fix a crasher when refreshing the list view with the default table.
1541 This crash will also happen when loading the list view with the default
1542 table from a link or bookmark.
1544 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
1545 to the main document selection page when the document id hasn't been
1547 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
1548 the main document selection page when the document id hasn't been
1550 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
1551 values for the details place when the document id hasn't been set.
1552 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
1553 values for the list place when the document id hasn't been set.
1555 2011-12-21 Ben Konrath <ben@bagu.org>
1557 Protect against NPE when glom.document.locale is not in config.
1559 This patch protects against an NPE when glom.document.locale is not in
1560 the config file. This NPE will also happen if glom.document.locale is
1563 The patch also updates the error message to display the class name when
1564 the getMessage() returns null. This was happening when the NPE was
1565 thrown and I had "Configuration Error: null". If an NPE is encountered
1566 with this patch, "Configuration Error: NullPointerException " will be
1569 This commit closes this bug:
1571 https://bugzilla.gnome.org/show_bug.cgi?id=666669
1573 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1575 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1577 Rename onlineglom.properties to onlineglom.properties.sample.
1579 * src/main/resources/onlineglom.properties: Rename to:
1580 * src/main/resources/onlineglom.properties.sample:
1581 * src/main/resources/README: And add this file explaining that people
1582 should rename it back when deploying.
1584 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1586 Allow choosing the translation in the .properties file.
1588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1589 init(): Read a glom.document.locale value from the configuration file
1590 and call Glom's TransatableItem::set_current_locale() method.
1591 * src/main/resources/onlineglom.properties: Add a commented-out
1592 example of this new setting.
1594 It would be better to add &lang=de_DE to the URL, but the current
1595 libglom API does not allow us to do this easily. I am working on that.
1597 2011-12-19 Murray Cumming <murrayc@murrayc.com>
1599 Avoid a crash in parsing of token parameters.
1601 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
1602 ava: getTokenParams(): Do not crash if a parameter has a key but no
1603 value, and ignore parameters with neither.
1605 2011-12-17 Murray Cumming <murrayc@murayc.com>
1607 History token building/handling: Improve use of token parameters.
1609 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1610 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
1611 and buildParamsToken(HashMap), for use by derived classes.
1612 Make the separator private because it is no longer be needed.
1613 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1614 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
1615 instead of manual string concatenation.
1616 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
1617 of hardcoded indices and awkward splitting code.
1618 * src/main/java/org/glom/web/client/place/ListPlace.java
1619 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
1620 instead of manual string concatenation.
1621 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
1622 of hardcoded indices and awkward splitting code.
1623 This should fix bug #666420
1625 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1627 Fix a Navgiation->Navigation typo in the code.
1629 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1630 Rename processNavgiation() to processNavigation().
1632 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1634 Fix a seperator->separator typo in the code.
1636 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1637 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1638 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
1641 2011-12-15 Ben Konrath <ben@bagu.org>
1643 Cleanup some comments.
1645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1647 2011-12-14 Ben Konrath <ben@bagu.org>
1649 Replace \n with <br/> for multiline text in the details view.
1651 Vertical scrollbars are added when needed as well.
1653 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1655 2011-12-14 Ben Konrath <ben@bagu.org>
1657 Specify the font for document selection links.
1659 * src/main/webapp/style.css:
1661 2011-12-14 Ben Konrath <ben@bagu.org>
1663 Fix bouncy CellTable while paging.
1665 This doesn't currently work with related list tables in unselected
1668 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1670 2011-12-14 Ben Konrath <ben@bagu.org>
1672 Revamp the appearance of the document selection page.
1674 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1675 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1676 * src/main/webapp/style.css:
1678 2011-12-13 Ben Konrath <ben@bagu.org>
1680 Set navigation button column to the smallest size possible.
1682 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1684 2011-12-13 Ben Konrath <ben@bagu.org>
1686 Change OpenButton nomenclature to NavigationButton.
1688 Using NavigtionButton makes things more generic. Classes, methods and
1689 variables have been changed.
1691 This is a rename-only refactor.
1693 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1694 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1695 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
1696 Renamed from OpenButtonCell.
1697 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1698 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1699 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1701 2011-12-12 Ben Konrath <ben@bagu.org>
1703 Remove unnecessary String argument in RelatedListTable and ListViewTable.
1705 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1706 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1707 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1708 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1710 2011-12-12 Ben Konrath <ben@bagu.org>
1712 Update variable names and comments.
1714 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1715 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1717 2011-12-12 Ben Konrath <ben@bagu.org>
1719 Properly initialize numNonEmptyRows variable to zero.
1721 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1722 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1724 2011-12-05 Ben Konrath <ben@bagu.org>
1726 Add latest mockup with HTML tables.
1728 Features of this mockup:
1730 -> HTML table for flowtable
1731 -> HTML table for flowtable column
1732 -> Example of how related lists would look
1733 -> Not using text entries for data items
1735 The current version of Online Glom doesn't use HTML tables for the
1738 This mockup has been sent to the glom-devel mailing list but it's good
1739 to have it here as well.
1741 * mockups/details-view-html-tables.html:
1743 2011-12-05 Ben Konrath <ben@bagu.org>
1745 Remove unnecessary getPrimaryKeyField() method.
1747 getPrimaryKeyFieldForTable(String) has been renamed to
1748 getPrimaryKeyField(String).
1750 * src/main/java/org/glom/web/server/database/DBAccess.java:
1751 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1752 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1754 2011-12-05 Ben Konrath <ben@bagu.org>
1756 Add string representation of TypedDataItem value to conversion error message.
1758 * src/main/java/org/glom/web/server/Utils.java: Logging the error
1759 message was extracted into its own method to avoid duplication.
1761 2011-12-05 Ben Konrath <ben@bagu.org>
1763 Add type checking to navigation primary key value creation.
1765 Create navigation primary key only if the expected type from the Glom
1766 document matches the type returned by the SQL query.
1768 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1770 2011-12-05 Ben Konrath <ben@bagu.org>
1772 Rename a couple of variables in RelatedListNavigation.
1774 This is a rename-only refactor.
1776 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1778 2011-12-05 Ben Konrath <ben@bagu.org>
1780 Move getListLayoutGroup() into getListViewLayoutGroup().
1782 This removes getListLayoutGroup(). It was only being called by
1783 getListViewLayoutGroup().
1785 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1787 2011-12-05 Ben Konrath <ben@bagu.org>
1789 Remove check for LayoutItem_Portal in list table method.
1791 This check is no longer necessary because the method isn't being used
1792 to create the LayoutItemPortal DTO.
1794 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1796 2011-12-05 Ben Konrath <ben@bagu.org>
1798 Properly support related list navigation.
1800 Navigation from the "Repository Analyzer -> Package Scans ->
1801 Dependencies" related table wasn't working because the primary key for
1802 related tables wasn't being set properly. This commit fixes the
1805 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
1806 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
1807 doesn't set the primary key properly for related list tables.
1808 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
1809 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
1810 useful for getting the primary key for list view tables and for related
1812 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1813 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1814 Move code to set the primary key for the table from the abstract
1815 ListDBAccess class to ListViewDBAccess as it's only correct for list
1817 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1818 Properly add primary key to related list tables.
1820 2011-12-02 Ben Konrath <ben@bagu.org>
1822 Properly set the horizontal alignment of fields.
1824 This fix is for both the list tables and the details view.
1826 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1827 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
1828 to set the horizontal alignment of fields.
1830 2011-12-02 Ben Konrath <ben@bagu.org>
1832 Display currency codes in the details view.
1834 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1836 2011-12-02 Ben Konrath <ben@bagu.org>
1838 Avoid duplicate JNI call.
1840 JNI is not as efficient as pure Java and this is an easy (and small)
1843 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1844 Use previously retrieved value for whereClauseToTableName instead of
1847 2011-12-02 Ben Konrath <ben@bagu.org>
1849 Rename a couple of variables in RelatedListNavigation.
1851 This is a rename-only refactor.
1853 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1855 2011-12-02 Ben Konrath <ben@bagu.org>
1857 Indicate clearly that a mismatched primary key type is a bug.
1859 * src/main/java/org/glom/web/server/Utils.java: Change log level from
1860 warning to error. Add 'This is a bug.' to message.
1862 2011-12-02 Ben Konrath <ben@bagu.org>
1864 Update / fix some comments.
1866 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
1868 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
1870 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1871 Fix comments. Add some TODOs.
1873 2011-12-02 Ben Konrath <ben@bagu.org>
1875 Enable navigation to details view with string primary key from related list.
1877 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1878 Create a text primary key value when return type of result is
1879 java.sql.Types.VARCHAR.
1881 2011-12-02 Ben Konrath <ben@bagu.org>
1883 Use checkboxes for booleans in the details view.
1885 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1887 2011-12-01 Ben Konrath <ben@bagu.org>
1889 Improve performance of related list height calculation.
1891 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1892 Put code to calculate the expected height in a static initializer so
1893 that that it's only called once.
1895 2011-12-01 Ben Konrath <ben@bagu.org>
1897 Show related list tables in notebooks (again).
1899 Calculate the height of the related list tables so the Notebook can be
1900 set the correct height. The height of the related list table is also needed by
1901 FlowTable to be able decide how to create the layout.
1903 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
1904 and set the Portal height based on the height of the related list
1905 table and the Portal container.
1906 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1907 Add method to calculate the height of the related list tables.
1908 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1909 * src/main/webapp/style.css: Add css class for Pager. This is needed to
1910 calculate the height of the Pager widget.
1912 2011-12-01 Ben Konrath <ben@bagu.org>
1914 Use CellTable API for table property instead of setting style on Element.
1916 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1918 2011-12-01 Ben Konrath <ben@bagu.org>
1920 Make ListViewTable and RelatedListTable a consistent height.
1922 The tables are now a consistent height regardless of the contents of
1923 the table. A hidden button is added to empty rows to ensure that the
1924 height of these rows will match the height of rows with data.
1926 A navigation button column is now added to every table. The width of
1927 the navigation column is set to 0px when a RelatedListTable shouldn't
1928 have navigation buttons. This maintains the a consistent row height in
1929 tables that don't show the navigation buttons.
1931 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
1932 navigation column when not needed.
1933 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
1934 arguments for navigation button to constructor of ListViewTable.
1935 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
1936 hidden button for empty data rows.
1937 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
1938 arguments for navigation button to constructor.
1939 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
1940 create navigation buttons. Add hideNavigationButtons() method.
1941 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
1942 arguments for navigation button to constructor.
1944 2011-12-01 Ben Konrath <ben@bagu.org>
1946 Use 'visibility: hidden' in Utils.getWidgetHeight().
1948 This is better choice because hidden elements are invisible, don't
1949 respond to events and are not part of the tab order. They will,
1950 however, take up space which is required to be able to calculate the
1951 height of the widget.
1953 * src/main/java/org/glom/web/client/Utils.java:
1955 2011-12-01 Ben Konrath <ben@bagu.org>
1957 Use Utils.getWidgetHeight() in FlowTable.
1959 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
1961 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1963 2011-12-01 Ben Konrath <ben@bagu.org>
1965 Put the details css class name on the correct table column.
1967 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1969 2011-11-30 Ben Konrath <ben@bagu.org>
1971 Update for java-libglom API change.
1973 The getters and setters on FieldFormatting and NumericFormat were
1974 changed to remove the 'M'.
1976 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1978 2011-11-29 Ben Konrath <ben@bagu.org>
1980 Only allow RelatedListTables in Portals.
1982 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1984 2011-11-29 Ben Konrath <ben@bagu.org>
1986 Only create a contents panel for Portals when title is being set.
1988 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1990 2011-11-29 Ben Konrath <ben@bagu.org>
1992 Set TabLayoutPanel height based on calculated height its widgets.
1994 This is a potential fix for this bug:
1996 https://bugzilla.gnome.org/show_bug.cgi?id=665133
1998 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2000 2011-11-29 Ben Konrath <ben@bagu.org>
2002 Align details field labels and data with the Open buttons.
2004 * src/main/webapp/style.css:
2006 2011-11-29 Ben Konrath <ben@bagu.org>
2008 Remove unnecessary <div> in the Notebook widget.
2010 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
2011 method to get container FlowPanel (<div>).
2012 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
2013 initWidget() method directly on the TabLayoutPanel widget instead of
2014 Group's container widget.
2016 2011-11-29 Ben Konrath <ben@bagu.org>
2018 Don't add group titles for Portals in Notebooks.
2020 This reverts the previous patch and fixes a bug I introduced with
2021 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
2023 * src/main/java/org/glom/web/client/ui/details/Group.java:
2024 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2026 2011-11-28 Ben Konrath <ben@bagu.org>
2028 Remove unused boolean argument in Portal constructor.
2030 Just a code cleanup.
2032 * src/main/java/org/glom/web/client/ui/details/Group.java:
2033 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2035 2011-11-28 Ben Konrath <ben@bagu.org>
2037 Remove hack for glom 1.18 style glom files.
2039 * src/main/java/org/glom/web/client/ui/details/Group.java:
2040 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2041 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2043 2011-11-28 Ben Konrath <ben@bagu.org>
2045 Use Gda Value version of primary key to log result too large error.
2047 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2049 2011-11-28 Ben Konrath <ben@bagu.org>
2051 Don't use TypedDataItem.getText() for Unknown types from the URL.
2053 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2054 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
2055 instead of getText().
2056 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
2057 String field and getUnknown() method.
2059 2011-11-28 Ben Konrath <ben@bagu.org>
2061 Log an error message when the java-libglom .so is not present.
2063 The error message was being set in the exception but not logged.
2065 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2067 2011-11-28 Ben Konrath <ben@bagu.org>
2069 Ignore LayoutItem_CalendarPortals.
2071 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
2072 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
2074 2011-11-28 Ben Konrath <ben@bagu.org>
2076 Extract method for creating the LayoutItemPortal DTO.
2078 Just breaking the code up into smaller chunks.
2080 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2082 2011-11-28 Ben Konrath <ben@bagu.org>
2086 This should have been added with the refactor. Oops!
2088 * src/main/java/org/glom/web/shared/TypedDataItem.java:
2090 2011-11-28 Ben Konrath <ben@bagu.org>
2092 Create primary key value from URL string using type from Glom document.
2094 See this bug, comments 19 - 25:
2096 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
2098 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
2099 create a TypeDataItem for the primary key here when loading from a
2100 URL. Show the same string for the primary key value as was received
2101 from the URL string (when loading from a URL).
2102 * src/main/java/org/glom/web/server/Utils.java: Update method for
2103 creating the Gda Value from the TypeDataItem to properly deal with
2104 creating a Gda Value based on the Glom document type for the primary
2105 key value string when loading from a URL.
2106 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2107 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2108 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2109 Update for changed method name.
2111 2011-11-27 Ben Konrath <ben@bagu.org>
2113 Rename PrimaryKeyItem to TypedDataItem.
2115 The name PrimaryKeyItem suggests what the class should be used for.
2116 TypedDataItem is a neutral name that describes the class better.
2118 This is a rename-only refactor.
2120 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2121 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2122 * src/main/java/org/glom/web/client/Utils.java:
2123 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2124 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2125 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2126 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2127 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2128 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2130 * src/main/java/org/glom/web/server/Utils.java:
2131 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2132 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2133 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2134 * src/main/java/org/glom/web/shared/NavigationRecord.java:
2136 2011-11-25 Ben Konrath <ben@bagu.org>
2138 Improve Gda Value conversion from PrimaryKeyItem.
2140 The value from the PrimaryKeyItem is only used if its type match the
2141 type from the glom document.
2143 * src/main/java/org/glom/web/server/Utils.java:
2145 2011-11-25 Ben Konrath <ben@bagu.org>
2147 Manually check if the java-liblgom .so is visible to the JVM.
2149 It seems that Tomcat has problems when a static initializer throws an
2150 exception. This check is done before the first method call into
2151 java-libglom so that execution doesn't continue if the .so is not
2154 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2156 2011-11-25 Ben Konrath <ben@bagu.org>
2158 Improve browser configuration error messages.
2162 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2164 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2165 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2166 getConfigurationErrorMessage() method.
2167 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2168 Get and display a specific configuration error message when no Glom
2169 documents are found.
2170 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2171 Implement getConfigurationErrorMessage() method. Surround configuration
2172 code in the init() method with a try/catch block. This allows the
2173 errors to be caught while keeping the servlet available to retrieve the
2174 configuration error message.
2176 2011-11-25 Ben Konrath <ben@bagu.org>
2178 Don't use Strings to hold primary key values.
2180 The primary key values are now held in a new data object
2181 (PrimaryKeyItem) that holds type information and the primary key value
2182 using the correct type.
2184 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2185 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2187 PrimaryKeyItem instead of String to hold the primary key value.
2188 * src/main/java/org/glom/web/client/Utils.java: Remove
2189 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
2190 PrimaryKeyItem based on the GlomFieldType and the DataItem.
2191 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
2192 PrimaryKeyItem instead of String to hold the primary key value. Load
2193 document selection page when the documentID has not been set correctly.
2194 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
2195 DetailsPlace -> URL and URL -> DetailsPlace conversion with
2197 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2198 Return empty string for URL instead of "null".
2199 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2200 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2201 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2202 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2203 PrimaryKeyItem instead of String to hold primary key values.
2204 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
2205 PrimaryKeyValue to a Gda Value.
2206 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2207 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2208 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2209 Replace temporary database access code that uses the PrimaryKeyValue to
2210 Gda Value conversion.
2211 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
2212 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
2213 PrimaryKeyItem instead of String.
2214 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
2215 hold primary key values.
2217 2011-11-24 Ben Konrath <ben@bagu.org>
2219 Use newly added java-libglom API to create queries.
2221 This isn't finished. I still need to stop using Strings for primary key
2222 values in the client code.
2224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
2225 libglom to use fake connections so that retrieving the query string will
2227 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2228 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2229 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2230 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2231 Use the newly added libglom sql methods and classes to create the
2232 query. Add temporary hack to convert primary value strings to Gda
2235 2011-11-23 Ben Konrath <ben@bagu.org>
2237 Don't explicitly set the height of Portals.
2239 See comments 6 - 10 of this bug for details:
2241 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
2243 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2245 2011-11-23 Ben Konrath <ben@bagu.org>
2247 Use an HTML table instead of CSS for the FlowTable layout.
2249 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
2250 GWT's FlexTable to implement the FlowTable.
2251 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
2253 2011-11-18 Ben Konrath <ben@bagu.org>
2255 Add boolean example to HTML table mockup.
2257 * mockups/details-view-html-tables-text-entries.html:
2259 2011-11-17 Ben Konrath <ben@bagu.org>
2261 Ensure the pager buttons are always visible for related lists.
2263 To accomplish this, I've turned off text wrapping in the list view and
2264 related list tables for both the header and data text. The related list
2265 table now has a fixed layout so the it doesn't overflow its container.
2266 This is required to ensure that the cell text is clipped when it
2267 overflows the cell and an ellipsis is added to the right side of the
2268 cell when text is clipped.
2270 A fixed table layout for the related list table in the details view
2271 seems what we want for the details view anyway, so the side-effect is
2274 The ellipsis will only be displayed in Firefox >= 7.
2278 https://bugzilla.gnome.org/show_bug.cgi?id=662930
2280 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
2281 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
2282 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
2284 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2285 Set the 'table-layout: fixed' CSS property to the related list table.
2286 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
2287 'white-space: nowrap;' CSS property on both the list view and the
2288 related list tables.
2290 2011-11-16 Ben Konrath <ben@bagu.org>
2292 Rework the fix for empty notebook tab labels.
2294 Setting the empty group titles with its name caused problems for the
2295 details layout. Instead of using libglom's
2296 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
2297 to the client when the title is empty. This allows the Notebook to use
2298 the name when the title is empty without affecting anything else.
2300 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2301 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2303 2011-11-16 Ben Konrath <ben@bagu.org>
2305 Set group titles with name when title is empty.
2307 This fixes a problem with an empty notebook tab label in the Lesson
2308 Planner document. The forth tab in the notebook should be "Internet":
2310 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
2312 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2313 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
2316 2011-11-16 Ben Konrath <ben@bagu.org>
2318 Remove whitespace from the configured username properties.
2320 This assumes that usernames won't have whitespace at the beginning
2321 or end. But I think this is a reasonable assumption.
2323 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2324 String.trim() to remove the whitespace from the username properties.
2326 2011-11-15 Ben Konrath <ben@bagu.org>
2328 Add details view mockup with HTML tables and text entries.
2330 This is from the attachment on this bug:
2332 https://bugzilla.gnome.org/show_bug.cgi?id=663109
2334 * mockups/details-view-html-tables-text-entries.html:
2336 2011-11-15 Ben Konrath <ben@bagu.org>
2338 Add space between the columns of the flow table.
2342 https://bugzilla.gnome.org/show_bug.cgi?id=662918
2344 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
2345 space between columns in the flow table.
2347 2011-11-15 Ben Konrath <ben@bagu.org>
2349 Add backup files to the .gitignore.
2351 * .gitignore: Ignore files that end with ~.
2353 2011-11-09 Ben Konrath <ben@bagu.org>
2355 Use latest release of gwt-log.
2357 Gwt-log releases are now being submitted to the maven central
2358 repository so manual installation of the jar is no longer required.
2360 * pom.xml: Update version and groupId of gwt-log dependency.
2362 2011-10-31 Ben Konrath <ben@bagu.org>
2364 Don't use GWT numeric formatting to override the glom currency formatting.
2366 Currencies are now displayed like they are in Glom. See this bug:
2368 https://bugzilla.gnome.org/show_bug.cgi?id=646216
2370 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
2372 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
2373 currency code to constructor and set it when the cell is rendered.
2374 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2375 currency code to the constructor of the NumericCell.
2377 2011-10-27 Ben Konrath <ben@bagu.org>
2379 Require the latest release of java-libglom (1.17.4).
2383 2011-10-26 Ben Konrath <ben@bagu.org>
2385 Add style to Notebook that matches current theme.
2387 It's not the best style in the world but it's better than the default.
2389 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
2390 padding at the bottom of the child widgets.
2391 * src/main/webapp/style.css: Add style for the Notebook.
2393 2011-10-26 Ben Konrath <ben@bagu.org>
2395 Move servlet initialization code to overridden init method.
2397 This is half of the solution to getting proper error messages
2398 displayed when configuration errors occur. Here's the relevant bug:
2400 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2402 The rest of the solution involves surrounding the init method with a
2403 try/catch block and setting a global variable with the error /
2404 exception. A new async method should be created to retrieve and display
2405 the error message / exception.
2407 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
2408 code from constructor to init method adding exceptions as needed.
2410 2011-10-26 Ben Konrath <ben@bagu.org>
2412 Add script to monitor and restart tomcat if required.
2414 * utils/check-and-recover-tomcat.py: New file.
2416 2011-10-26 Ben Konrath <ben@bagu.org>
2418 Display the correct number of data items in the pager.
2422 https://bugzilla.gnome.org/show_bug.cgi?id=661441
2424 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2425 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2426 The implementation is the same for both tables: Keep track of the
2427 number of non-empty rows and fire and RowCountChangeEvent after the data has
2429 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
2430 custom Pager class that subclasses SimplePager to handle displaying
2431 the correct number when empty rows have been added.
2433 2011-10-26 Ben Konrath <ben@bagu.org>
2435 Correct error in previous commit.
2437 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
2438 eventBus parameter from listView.setCellTable().
2440 2011-10-26 Ben Konrath <ben@bagu.org>
2442 Fix error in TODO comment.
2444 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2446 2011-10-24 Ben Konrath <ben@bagu.org>
2448 Create Notebook widgets to the details view.
2450 This isn't finished just yet - I still need to create a reasonable
2451 style to match the current theme.
2453 * src/main/java/org/glom/web/client/Utils.java: Add method for
2454 calculating the height of a widget. This is used in the Notebook class.
2455 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2456 new constructor method in Group.
2457 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
2458 method for creating child widget that can be used by subclasses
2459 like Notebook. New constructor that allows disabling the group
2460 titles - Notebooks don't set a group title for their child groups.
2461 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
2462 to make Notebooks using GWT's TabLayoutPanel.
2463 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
2464 constructor that allows disabling the group titles.
2465 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
2466 LayoutItemNotebook DTO.
2467 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
2468 DTO for Notebooks. It's just an empty class for now but we might need
2469 it to transfer some specific information in the future.
2471 2011-10-21 Ben Konrath <ben@bagu.org>
2473 Add navigation buttons to related list tables.
2475 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2476 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2477 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
2478 method getSuitableRecordToViewDetails() for getting the table name
2479 and primary key value for related list navigation buttons.
2480 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2481 private cell renderer class to get the navigation information for
2482 related list tables from the server. Extract the navigation
2483 processing code from the details cell navigation and use it for the
2484 related list navigation as well.
2485 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
2486 cell renderer class for the details open buttons. This was needed
2487 because the related list navigation buttons and the list view
2488 navigation buttons need to react differently when clicked.
2489 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
2490 the onEnterKeyDown() method because it's now overriden in the
2491 subclasses that are specific to the related list tables and the list
2493 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
2494 the vertical size a little because the buttons add a bit of vertical
2495 space to table. This is not a perfect solution because the vertical
2496 size of with table fewer than 5 rows will be a little smaller.
2497 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
2498 changes in how navigation buttons are handled.
2499 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
2500 getSuitableRecordToViewDetails() using the new RelatedListNavigation
2501 database access object.
2502 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
2503 to find the portal for a given relationship name from
2504 RelatedListDBAccess. Add method to find a primary key field for a
2506 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2507 Move code to find the portal for a given relationship name to
2509 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2510 New file: database access object for getting the related list
2511 navigation information (the table name and the primary key value).
2512 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
2513 DTO for transferring a table name to navigate to and a primary key
2515 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2516 boolean and getter/setter to specifies if the related list should add
2519 2011-10-24 Murray Cumming <murrayc@murrayc.com>
2521 Use the master branch of java-libglom
2523 * pom.xml: Depend on java-libglom 1.19 instead.
2525 This is the master branch. See also the libglom-1-18 branch.
2527 2011-10-11 Ben Konrath <ben@bagu.org>
2529 Enable the open navigation button when the data has been set.
2531 This avoids having active buttons that don't do anything when the data
2534 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2536 2011-10-11 Ben Konrath <ben@bagu.org>
2538 Use IsWidget interface for FlowTableItem.
2540 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
2541 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
2543 2011-10-11 Ben Konrath <ben@bagu.org>
2545 Remove GWT styling from open button in details view.
2547 There are still some issues with how the details cell is arranged but
2548 this should be made to match Glom 1.20. I'm going to leave fixing this
2549 until I have Glom 1.20 up and running.
2551 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
2552 style name on open button.
2553 * src/main/webapp/style.css: Move and edit details-navigation class.
2554 Re-arrange some classes to make them appear in the same order as the
2557 2011-10-07 Ben Konrath <ben@bagu.org>
2559 Update to GWT 2.4.0.
2561 * .gitignore: Ignore new cache directory.
2562 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
2563 * pom.xml: Change GWT and maven plugin to 2.4.0.
2564 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
2566 * src/main/java/org/glom/web/client/ClientFactory.java:
2567 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2568 * src/main/java/org/glom/web/client/OnlineGlom.java:
2569 Update source for API changes.
2570 * utils/build-onlineglom-war.sh: Remove cache directory before the
2573 2011-10-07 Ben Konrath <ben@bagu.org>
2575 Add navigation buttons in the details view.
2577 This isn't finished but I thought I'd commit what I have as it's a
2578 pretty good start. I still need to:
2580 1. Change the style so that it fits better into the current theme
2581 2. Adjust the details cell to expand as much as possible.
2583 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2584 click handlers to navigation buttons in the DetailsCells. Create a
2585 refreshData() method to get just the data from the server without the
2587 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2588 Update the tableSelector and browser title when the table name
2589 changes without using the tableSelector.
2590 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2591 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2592 getDetailsCells() to getCells(). Update variable names.
2593 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
2594 method to set click handler on navigation button. Rename a few
2595 variables. Add navigation buttons where needed.
2596 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
2597 variables and methods.
2598 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
2599 navigation boolean and navigation table as required in the
2600 LayoutItemField DTO.
2601 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2602 variables for navigation along with getter/setter methods.
2604 2011-10-07 Ben Konrath <ben@bagu.org>
2606 Rename Field to DetailsCell.
2608 This is a refactor-only commit. No functionality has been added or
2611 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2612 Update variable and method names.
2613 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2614 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
2615 variable and method names.
2616 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2618 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
2619 variable and method names.
2621 2011-10-07 Ben Konrath <ben@bagu.org>
2623 Create separate methods for layout and data the details view.
2625 This is a refactor-only commit. No functionality has been added or
2628 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
2629 private methods: setData(), createLayout().
2631 2011-10-07 Ben Konrath <ben@bagu.org>
2633 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
2635 This is part of a change to get navigation buttons in the details view
2636 but it should have been done this way from the start.
2638 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2639 for method name change in TableSelectionView.
2640 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2641 Create TableChangeEvent and set the browser title using the
2642 TableSelectionView API.
2643 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2644 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2645 Change getSelectedTable() to getSelectedTableName(). Add
2646 getSelectedTableTitle().
2648 2011-10-07 Ben Konrath <ben@bagu.org>
2650 Use primaryKeyValue naming convention in constructor of DetailsPlace.
2652 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2654 2011-10-07 Ben Konrath <ben@bagu.org>
2656 Update TableChangeEvent to use newTableName naming convention.
2658 This makes the class more consistent with GWT naming conventions.
2660 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2661 Update for method name change in TableChangeEvent.
2662 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2663 for method name change in TableChangeEvent.
2664 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
2665 newTableName variable and getter method. Make toDebugString()
2668 2011-09-30 Ben Konrath <ben@bagu.org>
2670 Disable the pager in the list tables when the data row count is less than the minimum.
2672 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2673 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2675 2011-09-30 Ben Konrath <ben@bagu.org>
2677 Add empty rows to the end of related list and list view tables.
2679 I also extracted the cell rendering classes from the ListTable because
2680 the code was becoming a little crazy with all the anonymous inner
2681 classes. My plan is to use these cell rendering classes in the details
2682 view as well so this refactor will be needed for that change.
2684 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
2685 set the row count in related list tables if the data has more rows
2686 than the minimum number of rows visible.
2687 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
2688 row count in list view tables if the data has more rows than the
2689 minimum number of rows visible.
2690 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
2691 for rendering TYPE_BOOLEAN cells. The code was extracted from the
2693 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
2694 for rendering TYPE_NUMERIC cells. The code was extracted from the
2696 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
2697 class for rendering cells with buttons in list views. The code was
2698 extracted from the ListTable class.
2699 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
2700 for rendering TYPE_TEXT cells. The code was extracted from the
2702 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2703 Add empty rows to the end of the data if required. Implement
2704 ListTable.getMinNumVisibleRows().
2705 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
2706 cell renderer code to public classes. Return null in
2707 Column.getValue() for empty rows. Add new abstract method:
2708 getMinNumVisibleRows(). Move code to set the row count of the list view
2709 table to ListViewImpl.
2710 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
2711 empty rows to the end of the data if required. Implement
2712 ListTable.getMinNumVisibleRows().
2715 2011-09-27 Ben Konrath <ben@bagu.org>
2717 Use GWT.log for client-side debugging statements.
2719 These are optimized out when deployed so I should have used this method
2720 in the first place. These statements will eventually be replaced with some sort
2721 of notification in the browser.
2723 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2724 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2725 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2726 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2727 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2729 2011-09-27 Ben Konrath <ben@bagu.org>
2731 Put tableselector on the right, back to list link on right.
2733 The idea is that the table selector is acting like a label for the
2734 currently displayed table so it should be placed below the document title. This
2735 puts the table title in a similar position to where it is in Glom.
2737 * mockups/details-contacts.html:
2738 * mockups/details-projects.html:
2739 * mockups/listview-contacts.html:
2740 * mockups/listview-projects.html:
2741 * mockups/style.css:
2742 Update mockups to match how the interfaces currently look.
2743 * src/main/webapp/style.css: Swap positions of backlink with the table
2744 selector. Add some space on the left side of the table selector to
2745 line things up with the document title.
2747 2011-09-27 Ben Konrath <ben@bagu.org>
2749 Add field colouring to details view.
2751 This change re-works how field colouring works. The colour formatting
2752 information is now set to the client with the layout information instead of
2753 with the data. This eliminates the need to send the same colour strings for
2754 data in list view column when colour information is set.
2756 In order to set an alternate colour for negative numeric values, the
2757 number is now sent to client and formatted with the GWT NumberFormat class.
2759 This change also fixes:
2761 https://bugzilla.gnome.org/show_bug.cgi?id=659752
2763 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
2764 internationalization framework which is needed for client side numeric
2766 * src/main/java/org/glom/web/client/Utils.java: New file for some
2767 client static utility methods.
2768 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2769 the DataItem object to the Field class. Use a utility method to
2770 create the foreignKeyValue string.
2771 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
2772 alignment and text colours in the constructor. Add setData(DataItem)
2773 method. Remove setText(String) method.
2774 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2775 colour information to GlomTextCell. Create and use GlomNumberCell for
2776 rendering numbers. Use utility method to get the string for the
2777 primary key of the key provider. Re-work how the horizontal alignment
2779 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2780 formatting to layout information. Methods for converting the libglom
2781 formatting information were moved from DBAccess.
2782 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
2783 numeric formatting (it's now done on the client side). Don't set text
2784 colours in DataItem. Move libglom formatting conversion methods to
2786 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
2787 getters/setters for text colour information.
2788 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
2789 for transferring the libglom NumericFormat information to the client.
2790 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
2791 and getters/setters for: GlomNumericFormat, background colour and
2792 foreground colour strings.
2794 2011-09-26 Ben Konrath <ben@bagu.org>
2796 Simplify code that iterates through the LayoutGroup.
2798 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2800 2011-09-26 Ben Konrath <ben@bagu.org>
2802 Accept Eclipse formatting for OnlineGlomServiceAsync.
2804 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2806 2011-09-26 Ben Konrath <ben@bagu.org>
2808 Don't use the ListDBAccess classes to get the primary key layout information.
2810 This was causing a bug where the wrong index for the hidden primary key
2811 was being sent to the client.
2813 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
2814 primary key while creating the LayoutGroup DTO. Create a
2815 LayoutItemField DTO for hidden primary keys. Don't use the
2816 RelatedListDBAccess because it was only used for getting the primary
2818 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
2819 access modifier from public to protected for getPrimaryKeyField() and
2820 getPrimaryKeyLayoutItemField().
2821 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
2822 abstract method getExpectedResultSize() because RelatedListDBAccess
2823 doesn't have enough info to implement it.
2824 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2825 Remove @Override for getExpectedResultSize().
2826 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2827 Remove method getExpectedResultSize().
2829 2011-09-23 Ben Konrath <ben@bagu.org>
2831 Log which layout (list or details) the ignored item is from.
2833 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2835 2011-09-23 Ben Konrath <ben@bagu.org>
2837 Remove annotations that turn off code formatting in DataItem.
2839 * src/main/java/org/glom/web/shared/DataItem.java:
2841 2011-09-23 Ben Konrath <ben@bagu.org>
2843 Rename GlomField to DataItem and update associated methods.
2845 This is a rename-only refactor. No functionality has been added or
2848 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2849 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2850 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2851 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2852 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2853 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2854 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2855 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2856 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2857 * src/main/java/org/glom/web/server/database/DBAccess.java:
2858 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2859 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2860 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2861 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2862 * src/main/java/org/glom/web/shared/DataItem.java:
2863 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
2864 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2866 2011-09-23 Ben Konrath <ben@bagu.org>
2868 Rename GlomDocument to DocumentInfo and update associated methods.
2870 This is a rename-only refactor. No functionality has been added or
2873 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2874 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2875 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2876 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2877 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2879 * src/main/java/org/glom/web/shared/DocumentInfo.java:
2881 2011-09-20 Ben Konrath <ben@bagu.org>
2883 Require java-libglom 1.17.3.
2885 This picks up the fix for the seg fault problem with the Scenes table
2886 in the Openismus Film Manager example.
2890 2011-09-20 Ben Konrath <ben@bagu.org>
2892 Change the way sort clause is added for primary key when no sort clause is requested.
2894 The primary key is now added to the LayoutFieldVector (fieldsToGet)
2895 before the sort clause is created. When a sort clause is not requested, the
2896 sort clause is created by finding the primary key in the LayoutFieldVector
2899 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2901 2011-09-20 Ben Konrath <ben@bagu.org>
2903 Log error message if no documents are found in the configured directory.
2905 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
2906 Extract the glom file extension string to a private static final class
2907 variable (mostly as syntactic sugar). Accept a minor formatting change.
2908 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
2909 the example glom.document.directory configuration property to make it
2910 more clear that it can any directory, not just the home directory.
2912 2011-09-18 Ben Konrath <ben@bagu.org>
2914 Add related lists to details view.
2916 The related list table has support for paging and sorting just like the
2917 table in the list view.
2919 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
2920 SQL queries for the related list tables.
2921 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2922 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2923 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2924 Rename getList methods to getListView and add comments. Remove
2925 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
2926 it being unused. Add methods: getDetailsLayoutAndData(),
2927 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
2928 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2929 Create the layout and set the data for the fields in one async call
2930 instead of two. Create related lists where appropriate.
2931 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
2932 for method name changes in OnlineGlomService.
2933 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2934 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2935 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
2937 * src/main/java/org/glom/web/client/ui/ListView.java:
2938 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
2939 tableName from setCellTable(). Create a ListViewTable instead of
2941 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
2942 represent a data field in the details view.
2943 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
2944 from addDetailsCell() to Field class. Keep track of the Fields and
2945 Portals in the details view.
2946 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
2947 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
2948 and add a method to get it. Add method to set the contents of the
2950 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2951 New class for related list tables. This class has the data provider
2952 for the related list table.
2953 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
2954 abstract class which is the base class for the ListViewTable and the
2956 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2957 New class for list view tables. This class has the data provider for
2958 the list view table.
2959 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2960 methods for related list tables. Add more information to the
2961 LayoutItemField and LayoutItemPortal DTOs.
2962 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2963 Remove debugging print statement.
2964 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2965 Remove debugging print statements. Add primary key field to SQL count
2967 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2968 Remove unnecessary LayoutFieldVector parameter from
2969 getResultSizeOfSQLQuery() method.
2970 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2971 New class for related list table database access.
2972 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
2973 class that is a wrapper DTO for details view layout and data.
2974 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2975 new 'fromField' string to this DTO.
2976 * src/main/webapp/style.css: Remove bottom margin and override top
2979 2011-09-15 Ben Konrath <ben@bagu.org>
2981 Breakup the OnlineGlomServiceImpl class to make it more manageable.
2983 This sets things up to make it easier to add the data retrieval for
2984 related lists (portals). No user noticeable changes were made with
2987 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
2988 class has the code to retrieve the layouts and access the
2989 database using the new database helper classes.
2990 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2991 Most of the functionality has been removed from this class. This
2992 class now represents the public interface for the client side
2993 code. It also deals with configuring the servlet and cleaning
2994 things up when the servlet is stopped.
2995 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
2996 of static methods into this utility class.
2997 * src/main/java/org/glom/web/server/database/DBAccess.java:
2998 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2999 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
3000 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
3001 These classes have the database retrieval code. The class hierarchy
3002 has been setup to make it easy to reuse code for similar
3005 2011-09-06 Ben Konrath <ben@bagu.org>
3007 Create separate classes for list table code and the data provider.
3009 As part of this refactor, I also split up the code a bit to make it
3012 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
3013 table code to two new classes (below).
3014 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
3015 with code from ListViewImpl.
3016 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
3017 New file with code from ListViewImpl.
3019 2011-09-06 Ben Konrath <ben@bagu.org>
3021 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
3023 This fixes the LayoutItemPortal DTO to match the libglom layout object
3026 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
3028 2011-09-01 Ben Konrath <ben@bagu.org>
3030 Set title of Portals in the Details View.
3032 * pom.xml: Bump required version of java-libglom to 1.17.1.
3033 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
3034 widget creation to its own class. Add comments to constructor.
3035 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
3036 The code is mostly from the Group class with the title now set.
3037 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
3038 title of Portal. Update some comments. Fix some code formatting.
3040 2011-09-01 Ben Konrath <ben@bagu.org>
3042 Remove TODO comment for the flow table column width.
3044 The flow table column width is working correctly and doesn't need to be
3045 changed. See this mailing list post for more info:
3047 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
3049 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
3051 2011-08-27 Ben Konrath <ben@bagu.org>
3053 Add document title (database name) to top of the browser page.
3055 I added the document title to the TableSelecitonView but that will
3056 change if / when we add a view that doesn't require table selection.
3058 * mockups/details-contacts.html:
3059 * mockups/details-projects.html:
3060 * mockups/listview-contacts.html:
3061 * mockups/listview-projects.html:
3062 * mockups/style.css: Add document title to mockups to keep things
3064 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
3065 sizes to account for the document title.
3066 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3067 Set the document title when it has been retrieved from the server.
3068 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3069 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
3070 and implement setDocumentTitle(String) method.
3071 * src/main/webapp/style.css: Add ID for document title style.
3073 2011-08-25 Ben Konrath <ben@bagu.org>
3075 Add NavigationType enum to LayoutItemPortal DTO.
3077 This is the start of adding support for Portals to the Details View.
3079 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
3080 LayoutItem_Portal.navigation_type enum from libglom to
3081 LayoutItemPortal.NavigationType enum.
3082 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
3083 NavigationType enum, field for storing the NavigationType and getter
3086 2011-08-25 Ben Konrath <ben@bagu.org>
3088 Implement the flow table layout in the Details View.
3090 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
3091 FlowTable to Group to account for the renamed class.
3092 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
3093 File. This is a container widget that implements the Glom details view
3094 flow table behaviour.
3095 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
3096 org/glom/web/client/ui/FlowTable.java.
3097 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
3098 so that the size of the subgroups are a closer match to the size of
3099 the Glom subgroups. This makes the flowtable layout match the layout
3100 in Glom for the Music Collection example file.
3102 2011-08-16 Ben Konrath <ben@bagu.org>
3104 Create container element for LayoutItemPortal in Details View.
3106 This will help me develop the layout for the FlowTable.
3108 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
3109 fieldPanel variable to detailsCell.
3111 2011-08-15 Ben Konrath <ben@bagu.org>
3113 Set the height of the data element in the Details View.
3115 I changed the InlineLabels (text in a span element) to Labels (text in
3116 a div element) so that I could set the height of the details-data
3117 elements instead of the details-cell parent elements. This allows the
3118 the details-data element to display the correct height if style is
3119 applied that shows the height.
3121 This change has the added benefit of allowing the order of the labels
3122 and data elements to be changed for right-to-left languages.
3124 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
3125 InlineLabels to Labels.
3126 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
3127 InlineLabels to Labels. Set the height of the data element.
3128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
3129 multiline text height in the Formatting DTO.
3130 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
3131 for multiline height along with getter and setter methods.
3132 * src/main/webapp/style.css: Adjust style to account for the change
3133 from span elements to div elements in the details cell.
3135 2011-08-15 Ben Konrath <ben@bagu.org>
3137 Make the List View appearance match the mockups.
3139 It doesn't match exactly but it's much better than it was.
3141 * mockups/listview-contacts.html: Remove unused css classes.
3142 * mockups/listview-projects.html: Remove unused css classes.
3143 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
3144 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
3145 for mainPanel instead of VerticalPanel (table). Set style name on
3146 CellTable. Set style name on Details column. Right-align Details
3148 * src/main/webapp/style.css: Adjust properties to match the mockups.
3150 2011-08-12 Ben Konrath <ben@bagu.org>
3152 Add better support for subgroups in the details view.
3154 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
3155 changed FlowTable constructor.
3156 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
3157 support for subgroups and subgroup-titles.
3158 * src/main/webapp/style.css: Add CSS class for subgroups and
3161 2011-08-12 Ben Konrath <ben@bagu.org>
3163 Return the top level LayoutGroup title.
3165 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3167 2011-08-11 Ben Konrath <ben@bagu.org>
3169 Make the TableSelector header match the mockup.
3171 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
3172 the layout panel. Properly lineup the table selection header with
3173 the list and details view.
3174 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
3175 margin around the details view.
3176 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3177 Rename listBox variable to tableSelector. Set id for the style sheet.
3178 Use a FlowPanel instead of a HorizontalPanel.
3179 * src/main/webapp/style.css: Add properties to make the TableSelector
3180 box match the mockups.
3182 2011-07-13 Ben Konrath <ben@bagu.org>
3184 Update install script for java-libglom version change.
3186 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
3189 2011-07-13 Ben Konrath <ben@bagu.org>
3191 Add support sub-group in the details view.
3193 I also removed the code that special-cased the default details view
3196 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
3198 I still have to make a proper flowtable.
3200 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3201 Don't special-case default details view layout.
3202 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
3203 addLayoutField() as I'm going to use it.
3204 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
3205 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
3207 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
3208 extracted from DetailsViewImpl.GroupPanel. Add support for
3210 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
3211 column count when getting the details layout.
3213 2011-07-12 Ben Konrath <ben@bagu.org>
3215 Set browser title with database and table titles.
3217 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3218 Set the browser title when the table changes and when the activity
3220 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
3221 title when retrieving document info (the GlomDocument object).
3222 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
3223 with getter and setter methods. Remove unused convenience constructor.
3224 Use default code formatting.
3226 2011-07-12 Ben Konrath <ben@bagu.org>
3228 Ignore LayoutItemPortals in the details view.
3230 I added a new DTO for the LayoutItemPortal so that I can ignore it in
3233 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
3234 LayoutItemPortal layout objects.
3235 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
3236 LayoutItemPortal objects when retrieving the details layout.
3237 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
3238 file. This is an empty class and just used to get type information for
3241 2011-07-12 Ben Konrath <ben@bagu.org>
3243 Use java-libglom 1.17.0.
3247 2011-07-11 Ben Konrath <ben@bagu.org>
3249 Remove "Table:" label from table selector.
3251 This matches a recent change in the Glom UI.
3253 * mockups/details-contacts.html:
3254 * mockups/details-projects.html:
3255 * mockups/listview-contacts.html:
3256 * mockups/listview-projects.html: Remove the "Table:" label from the
3258 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: