1 2012-05-24 Ben Konrath <ben@bagu.org>
3 Add configuration for auto-generating mvn:i18n from with Eclipse.
5 * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
7 2012-05-24 Murray Cumming <murrayc@murrayc.com>
9 Update translations, adding French.
11 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
12 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_fr.properties:
13 Add a French translation, using the translation from Glom.
15 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
16 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
17 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
18 Update these based on the translations from Glom.
20 2012-05-24 Murray Cumming <murrayc@murrayc.com>
22 SelfHoster: Add some debug println messages to help when things fail.
24 * src/test/java/org/glom/web/server/SelfHoster.java: Add several
25 System.out.println() lines.
27 2012-05-23 Murray Cumming <murrayc@murrayc.com>
29 Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
31 * src/test/java/org/glom/web/server/SelfHoster.java:
32 getPathToPostgresExecutable(): Try some common paths (as on Ubuntu, for
33 instance) instead of just /usr/bin (as on Fedora). Check the result when
36 2012-05-23 Murray Cumming <murrayc@murrayc.com>
38 Remove LayoutItemPortal.get/setNavigationTable().
40 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
41 Remove get/setNavigationTable(), which is only a cache, because it is not
42 used, and does not need to be used, because that decision should be made on
44 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
45 updatePortalsExtras():
46 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
47 getNavigationRecord():
48 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
51 2012-05-21 Murray Cumming <murrayc@murrayc.com>
53 Initial self-hosting for tests.
55 * pom.xml: Change the scope for log4j, to hopefully make it
56 available to the test code which uses it indirectly via jOOQ.
57 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Allow
58 self-hosting, though we only use it for testing.
60 * src/main/java/org/glom/web/server/libglom/Document.java:
61 example rows: Use a map instead of a list for each row of values,
62 so we know what field they are for, instead of relying on the sequence
63 being correct. This is not very efficient, but it does not really need
65 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
66 testReadTableExampleRows(): Adapted.
68 * src/main/java/org/glom/web/shared/DataItem.java: Added getValue()
69 that returns an Object, for generic use. Note that Object seems to be
70 the implicit base even of double.
71 * src/main/java/org/glom/web/shared/libglom/Field.java: Add getSqlType(),
72 for use in CREATE TABLE SQL queries.
73 * src/test/java/org/glom/web/server/SelfHoster.java: Add this class
74 to do self-hosting of PostgreSQL databases via its command-line
75 utilities, based on Glom's C++ code in test_selfhosting_utils.cc and
76 backends/postgres_self.cc. This is incomplete - it needs more
77 warnings about failures and it needs to clean up properly when things
79 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple
80 test of this new class.
82 2012-05-21 Murray Cumming <murrayc@murrayc.com>
84 Document: loading example data: Handle exceptions.
86 * src/main/java/org/glom/web/server/libglom/Document.java:
87 DateFormat.parse() and Double.valueOf() can throw exceptions, though
88 Eclipse did not warn about that.
90 2012-05-20 Murray Cumming <murrayc@murrayc.com>
92 Document: load(), save(): Handle the example rows.
94 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate()
96 * src/main/java/org/glom/web/server/libglom/Document.java:
97 load(), save(): Load and save the example rows, though the date, time
98 and image types are not handled properly yet.
99 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
100 Add testReadTableExampleRows() just to check that something is read.
102 2012-05-20 Murray Cumming <murrayc@murrayc.com>
104 Document: Add save().
106 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
107 Added getTranslationsMap() for use while saving.
108 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
109 Adedd getUseDefaultFormatting() for use while saving.
110 * src/main/java/org/glom/web/server/libglom/Document.java: Added save()
111 and several private methods that it uses.
113 This will be useful while testing via self-hosting.
114 It is not complete, but should be complete enough for testing.
116 2012-05-17 Murray Cumming <murrayc@murrayc.com>
118 OnlineGlomService: Simplify the getList/RelatedViewData() methods.
120 * src/main/java/org/glom/web/client/OnlineGlomService.java
121 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
122 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
123 Remove getSortedListViewData() and getSortedRelatedListData(), adding
124 the sort column index and ascending bool to the regular method.
125 Instead, a sort column index of -1 now means no sort.
126 This is less explicit, but it's fairly simple, reduces the amount of
127 code, and makes the OnlineGlomService API slightly smaller.
128 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
129 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
131 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
132 getListViewData(), getRelatedListData():
133 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
134 getListViewData(), getRelatedListData():
135 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
137 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
139 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
144 2012-05-16 Murray Cumming <murrayc@murrayc.com>
146 Use translations for top-level groups too.
148 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
149 updateTitlesForLocale(): Use the translation for the group
150 as well as for child items.
154 Just recompiled to fix a problem in the released .tar.gz file.
158 2012-05-15 Murray Cumming <murrayc@murrayc.com>
160 Corrections to navigation to related records.
162 * src/main/java/org/glom/web/client/OnlineGlomService.java:
163 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
165 getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
166 getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a
167 relationship name, because the relationship name is not necessarily unique
169 TOOD: This is inefficient, because it passes the whole list of
170 child field items back to the server, but it is more correct, and happens
171 to fix a bug with the primary key being lost after a few navigations.
172 There is probably a chance to make this more efficient anyway in some
175 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
176 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
177 * src/main/java/org/glom/web/server/ConfiguredDocument.java
178 * src/main/java/org/glom/web/server/database/DBAccess.java
179 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
180 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
183 2012-05-15 Murray Cumming <murrayc@murrayc.com>
185 Fix the use of translations.
187 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
188 Add updateTitlesForLocale().
189 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
190 Call it to discard unwanted translations and to make getTitle() return
191 the wanted translation wihout the need for the client code to specify a locale.
192 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
193 getTitle(): Fallback to the original title, as libglom does.
195 2012-05-15 Murray Cumming <murrayc@murrayc.com>
197 Document: Correctly report the number of available translation locales.
199 * src/main/java/org/glom/web/server/libglom/Document.java: Fill
200 the available locale IDs list.
201 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
202 testLocales: Test this.
204 2012-05-15 Murray Cumming <murrayc@murrayc.com>
206 SqlUtils: Use camelCase.
208 * src/main/java/org/glom/web/server/SqlUtils.java: Use camelCase.
209 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
210 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
211 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
212 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
213 * src/main/java/org/glom/web/server/ReportGenerator.java: Adapt.
215 2012-05-15 Murray Cumming <murrayc@murrayc.com>
217 Use jOOQ's tableByName() and fieldByName.
219 * pom.xml: Use jOOQ 2.3.1 to get the new API.
220 * src/main/java/org/glom/web/server/SqlUtils.java:
221 build_sql_select_step_with_where_clause(), .createField(),
222 builder_add_join(): Use Factory.tableByName() and Factory.fieldByName()
223 so we can get correct quoting and escaping. Thanks to Lukas Eder for
224 adding this, and other things, to jOOQ.
226 2012-05-15 Murray Cumming <murrayc@murrayc.com>
228 SqlUtils: Remove the Connection parameters.
230 * src/main/java/org/glom/web/server/SqlUtils.java:
231 build_sql_select_with_key(), build_sql_select_with_where_clause(),
232 createSelect(), build_sql_select_step_with_where_clause(),
233 build_sql_count_select_with_where_clause(),
234 build_sql_select_count_rows(): Remove the Connection parameter because
235 jOOQ does not actually need a connectionwhen it is just used to build
237 https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
239 * src/main/java/org/glom/web/server/ReportGenerator.java:
241 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
243 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
244 Constructor, getListData(), getResultSizeOfSQLQuery():
245 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
246 getSelectQuery(), getCountQuery():
247 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
248 getSelectQuery(), getCountQuery():
249 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
250 getNavigationRecord(): Adapted.
252 2012-05-14 Murray Cumming <murrayc@murrayc.com>
256 * src/main/java/org/glom/web/server/SqlUtils.java:
257 get_find_where_clause_quick(): Use a comparison of
258 lowercase values, instead of a simple equals. Regular Glom
259 uses the PostgreSQL ILIKE operator but jOOQ does not
260 support that just yet, though it will soon.
262 2012-05-14 Murray Cumming <murrayc@murrayc.com>
264 TableToViewDetails: Use a real serialization ID.
266 * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
267 Though this does not fix the serialization problem.
269 2012-05-12 Murray Cumming <murrayc@murrayc.com>
271 Added LayoutItemPortalDeepCloneTest.
273 2012-05-11 Murray Cumming <murrayc@murrayc.com>
275 Make navigation work again.
277 * src/main/java/org/glom/web/server/libglom/Document.java:
278 Add getLayoutItemFieldShouldHaveNavigation().
279 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
280 Replace get/setAddNavigation() with the partly-existing
281 get/setNavigationTableName(), with an empty string being no navigation,
282 because this is simpler. Use the new
283 Document.getLayoutItemFieldShouldHaveNavigation() method to set this.
285 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
286 Add updateFieldsExtras() and call setNavigationTableName in it.
287 getDetailsLayoutGroup(),
288 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
289 createLayout(): Adapted.
290 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
291 Constructor: Adapted.
293 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
294 Replace get/setAddNavigation() with get/setNavigation(), returning a
295 TableToViewDetails class with both the table name and UsesRelationship,
296 because both are need. The previous code used java-libglom's output
297 variable (strangely, via sharedptr) to return both, but we cannot really
299 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
300 getNavigationRecord(): Adapt. However, we cannot actually use the cache
301 here because it somehow gets set to null during deepCopy(). I must test this.
302 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
303 testGetSuitableTableToViewDetails(): Adapted.
305 TODO: Find out why deepClone() is not quite working.
307 2012-05-11 Murray Cumming <murrayc@murrayc.com>
309 DBAccess: Simplify the retrievel of full field details.
311 * src/main/java/org/glom/web/server/database/DBAccess.java
312 getFieldsToShowForSQLQueryAddGroup(). This might be unnecessary anyway,
313 because the Document loading should have done this.
315 2012-05-11 Murray Cumming <murrayc@murrayc.com>
317 Document: Correct loading of doubly-related layout fields.
319 * src/main/java/org/glom/web/server/libglom/Document.java:
320 loadUsesRelationship(): Actually set the related relationship, instead
321 of only setting it if it's not found.
323 2012-05-09 Murray Cumming <murrayc@murrayc.com>
325 Replace all appearances of Colour with color.
327 Because US English is dominant.
329 2012-05-09 Murray Cumming <murrayc@murrayc.com>
331 Use colors in HTML format, solving a warning about an unused function.
333 * src/main/java/org/glom/web/shared/libglom/NumericFormat.java
334 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
335 Add *asHTMLColor() versions of methods.
336 TODO: However, we should create and cache the results on the server.
337 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
338 * src/main/java/org/glom/web/client/ui/list/ListTable.java
339 * src/main/java/org/glom/web/server/ConfiguredDocument.java
340 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
341 Use the asHTMLcolor() versions.
343 2012-05-09 Murray Cumming <murrayc@murrayc.com>
345 ListViewTable: Constructor: Take the table name as a parameter.
347 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
348 Constructor: Take the tableName, and set the member variable, because
350 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
351 setCellTable(): Pass the table name.
352 This makes navigation to non-default tables work again. I don't know
353 why it worked before in the master branch.
355 2012-05-07 Murray Cumming <murrayc@murrayc.com>
357 ConfiguredDocument: Restore correct addition of hidden primary key items.
359 * src/main/java/org/glom/web/client/ui/list/ListTable.java
360 (ListTable.createCellTable): Uncomment out the check for the hidden
362 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Only
363 add primary key items for top-level lists and portals, as before,
364 instead of adding them to each group.
365 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java:
366 Actually implement the extra methods such as setHiddenPrimaryKey() and
367 comment that these are used only for top-level list groups and in portals.
368 This strangeness suggests even more that this should not be squeezed
369 into the LayoutGroup class.
371 2012-05-07 Murray Cumming <murrayc@murrayc.com>
373 Fix Formatting loading.
375 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
376 getFormattingUsed(): Remove the duplicate Formatting member variable
377 in favour of the one from the base class.
378 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
379 Initialize a new Formatting instead of using null by default, so we
380 have some defaults, instead of having to initialize one later just to
381 get the same defaults. This also makes loading of formatting from the
382 document work, because that expected a non-null.
384 2012-05-07 Murray Cumming <murrayc@murrayc.com>
386 RelatedListTable: Make sure that the tableName is set.
388 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
389 Constructor: Take the tableName so it is available later. Otherwise,
390 the server assumes that we mean the default table and cannot find the
392 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
393 setData(): Pass the tableName to the RelatedListTable constructor.
395 2012-05-07 Murray Cumming <murrayc@murrayc.com>
399 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
400 RelatedListNavigationButtonCell.onEnterKeyDown(), setData():
401 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
403 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
405 * src/main/java/org/glom/web/server/database/DBAccess.java:
406 convertResultSetToDTO(), getPortal():
407 * src/main/java/org/glom/web/server/database/ListDBAccess.java
409 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
410 Add checks for null objects and out of range access, with log messages to
411 give hints so we can fix these properly.
413 2012-05-07 Murray Cumming <murrayc@murrayc.com>
415 Portals: some corrections.
417 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
419 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
420 constructor: Use getRelationshipNameUsed() instead of getName(), because
421 that is what is meant.
422 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
423 getFromField(): Fix a typo, to get the field name, not the table name.
424 * src/main/java/org/glom/web/server/database/DBAccess.java:
425 getPortal(): Fix a typo that stopped this from working.
427 2012-05-07 Murray Cumming <murrayc@murrayc.com>
429 LayoutItemPortal: Also override getTitleOriginal().
431 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
432 This lets the base getTitle() with no parameters work.
433 TODO: Test this properly.
435 2012-05-06 Murray Cumming <murrayc@murrayc.com>
437 LayoutItemPortal: getTitle*(): Use the relationship title.
439 2012-05-06 Murray Cumming <murrayc@murrayc.com>
441 LayoutItemField: Fix loading of custom titles.
443 * src/main/java/org/glom/web/server/libglom/Document.java
444 loadDataLayoutItemField(): The title, if any, instead of the field
445 title, is stored in a title_custom node. Load it from there.
446 * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
448 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
449 Add getCustomTitle() and use it, instead of super.getTitle*(), in the
450 getTitle*() overrides.
451 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
454 2012-05-06 Murray Cumming <murrayc@murrayc.com>
456 LayoutItemField: Fall back to field titles, so some are really shown.
458 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
459 Override getTitleOriginal() and getTitle(), as in java-libglom.
460 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
463 2012-05-06 Murray Cumming <murrayc@murrayc.com>
465 Correct use of setExpectedResultSize().
467 * src/main/java/org/glom/web/server/ConfiguredDocument.java
468 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
469 Use setExpectedResultSize only on top-level groups (for instance, the
470 list layout) or on child portals (in details views).
471 Use the correct table name for portals to avoid SQL errors.
472 Update the expected counts when returning cached layouts.
474 2012-05-06 Murray Cumming <murrayc@murrayc.com>
476 Document: Interpret no group column count as 1.
478 * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
479 default, though we now check for this in the UI code anyway.
481 2012-05-06 Murray Cumming <murrayc@murrayc.com>
485 2012-05-06 Murray Cumming <murrayc@murrayc.com>
487 Translatable: Use Hashmap instead of Treemap because GWT supports it.
489 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
490 The use of Treemap lead to this error from async methods, with no
492 "The response could not be deserialized"
494 2012-05-06 Murray Cumming <murrayc@murrayc.com>
496 OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
498 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary
499 when using the Google -> GWT Compile, or
500 g toolbar button -> GWT Compile Project... feature in Eclipse.
502 2012-05-06 Murray Cumming <murrayc@murrayc.com>
504 ListTable.addColumn(): Protect against a null Formatting.
506 * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
507 Create a default Formatting if it is null, because that is the simplest
510 2012-05-06 Murray Cumming <murrayc@murrayc.com>
512 ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
514 * src/main/java/org/glom/web/server/ConfiguredDocument.java
515 updateLayoutGroup(): Check that the field is not null.
517 2012-05-06 Murray Cumming <murrayc@murrayc.com>
519 ListViewImpl: Protected against a bad cast error.
521 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
522 onEnterKeyDown(): Do not cast without an instanceof check.
524 2012-05-06 Murray Cumming <murrayc@murrayc.com>
526 ListTable: Protect against an out of range error.
528 * src/main/java/org/glom/web/client/ui/list/ListTable.java
529 createCellTable(): This is unlikely, but can happen while debugging.
531 2012-05-06 Murray Cumming <murrayc@murrayc.com>
533 AsyncMessage onFailure() callbacks: Log the exception message.
535 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
536 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
537 * src/main/java/org/glom/web/client/activity/ListActivity.java:
538 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
539 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
540 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
541 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
542 These are useful clues when something is wrong.
544 2012-05-06 Murray Cumming <murrayc@murrayc.com>
546 ConfiguredDocument: Avoid a null dereference.
548 * src/main/java/org/glom/web/server/ConfiguredDocument.java
549 TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and
550 details maps are created.
552 2012-05-06 Murray Cumming <murrayc@murrayc.com>
554 Document: Correct the port number parsing.
556 * src/main/java/org/glom/web/server/libglom/Document.java:
557 This lets us actually connect to the database and show the document.
559 2012-05-05 Murray Cumming <murrayc@murrayc.com>
563 * pom.xml: Use htmlunit mode for gwt:test, because the default demands
564 user-interaction, asking us to load a temporary URL in a browser.s
565 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
566 which is apparently necessary for testing the service. See the comment.
567 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
568 Show the exception, if any. This is how I saw the 404 in the HTML in
571 2012-05-05 Murray Cumming <murrayc@murrayc.com>
573 DocumentTest: Move the .glom files into the resources directory.
575 * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
576 URI via getResource().
578 2012-05-05 Murray Cumming <murrayc@murrayc.com>
580 Document: Remove the FieldIdentifies inner class.
582 * src/main/java/org/glom/web/server/libglom/Document.java: We only
583 use the Relationship (though the same function in libglom is maybe
584 used in other ways) and so this removes a compiler warning.
586 2012-05-05 Murray Cumming <murrayc@murrayc.com>
588 Document.load() Remove the error code parameter.
590 * src/main/java/org/glom/web/server/libglom/Document.java: load():
591 Remove the parameter. We do not set it yet and it could never have
592 worked as an output parameter (though maybe it did in java-libglom).
593 We could use an exception if we really want the failure reason.
594 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
596 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
597 setUp(), testGetSuitableTableToViewDetails(): Adapt.
599 2012-05-05 Murray Cumming <murrayc@murrayc.com>
601 Make some inner classes static.
603 * src/main/java/org/glom/web/server/ConfiguredDocument.java
604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
605 * src/main/java/org/glom/web/server/ReportGenerator.java
606 * src/main/java/org/glom/web/server/libglom/Document.java
607 Make all inner classes static that can be static.
609 2012-05-05 Murray Cumming <murrayc@murrayc.com>
611 OnlineGlomServiceImpl: Do not load and check for java-libglom.
613 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
614 init(): We do not use java-libglom any more.
616 2012-05-05 Murray Cumming <murrayc@murrayc.com>
618 Remove mentions of java-libglom.
620 * README: Remove mention of java-libglom, because it no longer needed.
621 * utils/build-onlineglom-war.sh:
622 * utils/check-and-recover-tomcat.py:
623 * utils/install-onlineglom-war.sh: Remove these as they are no longer
624 useful. Building is now far easier, with no need for jhbuild.
626 2012-05-05 Murray Cumming <murrayc@murrayc.com>
628 Fix the build (mvn package)
630 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
631 (LayoutGroup): Make the LayoutItemList inner class static and protected.
632 Otherwise the GWT Java->Javascript compilation fails with just this
633 error, during mvn package or when attempting to view in a browser,
634 in the GWT developer mode in Eclipse.
636 [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
637 [INFO] auto discovered modules [org.glom.web.OnlineGlom]
638 [INFO] Compiling module org.glom.web.OnlineGlom
639 [INFO] [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
640 [INFO] [ERROR] Line 46: Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
641 [INFO] Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
642 [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
643 [INFO] [WARN] org.glom.web.client.OnlineGlomService_Proxy
644 [INFO] [ERROR] Cannot proceed due to previous errors
646 It has taken me 2 days to find out what was causing that. After reducing
647 the code, the compiler eventually showed me the full error message.
649 2012-05-04 Murray Cumming <murrayc@murrayc.com>
651 ConfiguredDocument: Cache the cloned and stripped layouts.
653 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
654 getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
655 layout in a map, so we can retrieve it again without rebuilding it.
657 2012-05-04 Murray Cumming <murrayc@murrayc.com>
659 UsesRelationshipImpl: Complete the relationshipEquals() implementation.
661 2012-05-04 Murray Cumming <murrayc@murrayc.com>
663 libglom classes: Implement some auto-generated emthods.
665 2012-05-04 Murray Cumming <murrayc@murrayc.com>
667 Add GwtTestOnlineGlomService.
669 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
670 However, this (and the other GwtTest*) does not seem to run during
673 2012-05-04 Murray Cumming <murrayc@murrayc.com>
675 Remove use of unsupported features from client code.
677 * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
678 * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
679 * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
680 Use our client version of StringUtils instead of the apache commons one.
682 However, the GWT Javascript compliation still fails.
684 2012-04-25 Murray Cumming <murrayc@murrayc.com>
686 Add a Field class and implement some loading of it in Document.
688 2012-04-25 Murray Cumming <murrayc@murrayc.com>
690 Initial Document loading implementation, instead of libglom.
692 * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
693 and Translatable classes, and adapt the rest of the code to use them.
694 However, this is still missing Layout and Field classes and loading.
696 2012-04-24 Murray Cumming <murrayc@murrayc.com>
698 Use of jOOQ: Move Field creation into a utility method.
700 * src/main/java/org/glom/web/server/SqlUtils.java:
701 This lets us improve it more easily.
703 2012-04-24 Murray Cumming <murrayc@murrayc.com>
705 Use of jOOQ: Improve the code to COUNT a sub-select.
707 * src/main/java/org/glom/web/server/SqlUtils.java:
708 Move initial query creation into
709 build_sql_select_step_with_where_clause().
710 build_sql_select_count_rows(): Use the jOOQ API instead of
711 concatentating text, because a jOOQ Select*Step is a TableLike,
712 which is what from() takes.
714 2012-04-23 Murray Cumming <murrayc@murrayc.com>
716 Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
718 * pom.xml: Depend on jooq.
719 * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
720 methods with jOOQ, based on the C++ implementations in libglom,
721 with some changes to the logic required by jooQ.
722 Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
724 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
725 * src/main/java/org/glom/web/server/ReportGenerator.java:
726 * src/main/java/org/glom/web/server/SqlUtils.java:
727 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
728 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
729 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
730 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
731 * src/main/java/org/glom/web/server/database/RelatedListNavigation:
732 Adapt. In particular, the SqlUtils methods now need to take a Connection,
733 because jOOQ needs that, though it seems unnecessary.
735 This is not quite finished. Ideally jOOQ would help us to build
736 table_name.field_name names, quoting and escaping them properly.
737 See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
739 2012-04-21 Murray Cumming <murrayc@murrayc.com>
741 Move use of Glom.build_sql*() into a new SqlUtils class.
743 * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
744 to wrap Glom.build_sql*(). The parameter types are still Glom one,
745 but this will make it easier to start using something other than
746 libglom or SqlBuilder.
748 2012-04-21 Murray Cumming <murrayc@murrayc.com>
750 Update the project URL.
752 * pom.xml: Use an OnlineGlom-specific URL for the project URL.
754 2012-04-21 Murray Cumming <murrayc@murrayc.com>
756 Main layout: Use a FlowTable instead of absolute positioning.
758 * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
759 The RootLayoutPanel is a (extends) AbsolutePanel, so each of its
760 child panels/widgets must have an absolute position. But that is annoying, so
761 this adds a FlowTable and puts the child panels in there.
763 2012-04-21 Murray Cumming <murrayc@murrayc.com>
765 GwtTestOnlineGlom: Comment out unused code.
767 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
768 Eclipse has started to say that some code is unused.
770 2012-04-21 Murray Cumming <murrayc@murrayc.com>
772 Update to the latest versions of dependencies.
774 * pom.xml: Update version numbers of dependencies to the latest
776 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
777 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
778 * src/main/java/org/glom/web/server/ReportGenerator.java:
779 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
780 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
781 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
783 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
784 Modify the imports where necessary.
786 2012-04-17 Murray Cumming <murrayc@murrayc.com>
788 Style: Remove overflow:hidden from searchbox
790 * src/main/webapp/style.css: Because this pushes the Back To Link
791 label/link on to the next row, which is then hidden due to the
792 hard-coded (in ems) height.
794 2012-04-20 Murray Cumming <murrayc@murrayc.com>
796 Remove some duplicate code.
798 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
799 getDocumentInfo(): This must have been duplicated during the merge from the
804 2012-04-19 Murray Cumming <murrayc@murrayc.com>
806 Reports: Localize the waiting for report message.
808 * src/main/java/org/glom/web/client/activity/ReportActivity.java
809 start(): Get the message from the contants.
810 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
812 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
813 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
814 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
815 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
816 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
817 Update these files with the English text for newer strings for now.
819 2012-04-19 Murray Cumming <murrayc@murrayc.com>
821 Reports: Show a message while waiting for the report.
823 * src/main/java/org/glom/web/client/ui/ReportView.java
824 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
825 Add setWaitingText(), to show a message saying that we are
826 waiting for the report to be ready.
827 * src/main/java/org/glom/web/client/activity/ReportActivity.java
828 start(): Call setWaitingText() before calling the async
831 2012-04-19 Murray Cumming <murrayc@murrayc.com>
833 ReportGenerator: Specify date and time formats.
835 * src/main/java/org/glom/web/server/ReportGenerator.java:
836 createFieldValueElement(): Use the default (and localized)
837 short formats, though we still need a way to show 4-digit
838 years without providing the format for every locale.
839 * src/main/java/org/glom/web/server/database/DBAccess.java:
840 convertResultSetToDTO(): Use the short formats here too.
842 2012-04-18 Murray Cumming <murrayc@murrayc.com>
844 ReportGenerator: Use the correct numeric formatting.
846 * src/main/java/org/glom/web/server/ReportGenerator.java
847 createFieldExpression(), createFieldValueElement(): Take the
848 whole LayoutItem_Field instead of just the field name, so
849 we have access to the formatting.
850 createFieldValueElement(): Use JRTextField.setPattern() to
851 specify the numeric formatting, with the help of a
852 regular DecimalFormat.
854 2012-04-18 Murray Cumming <murrayc@murrayc.com>
856 ReportGenerator: Avoid showing null for group by titles.
858 * src/main/java/org/glom/web/server/ReportGenerator.java
859 generateReport(): Use setBlankWhenNull() on the field title
860 style too, because this is used for values in group by
863 2012-04-18 Murray Cumming <murrayc@murrayc.com>
865 ReportGenerator: Add a colon to titles in vertical groups.
867 * src/main/java/org/glom/web/server/ReportGenerator.java
868 addFieldToDetailBandVertical(): Pass true for the withColon
871 2012-04-18 Murray Cumming <murrayc@murrayc.com>
873 ReportGenerator: Simplify the code by using Position more.
875 2012-04-18 Murray Cumming <murrayc@murrayc.com>
877 Reports: Support vertical groups, roughly.
879 * src/main/java/org/glom/web/server/ReportGenerator.java:
880 addToReport(): Rename to addGroupToReport() and, if necessary,
881 call the new addVerticalGroupToReport() method.
882 createFieldValueElement(): Let the caller specify the Y position
885 2012-04-17 Murray Cumming <murrayc@murrayc.com>
887 Reports: Allow a second report to be shown.
889 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
890 clear(): Do not remove the HTML widget, which broke the whole layout.
892 2012-04-17 Murray Cumming <murrayc@murrayc.com>
894 Locales drop-down: Show that we use English by default.
896 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
897 fillView(): When we use English, just because that is the default, when
898 no locale is specified, show that in the Locales drop-down instead of
899 just showing the first item.
901 2012-04-17 Murray Cumming <murrayc@murrayc.com>
903 Unselect the Report/Locale/Table combo item when appropriate.
905 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
906 setPlace(): clear reportName if this is not a ReportPlace.
907 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
908 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
909 When the provided name is empty, unselect all items, so that none are
910 indicated. This uses a for loop because I cannot find a single method
913 2012-04-17 Murray Cumming <murrayc@murrayc.com>
915 Report: Give the user a way to get back to the list.
917 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
918 start(), setPlace(): Show the Back To List link on reports, and also
919 interpret selecting the empty report item as back to list.
921 2012-04-13 Murray Cumming <murrayc@murrayc.com>
923 Really show the selected Report name.
925 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
926 setPlace(): Store the reportName here, if it is that kind of Place.
927 fillView(): Set the selected Report after filling the list of reports.
928 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
929 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
930 null Strings, though we need some way to unselect all ListBox items
933 2012-04-13 Murray Cumming <murrayc@murrayc.com>
935 ReportGenerator: Try to avoid some problems.
937 * src/main/java/org/glom/web/server/ReportGenerator.java
938 addField(): Try to avoid duplicates, and avoid using a null
941 2012-04-13 Murray Cumming <murrayc@murrayc.com>
943 Reports: Use quickFind.
945 * src/main/java/org/glom/web/client/OnlineGlomService.java;
946 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
948 getReportHTML(): Add a quickFind parameter.
949 * src/main/java/org/glom/web/client/activity/ReportActivity.java
950 start(): Pass the quickFind parameter.
951 * src/main/java/org/glom/web/server/ReportGenerator.java
952 generateReport(): Take a quickFind parameter.
954 2012-04-13 Murray Cumming <murrayc@murrayc.com>
956 ReportPlace: Actually use the report name.
958 * src/main/java/org/glom/web/client/place/ReportPlace.java
959 getPlace(): Do not assign the report name to the quickfind.
961 2012-04-13 Murray Cumming <murrayc@murrayc.com>
963 Show java.library.path when complaining.
965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
966 init(): When telling us to check java.library.path, show the
969 2012-03-06 Murray Cumming <murrayc@murrayc.com>
971 ReportGenerator: Do not show nulls.
973 2012-03-06 Murray Cumming <murrayc@murrayc.com>
975 ReportGenerator: Make the title font larger.
977 2012-03-06 Murray Cumming <murrayc@murrayc.com>
979 ReportGenerator: Put field titles inside groups, if there are groups.
981 2012-03-06 Murray Cumming <murrayc@murrayc.com>
983 ReportGenerator: Take the Report itself instead of the name and group.
985 * src/main/java/org/glom/web/server/ConfiguredDocument.java
986 Remove getReportLayoutGroup().
987 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
988 getReportHTML(): Pass the report instead
989 of its name and layout group.
990 * src/main/java/org/glom/web/server/ReportGenerator.java
991 generateReport(): Use the report object to use the title
994 2012-03-06 Murray Cumming <murrayc@murrayc.com>
996 ReportGenerator: Remove designBand parameters.
998 * src/main/java/org/glom/web/server/ReportGenerator.java:
999 Make designBand a class member instead of passing it to all
1002 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1004 ReportGenerator: Add lines, a bit like in the desktop version.
1006 * src/main/java/org/glom/web/server/ReportGenerator.java
1007 addToReport(): Use JRDesignLine.
1009 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1011 ReportGenerator: Correct the title positions and use some bold style.
1013 * src/main/java/org/glom/web/server/ReportGenerator.java:
1014 Break the code up into reusable functions, correct the placement of
1015 titles, and use normal/bold styles as in the reports in the desktop
1018 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1020 ReportGenerator: Add a header band to show the field titles.
1022 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1023 getReportHTML(): Pass the localeId to the ReportGenerator
1025 * src/main/java/org/glom/web/server/ReportGenerator.java
1026 constructor: Take the localeID so we can get translated field
1028 generateReport(), addToReport(), addFieldToBand(): Add field
1029 titles in a column header band.
1031 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1033 Reports drop-down list: Some improvement.
1035 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1036 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1037 Adedd setSelectedReport(),
1038 setReportList(): Add a blank line so that the user can select the
1040 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1041 start(): Show the current report by calling setSelectedReport().
1042 This does not seem to work yet.
1044 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1046 DetailsActivity, ListActivity: Move some variables into a base class.
1048 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1049 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
1050 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
1051 the clientFactory, documentID, tableName and authenticationPopup into
1052 a base class, to avoid duplication.
1054 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1056 Translate the Reports label.
1058 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1059 Get the "Reports" label string from the constants.
1060 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
1061 perties: Add Reports to the constants.
1063 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1065 Reports: Implement grouping.
1067 * src/main/java/org/glom/web/server/ReportGenerator.java:
1068 Handle LayoutItem_GroupBy items and try to do the right thing
1069 with JRDesignGroup. It seems to work.
1071 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1073 Actually show some data with JasperReports.
1075 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1076 getReportHTML(): Move most code into a ReportGenerator class.
1077 * src/main/java/org/glom/web/server/ReportGenerator.java:
1078 Recurse into sub-groups, adding fields to the JasperDesign's details
1079 band. Note that we must set an arbitrary width and height, or it just
1080 will not show any data.
1082 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1084 Reports Chooser: Show the titles, not the names.
1086 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1087 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
1088 and the names as the values.
1089 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1090 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
1091 group now that we provide the report name, so it should always
1094 2012-02-15 Murray Cumming <murrayc@murrayc.com>
1096 Depend on jasperreports.
1098 * pom.xml: Add the dependency. My plan is to use this on the
1101 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1103 Implement navigation to report places.
1105 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1106 start(): Do not bother to handle all events here.
1107 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1108 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1109 Added getSelectedReport().
1110 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1111 .java: start(): When handling a change to the reports chooser,
1112 call getSelectedReport() and goTo() its ReportPlace.
1113 * src/main/java/org/glom/web/client/ui/ReportView.java
1114 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1115 Added setReportHTML() which puts the html in a gwt HTML widget.
1116 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1117 getReportHTML(): Return "TODO" just to show that this works.
1119 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1121 Make ReportPlace usable.
1123 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1124 Mention ReportPlace.
1125 * src/main/java/org/glom/web/client/place/ReportPlace.java:
1126 Correct the @prefix annotation.
1128 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1130 OnlineGlomService: Return report HTML rather than the LayoutGroup.
1132 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1133 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1135 Change getReportLayout() to getReportHMTL() because we will not need to
1136 parse or render the report layout on the client side.
1137 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1138 getReportLayout(): Return the libglom LayoutGroup type because we will
1139 not need to convert to a shared type, because this will not be used on
1141 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1144 Note that there is still no implementation for this.
1147 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1149 Add a (empty) Report Place, View, and Activity.
1151 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1153 * src/main/java/org/glom/web/client/place/HasTablePlace.java
1154 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
1155 this into a superclass:
1156 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
1157 and also use it as the base of this new ReportPlace:
1158 * src/main/java/org/glom/web/client/place/ReportPlace.java
1160 * src/main/java/org/glom/web/client/ui/ReportView.java
1161 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
1162 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1163 Add these, containing mostly boiler-plate for now.
1165 * src/main/java/org/glom/web/client/OnlineGlomService.java
1166 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1167 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1168 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1169 Add API to get the LayoutGroup for the report.
1171 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1173 Add and fill a Reports drop-down list box.
1175 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1177 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1178 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1179 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1180 Added getReports(document, table, localeID), calling
1181 ConfiguredDocument.getReports().
1182 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1183 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1184 Added setReportsList() and a list widget.
1185 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1186 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
1191 2012-04-12 Murray Cumming <murrayc@murrayc.com>
1193 Translations: Add Esperanto.
1195 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
1196 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
1197 properties: Add this translation because someone took the time to make it.
1199 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1201 Adapt to the java-libglom 1.21.7 API.
1203 * src/main/java/org/glom/web/server/ReportGenerator.java:
1204 addToReport(): get_group_secondary_fields() is now
1205 get_secondary_fields().
1208 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1210 Use the latest java-libglom version.
1212 * pom.xml: Use java-libglom 1.21.7.
1214 2012-03-03 Ben Konrath <ben@bagu.org>
1216 Display date and time in details view.
1218 https://bugzilla.gnome.org/show_bug.cgi?id=671257
1220 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1222 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1224 Require the latest java-libglom.
1226 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1228 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1230 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1232 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1233 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
1234 an empty quickfind string. I also corrected libglom to create only
1235 empty where clauses for empty quickfind strings, but this avoids the
1238 2012-02-24 Ben Konrath <ben@bagu.org>
1240 Improve the tabs in the Notebook widget.
1244 2012-01-30 Murray Cumming <murrayc@murrayc.com>
1246 Translations: Try to translate the strings.
1248 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1249 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1250 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1251 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1252 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1253 Take the Open translation from GTK+'s .po files.
1254 Take the Details translation from Glom's po files.
1255 I have added the other strings to Glom so we can get translations that way:
1256 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
1258 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1260 TableSelectionViewImpl: Put the search label and entry in a div.
1262 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1263 Put the search widgets in a FlowTable so that the CSS can be used to
1264 style them while keeping them together.
1265 * src/main/webapp/style.css: Mention the new div.
1267 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1269 Translate more strings in more locales.
1271 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1272 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1273 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1274 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1275 Translate the "Details" and "Open" string too.
1277 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
1278 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1279 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1280 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1281 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1282 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1283 Add these new locales as placeholders though they currently contain English.
1285 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1287 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
1289 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
1290 Check the ConfiguredDocument* for null before using it.
1292 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1294 Tell Eclipse about the generated java files.
1296 * .classpath: This lets it find OnlineGlomConstants.java.
1297 It would be nice if Eclipse just used the maven build files.
1299 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1301 Prevent a crash when no locale is specified in the URL.
1303 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
1304 Avoid returning a null string, obtained from
1305 Window.Location.getParameter(). This caused a crash when it was
1306 later passed to libglom's API.
1307 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1308 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
1309 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
1310 guard against future null strings.
1312 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1314 Use the ?locale= query param instead of the &lang= token param.
1316 * src/main/java/org/glom/web/client/place/ListPlace.java
1317 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1318 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1319 Remove the lang token key and value.
1321 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1322 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1323 When the user selects a different locale from the chooser, use
1324 Window.Location.assign() to change the URL, which then causes a reload.
1326 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
1327 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1328 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
1329 * src/main/java/org/glom/web/client/activity/ListActivity.java
1330 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1331 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1332 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1333 * src/main/java/org/glom/web/client/ui/ListView.java:
1334 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1336 Remove localeID member variables and method/constructor parameters, instead
1337 using Utils.getCurrentLocaleID() when we need a localID to pass to
1340 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1342 Internationalize the UI strings.
1344 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
1345 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
1346 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
1347 because it is unused. Messages are apparently strings that can have
1348 parameters, but we do not need that yet, so Contants will be enough for now.
1349 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
1350 to say that we support the en and de locales.
1351 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1352 The original English strings.
1353 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1354 Some German translations of the English strings.
1355 The i18n goal then uses the .properties file to generate an
1356 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
1357 returns an implementation that returns the translated strings.
1358 The documentation suggests putting these in src/java/*/client/, but it seems
1359 best to put it in src/resources/*/client/.
1360 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1361 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
1362 instead of hard-coding them.
1363 Note that we cannot import OnlineGlomConstants because it does not exist yet,
1364 but that does not seem to stop the build, though it confuses Eclipse.
1366 You can see the translated string by adding ?locale=de to the URL, like so:
1367 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
1369 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1371 Improve null/empty String checks.
1373 * pom.xml: Add a dependency on commons-lang, to use
1374 org.apache.commons.lang.StringUtils.
1375 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1376 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1377 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
1378 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1379 Use StringUtils.isEmpty().
1381 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
1382 StringUtils class with a static isEmpty() function because we
1383 cannot use org.apache.commons.lang.StringUtils in client-side
1384 GWT code because it (apparently) cannot be compiled to javascript.
1385 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1386 * src/main/java/org/glom/web/client/activity/ListActivity.java
1387 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
1388 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1389 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1390 * src/main/java/org/glom/web/client/place/ListPlace.java
1391 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
1392 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
1393 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1394 * src/main/java/org/glom/web/client/ui/details/Group.java
1395 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
1396 our StringUtils.isEmpty() function.
1398 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1400 Update to the latest java-libglom API.
1402 * pom.xml: Require java-libglom 1.21.4.
1403 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1404 getDocumentInfo(), getListViewLayoutGroup():
1405 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1407 * src/main/java/org/glom/web/server/database/DBAccess.java
1408 getFieldsToShowForSQLQueryAddGroup(),
1409 getPrimaryKeyLayoutItemField(): Replace get_database_title()
1410 with either get_database_title_original() or
1411 get_database_title(localeID).
1413 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1415 ConfiguredDocument: Avoid a null pointer exception.
1417 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1418 Initialize localeID to "" to avoid returning a null String which
1419 causes a crash in java-libglom's swing-generated code.
1421 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1423 Some simple renaming.
1425 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1426 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
1427 for localeChooser. This seems more appropriate and is less ambiguous
1428 particularly in the .css file.
1430 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1432 ConfiguredDocument: Rename the localedID private member variable.
1434 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1436 Adapt to the latest java-libglom API from git master.
1438 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1439 libglom now uses only Vector instead of List, which uses add() instead of
1442 2012-01-22 Murray Cumming <murrayc@murrayc.com>
1444 ConfiguredDocument: Rename the localedID private member variable.
1446 2012-01-20 Murray Cumming <murrayc@murrayc.com>
1448 Build a source tarball with mvn assembly:single
1450 * assembly.xml: Add this file.
1451 * pom.xml: Use the maven-assembly-plugin and tell it to use
1452 our assembly.xml file.
1454 2012-01-19 Murray Cumming <murrayc@murrayc.com>
1456 OnlineGlomServiceImpl: Get .glom files recursively.
1458 * pom.xml: Depend on commons-io from org.apache.commons.
1459 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1460 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
1461 files recursively, and with the easier filter for the extension.
1462 Use org.apache.commons.io.FilenameUtils.removeExtension() to
1463 simplify that code too.
1465 2012-01-19 Murray Cumming <murrayc@murrayc.com>
1467 README: Mention that you must install java-libglom packages separately.
1469 But then it works, because java-libglom is now in the central maven
1472 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1474 locales drop-down: Show the correct selected locale when the URL changes.
1476 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1477 .java: setPlace(): Move some code into fillView().
1479 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1481 locales drop-down: Do not lose the primary key.
1483 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1484 start(): onLocaleChange(): Pass the current primary key value,
1485 instead of an empty value.
1487 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1489 locales drop-down: Do not lose the drop-down selection.
1491 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1492 .java (TableSelectionActivity.fillView): Set the selected locale
1493 after changing the drop-down items (though we do not really need
1494 to change them just because the locale changes.)
1496 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1498 locales drop-down: Change the tables list when this changes.
1500 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1501 .java: TableSelectionActivity.start(): Move the async table titles
1502 retrieval into a private fillView() method and also call this when
1503 the chosen locale changes.
1504 Note that the document title is not actually translatable yet, but
1505 that is a problem that I should fix soon in libglom.
1507 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1509 Improve the placement of the locales drop-down.
1511 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1512 Put the title and locales drop-down in a div (gwt.FlowTable).
1513 * src/main/webapp/style.css: Add magic css properties to make this work.
1514 Also remove the left margin from the title so that it lines up with the
1517 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1519 locales selector: Show human-readable locale titles.
1521 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1522 getDocumentInfo(): Use java.util.Locale to show a real title of
1523 each locale, in the locale's own language.
1525 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1527 Add a language/locale selector drop-down.
1529 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1530 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
1531 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
1532 getDocumentInfo(): Store the available Locales in the DocumentInfo.
1533 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1534 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1535 Add a ListBox to show the available locales. Add getLocaleSelector(),
1536 setLocaleList(), getSelectedLocale(), setSelectedLocale().
1537 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
1538 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
1539 java: Add these classes.
1540 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1541 start(): Fill the locales ListBox. Handle its change event, firing a
1543 setPlace(): Show the selected locale as specified by the URL token.
1544 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1545 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1546 Handle LocaleChangeEvent, going to a new *Place with that locale.
1548 The placement of the ListBox is not pretty, and it currently uses the ID
1549 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
1553 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1555 Search box: Show the search text from the URL token.
1557 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1558 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1559 Add setQuickFindText().
1560 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1561 .java: setPlace(): Store the queryText if the place is a ListPlace,
1562 and call TableSelectionView.setQuickFindText().
1564 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1566 Allow use of translations via, for instance, &lang=de in the URL.
1568 * pom.xml: Use the unstable java-libglom 1.21 version.
1570 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1571 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1573 init(): Instead of calling TranslatableItem.set_current_locale()
1574 (now removed), call ConfiguredDocument.setDefaultLocaleID().
1575 However, this is only for default locales, which are not needed to
1576 change the locale in the URL.
1577 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
1578 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
1579 getSortedRelatedListData(): Add a localeID parameter, so we can get the
1580 layout for a particular locale.
1581 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1582 Add get/setDefaultLocaleID().
1583 getDocumentInfo(), getListViewData(), getRelatedListData(),
1584 getDetailsLayoutGroup(), getListViewLayoutGroup(),
1585 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
1586 localeID parameter, so we can get the layout for a particular locale.
1588 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1589 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1590 * src/main/java/org/glom/web/client/place/ListPlace.java:
1591 Parse and construct a lang parameter too.
1593 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1594 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
1595 passed to subsequent methods and constructors.
1596 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1597 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1598 Store the localeID from the *Place and pass it to other constructors
1599 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
1601 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1602 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1603 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1604 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1605 * src/main/java/org/glom/web/client/ui/ListView.java:
1606 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1607 Take localeID parameters and pass them to subsequent constructors and
1608 methods, so that the layout is always retrieved for that locale.
1610 This is rather repetitive.
1612 Note that "" means the original (default) locale of the Glom document,
1613 which is usually English.
1615 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1617 Documents: Remove final keyword to fix startup configuration.
1619 * src/main/java/org/glom/web/shared/Documents.java: Remove the
1620 final keywords on the private member variables because that breaks
1621 the startup, apparently (there are warnings) because it stops them
1622 from being serialized. I added these in the previous commit.
1624 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1626 Documents: Add some final keywords.
1628 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
1631 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1633 OnlineGlomServiceImpl: Add to overview comments.
1635 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1636 Note that this is where all the document are loaded. They are not
1637 loaded freshly for each page.
1639 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1643 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1644 Add a TextBox for the text of a quick find.
1645 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
1647 setBackLink(): Add a String quickFind parameter.
1648 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1649 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
1650 to the base interface, because that is how TableSelectionViewImpl is used.
1651 * src/main/webapp/style.css: Add style for the search box and its label.
1653 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
1654 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
1655 Add these files, based on the existing TableChangeEvent and
1656 TableChangeEventHandlers.
1657 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1658 start(): Handle QuickFindChangeEvent, passing its quickFind text to
1659 a ListPlace() that the user should be taken to.
1660 * src/main/java/org/glom/web/client/activity/ListActivity.java
1661 start(): Handle it here too and adapt the TableChangeEvent handler to
1662 pass the extra "" quickFind parameter to ListPlace.
1663 * src/main/java/org/glom/web/client/place/ListPlace.java:
1664 Constructor: Take an extra String quickFind parameter and store it,
1665 returning it from a new getQuickFind() method.
1666 getToken(): Put the quickFind text in the URL token.
1667 getPlace(): Parse the quickFind text from the URL token.
1668 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1669 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
1670 ListPlace constructor.
1671 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1672 .java: start(): Add a Change handler for the TableSelectionView's
1673 TextBox (via its base HasChangeHandlers interface), firing the new
1674 QuickFindChangeEvent.
1675 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
1676 pass the extra "" quickFind parameter.
1678 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1679 setCellTable(): Add a String quickFind parameter and pass it to
1680 the ListViewTable() constructor.
1681 * src/main/java/org/glom/web/client/ui/ListView.java: Change
1682 setCellTable() in the base interface, because that is how ListViewImpl
1685 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1686 Add a String quickFind member variable.
1687 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1688 Constructor: Add a String quickFind parameter, storing it in the
1689 base ListTable's member variable.
1690 onRangeChanged(): Pass quickFind to the
1691 OnlineGlomServiceAsync.getSortedListViewData() and
1692 OnlineGlomServiceAsync.getListViewData() methods.
1694 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1695 getListViewData(), getSortedListViewData(): Add a String quickFind
1696 parameter, passing it to ConfiguredDocument.getListViewData().
1697 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1698 Change getListViewData(), getSortedListViewData() in the base interface,
1699 because that is how OnlineGlomServiceImpl is used, via this:
1700 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1701 Change getListViewData(), getSortedListViewData() here too.
1702 This class can apparently be used to asynchronously call methods on
1703 OnlineGlomService, and GWT seems to implement that after recognizing
1704 just the *Async name convention and the extra AsyncCallback parameters.
1706 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1707 getListViewData(): Add a String quickFind parameter, and pass it to
1708 ListViewDBAccess.getData().
1709 * src/main/java/org/glom/web/server/database/ListDBAccess.java
1710 getListData(): Add a String quickFind parameter and pass it to
1712 getSelectQuery(): Add a String quickFind parameter.
1713 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1714 getSelectQuery(): Add a String quickFind parameter and use it with
1715 Glom.get_find_where_clause_quick() to pass a where_clause to
1716 Glom.build_sql_select_with_where_clause(), to actually filter the
1718 getData(): Add a String quickFind parameter, passing it to getListData().
1719 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
1720 va: getData(): Pass an empty string to getListData() for the
1721 quickFind parameter.
1723 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1725 ListTable: Minor change.
1727 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1728 createCellTable(): Make this protected instead of public.
1730 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1732 Many files: Use final for the parameters and use the @override attribute.
1734 2012-01-22 Ben Konrath <ben@bagu.org>
1736 Add anchor links for single line text that starts with http, ftp and www.
1740 2012-01-22 Ben Konrath <ben@bagu.org>
1742 Add ellipsis to single line text in details view.
1746 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1748 Remove all javadoc author tags.
1750 Because they are awkward and meaningless when many people touch
1752 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
1754 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1756 Revert the COPYING.LESSER to COPYING rename.
1758 Apparently both should be there if it is LGPL.
1760 2012-01-03 Murray Cumming <murrayc@murrayc.com>
1762 *View: Remove unused imports.
1764 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1765 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1766 * src/main/java/org/glom/web/client/ui/ListView.java:
1767 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1768 Remove unused imports, as suggested by Eclipse.
1770 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1772 Move the *View::Presenter types, and some API into one base View.
1774 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1775 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1776 * src/main/java/org/glom/web/client/ui/ListView.java:
1777 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
1778 Presenter, setPresenter() and clear() into a shared base interface,
1779 to avoid the unnecessary duplicate Presenter types and to more clearly
1780 show how the *Views share the same structure, even if they are not
1781 used polymorphically.
1783 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1784 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1786 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1787 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1788 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
1790 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1793 Feel free to revert this if there is a good reason for the duplicate
1796 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1798 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
1800 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
1801 a class member instead of a local variable in the method.
1802 This lets us use it to get the view instances, for use in tests.
1803 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1804 beforeOnlineGlom(): Test some more details of the initial view.
1805 Again, this is not very useful.
1807 To really test gwt-glom we will need to start a local postgresql
1808 instance with local data, like the Glom tests in C++.
1810 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1812 pom.xml: Mention the LGPL license.
1814 * pom.xml: Add a licenses section.
1815 * COPYING.LESSER: Move this to COPYING, which
1816 previously contained the GPL. But gwt-glom is all LGPL.
1818 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1820 Add project information to README and pom.xml.
1822 * README: Add a brief description and mention some mvn
1824 * pom.xml: This extra information shows up in mvn site
1827 2011-01-02 Murray Cumming <murrayc@murrayc.com>
1829 Use the latest java-libglom version.
1831 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
1833 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1835 GwtTestOnlineGlom: Test a little more.
1837 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
1838 protected rather than private, as suggested by the gwt-test-utils
1840 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
1841 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
1842 Test the initial visibility of the panels.
1844 However, this is not a very useful test.
1845 And I wonder how we should generally test using this idea for an
1846 activity/places app like ours where the real changes happen implicitly
1847 based on the history token/URL.
1849 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1851 Slight modification to *Mapper comments.
1853 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
1854 (DataActivityMapper)
1855 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
1857 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
1859 Remove comments mentioning GIN because they are just copied from
1860 the example code and are apparently not helpful:
1861 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
1862 Also change the mention of a class that is only in the example code.
1864 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1866 GwtTestOnlineGlom test: Minor changes.
1868 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1869 Avoid the long qualified class name and modify the comment
1870 because it is now obvious to me that the mocked class is the only
1871 custom one created via GWT.create().
1873 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1875 Tests: Added the beginnings of a test using gwt-test-utils.
1877 * pom.xml: Add dependencies on gwt-test-utils and easymock.
1878 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
1879 which tells gwt-test-utils what class will be tested.
1880 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1881 Add a simple (but empty) test case. One class, used by the OnlineGlom
1882 class, is mocked so that it can be created. However, I am not sure
1883 why only this class needs to be mocked.
1885 Note that mockito seems more popular, and clearer, than easymock,
1886 but I have not got that working yet. It might be a matter of the
1889 This test is run during mvn integration-test.
1891 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1893 Tests: Use junit4-style syntax instead of junit3-style.
1895 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1896 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1897 * src/test/java/org/glom/web/shared/DataItemTest.java:
1898 Use the @Test annotation rather than relying on the test*() prefix.
1899 Also no longer implement TestCase, to avoid triggering support for
1900 the junit3-way, which stops the annotations from working.
1901 Change the imports from import junit.framework.* to
1902 import org.junit.*, which is apparently the new way.
1904 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1906 Added a test for ListPlace token parsing and creation.
1908 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1909 This is much the same as DetailsPlaceTest.
1911 I wonder how we could test the other parts of the *Place API.
1913 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1915 DetailsPlace test: Also test getToken() and recreation via getPlace().
1917 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1918 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
1919 recreate it, testing the recreated DetailsPlace for the same parameter
1922 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1924 Use the surefire-report plugin.
1926 * pom.xml: This generates a HTML report about the tests in
1927 target/site/surefire-report.html
1928 when you do mvn surefire-report:report. It seems to be popular/normal.
1930 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1932 Added a test for DetailsPlace.
1934 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1935 Test the getPlace() token parsing.
1937 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1939 Added a first unit test.
1941 * pom.xml: Add a test goal, and a dependency on junit in that scope.
1942 * src/test/java/org/glom/web/shared/DataItemTest.java:
1943 This is a silly test but it is just to get things started. Note that
1944 maven/junit finds the test because it looks in src/test by default.
1946 2011-12-22 Ben Konrath <ben@bagu.org>
1948 Change charsetName to "UTF-8" when replacing line breaks.
1950 JavaScript requires the charsetName to be "UTF-8". CharsetName values
1951 that work in Java (such as "UTF8") will not work when compiled to
1954 This fixes a problem with multi-line details view fields that have hard
1955 line breaks. The "License Text" field on this page demonstrates the
1958 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
1960 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1962 2011-12-22 Ben Konrath <ben@bagu.org>
1964 Fix another bug with related list navigation.
1966 I've tested all the navigation buttons in all of the related lists
1967 so things should be good now.
1969 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1971 2011-12-22 Ben Konrath <ben@bagu.org>
1973 Fix a crasher when refreshing the list view with the default table.
1975 This crash will also happen when loading the list view with the default
1976 table from a link or bookmark.
1978 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
1979 to the main document selection page when the document id hasn't been
1981 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
1982 the main document selection page when the document id hasn't been
1984 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
1985 values for the details place when the document id hasn't been set.
1986 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
1987 values for the list place when the document id hasn't been set.
1989 2011-12-21 Ben Konrath <ben@bagu.org>
1991 Protect against NPE when glom.document.locale is not in config.
1993 This patch protects against an NPE when glom.document.locale is not in
1994 the config file. This NPE will also happen if glom.document.locale is
1997 The patch also updates the error message to display the class name when
1998 the getMessage() returns null. This was happening when the NPE was
1999 thrown and I had "Configuration Error: null". If an NPE is encountered
2000 with this patch, "Configuration Error: NullPointerException " will be
2003 This commit closes this bug:
2005 https://bugzilla.gnome.org/show_bug.cgi?id=666669
2007 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2009 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2011 Rename onlineglom.properties to onlineglom.properties.sample.
2013 * src/main/resources/onlineglom.properties: Rename to:
2014 * src/main/resources/onlineglom.properties.sample:
2015 * src/main/resources/README: And add this file explaining that people
2016 should rename it back when deploying.
2018 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2020 Allow choosing the translation in the .properties file.
2022 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2023 init(): Read a glom.document.locale value from the configuration file
2024 and call Glom's TransatableItem::set_current_locale() method.
2025 * src/main/resources/onlineglom.properties: Add a commented-out
2026 example of this new setting.
2028 It would be better to add &lang=de_DE to the URL, but the current
2029 libglom API does not allow us to do this easily. I am working on that.
2031 2011-12-19 Murray Cumming <murrayc@murrayc.com>
2033 Avoid a crash in parsing of token parameters.
2035 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
2036 ava: getTokenParams(): Do not crash if a parameter has a key but no
2037 value, and ignore parameters with neither.
2039 2011-12-17 Murray Cumming <murrayc@murayc.com>
2041 History token building/handling: Improve use of token parameters.
2043 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2044 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
2045 and buildParamsToken(HashMap), for use by derived classes.
2046 Make the separator private because it is no longer be needed.
2047 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2048 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
2049 instead of manual string concatenation.
2050 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
2051 of hardcoded indices and awkward splitting code.
2052 * src/main/java/org/glom/web/client/place/ListPlace.java
2053 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
2054 instead of manual string concatenation.
2055 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
2056 of hardcoded indices and awkward splitting code.
2057 This should fix bug #666420
2059 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2061 Fix a Navgiation->Navigation typo in the code.
2063 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2064 Rename processNavgiation() to processNavigation().
2066 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2068 Fix a seperator->separator typo in the code.
2070 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2071 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2072 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
2075 2011-12-15 Ben Konrath <ben@bagu.org>
2077 Cleanup some comments.
2079 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2081 2011-12-14 Ben Konrath <ben@bagu.org>
2083 Replace \n with <br/> for multiline text in the details view.
2085 Vertical scrollbars are added when needed as well.
2087 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2089 2011-12-14 Ben Konrath <ben@bagu.org>
2091 Specify the font for document selection links.
2093 * src/main/webapp/style.css:
2095 2011-12-14 Ben Konrath <ben@bagu.org>
2097 Fix bouncy CellTable while paging.
2099 This doesn't currently work with related list tables in unselected
2102 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2104 2011-12-14 Ben Konrath <ben@bagu.org>
2106 Revamp the appearance of the document selection page.
2108 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2109 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2110 * src/main/webapp/style.css:
2112 2011-12-13 Ben Konrath <ben@bagu.org>
2114 Set navigation button column to the smallest size possible.
2116 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2118 2011-12-13 Ben Konrath <ben@bagu.org>
2120 Change OpenButton nomenclature to NavigationButton.
2122 Using NavigtionButton makes things more generic. Classes, methods and
2123 variables have been changed.
2125 This is a rename-only refactor.
2127 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2128 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2129 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
2130 Renamed from OpenButtonCell.
2131 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2132 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2133 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2135 2011-12-12 Ben Konrath <ben@bagu.org>
2137 Remove unnecessary String argument in RelatedListTable and ListViewTable.
2139 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2140 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2141 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2142 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2144 2011-12-12 Ben Konrath <ben@bagu.org>
2146 Update variable names and comments.
2148 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2149 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2151 2011-12-12 Ben Konrath <ben@bagu.org>
2153 Properly initialize numNonEmptyRows variable to zero.
2155 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2156 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2158 2011-12-05 Ben Konrath <ben@bagu.org>
2160 Add latest mockup with HTML tables.
2162 Features of this mockup:
2164 -> HTML table for flowtable
2165 -> HTML table for flowtable column
2166 -> Example of how related lists would look
2167 -> Not using text entries for data items
2169 The current version of Online Glom doesn't use HTML tables for the
2172 This mockup has been sent to the glom-devel mailing list but it's good
2173 to have it here as well.
2175 * mockups/details-view-html-tables.html:
2177 2011-12-05 Ben Konrath <ben@bagu.org>
2179 Remove unnecessary getPrimaryKeyField() method.
2181 getPrimaryKeyFieldForTable(String) has been renamed to
2182 getPrimaryKeyField(String).
2184 * src/main/java/org/glom/web/server/database/DBAccess.java:
2185 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2186 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2188 2011-12-05 Ben Konrath <ben@bagu.org>
2190 Add string representation of TypedDataItem value to conversion error message.
2192 * src/main/java/org/glom/web/server/Utils.java: Logging the error
2193 message was extracted into its own method to avoid duplication.
2195 2011-12-05 Ben Konrath <ben@bagu.org>
2197 Add type checking to navigation primary key value creation.
2199 Create navigation primary key only if the expected type from the Glom
2200 document matches the type returned by the SQL query.
2202 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2204 2011-12-05 Ben Konrath <ben@bagu.org>
2206 Rename a couple of variables in RelatedListNavigation.
2208 This is a rename-only refactor.
2210 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2212 2011-12-05 Ben Konrath <ben@bagu.org>
2214 Move getListLayoutGroup() into getListViewLayoutGroup().
2216 This removes getListLayoutGroup(). It was only being called by
2217 getListViewLayoutGroup().
2219 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2221 2011-12-05 Ben Konrath <ben@bagu.org>
2223 Remove check for LayoutItem_Portal in list table method.
2225 This check is no longer necessary because the method isn't being used
2226 to create the LayoutItemPortal DTO.
2228 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2230 2011-12-05 Ben Konrath <ben@bagu.org>
2232 Properly support related list navigation.
2234 Navigation from the "Repository Analyzer -> Package Scans ->
2235 Dependencies" related table wasn't working because the primary key for
2236 related tables wasn't being set properly. This commit fixes the
2239 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
2240 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
2241 doesn't set the primary key properly for related list tables.
2242 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
2243 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
2244 useful for getting the primary key for list view tables and for related
2246 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2247 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2248 Move code to set the primary key for the table from the abstract
2249 ListDBAccess class to ListViewDBAccess as it's only correct for list
2251 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2252 Properly add primary key to related list tables.
2254 2011-12-02 Ben Konrath <ben@bagu.org>
2256 Properly set the horizontal alignment of fields.
2258 This fix is for both the list tables and the details view.
2260 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2261 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
2262 to set the horizontal alignment of fields.
2264 2011-12-02 Ben Konrath <ben@bagu.org>
2266 Display currency codes in the details view.
2268 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2270 2011-12-02 Ben Konrath <ben@bagu.org>
2272 Avoid duplicate JNI call.
2274 JNI is not as efficient as pure Java and this is an easy (and small)
2277 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2278 Use previously retrieved value for whereClauseToTableName instead of
2281 2011-12-02 Ben Konrath <ben@bagu.org>
2283 Rename a couple of variables in RelatedListNavigation.
2285 This is a rename-only refactor.
2287 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2289 2011-12-02 Ben Konrath <ben@bagu.org>
2291 Indicate clearly that a mismatched primary key type is a bug.
2293 * src/main/java/org/glom/web/server/Utils.java: Change log level from
2294 warning to error. Add 'This is a bug.' to message.
2296 2011-12-02 Ben Konrath <ben@bagu.org>
2298 Update / fix some comments.
2300 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
2302 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
2304 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2305 Fix comments. Add some TODOs.
2307 2011-12-02 Ben Konrath <ben@bagu.org>
2309 Enable navigation to details view with string primary key from related list.
2311 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2312 Create a text primary key value when return type of result is
2313 java.sql.Types.VARCHAR.
2315 2011-12-02 Ben Konrath <ben@bagu.org>
2317 Use checkboxes for booleans in the details view.
2319 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2321 2011-12-01 Ben Konrath <ben@bagu.org>
2323 Improve performance of related list height calculation.
2325 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2326 Put code to calculate the expected height in a static initializer so
2327 that that it's only called once.
2329 2011-12-01 Ben Konrath <ben@bagu.org>
2331 Show related list tables in notebooks (again).
2333 Calculate the height of the related list tables so the Notebook can be
2334 set the correct height. The height of the related list table is also needed by
2335 FlowTable to be able decide how to create the layout.
2337 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
2338 and set the Portal height based on the height of the related list
2339 table and the Portal container.
2340 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2341 Add method to calculate the height of the related list tables.
2342 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2343 * src/main/webapp/style.css: Add css class for Pager. This is needed to
2344 calculate the height of the Pager widget.
2346 2011-12-01 Ben Konrath <ben@bagu.org>
2348 Use CellTable API for table property instead of setting style on Element.
2350 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2352 2011-12-01 Ben Konrath <ben@bagu.org>
2354 Make ListViewTable and RelatedListTable a consistent height.
2356 The tables are now a consistent height regardless of the contents of
2357 the table. A hidden button is added to empty rows to ensure that the
2358 height of these rows will match the height of rows with data.
2360 A navigation button column is now added to every table. The width of
2361 the navigation column is set to 0px when a RelatedListTable shouldn't
2362 have navigation buttons. This maintains the a consistent row height in
2363 tables that don't show the navigation buttons.
2365 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
2366 navigation column when not needed.
2367 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
2368 arguments for navigation button to constructor of ListViewTable.
2369 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
2370 hidden button for empty data rows.
2371 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
2372 arguments for navigation button to constructor.
2373 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
2374 create navigation buttons. Add hideNavigationButtons() method.
2375 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
2376 arguments for navigation button to constructor.
2378 2011-12-01 Ben Konrath <ben@bagu.org>
2380 Use 'visibility: hidden' in Utils.getWidgetHeight().
2382 This is better choice because hidden elements are invisible, don't
2383 respond to events and are not part of the tab order. They will,
2384 however, take up space which is required to be able to calculate the
2385 height of the widget.
2387 * src/main/java/org/glom/web/client/Utils.java:
2389 2011-12-01 Ben Konrath <ben@bagu.org>
2391 Use Utils.getWidgetHeight() in FlowTable.
2393 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
2395 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
2397 2011-12-01 Ben Konrath <ben@bagu.org>
2399 Put the details css class name on the correct table column.
2401 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2403 2011-11-30 Ben Konrath <ben@bagu.org>
2405 Update for java-libglom API change.
2407 The getters and setters on FieldFormatting and NumericFormat were
2408 changed to remove the 'M'.
2410 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2412 2011-11-29 Ben Konrath <ben@bagu.org>
2414 Only allow RelatedListTables in Portals.
2416 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2418 2011-11-29 Ben Konrath <ben@bagu.org>
2420 Only create a contents panel for Portals when title is being set.
2422 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2424 2011-11-29 Ben Konrath <ben@bagu.org>
2426 Set TabLayoutPanel height based on calculated height its widgets.
2428 This is a potential fix for this bug:
2430 https://bugzilla.gnome.org/show_bug.cgi?id=665133
2432 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2434 2011-11-29 Ben Konrath <ben@bagu.org>
2436 Align details field labels and data with the Open buttons.
2438 * src/main/webapp/style.css:
2440 2011-11-29 Ben Konrath <ben@bagu.org>
2442 Remove unnecessary <div> in the Notebook widget.
2444 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
2445 method to get container FlowPanel (<div>).
2446 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
2447 initWidget() method directly on the TabLayoutPanel widget instead of
2448 Group's container widget.
2450 2011-11-29 Ben Konrath <ben@bagu.org>
2452 Don't add group titles for Portals in Notebooks.
2454 This reverts the previous patch and fixes a bug I introduced with
2455 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
2457 * src/main/java/org/glom/web/client/ui/details/Group.java:
2458 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2460 2011-11-28 Ben Konrath <ben@bagu.org>
2462 Remove unused boolean argument in Portal constructor.
2464 Just a code cleanup.
2466 * src/main/java/org/glom/web/client/ui/details/Group.java:
2467 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2469 2011-11-28 Ben Konrath <ben@bagu.org>
2471 Remove hack for glom 1.18 style glom files.
2473 * src/main/java/org/glom/web/client/ui/details/Group.java:
2474 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2475 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2477 2011-11-28 Ben Konrath <ben@bagu.org>
2479 Use Gda Value version of primary key to log result too large error.
2481 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2483 2011-11-28 Ben Konrath <ben@bagu.org>
2485 Don't use TypedDataItem.getText() for Unknown types from the URL.
2487 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2488 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
2489 instead of getText().
2490 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
2491 String field and getUnknown() method.
2493 2011-11-28 Ben Konrath <ben@bagu.org>
2495 Log an error message when the java-libglom .so is not present.
2497 The error message was being set in the exception but not logged.
2499 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2501 2011-11-28 Ben Konrath <ben@bagu.org>
2503 Ignore LayoutItem_CalendarPortals.
2505 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
2506 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
2508 2011-11-28 Ben Konrath <ben@bagu.org>
2510 Extract method for creating the LayoutItemPortal DTO.
2512 Just breaking the code up into smaller chunks.
2514 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2516 2011-11-28 Ben Konrath <ben@bagu.org>
2520 This should have been added with the refactor. Oops!
2522 * src/main/java/org/glom/web/shared/TypedDataItem.java:
2524 2011-11-28 Ben Konrath <ben@bagu.org>
2526 Create primary key value from URL string using type from Glom document.
2528 See this bug, comments 19 - 25:
2530 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
2532 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
2533 create a TypeDataItem for the primary key here when loading from a
2534 URL. Show the same string for the primary key value as was received
2535 from the URL string (when loading from a URL).
2536 * src/main/java/org/glom/web/server/Utils.java: Update method for
2537 creating the Gda Value from the TypeDataItem to properly deal with
2538 creating a Gda Value based on the Glom document type for the primary
2539 key value string when loading from a URL.
2540 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2541 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2542 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2543 Update for changed method name.
2545 2011-11-27 Ben Konrath <ben@bagu.org>
2547 Rename PrimaryKeyItem to TypedDataItem.
2549 The name PrimaryKeyItem suggests what the class should be used for.
2550 TypedDataItem is a neutral name that describes the class better.
2552 This is a rename-only refactor.
2554 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2555 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2556 * src/main/java/org/glom/web/client/Utils.java:
2557 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2558 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2559 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2560 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2561 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2562 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2564 * src/main/java/org/glom/web/server/Utils.java:
2565 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2566 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2567 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2568 * src/main/java/org/glom/web/shared/NavigationRecord.java:
2570 2011-11-25 Ben Konrath <ben@bagu.org>
2572 Improve Gda Value conversion from PrimaryKeyItem.
2574 The value from the PrimaryKeyItem is only used if its type match the
2575 type from the glom document.
2577 * src/main/java/org/glom/web/server/Utils.java:
2579 2011-11-25 Ben Konrath <ben@bagu.org>
2581 Manually check if the java-liblgom .so is visible to the JVM.
2583 It seems that Tomcat has problems when a static initializer throws an
2584 exception. This check is done before the first method call into
2585 java-libglom so that execution doesn't continue if the .so is not
2588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2590 2011-11-25 Ben Konrath <ben@bagu.org>
2592 Improve browser configuration error messages.
2596 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2598 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2599 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2600 getConfigurationErrorMessage() method.
2601 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2602 Get and display a specific configuration error message when no Glom
2603 documents are found.
2604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2605 Implement getConfigurationErrorMessage() method. Surround configuration
2606 code in the init() method with a try/catch block. This allows the
2607 errors to be caught while keeping the servlet available to retrieve the
2608 configuration error message.
2610 2011-11-25 Ben Konrath <ben@bagu.org>
2612 Don't use Strings to hold primary key values.
2614 The primary key values are now held in a new data object
2615 (PrimaryKeyItem) that holds type information and the primary key value
2616 using the correct type.
2618 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2619 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2620 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2621 PrimaryKeyItem instead of String to hold the primary key value.
2622 * src/main/java/org/glom/web/client/Utils.java: Remove
2623 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
2624 PrimaryKeyItem based on the GlomFieldType and the DataItem.
2625 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
2626 PrimaryKeyItem instead of String to hold the primary key value. Load
2627 document selection page when the documentID has not been set correctly.
2628 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
2629 DetailsPlace -> URL and URL -> DetailsPlace conversion with
2631 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2632 Return empty string for URL instead of "null".
2633 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2634 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2635 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2636 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2637 PrimaryKeyItem instead of String to hold primary key values.
2638 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
2639 PrimaryKeyValue to a Gda Value.
2640 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2641 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2642 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2643 Replace temporary database access code that uses the PrimaryKeyValue to
2644 Gda Value conversion.
2645 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
2646 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
2647 PrimaryKeyItem instead of String.
2648 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
2649 hold primary key values.
2651 2011-11-24 Ben Konrath <ben@bagu.org>
2653 Use newly added java-libglom API to create queries.
2655 This isn't finished. I still need to stop using Strings for primary key
2656 values in the client code.
2658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
2659 libglom to use fake connections so that retrieving the query string will
2661 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2662 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2663 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2664 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2665 Use the newly added libglom sql methods and classes to create the
2666 query. Add temporary hack to convert primary value strings to Gda
2669 2011-11-23 Ben Konrath <ben@bagu.org>
2671 Don't explicitly set the height of Portals.
2673 See comments 6 - 10 of this bug for details:
2675 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
2677 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2679 2011-11-23 Ben Konrath <ben@bagu.org>
2681 Use an HTML table instead of CSS for the FlowTable layout.
2683 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
2684 GWT's FlexTable to implement the FlowTable.
2685 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
2687 2011-11-18 Ben Konrath <ben@bagu.org>
2689 Add boolean example to HTML table mockup.
2691 * mockups/details-view-html-tables-text-entries.html:
2693 2011-11-17 Ben Konrath <ben@bagu.org>
2695 Ensure the pager buttons are always visible for related lists.
2697 To accomplish this, I've turned off text wrapping in the list view and
2698 related list tables for both the header and data text. The related list
2699 table now has a fixed layout so the it doesn't overflow its container.
2700 This is required to ensure that the cell text is clipped when it
2701 overflows the cell and an ellipsis is added to the right side of the
2702 cell when text is clipped.
2704 A fixed table layout for the related list table in the details view
2705 seems what we want for the details view anyway, so the side-effect is
2708 The ellipsis will only be displayed in Firefox >= 7.
2712 https://bugzilla.gnome.org/show_bug.cgi?id=662930
2714 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
2715 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
2716 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
2718 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2719 Set the 'table-layout: fixed' CSS property to the related list table.
2720 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
2721 'white-space: nowrap;' CSS property on both the list view and the
2722 related list tables.
2724 2011-11-16 Ben Konrath <ben@bagu.org>
2726 Rework the fix for empty notebook tab labels.
2728 Setting the empty group titles with its name caused problems for the
2729 details layout. Instead of using libglom's
2730 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
2731 to the client when the title is empty. This allows the Notebook to use
2732 the name when the title is empty without affecting anything else.
2734 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2735 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2737 2011-11-16 Ben Konrath <ben@bagu.org>
2739 Set group titles with name when title is empty.
2741 This fixes a problem with an empty notebook tab label in the Lesson
2742 Planner document. The forth tab in the notebook should be "Internet":
2744 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
2746 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2747 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
2750 2011-11-16 Ben Konrath <ben@bagu.org>
2752 Remove whitespace from the configured username properties.
2754 This assumes that usernames won't have whitespace at the beginning
2755 or end. But I think this is a reasonable assumption.
2757 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2758 String.trim() to remove the whitespace from the username properties.
2760 2011-11-15 Ben Konrath <ben@bagu.org>
2762 Add details view mockup with HTML tables and text entries.
2764 This is from the attachment on this bug:
2766 https://bugzilla.gnome.org/show_bug.cgi?id=663109
2768 * mockups/details-view-html-tables-text-entries.html:
2770 2011-11-15 Ben Konrath <ben@bagu.org>
2772 Add space between the columns of the flow table.
2776 https://bugzilla.gnome.org/show_bug.cgi?id=662918
2778 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
2779 space between columns in the flow table.
2781 2011-11-15 Ben Konrath <ben@bagu.org>
2783 Add backup files to the .gitignore.
2785 * .gitignore: Ignore files that end with ~.
2787 2011-11-09 Ben Konrath <ben@bagu.org>
2789 Use latest release of gwt-log.
2791 Gwt-log releases are now being submitted to the maven central
2792 repository so manual installation of the jar is no longer required.
2794 * pom.xml: Update version and groupId of gwt-log dependency.
2796 2011-10-31 Ben Konrath <ben@bagu.org>
2798 Don't use GWT numeric formatting to override the glom currency formatting.
2800 Currencies are now displayed like they are in Glom. See this bug:
2802 https://bugzilla.gnome.org/show_bug.cgi?id=646216
2804 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
2806 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
2807 currency code to constructor and set it when the cell is rendered.
2808 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2809 currency code to the constructor of the NumericCell.
2811 2011-10-27 Ben Konrath <ben@bagu.org>
2813 Require the latest release of java-libglom (1.17.4).
2817 2011-10-26 Ben Konrath <ben@bagu.org>
2819 Add style to Notebook that matches current theme.
2821 It's not the best style in the world but it's better than the default.
2823 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
2824 padding at the bottom of the child widgets.
2825 * src/main/webapp/style.css: Add style for the Notebook.
2827 2011-10-26 Ben Konrath <ben@bagu.org>
2829 Move servlet initialization code to overridden init method.
2831 This is half of the solution to getting proper error messages
2832 displayed when configuration errors occur. Here's the relevant bug:
2834 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2836 The rest of the solution involves surrounding the init method with a
2837 try/catch block and setting a global variable with the error /
2838 exception. A new async method should be created to retrieve and display
2839 the error message / exception.
2841 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
2842 code from constructor to init method adding exceptions as needed.
2844 2011-10-26 Ben Konrath <ben@bagu.org>
2846 Add script to monitor and restart tomcat if required.
2848 * utils/check-and-recover-tomcat.py: New file.
2850 2011-10-26 Ben Konrath <ben@bagu.org>
2852 Display the correct number of data items in the pager.
2856 https://bugzilla.gnome.org/show_bug.cgi?id=661441
2858 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2859 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2860 The implementation is the same for both tables: Keep track of the
2861 number of non-empty rows and fire and RowCountChangeEvent after the data has
2863 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
2864 custom Pager class that subclasses SimplePager to handle displaying
2865 the correct number when empty rows have been added.
2867 2011-10-26 Ben Konrath <ben@bagu.org>
2869 Correct error in previous commit.
2871 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
2872 eventBus parameter from listView.setCellTable().
2874 2011-10-26 Ben Konrath <ben@bagu.org>
2876 Fix error in TODO comment.
2878 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2880 2011-10-24 Ben Konrath <ben@bagu.org>
2882 Create Notebook widgets to the details view.
2884 This isn't finished just yet - I still need to create a reasonable
2885 style to match the current theme.
2887 * src/main/java/org/glom/web/client/Utils.java: Add method for
2888 calculating the height of a widget. This is used in the Notebook class.
2889 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2890 new constructor method in Group.
2891 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
2892 method for creating child widget that can be used by subclasses
2893 like Notebook. New constructor that allows disabling the group
2894 titles - Notebooks don't set a group title for their child groups.
2895 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
2896 to make Notebooks using GWT's TabLayoutPanel.
2897 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
2898 constructor that allows disabling the group titles.
2899 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
2900 LayoutItemNotebook DTO.
2901 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
2902 DTO for Notebooks. It's just an empty class for now but we might need
2903 it to transfer some specific information in the future.
2905 2011-10-21 Ben Konrath <ben@bagu.org>
2907 Add navigation buttons to related list tables.
2909 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2910 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2911 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
2912 method getSuitableRecordToViewDetails() for getting the table name
2913 and primary key value for related list navigation buttons.
2914 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2915 private cell renderer class to get the navigation information for
2916 related list tables from the server. Extract the navigation
2917 processing code from the details cell navigation and use it for the
2918 related list navigation as well.
2919 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
2920 cell renderer class for the details open buttons. This was needed
2921 because the related list navigation buttons and the list view
2922 navigation buttons need to react differently when clicked.
2923 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
2924 the onEnterKeyDown() method because it's now overriden in the
2925 subclasses that are specific to the related list tables and the list
2927 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
2928 the vertical size a little because the buttons add a bit of vertical
2929 space to table. This is not a perfect solution because the vertical
2930 size of with table fewer than 5 rows will be a little smaller.
2931 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
2932 changes in how navigation buttons are handled.
2933 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
2934 getSuitableRecordToViewDetails() using the new RelatedListNavigation
2935 database access object.
2936 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
2937 to find the portal for a given relationship name from
2938 RelatedListDBAccess. Add method to find a primary key field for a
2940 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2941 Move code to find the portal for a given relationship name to
2943 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2944 New file: database access object for getting the related list
2945 navigation information (the table name and the primary key value).
2946 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
2947 DTO for transferring a table name to navigate to and a primary key
2949 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2950 boolean and getter/setter to specifies if the related list should add
2953 2011-10-24 Murray Cumming <murrayc@murrayc.com>
2955 Use the master branch of java-libglom
2957 * pom.xml: Depend on java-libglom 1.19 instead.
2959 This is the master branch. See also the libglom-1-18 branch.
2961 2011-10-11 Ben Konrath <ben@bagu.org>
2963 Enable the open navigation button when the data has been set.
2965 This avoids having active buttons that don't do anything when the data
2968 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2970 2011-10-11 Ben Konrath <ben@bagu.org>
2972 Use IsWidget interface for FlowTableItem.
2974 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
2975 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
2977 2011-10-11 Ben Konrath <ben@bagu.org>
2979 Remove GWT styling from open button in details view.
2981 There are still some issues with how the details cell is arranged but
2982 this should be made to match Glom 1.20. I'm going to leave fixing this
2983 until I have Glom 1.20 up and running.
2985 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
2986 style name on open button.
2987 * src/main/webapp/style.css: Move and edit details-navigation class.
2988 Re-arrange some classes to make them appear in the same order as the
2991 2011-10-07 Ben Konrath <ben@bagu.org>
2993 Update to GWT 2.4.0.
2995 * .gitignore: Ignore new cache directory.
2996 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
2997 * pom.xml: Change GWT and maven plugin to 2.4.0.
2998 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
3000 * src/main/java/org/glom/web/client/ClientFactory.java:
3001 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
3002 * src/main/java/org/glom/web/client/OnlineGlom.java:
3003 Update source for API changes.
3004 * utils/build-onlineglom-war.sh: Remove cache directory before the
3007 2011-10-07 Ben Konrath <ben@bagu.org>
3009 Add navigation buttons in the details view.
3011 This isn't finished but I thought I'd commit what I have as it's a
3012 pretty good start. I still need to:
3014 1. Change the style so that it fits better into the current theme
3015 2. Adjust the details cell to expand as much as possible.
3017 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
3018 click handlers to navigation buttons in the DetailsCells. Create a
3019 refreshData() method to get just the data from the server without the
3021 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3022 Update the tableSelector and browser title when the table name
3023 changes without using the tableSelector.
3024 * src/main/java/org/glom/web/client/ui/DetailsView.java:
3025 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
3026 getDetailsCells() to getCells(). Update variable names.
3027 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
3028 method to set click handler on navigation button. Rename a few
3029 variables. Add navigation buttons where needed.
3030 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
3031 variables and methods.
3032 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
3033 navigation boolean and navigation table as required in the
3034 LayoutItemField DTO.
3035 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
3036 variables for navigation along with getter/setter methods.
3038 2011-10-07 Ben Konrath <ben@bagu.org>
3040 Rename Field to DetailsCell.
3042 This is a refactor-only commit. No functionality has been added or
3045 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3046 Update variable and method names.
3047 * src/main/java/org/glom/web/client/ui/DetailsView.java:
3048 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
3049 variable and method names.
3050 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
3052 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
3053 variable and method names.
3055 2011-10-07 Ben Konrath <ben@bagu.org>
3057 Create separate methods for layout and data the details view.
3059 This is a refactor-only commit. No functionality has been added or
3062 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
3063 private methods: setData(), createLayout().
3065 2011-10-07 Ben Konrath <ben@bagu.org>
3067 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
3069 This is part of a change to get navigation buttons in the details view
3070 but it should have been done this way from the start.
3072 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
3073 for method name change in TableSelectionView.
3074 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3075 Create TableChangeEvent and set the browser title using the
3076 TableSelectionView API.
3077 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3078 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3079 Change getSelectedTable() to getSelectedTableName(). Add
3080 getSelectedTableTitle().
3082 2011-10-07 Ben Konrath <ben@bagu.org>
3084 Use primaryKeyValue naming convention in constructor of DetailsPlace.
3086 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3088 2011-10-07 Ben Konrath <ben@bagu.org>
3090 Update TableChangeEvent to use newTableName naming convention.
3092 This makes the class more consistent with GWT naming conventions.
3094 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3095 Update for method name change in TableChangeEvent.
3096 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
3097 for method name change in TableChangeEvent.
3098 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
3099 newTableName variable and getter method. Make toDebugString()
3102 2011-09-30 Ben Konrath <ben@bagu.org>
3104 Disable the pager in the list tables when the data row count is less than the minimum.
3106 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3107 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3109 2011-09-30 Ben Konrath <ben@bagu.org>
3111 Add empty rows to the end of related list and list view tables.
3113 I also extracted the cell rendering classes from the ListTable because
3114 the code was becoming a little crazy with all the anonymous inner
3115 classes. My plan is to use these cell rendering classes in the details
3116 view as well so this refactor will be needed for that change.
3118 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
3119 set the row count in related list tables if the data has more rows
3120 than the minimum number of rows visible.
3121 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
3122 row count in list view tables if the data has more rows than the
3123 minimum number of rows visible.
3124 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
3125 for rendering TYPE_BOOLEAN cells. The code was extracted from the
3127 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
3128 for rendering TYPE_NUMERIC cells. The code was extracted from the
3130 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
3131 class for rendering cells with buttons in list views. The code was
3132 extracted from the ListTable class.
3133 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
3134 for rendering TYPE_TEXT cells. The code was extracted from the
3136 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
3137 Add empty rows to the end of the data if required. Implement
3138 ListTable.getMinNumVisibleRows().
3139 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
3140 cell renderer code to public classes. Return null in
3141 Column.getValue() for empty rows. Add new abstract method:
3142 getMinNumVisibleRows(). Move code to set the row count of the list view
3143 table to ListViewImpl.
3144 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
3145 empty rows to the end of the data if required. Implement
3146 ListTable.getMinNumVisibleRows().
3149 2011-09-27 Ben Konrath <ben@bagu.org>
3151 Use GWT.log for client-side debugging statements.
3153 These are optimized out when deployed so I should have used this method
3154 in the first place. These statements will eventually be replaced with some sort
3155 of notification in the browser.
3157 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3158 * src/main/java/org/glom/web/client/activity/ListActivity.java:
3159 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3160 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
3161 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
3163 2011-09-27 Ben Konrath <ben@bagu.org>
3165 Put tableselector on the right, back to list link on right.
3167 The idea is that the table selector is acting like a label for the
3168 currently displayed table so it should be placed below the document title. This
3169 puts the table title in a similar position to where it is in Glom.
3171 * mockups/details-contacts.html:
3172 * mockups/details-projects.html:
3173 * mockups/listview-contacts.html:
3174 * mockups/listview-projects.html:
3175 * mockups/style.css:
3176 Update mockups to match how the interfaces currently look.
3177 * src/main/webapp/style.css: Swap positions of backlink with the table
3178 selector. Add some space on the left side of the table selector to
3179 line things up with the document title.
3181 2011-09-27 Ben Konrath <ben@bagu.org>
3183 Add field colouring to details view.
3185 This change re-works how field colouring works. The colour formatting
3186 information is now set to the client with the layout information instead of
3187 with the data. This eliminates the need to send the same colour strings for
3188 data in list view column when colour information is set.
3190 In order to set an alternate colour for negative numeric values, the
3191 number is now sent to client and formatted with the GWT NumberFormat class.
3193 This change also fixes:
3195 https://bugzilla.gnome.org/show_bug.cgi?id=659752
3197 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
3198 internationalization framework which is needed for client side numeric
3200 * src/main/java/org/glom/web/client/Utils.java: New file for some
3201 client static utility methods.
3202 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
3203 the DataItem object to the Field class. Use a utility method to
3204 create the foreignKeyValue string.
3205 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
3206 alignment and text colours in the constructor. Add setData(DataItem)
3207 method. Remove setText(String) method.
3208 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
3209 colour information to GlomTextCell. Create and use GlomNumberCell for
3210 rendering numbers. Use utility method to get the string for the
3211 primary key of the key provider. Re-work how the horizontal alignment
3213 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
3214 formatting to layout information. Methods for converting the libglom
3215 formatting information were moved from DBAccess.
3216 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
3217 numeric formatting (it's now done on the client side). Don't set text
3218 colours in DataItem. Move libglom formatting conversion methods to
3220 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
3221 getters/setters for text colour information.
3222 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
3223 for transferring the libglom NumericFormat information to the client.
3224 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
3225 and getters/setters for: GlomNumericFormat, background colour and
3226 foreground colour strings.
3228 2011-09-26 Ben Konrath <ben@bagu.org>
3230 Simplify code that iterates through the LayoutGroup.
3232 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
3234 2011-09-26 Ben Konrath <ben@bagu.org>
3236 Accept Eclipse formatting for OnlineGlomServiceAsync.
3238 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3240 2011-09-26 Ben Konrath <ben@bagu.org>
3242 Don't use the ListDBAccess classes to get the primary key layout information.
3244 This was causing a bug where the wrong index for the hidden primary key
3245 was being sent to the client.
3247 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
3248 primary key while creating the LayoutGroup DTO. Create a
3249 LayoutItemField DTO for hidden primary keys. Don't use the
3250 RelatedListDBAccess because it was only used for getting the primary
3252 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
3253 access modifier from public to protected for getPrimaryKeyField() and
3254 getPrimaryKeyLayoutItemField().
3255 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
3256 abstract method getExpectedResultSize() because RelatedListDBAccess
3257 doesn't have enough info to implement it.
3258 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
3259 Remove @Override for getExpectedResultSize().
3260 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
3261 Remove method getExpectedResultSize().
3263 2011-09-23 Ben Konrath <ben@bagu.org>