1 2012-06-15 Murray Cumming <murrayc@murrayc.com>
3 OnlineGlomServiceImpl: Improve the OnlineGlomProperties class.
5 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
6 init(): Move knowledge of the config file format into the
7 OnlineGlomProperties inner class.
9 2012-06-15 Murray Cumming <murrayc@murrayc.com>
11 SelfHostExampleTest: Make sure we cleanup on failure.
13 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: Move
14 the use of cleanup() to a tearDown() JUnit method.
16 2012-06-12 Murray Cumming <murrayc@murrayc.com>
18 ConfiguredDocument: Add a primary key to portals at least once.
20 * src/main/java/org/glom/web/server/ConfiguredDocument.java
21 updatePortalsExtras): Fix a typo so that we add the primary key
23 This is a fix for the previous commit:
24 ConfiguredDocument: Do not add a primary key to portals each time.
26 2012-06-08 Murray Cumming <murrayc@murrayc.com>
28 SelfHoster: Avoid some compiler warnings.
30 * src/test/java/org/glom/web/server/SelfHoster.java
31 executeCommandLineAndWait():
32 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess(): Comment out
33 the now-unused streams for stdout and stderr from the command Processes.
34 These are not used because readln() hangs while waiting for a new line,
35 where there may be no next line. The commented out code is still there
36 to help us figure out how to do this properly.
38 2012-06-08 Murray Cumming <murrayc@murrayc.com>
40 LayoutItemPortalDeepCloneTest: Test something to avoid warnings.
42 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
43 Make this actually test the cloning again, though it is not very useful
44 now that we do not use the part that had a problem with cloning before.
46 2012-06-08 Murray Cumming <murrayc@murrayc.com>
48 SelfHoster: Keep trying pg_ctl after starting postgres.
50 * src/test/java/org/glom/web/server/SelfHoster.java
51 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess():
52 Try pg_ctl repeatedly (for ever) until it succeeds, as we do in
53 regular Glom. This seems mad but it seems to work because the first
54 command would fail if pg_ctl would eventually fail.
56 2012-06-08 Murray Cumming <murrayc@murrayc.com>
58 SelfHoster: Wait until the server is really ready.
60 * src/test/java/org/glom/web/server/SelfHoster.java
61 selfHost(): Attempt the connection after starting the server, retrying
62 a few times if necessary, so that the server is really ready already when
63 we return from this method.
64 The regular Glom code does this too because pg_ctl reports success too soon.
66 2012-06-08 Murray Cumming <murrayc@murrayc.com>
68 ConfiguredDocument: Do not add a primary key to portals each time.
70 * src/main/java/org/glom/web/server/ConfiguredDocument.java
71 updatePortalsExtras(): Only add an extra primary key field if there is
72 none, to avoid adding one each time we retrieve the details layout from the
74 This should fix bug #676986 (Ben Konrath)
76 2012-05-25 Murray Cumming <murrayc@murrayc.com>
78 Document.load(): Support version 7 documents.
80 * src/main/java/org/glom/web/server/libglom/Document.java: Load the
81 database_title attribute if the title attribute is not there.
84 2012-05-24 Ben Konrath <ben@bagu.org>
86 Add configuration for auto-generating mvn:i18n from with Eclipse.
88 * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
90 2012-05-24 Murray Cumming <murrayc@murrayc.com>
92 Update translations, adding French.
94 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
95 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_fr.properties:
96 Add a French translation, using the translation from Glom.
98 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
99 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
100 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
101 Update these based on the translations from Glom.
103 2012-05-24 Murray Cumming <murrayc@murrayc.com>
105 SelfHoster: Add some debug println messages to help when things fail.
107 * src/test/java/org/glom/web/server/SelfHoster.java: Add several
108 System.out.println() lines.
110 2012-05-23 Murray Cumming <murrayc@murrayc.com>
112 Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
114 * src/test/java/org/glom/web/server/SelfHoster.java:
115 getPathToPostgresExecutable(): Try some common paths (as on Ubuntu, for
116 instance) instead of just /usr/bin (as on Fedora). Check the result when
119 2012-05-23 Murray Cumming <murrayc@murrayc.com>
121 Remove LayoutItemPortal.get/setNavigationTable().
123 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
124 Remove get/setNavigationTable(), which is only a cache, because it is not
125 used, and does not need to be used, because that decision should be made on
127 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
128 updatePortalsExtras():
129 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
130 getNavigationRecord():
131 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
134 2012-05-21 Murray Cumming <murrayc@murrayc.com>
136 Initial self-hosting for tests.
138 * pom.xml: Change the scope for log4j, to hopefully make it
139 available to the test code which uses it indirectly via jOOQ.
140 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Allow
141 self-hosting, though we only use it for testing.
143 * src/main/java/org/glom/web/server/libglom/Document.java:
144 example rows: Use a map instead of a list for each row of values,
145 so we know what field they are for, instead of relying on the sequence
146 being correct. This is not very efficient, but it does not really need
148 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
149 testReadTableExampleRows(): Adapted.
151 * src/main/java/org/glom/web/shared/DataItem.java: Added getValue()
152 that returns an Object, for generic use. Note that Object seems to be
153 the implicit base even of double.
154 * src/main/java/org/glom/web/shared/libglom/Field.java: Add getSqlType(),
155 for use in CREATE TABLE SQL queries.
156 * src/test/java/org/glom/web/server/SelfHoster.java: Add this class
157 to do self-hosting of PostgreSQL databases via its command-line
158 utilities, based on Glom's C++ code in test_selfhosting_utils.cc and
159 backends/postgres_self.cc. This is incomplete - it needs more
160 warnings about failures and it needs to clean up properly when things
162 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple
163 test of this new class.
165 2012-05-21 Murray Cumming <murrayc@murrayc.com>
167 Document: loading example data: Handle exceptions.
169 * src/main/java/org/glom/web/server/libglom/Document.java:
170 DateFormat.parse() and Double.valueOf() can throw exceptions, though
171 Eclipse did not warn about that.
173 2012-05-20 Murray Cumming <murrayc@murrayc.com>
175 Document: load(), save(): Handle the example rows.
177 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate()
179 * src/main/java/org/glom/web/server/libglom/Document.java:
180 load(), save(): Load and save the example rows, though the date, time
181 and image types are not handled properly yet.
182 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
183 Add testReadTableExampleRows() just to check that something is read.
185 2012-05-20 Murray Cumming <murrayc@murrayc.com>
187 Document: Add save().
189 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
190 Added getTranslationsMap() for use while saving.
191 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
192 Adedd getUseDefaultFormatting() for use while saving.
193 * src/main/java/org/glom/web/server/libglom/Document.java: Added save()
194 and several private methods that it uses.
196 This will be useful while testing via self-hosting.
197 It is not complete, but should be complete enough for testing.
199 2012-05-17 Murray Cumming <murrayc@murrayc.com>
201 OnlineGlomService: Simplify the getList/RelatedViewData() methods.
203 * src/main/java/org/glom/web/client/OnlineGlomService.java
204 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
206 Remove getSortedListViewData() and getSortedRelatedListData(), adding
207 the sort column index and ascending bool to the regular method.
208 Instead, a sort column index of -1 now means no sort.
209 This is less explicit, but it's fairly simple, reduces the amount of
210 code, and makes the OnlineGlomService API slightly smaller.
211 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
212 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
214 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
215 getListViewData(), getRelatedListData():
216 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
217 getListViewData(), getRelatedListData():
218 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
220 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
222 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
227 2012-05-16 Murray Cumming <murrayc@murrayc.com>
229 Use translations for top-level groups too.
231 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
232 updateTitlesForLocale(): Use the translation for the group
233 as well as for child items.
237 Just recompiled to fix a problem in the released .tar.gz file.
241 2012-05-15 Murray Cumming <murrayc@murrayc.com>
243 Corrections to navigation to related records.
245 * src/main/java/org/glom/web/client/OnlineGlomService.java:
246 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
247 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
248 getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
249 getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a
250 relationship name, because the relationship name is not necessarily unique
252 TOOD: This is inefficient, because it passes the whole list of
253 child field items back to the server, but it is more correct, and happens
254 to fix a bug with the primary key being lost after a few navigations.
255 There is probably a chance to make this more efficient anyway in some
258 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
259 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
260 * src/main/java/org/glom/web/server/ConfiguredDocument.java
261 * src/main/java/org/glom/web/server/database/DBAccess.java
262 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
263 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
266 2012-05-15 Murray Cumming <murrayc@murrayc.com>
268 Fix the use of translations.
270 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
271 Add updateTitlesForLocale().
272 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
273 Call it to discard unwanted translations and to make getTitle() return
274 the wanted translation wihout the need for the client code to specify a locale.
275 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
276 getTitle(): Fallback to the original title, as libglom does.
278 2012-05-15 Murray Cumming <murrayc@murrayc.com>
280 Document: Correctly report the number of available translation locales.
282 * src/main/java/org/glom/web/server/libglom/Document.java: Fill
283 the available locale IDs list.
284 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
285 testLocales: Test this.
287 2012-05-15 Murray Cumming <murrayc@murrayc.com>
289 SqlUtils: Use camelCase.
291 * src/main/java/org/glom/web/server/SqlUtils.java: Use camelCase.
292 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
293 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
294 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
295 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
296 * src/main/java/org/glom/web/server/ReportGenerator.java: Adapt.
298 2012-05-15 Murray Cumming <murrayc@murrayc.com>
300 Use jOOQ's tableByName() and fieldByName.
302 * pom.xml: Use jOOQ 2.3.1 to get the new API.
303 * src/main/java/org/glom/web/server/SqlUtils.java:
304 build_sql_select_step_with_where_clause(), .createField(),
305 builder_add_join(): Use Factory.tableByName() and Factory.fieldByName()
306 so we can get correct quoting and escaping. Thanks to Lukas Eder for
307 adding this, and other things, to jOOQ.
309 2012-05-15 Murray Cumming <murrayc@murrayc.com>
311 SqlUtils: Remove the Connection parameters.
313 * src/main/java/org/glom/web/server/SqlUtils.java:
314 build_sql_select_with_key(), build_sql_select_with_where_clause(),
315 createSelect(), build_sql_select_step_with_where_clause(),
316 build_sql_count_select_with_where_clause(),
317 build_sql_select_count_rows(): Remove the Connection parameter because
318 jOOQ does not actually need a connectionwhen it is just used to build
320 https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
322 * src/main/java/org/glom/web/server/ReportGenerator.java:
324 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
326 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
327 Constructor, getListData(), getResultSizeOfSQLQuery():
328 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
329 getSelectQuery(), getCountQuery():
330 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
331 getSelectQuery(), getCountQuery():
332 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
333 getNavigationRecord(): Adapted.
335 2012-05-14 Murray Cumming <murrayc@murrayc.com>
339 * src/main/java/org/glom/web/server/SqlUtils.java:
340 get_find_where_clause_quick(): Use a comparison of
341 lowercase values, instead of a simple equals. Regular Glom
342 uses the PostgreSQL ILIKE operator but jOOQ does not
343 support that just yet, though it will soon.
345 2012-05-14 Murray Cumming <murrayc@murrayc.com>
347 TableToViewDetails: Use a real serialization ID.
349 * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
350 Though this does not fix the serialization problem.
352 2012-05-12 Murray Cumming <murrayc@murrayc.com>
354 Added LayoutItemPortalDeepCloneTest.
356 2012-05-11 Murray Cumming <murrayc@murrayc.com>
358 Make navigation work again.
360 * src/main/java/org/glom/web/server/libglom/Document.java:
361 Add getLayoutItemFieldShouldHaveNavigation().
362 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
363 Replace get/setAddNavigation() with the partly-existing
364 get/setNavigationTableName(), with an empty string being no navigation,
365 because this is simpler. Use the new
366 Document.getLayoutItemFieldShouldHaveNavigation() method to set this.
368 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
369 Add updateFieldsExtras() and call setNavigationTableName in it.
370 getDetailsLayoutGroup(),
371 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
372 createLayout(): Adapted.
373 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
374 Constructor: Adapted.
376 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
377 Replace get/setAddNavigation() with get/setNavigation(), returning a
378 TableToViewDetails class with both the table name and UsesRelationship,
379 because both are need. The previous code used java-libglom's output
380 variable (strangely, via sharedptr) to return both, but we cannot really
382 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
383 getNavigationRecord(): Adapt. However, we cannot actually use the cache
384 here because it somehow gets set to null during deepCopy(). I must test this.
385 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
386 testGetSuitableTableToViewDetails(): Adapted.
388 TODO: Find out why deepClone() is not quite working.
390 2012-05-11 Murray Cumming <murrayc@murrayc.com>
392 DBAccess: Simplify the retrievel of full field details.
394 * src/main/java/org/glom/web/server/database/DBAccess.java
395 getFieldsToShowForSQLQueryAddGroup(). This might be unnecessary anyway,
396 because the Document loading should have done this.
398 2012-05-11 Murray Cumming <murrayc@murrayc.com>
400 Document: Correct loading of doubly-related layout fields.
402 * src/main/java/org/glom/web/server/libglom/Document.java:
403 loadUsesRelationship(): Actually set the related relationship, instead
404 of only setting it if it's not found.
406 2012-05-09 Murray Cumming <murrayc@murrayc.com>
408 Replace all appearances of Colour with color.
410 Because US English is dominant.
412 2012-05-09 Murray Cumming <murrayc@murrayc.com>
414 Use colors in HTML format, solving a warning about an unused function.
416 * src/main/java/org/glom/web/shared/libglom/NumericFormat.java
417 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
418 Add *asHTMLColor() versions of methods.
419 TODO: However, we should create and cache the results on the server.
420 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
421 * src/main/java/org/glom/web/client/ui/list/ListTable.java
422 * src/main/java/org/glom/web/server/ConfiguredDocument.java
423 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
424 Use the asHTMLcolor() versions.
426 2012-05-09 Murray Cumming <murrayc@murrayc.com>
428 ListViewTable: Constructor: Take the table name as a parameter.
430 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
431 Constructor: Take the tableName, and set the member variable, because
433 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
434 setCellTable(): Pass the table name.
435 This makes navigation to non-default tables work again. I don't know
436 why it worked before in the master branch.
438 2012-05-07 Murray Cumming <murrayc@murrayc.com>
440 ConfiguredDocument: Restore correct addition of hidden primary key items.
442 * src/main/java/org/glom/web/client/ui/list/ListTable.java
443 (ListTable.createCellTable): Uncomment out the check for the hidden
445 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Only
446 add primary key items for top-level lists and portals, as before,
447 instead of adding them to each group.
448 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java:
449 Actually implement the extra methods such as setHiddenPrimaryKey() and
450 comment that these are used only for top-level list groups and in portals.
451 This strangeness suggests even more that this should not be squeezed
452 into the LayoutGroup class.
454 2012-05-07 Murray Cumming <murrayc@murrayc.com>
456 Fix Formatting loading.
458 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
459 getFormattingUsed(): Remove the duplicate Formatting member variable
460 in favour of the one from the base class.
461 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
462 Initialize a new Formatting instead of using null by default, so we
463 have some defaults, instead of having to initialize one later just to
464 get the same defaults. This also makes loading of formatting from the
465 document work, because that expected a non-null.
467 2012-05-07 Murray Cumming <murrayc@murrayc.com>
469 RelatedListTable: Make sure that the tableName is set.
471 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
472 Constructor: Take the tableName so it is available later. Otherwise,
473 the server assumes that we mean the default table and cannot find the
475 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
476 setData(): Pass the tableName to the RelatedListTable constructor.
478 2012-05-07 Murray Cumming <murrayc@murrayc.com>
482 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
483 RelatedListNavigationButtonCell.onEnterKeyDown(), setData():
484 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
486 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
488 * src/main/java/org/glom/web/server/database/DBAccess.java:
489 convertResultSetToDTO(), getPortal():
490 * src/main/java/org/glom/web/server/database/ListDBAccess.java
492 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
493 Add checks for null objects and out of range access, with log messages to
494 give hints so we can fix these properly.
496 2012-05-07 Murray Cumming <murrayc@murrayc.com>
498 Portals: some corrections.
500 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
502 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
503 constructor: Use getRelationshipNameUsed() instead of getName(), because
504 that is what is meant.
505 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
506 getFromField(): Fix a typo, to get the field name, not the table name.
507 * src/main/java/org/glom/web/server/database/DBAccess.java:
508 getPortal(): Fix a typo that stopped this from working.
510 2012-05-07 Murray Cumming <murrayc@murrayc.com>
512 LayoutItemPortal: Also override getTitleOriginal().
514 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
515 This lets the base getTitle() with no parameters work.
516 TODO: Test this properly.
518 2012-05-06 Murray Cumming <murrayc@murrayc.com>
520 LayoutItemPortal: getTitle*(): Use the relationship title.
522 2012-05-06 Murray Cumming <murrayc@murrayc.com>
524 LayoutItemField: Fix loading of custom titles.
526 * src/main/java/org/glom/web/server/libglom/Document.java
527 loadDataLayoutItemField(): The title, if any, instead of the field
528 title, is stored in a title_custom node. Load it from there.
529 * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
531 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
532 Add getCustomTitle() and use it, instead of super.getTitle*(), in the
533 getTitle*() overrides.
534 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
537 2012-05-06 Murray Cumming <murrayc@murrayc.com>
539 LayoutItemField: Fall back to field titles, so some are really shown.
541 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
542 Override getTitleOriginal() and getTitle(), as in java-libglom.
543 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
546 2012-05-06 Murray Cumming <murrayc@murrayc.com>
548 Correct use of setExpectedResultSize().
550 * src/main/java/org/glom/web/server/ConfiguredDocument.java
551 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
552 Use setExpectedResultSize only on top-level groups (for instance, the
553 list layout) or on child portals (in details views).
554 Use the correct table name for portals to avoid SQL errors.
555 Update the expected counts when returning cached layouts.
557 2012-05-06 Murray Cumming <murrayc@murrayc.com>
559 Document: Interpret no group column count as 1.
561 * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
562 default, though we now check for this in the UI code anyway.
564 2012-05-06 Murray Cumming <murrayc@murrayc.com>
568 2012-05-06 Murray Cumming <murrayc@murrayc.com>
570 Translatable: Use Hashmap instead of Treemap because GWT supports it.
572 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
573 The use of Treemap lead to this error from async methods, with no
575 "The response could not be deserialized"
577 2012-05-06 Murray Cumming <murrayc@murrayc.com>
579 OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
581 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary
582 when using the Google -> GWT Compile, or
583 g toolbar button -> GWT Compile Project... feature in Eclipse.
585 2012-05-06 Murray Cumming <murrayc@murrayc.com>
587 ListTable.addColumn(): Protect against a null Formatting.
589 * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
590 Create a default Formatting if it is null, because that is the simplest
593 2012-05-06 Murray Cumming <murrayc@murrayc.com>
595 ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
597 * src/main/java/org/glom/web/server/ConfiguredDocument.java
598 updateLayoutGroup(): Check that the field is not null.
600 2012-05-06 Murray Cumming <murrayc@murrayc.com>
602 ListViewImpl: Protected against a bad cast error.
604 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
605 onEnterKeyDown(): Do not cast without an instanceof check.
607 2012-05-06 Murray Cumming <murrayc@murrayc.com>
609 ListTable: Protect against an out of range error.
611 * src/main/java/org/glom/web/client/ui/list/ListTable.java
612 createCellTable(): This is unlikely, but can happen while debugging.
614 2012-05-06 Murray Cumming <murrayc@murrayc.com>
616 AsyncMessage onFailure() callbacks: Log the exception message.
618 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
619 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
620 * src/main/java/org/glom/web/client/activity/ListActivity.java:
621 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
622 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
623 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
624 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
625 These are useful clues when something is wrong.
627 2012-05-06 Murray Cumming <murrayc@murrayc.com>
629 ConfiguredDocument: Avoid a null dereference.
631 * src/main/java/org/glom/web/server/ConfiguredDocument.java
632 TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and
633 details maps are created.
635 2012-05-06 Murray Cumming <murrayc@murrayc.com>
637 Document: Correct the port number parsing.
639 * src/main/java/org/glom/web/server/libglom/Document.java:
640 This lets us actually connect to the database and show the document.
642 2012-05-05 Murray Cumming <murrayc@murrayc.com>
646 * pom.xml: Use htmlunit mode for gwt:test, because the default demands
647 user-interaction, asking us to load a temporary URL in a browser.s
648 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
649 which is apparently necessary for testing the service. See the comment.
650 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
651 Show the exception, if any. This is how I saw the 404 in the HTML in
654 2012-05-05 Murray Cumming <murrayc@murrayc.com>
656 DocumentTest: Move the .glom files into the resources directory.
658 * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
659 URI via getResource().
661 2012-05-05 Murray Cumming <murrayc@murrayc.com>
663 Document: Remove the FieldIdentifies inner class.
665 * src/main/java/org/glom/web/server/libglom/Document.java: We only
666 use the Relationship (though the same function in libglom is maybe
667 used in other ways) and so this removes a compiler warning.
669 2012-05-05 Murray Cumming <murrayc@murrayc.com>
671 Document.load() Remove the error code parameter.
673 * src/main/java/org/glom/web/server/libglom/Document.java: load():
674 Remove the parameter. We do not set it yet and it could never have
675 worked as an output parameter (though maybe it did in java-libglom).
676 We could use an exception if we really want the failure reason.
677 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
679 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
680 setUp(), testGetSuitableTableToViewDetails(): Adapt.
682 2012-05-05 Murray Cumming <murrayc@murrayc.com>
684 Make some inner classes static.
686 * src/main/java/org/glom/web/server/ConfiguredDocument.java
687 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
688 * src/main/java/org/glom/web/server/ReportGenerator.java
689 * src/main/java/org/glom/web/server/libglom/Document.java
690 Make all inner classes static that can be static.
692 2012-05-05 Murray Cumming <murrayc@murrayc.com>
694 OnlineGlomServiceImpl: Do not load and check for java-libglom.
696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
697 init(): We do not use java-libglom any more.
699 2012-05-05 Murray Cumming <murrayc@murrayc.com>
701 Remove mentions of java-libglom.
703 * README: Remove mention of java-libglom, because it no longer needed.
704 * utils/build-onlineglom-war.sh:
705 * utils/check-and-recover-tomcat.py:
706 * utils/install-onlineglom-war.sh: Remove these as they are no longer
707 useful. Building is now far easier, with no need for jhbuild.
709 2012-05-05 Murray Cumming <murrayc@murrayc.com>
711 Fix the build (mvn package)
713 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
714 (LayoutGroup): Make the LayoutItemList inner class static and protected.
715 Otherwise the GWT Java->Javascript compilation fails with just this
716 error, during mvn package or when attempting to view in a browser,
717 in the GWT developer mode in Eclipse.
719 [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
720 [INFO] auto discovered modules [org.glom.web.OnlineGlom]
721 [INFO] Compiling module org.glom.web.OnlineGlom
722 [INFO] [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
723 [INFO] [ERROR] Line 46: Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
724 [INFO] Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
725 [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
726 [INFO] [WARN] org.glom.web.client.OnlineGlomService_Proxy
727 [INFO] [ERROR] Cannot proceed due to previous errors
729 It has taken me 2 days to find out what was causing that. After reducing
730 the code, the compiler eventually showed me the full error message.
732 2012-05-04 Murray Cumming <murrayc@murrayc.com>
734 ConfiguredDocument: Cache the cloned and stripped layouts.
736 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
737 getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
738 layout in a map, so we can retrieve it again without rebuilding it.
740 2012-05-04 Murray Cumming <murrayc@murrayc.com>
742 UsesRelationshipImpl: Complete the relationshipEquals() implementation.
744 2012-05-04 Murray Cumming <murrayc@murrayc.com>
746 libglom classes: Implement some auto-generated emthods.
748 2012-05-04 Murray Cumming <murrayc@murrayc.com>
750 Add GwtTestOnlineGlomService.
752 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
753 However, this (and the other GwtTest*) does not seem to run during
756 2012-05-04 Murray Cumming <murrayc@murrayc.com>
758 Remove use of unsupported features from client code.
760 * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
761 * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
762 * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
763 Use our client version of StringUtils instead of the apache commons one.
765 However, the GWT Javascript compliation still fails.
767 2012-04-25 Murray Cumming <murrayc@murrayc.com>
769 Add a Field class and implement some loading of it in Document.
771 2012-04-25 Murray Cumming <murrayc@murrayc.com>
773 Initial Document loading implementation, instead of libglom.
775 * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
776 and Translatable classes, and adapt the rest of the code to use them.
777 However, this is still missing Layout and Field classes and loading.
779 2012-04-24 Murray Cumming <murrayc@murrayc.com>
781 Use of jOOQ: Move Field creation into a utility method.
783 * src/main/java/org/glom/web/server/SqlUtils.java:
784 This lets us improve it more easily.
786 2012-04-24 Murray Cumming <murrayc@murrayc.com>
788 Use of jOOQ: Improve the code to COUNT a sub-select.
790 * src/main/java/org/glom/web/server/SqlUtils.java:
791 Move initial query creation into
792 build_sql_select_step_with_where_clause().
793 build_sql_select_count_rows(): Use the jOOQ API instead of
794 concatentating text, because a jOOQ Select*Step is a TableLike,
795 which is what from() takes.
797 2012-04-23 Murray Cumming <murrayc@murrayc.com>
799 Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
801 * pom.xml: Depend on jooq.
802 * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
803 methods with jOOQ, based on the C++ implementations in libglom,
804 with some changes to the logic required by jooQ.
805 Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
807 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
808 * src/main/java/org/glom/web/server/ReportGenerator.java:
809 * src/main/java/org/glom/web/server/SqlUtils.java:
810 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
811 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
812 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
813 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
814 * src/main/java/org/glom/web/server/database/RelatedListNavigation:
815 Adapt. In particular, the SqlUtils methods now need to take a Connection,
816 because jOOQ needs that, though it seems unnecessary.
818 This is not quite finished. Ideally jOOQ would help us to build
819 table_name.field_name names, quoting and escaping them properly.
820 See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
822 2012-04-21 Murray Cumming <murrayc@murrayc.com>
824 Move use of Glom.build_sql*() into a new SqlUtils class.
826 * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
827 to wrap Glom.build_sql*(). The parameter types are still Glom one,
828 but this will make it easier to start using something other than
829 libglom or SqlBuilder.
831 2012-04-21 Murray Cumming <murrayc@murrayc.com>
833 Update the project URL.
835 * pom.xml: Use an OnlineGlom-specific URL for the project URL.
837 2012-04-21 Murray Cumming <murrayc@murrayc.com>
839 Main layout: Use a FlowTable instead of absolute positioning.
841 * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
842 The RootLayoutPanel is a (extends) AbsolutePanel, so each of its
843 child panels/widgets must have an absolute position. But that is annoying, so
844 this adds a FlowTable and puts the child panels in there.
846 2012-04-21 Murray Cumming <murrayc@murrayc.com>
848 GwtTestOnlineGlom: Comment out unused code.
850 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
851 Eclipse has started to say that some code is unused.
853 2012-04-21 Murray Cumming <murrayc@murrayc.com>
855 Update to the latest versions of dependencies.
857 * pom.xml: Update version numbers of dependencies to the latest
859 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
860 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
861 * src/main/java/org/glom/web/server/ReportGenerator.java:
862 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
863 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
864 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
866 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
867 Modify the imports where necessary.
869 2012-04-17 Murray Cumming <murrayc@murrayc.com>
871 Style: Remove overflow:hidden from searchbox
873 * src/main/webapp/style.css: Because this pushes the Back To Link
874 label/link on to the next row, which is then hidden due to the
875 hard-coded (in ems) height.
877 2012-04-20 Murray Cumming <murrayc@murrayc.com>
879 Remove some duplicate code.
881 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
882 getDocumentInfo(): This must have been duplicated during the merge from the
887 2012-04-19 Murray Cumming <murrayc@murrayc.com>
889 Reports: Localize the waiting for report message.
891 * src/main/java/org/glom/web/client/activity/ReportActivity.java
892 start(): Get the message from the contants.
893 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
895 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
896 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
897 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
898 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
899 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
900 Update these files with the English text for newer strings for now.
902 2012-04-19 Murray Cumming <murrayc@murrayc.com>
904 Reports: Show a message while waiting for the report.
906 * src/main/java/org/glom/web/client/ui/ReportView.java
907 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
908 Add setWaitingText(), to show a message saying that we are
909 waiting for the report to be ready.
910 * src/main/java/org/glom/web/client/activity/ReportActivity.java
911 start(): Call setWaitingText() before calling the async
914 2012-04-19 Murray Cumming <murrayc@murrayc.com>
916 ReportGenerator: Specify date and time formats.
918 * src/main/java/org/glom/web/server/ReportGenerator.java:
919 createFieldValueElement(): Use the default (and localized)
920 short formats, though we still need a way to show 4-digit
921 years without providing the format for every locale.
922 * src/main/java/org/glom/web/server/database/DBAccess.java:
923 convertResultSetToDTO(): Use the short formats here too.
925 2012-04-18 Murray Cumming <murrayc@murrayc.com>
927 ReportGenerator: Use the correct numeric formatting.
929 * src/main/java/org/glom/web/server/ReportGenerator.java
930 createFieldExpression(), createFieldValueElement(): Take the
931 whole LayoutItem_Field instead of just the field name, so
932 we have access to the formatting.
933 createFieldValueElement(): Use JRTextField.setPattern() to
934 specify the numeric formatting, with the help of a
935 regular DecimalFormat.
937 2012-04-18 Murray Cumming <murrayc@murrayc.com>
939 ReportGenerator: Avoid showing null for group by titles.
941 * src/main/java/org/glom/web/server/ReportGenerator.java
942 generateReport(): Use setBlankWhenNull() on the field title
943 style too, because this is used for values in group by
946 2012-04-18 Murray Cumming <murrayc@murrayc.com>
948 ReportGenerator: Add a colon to titles in vertical groups.
950 * src/main/java/org/glom/web/server/ReportGenerator.java
951 addFieldToDetailBandVertical(): Pass true for the withColon
954 2012-04-18 Murray Cumming <murrayc@murrayc.com>
956 ReportGenerator: Simplify the code by using Position more.
958 2012-04-18 Murray Cumming <murrayc@murrayc.com>
960 Reports: Support vertical groups, roughly.
962 * src/main/java/org/glom/web/server/ReportGenerator.java:
963 addToReport(): Rename to addGroupToReport() and, if necessary,
964 call the new addVerticalGroupToReport() method.
965 createFieldValueElement(): Let the caller specify the Y position
968 2012-04-17 Murray Cumming <murrayc@murrayc.com>
970 Reports: Allow a second report to be shown.
972 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
973 clear(): Do not remove the HTML widget, which broke the whole layout.
975 2012-04-17 Murray Cumming <murrayc@murrayc.com>
977 Locales drop-down: Show that we use English by default.
979 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
980 fillView(): When we use English, just because that is the default, when
981 no locale is specified, show that in the Locales drop-down instead of
982 just showing the first item.
984 2012-04-17 Murray Cumming <murrayc@murrayc.com>
986 Unselect the Report/Locale/Table combo item when appropriate.
988 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
989 setPlace(): clear reportName if this is not a ReportPlace.
990 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
991 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
992 When the provided name is empty, unselect all items, so that none are
993 indicated. This uses a for loop because I cannot find a single method
996 2012-04-17 Murray Cumming <murrayc@murrayc.com>
998 Report: Give the user a way to get back to the list.
1000 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1001 start(), setPlace(): Show the Back To List link on reports, and also
1002 interpret selecting the empty report item as back to list.
1004 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1006 Really show the selected Report name.
1008 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1009 setPlace(): Store the reportName here, if it is that kind of Place.
1010 fillView(): Set the selected Report after filling the list of reports.
1011 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1012 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
1013 null Strings, though we need some way to unselect all ListBox items
1016 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1018 ReportGenerator: Try to avoid some problems.
1020 * src/main/java/org/glom/web/server/ReportGenerator.java
1021 addField(): Try to avoid duplicates, and avoid using a null
1024 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1026 Reports: Use quickFind.
1028 * src/main/java/org/glom/web/client/OnlineGlomService.java;
1029 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1030 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1031 getReportHTML(): Add a quickFind parameter.
1032 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1033 start(): Pass the quickFind parameter.
1034 * src/main/java/org/glom/web/server/ReportGenerator.java
1035 generateReport(): Take a quickFind parameter.
1037 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1039 ReportPlace: Actually use the report name.
1041 * src/main/java/org/glom/web/client/place/ReportPlace.java
1042 getPlace(): Do not assign the report name to the quickfind.
1044 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1046 Show java.library.path when complaining.
1048 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1049 init(): When telling us to check java.library.path, show the
1052 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1054 ReportGenerator: Do not show nulls.
1056 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1058 ReportGenerator: Make the title font larger.
1060 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1062 ReportGenerator: Put field titles inside groups, if there are groups.
1064 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1066 ReportGenerator: Take the Report itself instead of the name and group.
1068 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1069 Remove getReportLayoutGroup().
1070 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1071 getReportHTML(): Pass the report instead
1072 of its name and layout group.
1073 * src/main/java/org/glom/web/server/ReportGenerator.java
1074 generateReport(): Use the report object to use the title
1075 instead of the name.
1077 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1079 ReportGenerator: Remove designBand parameters.
1081 * src/main/java/org/glom/web/server/ReportGenerator.java:
1082 Make designBand a class member instead of passing it to all
1085 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1087 ReportGenerator: Add lines, a bit like in the desktop version.
1089 * src/main/java/org/glom/web/server/ReportGenerator.java
1090 addToReport(): Use JRDesignLine.
1092 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1094 ReportGenerator: Correct the title positions and use some bold style.
1096 * src/main/java/org/glom/web/server/ReportGenerator.java:
1097 Break the code up into reusable functions, correct the placement of
1098 titles, and use normal/bold styles as in the reports in the desktop
1101 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1103 ReportGenerator: Add a header band to show the field titles.
1105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1106 getReportHTML(): Pass the localeId to the ReportGenerator
1108 * src/main/java/org/glom/web/server/ReportGenerator.java
1109 constructor: Take the localeID so we can get translated field
1111 generateReport(), addToReport(), addFieldToBand(): Add field
1112 titles in a column header band.
1114 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1116 Reports drop-down list: Some improvement.
1118 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1119 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1120 Adedd setSelectedReport(),
1121 setReportList(): Add a blank line so that the user can select the
1123 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1124 start(): Show the current report by calling setSelectedReport().
1125 This does not seem to work yet.
1127 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1129 DetailsActivity, ListActivity: Move some variables into a base class.
1131 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1132 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
1133 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
1134 the clientFactory, documentID, tableName and authenticationPopup into
1135 a base class, to avoid duplication.
1137 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1139 Translate the Reports label.
1141 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1142 Get the "Reports" label string from the constants.
1143 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
1144 perties: Add Reports to the constants.
1146 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1148 Reports: Implement grouping.
1150 * src/main/java/org/glom/web/server/ReportGenerator.java:
1151 Handle LayoutItem_GroupBy items and try to do the right thing
1152 with JRDesignGroup. It seems to work.
1154 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1156 Actually show some data with JasperReports.
1158 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1159 getReportHTML(): Move most code into a ReportGenerator class.
1160 * src/main/java/org/glom/web/server/ReportGenerator.java:
1161 Recurse into sub-groups, adding fields to the JasperDesign's details
1162 band. Note that we must set an arbitrary width and height, or it just
1163 will not show any data.
1165 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1167 Reports Chooser: Show the titles, not the names.
1169 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1170 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
1171 and the names as the values.
1172 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1173 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
1174 group now that we provide the report name, so it should always
1177 2012-02-15 Murray Cumming <murrayc@murrayc.com>
1179 Depend on jasperreports.
1181 * pom.xml: Add the dependency. My plan is to use this on the
1184 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1186 Implement navigation to report places.
1188 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1189 start(): Do not bother to handle all events here.
1190 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1191 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1192 Added getSelectedReport().
1193 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1194 .java: start(): When handling a change to the reports chooser,
1195 call getSelectedReport() and goTo() its ReportPlace.
1196 * src/main/java/org/glom/web/client/ui/ReportView.java
1197 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1198 Added setReportHTML() which puts the html in a gwt HTML widget.
1199 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1200 getReportHTML(): Return "TODO" just to show that this works.
1202 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1204 Make ReportPlace usable.
1206 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1207 Mention ReportPlace.
1208 * src/main/java/org/glom/web/client/place/ReportPlace.java:
1209 Correct the @prefix annotation.
1211 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1213 OnlineGlomService: Return report HTML rather than the LayoutGroup.
1215 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1216 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1218 Change getReportLayout() to getReportHMTL() because we will not need to
1219 parse or render the report layout on the client side.
1220 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1221 getReportLayout(): Return the libglom LayoutGroup type because we will
1222 not need to convert to a shared type, because this will not be used on
1224 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1227 Note that there is still no implementation for this.
1230 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1232 Add a (empty) Report Place, View, and Activity.
1234 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1236 * src/main/java/org/glom/web/client/place/HasTablePlace.java
1237 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
1238 this into a superclass:
1239 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
1240 and also use it as the base of this new ReportPlace:
1241 * src/main/java/org/glom/web/client/place/ReportPlace.java
1243 * src/main/java/org/glom/web/client/ui/ReportView.java
1244 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
1245 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1246 Add these, containing mostly boiler-plate for now.
1248 * src/main/java/org/glom/web/client/OnlineGlomService.java
1249 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1250 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1251 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1252 Add API to get the LayoutGroup for the report.
1254 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1256 Add and fill a Reports drop-down list box.
1258 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1260 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1261 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1262 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1263 Added getReports(document, table, localeID), calling
1264 ConfiguredDocument.getReports().
1265 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1266 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1267 Added setReportsList() and a list widget.
1268 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1269 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
1274 2012-04-12 Murray Cumming <murrayc@murrayc.com>
1276 Translations: Add Esperanto.
1278 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
1279 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
1280 properties: Add this translation because someone took the time to make it.
1282 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1284 Adapt to the java-libglom 1.21.7 API.
1286 * src/main/java/org/glom/web/server/ReportGenerator.java:
1287 addToReport(): get_group_secondary_fields() is now
1288 get_secondary_fields().
1291 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1293 Use the latest java-libglom version.
1295 * pom.xml: Use java-libglom 1.21.7.
1297 2012-03-03 Ben Konrath <ben@bagu.org>
1299 Display date and time in details view.
1301 https://bugzilla.gnome.org/show_bug.cgi?id=671257
1303 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1305 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1307 Require the latest java-libglom.
1309 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1311 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1313 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1315 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1316 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
1317 an empty quickfind string. I also corrected libglom to create only
1318 empty where clauses for empty quickfind strings, but this avoids the
1321 2012-02-24 Ben Konrath <ben@bagu.org>
1323 Improve the tabs in the Notebook widget.
1327 2012-01-30 Murray Cumming <murrayc@murrayc.com>
1329 Translations: Try to translate the strings.
1331 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1332 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1333 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1334 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1335 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1336 Take the Open translation from GTK+'s .po files.
1337 Take the Details translation from Glom's po files.
1338 I have added the other strings to Glom so we can get translations that way:
1339 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
1341 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1343 TableSelectionViewImpl: Put the search label and entry in a div.
1345 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1346 Put the search widgets in a FlowTable so that the CSS can be used to
1347 style them while keeping them together.
1348 * src/main/webapp/style.css: Mention the new div.
1350 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1352 Translate more strings in more locales.
1354 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1355 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1356 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1357 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1358 Translate the "Details" and "Open" string too.
1360 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
1361 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1362 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1363 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1364 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1365 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1366 Add these new locales as placeholders though they currently contain English.
1368 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1370 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
1372 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
1373 Check the ConfiguredDocument* for null before using it.
1375 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1377 Tell Eclipse about the generated java files.
1379 * .classpath: This lets it find OnlineGlomConstants.java.
1380 It would be nice if Eclipse just used the maven build files.
1382 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1384 Prevent a crash when no locale is specified in the URL.
1386 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
1387 Avoid returning a null string, obtained from
1388 Window.Location.getParameter(). This caused a crash when it was
1389 later passed to libglom's API.
1390 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1391 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
1392 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
1393 guard against future null strings.
1395 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1397 Use the ?locale= query param instead of the &lang= token param.
1399 * src/main/java/org/glom/web/client/place/ListPlace.java
1400 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1401 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1402 Remove the lang token key and value.
1404 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1405 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1406 When the user selects a different locale from the chooser, use
1407 Window.Location.assign() to change the URL, which then causes a reload.
1409 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
1410 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1411 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
1412 * src/main/java/org/glom/web/client/activity/ListActivity.java
1413 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1414 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1415 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1416 * src/main/java/org/glom/web/client/ui/ListView.java:
1417 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1419 Remove localeID member variables and method/constructor parameters, instead
1420 using Utils.getCurrentLocaleID() when we need a localID to pass to
1423 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1425 Internationalize the UI strings.
1427 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
1428 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
1429 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
1430 because it is unused. Messages are apparently strings that can have
1431 parameters, but we do not need that yet, so Contants will be enough for now.
1432 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
1433 to say that we support the en and de locales.
1434 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1435 The original English strings.
1436 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1437 Some German translations of the English strings.
1438 The i18n goal then uses the .properties file to generate an
1439 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
1440 returns an implementation that returns the translated strings.
1441 The documentation suggests putting these in src/java/*/client/, but it seems
1442 best to put it in src/resources/*/client/.
1443 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1444 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
1445 instead of hard-coding them.
1446 Note that we cannot import OnlineGlomConstants because it does not exist yet,
1447 but that does not seem to stop the build, though it confuses Eclipse.
1449 You can see the translated string by adding ?locale=de to the URL, like so:
1450 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
1452 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1454 Improve null/empty String checks.
1456 * pom.xml: Add a dependency on commons-lang, to use
1457 org.apache.commons.lang.StringUtils.
1458 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1459 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1460 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
1461 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1462 Use StringUtils.isEmpty().
1464 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
1465 StringUtils class with a static isEmpty() function because we
1466 cannot use org.apache.commons.lang.StringUtils in client-side
1467 GWT code because it (apparently) cannot be compiled to javascript.
1468 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1469 * src/main/java/org/glom/web/client/activity/ListActivity.java
1470 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
1471 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1472 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1473 * src/main/java/org/glom/web/client/place/ListPlace.java
1474 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
1475 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
1476 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1477 * src/main/java/org/glom/web/client/ui/details/Group.java
1478 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
1479 our StringUtils.isEmpty() function.
1481 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1483 Update to the latest java-libglom API.
1485 * pom.xml: Require java-libglom 1.21.4.
1486 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1487 getDocumentInfo(), getListViewLayoutGroup():
1488 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1490 * src/main/java/org/glom/web/server/database/DBAccess.java
1491 getFieldsToShowForSQLQueryAddGroup(),
1492 getPrimaryKeyLayoutItemField(): Replace get_database_title()
1493 with either get_database_title_original() or
1494 get_database_title(localeID).
1496 2012-01-24 Murray Cumming <murrayc@murrayc.com>
1498 ConfiguredDocument: Avoid a null pointer exception.
1500 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1501 Initialize localeID to "" to avoid returning a null String which
1502 causes a crash in java-libglom's swing-generated code.
1504 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1506 Some simple renaming.
1508 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1509 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
1510 for localeChooser. This seems more appropriate and is less ambiguous
1511 particularly in the .css file.
1513 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1515 ConfiguredDocument: Rename the localedID private member variable.
1517 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1519 Adapt to the latest java-libglom API from git master.
1521 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1522 libglom now uses only Vector instead of List, which uses add() instead of
1525 2012-01-22 Murray Cumming <murrayc@murrayc.com>
1527 ConfiguredDocument: Rename the localedID private member variable.
1529 2012-01-20 Murray Cumming <murrayc@murrayc.com>
1531 Build a source tarball with mvn assembly:single
1533 * assembly.xml: Add this file.
1534 * pom.xml: Use the maven-assembly-plugin and tell it to use
1535 our assembly.xml file.
1537 2012-01-19 Murray Cumming <murrayc@murrayc.com>
1539 OnlineGlomServiceImpl: Get .glom files recursively.
1541 * pom.xml: Depend on commons-io from org.apache.commons.
1542 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1543 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
1544 files recursively, and with the easier filter for the extension.
1545 Use org.apache.commons.io.FilenameUtils.removeExtension() to
1546 simplify that code too.
1548 2012-01-19 Murray Cumming <murrayc@murrayc.com>
1550 README: Mention that you must install java-libglom packages separately.
1552 But then it works, because java-libglom is now in the central maven
1555 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1557 locales drop-down: Show the correct selected locale when the URL changes.
1559 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1560 .java: setPlace(): Move some code into fillView().
1562 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1564 locales drop-down: Do not lose the primary key.
1566 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1567 start(): onLocaleChange(): Pass the current primary key value,
1568 instead of an empty value.
1570 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1572 locales drop-down: Do not lose the drop-down selection.
1574 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1575 .java (TableSelectionActivity.fillView): Set the selected locale
1576 after changing the drop-down items (though we do not really need
1577 to change them just because the locale changes.)
1579 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1581 locales drop-down: Change the tables list when this changes.
1583 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1584 .java: TableSelectionActivity.start(): Move the async table titles
1585 retrieval into a private fillView() method and also call this when
1586 the chosen locale changes.
1587 Note that the document title is not actually translatable yet, but
1588 that is a problem that I should fix soon in libglom.
1590 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1592 Improve the placement of the locales drop-down.
1594 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1595 Put the title and locales drop-down in a div (gwt.FlowTable).
1596 * src/main/webapp/style.css: Add magic css properties to make this work.
1597 Also remove the left margin from the title so that it lines up with the
1600 2012-01-18 Murray Cumming <murrayc@murrayc.com>
1602 locales selector: Show human-readable locale titles.
1604 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1605 getDocumentInfo(): Use java.util.Locale to show a real title of
1606 each locale, in the locale's own language.
1608 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1610 Add a language/locale selector drop-down.
1612 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1613 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
1614 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
1615 getDocumentInfo(): Store the available Locales in the DocumentInfo.
1616 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1617 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1618 Add a ListBox to show the available locales. Add getLocaleSelector(),
1619 setLocaleList(), getSelectedLocale(), setSelectedLocale().
1620 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
1621 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
1622 java: Add these classes.
1623 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1624 start(): Fill the locales ListBox. Handle its change event, firing a
1626 setPlace(): Show the selected locale as specified by the URL token.
1627 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1628 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1629 Handle LocaleChangeEvent, going to a new *Place with that locale.
1631 The placement of the ListBox is not pretty, and it currently uses the ID
1632 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
1636 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1638 Search box: Show the search text from the URL token.
1640 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1641 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1642 Add setQuickFindText().
1643 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1644 .java: setPlace(): Store the queryText if the place is a ListPlace,
1645 and call TableSelectionView.setQuickFindText().
1647 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1649 Allow use of translations via, for instance, &lang=de in the URL.
1651 * pom.xml: Use the unstable java-libglom 1.21 version.
1653 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1654 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1655 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1656 init(): Instead of calling TranslatableItem.set_current_locale()
1657 (now removed), call ConfiguredDocument.setDefaultLocaleID().
1658 However, this is only for default locales, which are not needed to
1659 change the locale in the URL.
1660 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
1661 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
1662 getSortedRelatedListData(): Add a localeID parameter, so we can get the
1663 layout for a particular locale.
1664 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1665 Add get/setDefaultLocaleID().
1666 getDocumentInfo(), getListViewData(), getRelatedListData(),
1667 getDetailsLayoutGroup(), getListViewLayoutGroup(),
1668 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
1669 localeID parameter, so we can get the layout for a particular locale.
1671 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1672 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1673 * src/main/java/org/glom/web/client/place/ListPlace.java:
1674 Parse and construct a lang parameter too.
1676 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1677 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
1678 passed to subsequent methods and constructors.
1679 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1680 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1681 Store the localeID from the *Place and pass it to other constructors
1682 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
1684 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1685 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1686 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1687 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1688 * src/main/java/org/glom/web/client/ui/ListView.java:
1689 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1690 Take localeID parameters and pass them to subsequent constructors and
1691 methods, so that the layout is always retrieved for that locale.
1693 This is rather repetitive.
1695 Note that "" means the original (default) locale of the Glom document,
1696 which is usually English.
1698 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1700 Documents: Remove final keyword to fix startup configuration.
1702 * src/main/java/org/glom/web/shared/Documents.java: Remove the
1703 final keywords on the private member variables because that breaks
1704 the startup, apparently (there are warnings) because it stops them
1705 from being serialized. I added these in the previous commit.
1707 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1709 Documents: Add some final keywords.
1711 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
1714 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1716 OnlineGlomServiceImpl: Add to overview comments.
1718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1719 Note that this is where all the document are loaded. They are not
1720 loaded freshly for each page.
1722 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1726 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1727 Add a TextBox for the text of a quick find.
1728 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
1730 setBackLink(): Add a String quickFind parameter.
1731 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1732 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
1733 to the base interface, because that is how TableSelectionViewImpl is used.
1734 * src/main/webapp/style.css: Add style for the search box and its label.
1736 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
1737 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
1738 Add these files, based on the existing TableChangeEvent and
1739 TableChangeEventHandlers.
1740 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1741 start(): Handle QuickFindChangeEvent, passing its quickFind text to
1742 a ListPlace() that the user should be taken to.
1743 * src/main/java/org/glom/web/client/activity/ListActivity.java
1744 start(): Handle it here too and adapt the TableChangeEvent handler to
1745 pass the extra "" quickFind parameter to ListPlace.
1746 * src/main/java/org/glom/web/client/place/ListPlace.java:
1747 Constructor: Take an extra String quickFind parameter and store it,
1748 returning it from a new getQuickFind() method.
1749 getToken(): Put the quickFind text in the URL token.
1750 getPlace(): Parse the quickFind text from the URL token.
1751 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1752 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
1753 ListPlace constructor.
1754 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1755 .java: start(): Add a Change handler for the TableSelectionView's
1756 TextBox (via its base HasChangeHandlers interface), firing the new
1757 QuickFindChangeEvent.
1758 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
1759 pass the extra "" quickFind parameter.
1761 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1762 setCellTable(): Add a String quickFind parameter and pass it to
1763 the ListViewTable() constructor.
1764 * src/main/java/org/glom/web/client/ui/ListView.java: Change
1765 setCellTable() in the base interface, because that is how ListViewImpl
1768 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1769 Add a String quickFind member variable.
1770 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1771 Constructor: Add a String quickFind parameter, storing it in the
1772 base ListTable's member variable.
1773 onRangeChanged(): Pass quickFind to the
1774 OnlineGlomServiceAsync.getSortedListViewData() and
1775 OnlineGlomServiceAsync.getListViewData() methods.
1777 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1778 getListViewData(), getSortedListViewData(): Add a String quickFind
1779 parameter, passing it to ConfiguredDocument.getListViewData().
1780 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1781 Change getListViewData(), getSortedListViewData() in the base interface,
1782 because that is how OnlineGlomServiceImpl is used, via this:
1783 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1784 Change getListViewData(), getSortedListViewData() here too.
1785 This class can apparently be used to asynchronously call methods on
1786 OnlineGlomService, and GWT seems to implement that after recognizing
1787 just the *Async name convention and the extra AsyncCallback parameters.
1789 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1790 getListViewData(): Add a String quickFind parameter, and pass it to
1791 ListViewDBAccess.getData().
1792 * src/main/java/org/glom/web/server/database/ListDBAccess.java
1793 getListData(): Add a String quickFind parameter and pass it to
1795 getSelectQuery(): Add a String quickFind parameter.
1796 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1797 getSelectQuery(): Add a String quickFind parameter and use it with
1798 Glom.get_find_where_clause_quick() to pass a where_clause to
1799 Glom.build_sql_select_with_where_clause(), to actually filter the
1801 getData(): Add a String quickFind parameter, passing it to getListData().
1802 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
1803 va: getData(): Pass an empty string to getListData() for the
1804 quickFind parameter.
1806 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1808 ListTable: Minor change.
1810 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1811 createCellTable(): Make this protected instead of public.
1813 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1815 Many files: Use final for the parameters and use the @override attribute.
1817 2012-01-22 Ben Konrath <ben@bagu.org>
1819 Add anchor links for single line text that starts with http, ftp and www.
1823 2012-01-22 Ben Konrath <ben@bagu.org>
1825 Add ellipsis to single line text in details view.
1829 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1831 Remove all javadoc author tags.
1833 Because they are awkward and meaningless when many people touch
1835 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
1837 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1839 Revert the COPYING.LESSER to COPYING rename.
1841 Apparently both should be there if it is LGPL.
1843 2012-01-03 Murray Cumming <murrayc@murrayc.com>
1845 *View: Remove unused imports.
1847 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1848 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1849 * src/main/java/org/glom/web/client/ui/ListView.java:
1850 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1851 Remove unused imports, as suggested by Eclipse.
1853 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1855 Move the *View::Presenter types, and some API into one base View.
1857 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1858 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1859 * src/main/java/org/glom/web/client/ui/ListView.java:
1860 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
1861 Presenter, setPresenter() and clear() into a shared base interface,
1862 to avoid the unnecessary duplicate Presenter types and to more clearly
1863 show how the *Views share the same structure, even if they are not
1864 used polymorphically.
1866 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1867 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1869 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1870 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1871 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
1873 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1876 Feel free to revert this if there is a good reason for the duplicate
1879 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1881 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
1883 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
1884 a class member instead of a local variable in the method.
1885 This lets us use it to get the view instances, for use in tests.
1886 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1887 beforeOnlineGlom(): Test some more details of the initial view.
1888 Again, this is not very useful.
1890 To really test gwt-glom we will need to start a local postgresql
1891 instance with local data, like the Glom tests in C++.
1893 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1895 pom.xml: Mention the LGPL license.
1897 * pom.xml: Add a licenses section.
1898 * COPYING.LESSER: Move this to COPYING, which
1899 previously contained the GPL. But gwt-glom is all LGPL.
1901 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1903 Add project information to README and pom.xml.
1905 * README: Add a brief description and mention some mvn
1907 * pom.xml: This extra information shows up in mvn site
1910 2011-01-02 Murray Cumming <murrayc@murrayc.com>
1912 Use the latest java-libglom version.
1914 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
1916 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1918 GwtTestOnlineGlom: Test a little more.
1920 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
1921 protected rather than private, as suggested by the gwt-test-utils
1923 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
1924 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
1925 Test the initial visibility of the panels.
1927 However, this is not a very useful test.
1928 And I wonder how we should generally test using this idea for an
1929 activity/places app like ours where the real changes happen implicitly
1930 based on the history token/URL.
1932 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1934 Slight modification to *Mapper comments.
1936 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
1937 (DataActivityMapper)
1938 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
1940 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
1942 Remove comments mentioning GIN because they are just copied from
1943 the example code and are apparently not helpful:
1944 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
1945 Also change the mention of a class that is only in the example code.
1947 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1949 GwtTestOnlineGlom test: Minor changes.
1951 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1952 Avoid the long qualified class name and modify the comment
1953 because it is now obvious to me that the mocked class is the only
1954 custom one created via GWT.create().
1956 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1958 Tests: Added the beginnings of a test using gwt-test-utils.
1960 * pom.xml: Add dependencies on gwt-test-utils and easymock.
1961 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
1962 which tells gwt-test-utils what class will be tested.
1963 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1964 Add a simple (but empty) test case. One class, used by the OnlineGlom
1965 class, is mocked so that it can be created. However, I am not sure
1966 why only this class needs to be mocked.
1968 Note that mockito seems more popular, and clearer, than easymock,
1969 but I have not got that working yet. It might be a matter of the
1972 This test is run during mvn integration-test.
1974 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1976 Tests: Use junit4-style syntax instead of junit3-style.
1978 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1979 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1980 * src/test/java/org/glom/web/shared/DataItemTest.java:
1981 Use the @Test annotation rather than relying on the test*() prefix.
1982 Also no longer implement TestCase, to avoid triggering support for
1983 the junit3-way, which stops the annotations from working.
1984 Change the imports from import junit.framework.* to
1985 import org.junit.*, which is apparently the new way.
1987 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1989 Added a test for ListPlace token parsing and creation.
1991 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1992 This is much the same as DetailsPlaceTest.
1994 I wonder how we could test the other parts of the *Place API.
1996 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1998 DetailsPlace test: Also test getToken() and recreation via getPlace().
2000 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2001 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
2002 recreate it, testing the recreated DetailsPlace for the same parameter
2005 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2007 Use the surefire-report plugin.
2009 * pom.xml: This generates a HTML report about the tests in
2010 target/site/surefire-report.html
2011 when you do mvn surefire-report:report. It seems to be popular/normal.
2013 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2015 Added a test for DetailsPlace.
2017 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2018 Test the getPlace() token parsing.
2020 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2022 Added a first unit test.
2024 * pom.xml: Add a test goal, and a dependency on junit in that scope.
2025 * src/test/java/org/glom/web/shared/DataItemTest.java:
2026 This is a silly test but it is just to get things started. Note that
2027 maven/junit finds the test because it looks in src/test by default.
2029 2011-12-22 Ben Konrath <ben@bagu.org>
2031 Change charsetName to "UTF-8" when replacing line breaks.
2033 JavaScript requires the charsetName to be "UTF-8". CharsetName values
2034 that work in Java (such as "UTF8") will not work when compiled to
2037 This fixes a problem with multi-line details view fields that have hard
2038 line breaks. The "License Text" field on this page demonstrates the
2041 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
2043 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2045 2011-12-22 Ben Konrath <ben@bagu.org>
2047 Fix another bug with related list navigation.
2049 I've tested all the navigation buttons in all of the related lists
2050 so things should be good now.
2052 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2054 2011-12-22 Ben Konrath <ben@bagu.org>
2056 Fix a crasher when refreshing the list view with the default table.
2058 This crash will also happen when loading the list view with the default
2059 table from a link or bookmark.
2061 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
2062 to the main document selection page when the document id hasn't been
2064 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
2065 the main document selection page when the document id hasn't been
2067 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
2068 values for the details place when the document id hasn't been set.
2069 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
2070 values for the list place when the document id hasn't been set.
2072 2011-12-21 Ben Konrath <ben@bagu.org>
2074 Protect against NPE when glom.document.locale is not in config.
2076 This patch protects against an NPE when glom.document.locale is not in
2077 the config file. This NPE will also happen if glom.document.locale is
2080 The patch also updates the error message to display the class name when
2081 the getMessage() returns null. This was happening when the NPE was
2082 thrown and I had "Configuration Error: null". If an NPE is encountered
2083 with this patch, "Configuration Error: NullPointerException " will be
2086 This commit closes this bug:
2088 https://bugzilla.gnome.org/show_bug.cgi?id=666669
2090 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2092 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2094 Rename onlineglom.properties to onlineglom.properties.sample.
2096 * src/main/resources/onlineglom.properties: Rename to:
2097 * src/main/resources/onlineglom.properties.sample:
2098 * src/main/resources/README: And add this file explaining that people
2099 should rename it back when deploying.
2101 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2103 Allow choosing the translation in the .properties file.
2105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2106 init(): Read a glom.document.locale value from the configuration file
2107 and call Glom's TransatableItem::set_current_locale() method.
2108 * src/main/resources/onlineglom.properties: Add a commented-out
2109 example of this new setting.
2111 It would be better to add &lang=de_DE to the URL, but the current
2112 libglom API does not allow us to do this easily. I am working on that.
2114 2011-12-19 Murray Cumming <murrayc@murrayc.com>
2116 Avoid a crash in parsing of token parameters.
2118 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
2119 ava: getTokenParams(): Do not crash if a parameter has a key but no
2120 value, and ignore parameters with neither.
2122 2011-12-17 Murray Cumming <murrayc@murayc.com>
2124 History token building/handling: Improve use of token parameters.
2126 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2127 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
2128 and buildParamsToken(HashMap), for use by derived classes.
2129 Make the separator private because it is no longer be needed.
2130 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2131 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
2132 instead of manual string concatenation.
2133 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
2134 of hardcoded indices and awkward splitting code.
2135 * src/main/java/org/glom/web/client/place/ListPlace.java
2136 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
2137 instead of manual string concatenation.
2138 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
2139 of hardcoded indices and awkward splitting code.
2140 This should fix bug #666420
2142 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2144 Fix a Navgiation->Navigation typo in the code.
2146 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2147 Rename processNavgiation() to processNavigation().
2149 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2151 Fix a seperator->separator typo in the code.
2153 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2154 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2155 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
2158 2011-12-15 Ben Konrath <ben@bagu.org>
2160 Cleanup some comments.
2162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2164 2011-12-14 Ben Konrath <ben@bagu.org>
2166 Replace \n with <br/> for multiline text in the details view.
2168 Vertical scrollbars are added when needed as well.
2170 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2172 2011-12-14 Ben Konrath <ben@bagu.org>
2174 Specify the font for document selection links.
2176 * src/main/webapp/style.css:
2178 2011-12-14 Ben Konrath <ben@bagu.org>
2180 Fix bouncy CellTable while paging.
2182 This doesn't currently work with related list tables in unselected
2185 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2187 2011-12-14 Ben Konrath <ben@bagu.org>
2189 Revamp the appearance of the document selection page.
2191 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2192 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2193 * src/main/webapp/style.css:
2195 2011-12-13 Ben Konrath <ben@bagu.org>
2197 Set navigation button column to the smallest size possible.
2199 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2201 2011-12-13 Ben Konrath <ben@bagu.org>
2203 Change OpenButton nomenclature to NavigationButton.
2205 Using NavigtionButton makes things more generic. Classes, methods and
2206 variables have been changed.
2208 This is a rename-only refactor.
2210 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2211 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2212 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
2213 Renamed from OpenButtonCell.
2214 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2215 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2216 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2218 2011-12-12 Ben Konrath <ben@bagu.org>
2220 Remove unnecessary String argument in RelatedListTable and ListViewTable.
2222 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2223 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2224 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2225 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2227 2011-12-12 Ben Konrath <ben@bagu.org>
2229 Update variable names and comments.
2231 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2232 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2234 2011-12-12 Ben Konrath <ben@bagu.org>
2236 Properly initialize numNonEmptyRows variable to zero.
2238 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2239 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2241 2011-12-05 Ben Konrath <ben@bagu.org>
2243 Add latest mockup with HTML tables.
2245 Features of this mockup:
2247 -> HTML table for flowtable
2248 -> HTML table for flowtable column
2249 -> Example of how related lists would look
2250 -> Not using text entries for data items
2252 The current version of Online Glom doesn't use HTML tables for the
2255 This mockup has been sent to the glom-devel mailing list but it's good
2256 to have it here as well.
2258 * mockups/details-view-html-tables.html:
2260 2011-12-05 Ben Konrath <ben@bagu.org>
2262 Remove unnecessary getPrimaryKeyField() method.
2264 getPrimaryKeyFieldForTable(String) has been renamed to
2265 getPrimaryKeyField(String).
2267 * src/main/java/org/glom/web/server/database/DBAccess.java:
2268 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2269 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2271 2011-12-05 Ben Konrath <ben@bagu.org>
2273 Add string representation of TypedDataItem value to conversion error message.
2275 * src/main/java/org/glom/web/server/Utils.java: Logging the error
2276 message was extracted into its own method to avoid duplication.
2278 2011-12-05 Ben Konrath <ben@bagu.org>
2280 Add type checking to navigation primary key value creation.
2282 Create navigation primary key only if the expected type from the Glom
2283 document matches the type returned by the SQL query.
2285 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2287 2011-12-05 Ben Konrath <ben@bagu.org>
2289 Rename a couple of variables in RelatedListNavigation.
2291 This is a rename-only refactor.
2293 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2295 2011-12-05 Ben Konrath <ben@bagu.org>
2297 Move getListLayoutGroup() into getListViewLayoutGroup().
2299 This removes getListLayoutGroup(). It was only being called by
2300 getListViewLayoutGroup().
2302 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2304 2011-12-05 Ben Konrath <ben@bagu.org>
2306 Remove check for LayoutItem_Portal in list table method.
2308 This check is no longer necessary because the method isn't being used
2309 to create the LayoutItemPortal DTO.
2311 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2313 2011-12-05 Ben Konrath <ben@bagu.org>
2315 Properly support related list navigation.
2317 Navigation from the "Repository Analyzer -> Package Scans ->
2318 Dependencies" related table wasn't working because the primary key for
2319 related tables wasn't being set properly. This commit fixes the
2322 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
2323 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
2324 doesn't set the primary key properly for related list tables.
2325 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
2326 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
2327 useful for getting the primary key for list view tables and for related
2329 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2330 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2331 Move code to set the primary key for the table from the abstract
2332 ListDBAccess class to ListViewDBAccess as it's only correct for list
2334 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2335 Properly add primary key to related list tables.
2337 2011-12-02 Ben Konrath <ben@bagu.org>
2339 Properly set the horizontal alignment of fields.
2341 This fix is for both the list tables and the details view.
2343 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2344 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
2345 to set the horizontal alignment of fields.
2347 2011-12-02 Ben Konrath <ben@bagu.org>
2349 Display currency codes in the details view.
2351 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2353 2011-12-02 Ben Konrath <ben@bagu.org>
2355 Avoid duplicate JNI call.
2357 JNI is not as efficient as pure Java and this is an easy (and small)
2360 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2361 Use previously retrieved value for whereClauseToTableName instead of
2364 2011-12-02 Ben Konrath <ben@bagu.org>
2366 Rename a couple of variables in RelatedListNavigation.
2368 This is a rename-only refactor.
2370 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2372 2011-12-02 Ben Konrath <ben@bagu.org>
2374 Indicate clearly that a mismatched primary key type is a bug.
2376 * src/main/java/org/glom/web/server/Utils.java: Change log level from
2377 warning to error. Add 'This is a bug.' to message.
2379 2011-12-02 Ben Konrath <ben@bagu.org>
2381 Update / fix some comments.
2383 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
2385 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
2387 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2388 Fix comments. Add some TODOs.
2390 2011-12-02 Ben Konrath <ben@bagu.org>
2392 Enable navigation to details view with string primary key from related list.
2394 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2395 Create a text primary key value when return type of result is
2396 java.sql.Types.VARCHAR.
2398 2011-12-02 Ben Konrath <ben@bagu.org>
2400 Use checkboxes for booleans in the details view.
2402 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2404 2011-12-01 Ben Konrath <ben@bagu.org>
2406 Improve performance of related list height calculation.
2408 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2409 Put code to calculate the expected height in a static initializer so
2410 that that it's only called once.
2412 2011-12-01 Ben Konrath <ben@bagu.org>
2414 Show related list tables in notebooks (again).
2416 Calculate the height of the related list tables so the Notebook can be
2417 set the correct height. The height of the related list table is also needed by
2418 FlowTable to be able decide how to create the layout.
2420 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
2421 and set the Portal height based on the height of the related list
2422 table and the Portal container.
2423 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2424 Add method to calculate the height of the related list tables.
2425 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2426 * src/main/webapp/style.css: Add css class for Pager. This is needed to
2427 calculate the height of the Pager widget.
2429 2011-12-01 Ben Konrath <ben@bagu.org>
2431 Use CellTable API for table property instead of setting style on Element.
2433 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2435 2011-12-01 Ben Konrath <ben@bagu.org>
2437 Make ListViewTable and RelatedListTable a consistent height.
2439 The tables are now a consistent height regardless of the contents of
2440 the table. A hidden button is added to empty rows to ensure that the
2441 height of these rows will match the height of rows with data.
2443 A navigation button column is now added to every table. The width of
2444 the navigation column is set to 0px when a RelatedListTable shouldn't
2445 have navigation buttons. This maintains the a consistent row height in
2446 tables that don't show the navigation buttons.
2448 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
2449 navigation column when not needed.
2450 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
2451 arguments for navigation button to constructor of ListViewTable.
2452 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
2453 hidden button for empty data rows.
2454 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
2455 arguments for navigation button to constructor.
2456 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
2457 create navigation buttons. Add hideNavigationButtons() method.
2458 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
2459 arguments for navigation button to constructor.
2461 2011-12-01 Ben Konrath <ben@bagu.org>
2463 Use 'visibility: hidden' in Utils.getWidgetHeight().
2465 This is better choice because hidden elements are invisible, don't
2466 respond to events and are not part of the tab order. They will,
2467 however, take up space which is required to be able to calculate the
2468 height of the widget.
2470 * src/main/java/org/glom/web/client/Utils.java:
2472 2011-12-01 Ben Konrath <ben@bagu.org>
2474 Use Utils.getWidgetHeight() in FlowTable.
2476 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
2478 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
2480 2011-12-01 Ben Konrath <ben@bagu.org>
2482 Put the details css class name on the correct table column.
2484 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2486 2011-11-30 Ben Konrath <ben@bagu.org>
2488 Update for java-libglom API change.
2490 The getters and setters on FieldFormatting and NumericFormat were
2491 changed to remove the 'M'.
2493 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2495 2011-11-29 Ben Konrath <ben@bagu.org>
2497 Only allow RelatedListTables in Portals.
2499 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2501 2011-11-29 Ben Konrath <ben@bagu.org>
2503 Only create a contents panel for Portals when title is being set.
2505 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2507 2011-11-29 Ben Konrath <ben@bagu.org>
2509 Set TabLayoutPanel height based on calculated height its widgets.
2511 This is a potential fix for this bug:
2513 https://bugzilla.gnome.org/show_bug.cgi?id=665133
2515 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2517 2011-11-29 Ben Konrath <ben@bagu.org>
2519 Align details field labels and data with the Open buttons.
2521 * src/main/webapp/style.css:
2523 2011-11-29 Ben Konrath <ben@bagu.org>
2525 Remove unnecessary <div> in the Notebook widget.
2527 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
2528 method to get container FlowPanel (<div>).
2529 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
2530 initWidget() method directly on the TabLayoutPanel widget instead of
2531 Group's container widget.
2533 2011-11-29 Ben Konrath <ben@bagu.org>
2535 Don't add group titles for Portals in Notebooks.
2537 This reverts the previous patch and fixes a bug I introduced with
2538 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
2540 * src/main/java/org/glom/web/client/ui/details/Group.java:
2541 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2543 2011-11-28 Ben Konrath <ben@bagu.org>
2545 Remove unused boolean argument in Portal constructor.
2547 Just a code cleanup.
2549 * src/main/java/org/glom/web/client/ui/details/Group.java:
2550 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2552 2011-11-28 Ben Konrath <ben@bagu.org>
2554 Remove hack for glom 1.18 style glom files.
2556 * src/main/java/org/glom/web/client/ui/details/Group.java:
2557 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2558 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2560 2011-11-28 Ben Konrath <ben@bagu.org>
2562 Use Gda Value version of primary key to log result too large error.
2564 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2566 2011-11-28 Ben Konrath <ben@bagu.org>
2568 Don't use TypedDataItem.getText() for Unknown types from the URL.
2570 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2571 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
2572 instead of getText().
2573 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
2574 String field and getUnknown() method.
2576 2011-11-28 Ben Konrath <ben@bagu.org>
2578 Log an error message when the java-libglom .so is not present.
2580 The error message was being set in the exception but not logged.
2582 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2584 2011-11-28 Ben Konrath <ben@bagu.org>
2586 Ignore LayoutItem_CalendarPortals.
2588 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
2589 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
2591 2011-11-28 Ben Konrath <ben@bagu.org>
2593 Extract method for creating the LayoutItemPortal DTO.
2595 Just breaking the code up into smaller chunks.
2597 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2599 2011-11-28 Ben Konrath <ben@bagu.org>
2603 This should have been added with the refactor. Oops!
2605 * src/main/java/org/glom/web/shared/TypedDataItem.java:
2607 2011-11-28 Ben Konrath <ben@bagu.org>
2609 Create primary key value from URL string using type from Glom document.
2611 See this bug, comments 19 - 25:
2613 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
2615 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
2616 create a TypeDataItem for the primary key here when loading from a
2617 URL. Show the same string for the primary key value as was received
2618 from the URL string (when loading from a URL).
2619 * src/main/java/org/glom/web/server/Utils.java: Update method for
2620 creating the Gda Value from the TypeDataItem to properly deal with
2621 creating a Gda Value based on the Glom document type for the primary
2622 key value string when loading from a URL.
2623 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2624 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2625 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2626 Update for changed method name.
2628 2011-11-27 Ben Konrath <ben@bagu.org>
2630 Rename PrimaryKeyItem to TypedDataItem.
2632 The name PrimaryKeyItem suggests what the class should be used for.
2633 TypedDataItem is a neutral name that describes the class better.
2635 This is a rename-only refactor.
2637 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2638 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2639 * src/main/java/org/glom/web/client/Utils.java:
2640 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2641 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2642 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2643 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2644 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2645 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2646 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2647 * src/main/java/org/glom/web/server/Utils.java:
2648 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2649 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2650 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2651 * src/main/java/org/glom/web/shared/NavigationRecord.java:
2653 2011-11-25 Ben Konrath <ben@bagu.org>
2655 Improve Gda Value conversion from PrimaryKeyItem.
2657 The value from the PrimaryKeyItem is only used if its type match the
2658 type from the glom document.
2660 * src/main/java/org/glom/web/server/Utils.java:
2662 2011-11-25 Ben Konrath <ben@bagu.org>
2664 Manually check if the java-liblgom .so is visible to the JVM.
2666 It seems that Tomcat has problems when a static initializer throws an
2667 exception. This check is done before the first method call into
2668 java-libglom so that execution doesn't continue if the .so is not
2671 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2673 2011-11-25 Ben Konrath <ben@bagu.org>
2675 Improve browser configuration error messages.
2679 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2681 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2682 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2683 getConfigurationErrorMessage() method.
2684 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2685 Get and display a specific configuration error message when no Glom
2686 documents are found.
2687 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2688 Implement getConfigurationErrorMessage() method. Surround configuration
2689 code in the init() method with a try/catch block. This allows the
2690 errors to be caught while keeping the servlet available to retrieve the
2691 configuration error message.
2693 2011-11-25 Ben Konrath <ben@bagu.org>
2695 Don't use Strings to hold primary key values.
2697 The primary key values are now held in a new data object
2698 (PrimaryKeyItem) that holds type information and the primary key value
2699 using the correct type.
2701 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2702 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2703 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2704 PrimaryKeyItem instead of String to hold the primary key value.
2705 * src/main/java/org/glom/web/client/Utils.java: Remove
2706 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
2707 PrimaryKeyItem based on the GlomFieldType and the DataItem.
2708 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
2709 PrimaryKeyItem instead of String to hold the primary key value. Load
2710 document selection page when the documentID has not been set correctly.
2711 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
2712 DetailsPlace -> URL and URL -> DetailsPlace conversion with
2714 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2715 Return empty string for URL instead of "null".
2716 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2717 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2718 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2719 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2720 PrimaryKeyItem instead of String to hold primary key values.
2721 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
2722 PrimaryKeyValue to a Gda Value.
2723 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2724 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2725 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2726 Replace temporary database access code that uses the PrimaryKeyValue to
2727 Gda Value conversion.
2728 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
2729 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
2730 PrimaryKeyItem instead of String.
2731 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
2732 hold primary key values.
2734 2011-11-24 Ben Konrath <ben@bagu.org>
2736 Use newly added java-libglom API to create queries.
2738 This isn't finished. I still need to stop using Strings for primary key
2739 values in the client code.
2741 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
2742 libglom to use fake connections so that retrieving the query string will
2744 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2745 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2746 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2747 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2748 Use the newly added libglom sql methods and classes to create the
2749 query. Add temporary hack to convert primary value strings to Gda
2752 2011-11-23 Ben Konrath <ben@bagu.org>
2754 Don't explicitly set the height of Portals.
2756 See comments 6 - 10 of this bug for details:
2758 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
2760 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2762 2011-11-23 Ben Konrath <ben@bagu.org>
2764 Use an HTML table instead of CSS for the FlowTable layout.
2766 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
2767 GWT's FlexTable to implement the FlowTable.
2768 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
2770 2011-11-18 Ben Konrath <ben@bagu.org>
2772 Add boolean example to HTML table mockup.
2774 * mockups/details-view-html-tables-text-entries.html:
2776 2011-11-17 Ben Konrath <ben@bagu.org>
2778 Ensure the pager buttons are always visible for related lists.
2780 To accomplish this, I've turned off text wrapping in the list view and
2781 related list tables for both the header and data text. The related list
2782 table now has a fixed layout so the it doesn't overflow its container.
2783 This is required to ensure that the cell text is clipped when it
2784 overflows the cell and an ellipsis is added to the right side of the
2785 cell when text is clipped.
2787 A fixed table layout for the related list table in the details view
2788 seems what we want for the details view anyway, so the side-effect is
2791 The ellipsis will only be displayed in Firefox >= 7.
2795 https://bugzilla.gnome.org/show_bug.cgi?id=662930
2797 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
2798 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
2799 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
2801 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2802 Set the 'table-layout: fixed' CSS property to the related list table.
2803 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
2804 'white-space: nowrap;' CSS property on both the list view and the
2805 related list tables.
2807 2011-11-16 Ben Konrath <ben@bagu.org>
2809 Rework the fix for empty notebook tab labels.
2811 Setting the empty group titles with its name caused problems for the
2812 details layout. Instead of using libglom's
2813 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
2814 to the client when the title is empty. This allows the Notebook to use
2815 the name when the title is empty without affecting anything else.
2817 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2818 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2820 2011-11-16 Ben Konrath <ben@bagu.org>
2822 Set group titles with name when title is empty.
2824 This fixes a problem with an empty notebook tab label in the Lesson
2825 Planner document. The forth tab in the notebook should be "Internet":
2827 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
2829 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2830 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
2833 2011-11-16 Ben Konrath <ben@bagu.org>
2835 Remove whitespace from the configured username properties.
2837 This assumes that usernames won't have whitespace at the beginning
2838 or end. But I think this is a reasonable assumption.
2840 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2841 String.trim() to remove the whitespace from the username properties.
2843 2011-11-15 Ben Konrath <ben@bagu.org>
2845 Add details view mockup with HTML tables and text entries.
2847 This is from the attachment on this bug:
2849 https://bugzilla.gnome.org/show_bug.cgi?id=663109
2851 * mockups/details-view-html-tables-text-entries.html:
2853 2011-11-15 Ben Konrath <ben@bagu.org>
2855 Add space between the columns of the flow table.
2859 https://bugzilla.gnome.org/show_bug.cgi?id=662918
2861 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
2862 space between columns in the flow table.
2864 2011-11-15 Ben Konrath <ben@bagu.org>
2866 Add backup files to the .gitignore.
2868 * .gitignore: Ignore files that end with ~.
2870 2011-11-09 Ben Konrath <ben@bagu.org>
2872 Use latest release of gwt-log.
2874 Gwt-log releases are now being submitted to the maven central
2875 repository so manual installation of the jar is no longer required.
2877 * pom.xml: Update version and groupId of gwt-log dependency.
2879 2011-10-31 Ben Konrath <ben@bagu.org>
2881 Don't use GWT numeric formatting to override the glom currency formatting.
2883 Currencies are now displayed like they are in Glom. See this bug:
2885 https://bugzilla.gnome.org/show_bug.cgi?id=646216
2887 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
2889 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
2890 currency code to constructor and set it when the cell is rendered.
2891 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2892 currency code to the constructor of the NumericCell.
2894 2011-10-27 Ben Konrath <ben@bagu.org>
2896 Require the latest release of java-libglom (1.17.4).
2900 2011-10-26 Ben Konrath <ben@bagu.org>
2902 Add style to Notebook that matches current theme.
2904 It's not the best style in the world but it's better than the default.
2906 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
2907 padding at the bottom of the child widgets.
2908 * src/main/webapp/style.css: Add style for the Notebook.
2910 2011-10-26 Ben Konrath <ben@bagu.org>
2912 Move servlet initialization code to overridden init method.
2914 This is half of the solution to getting proper error messages
2915 displayed when configuration errors occur. Here's the relevant bug:
2917 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2919 The rest of the solution involves surrounding the init method with a
2920 try/catch block and setting a global variable with the error /
2921 exception. A new async method should be created to retrieve and display
2922 the error message / exception.
2924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
2925 code from constructor to init method adding exceptions as needed.
2927 2011-10-26 Ben Konrath <ben@bagu.org>
2929 Add script to monitor and restart tomcat if required.
2931 * utils/check-and-recover-tomcat.py: New file.
2933 2011-10-26 Ben Konrath <ben@bagu.org>
2935 Display the correct number of data items in the pager.
2939 https://bugzilla.gnome.org/show_bug.cgi?id=661441
2941 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2942 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2943 The implementation is the same for both tables: Keep track of the
2944 number of non-empty rows and fire and RowCountChangeEvent after the data has
2946 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
2947 custom Pager class that subclasses SimplePager to handle displaying
2948 the correct number when empty rows have been added.
2950 2011-10-26 Ben Konrath <ben@bagu.org>
2952 Correct error in previous commit.
2954 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
2955 eventBus parameter from listView.setCellTable().
2957 2011-10-26 Ben Konrath <ben@bagu.org>
2959 Fix error in TODO comment.
2961 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2963 2011-10-24 Ben Konrath <ben@bagu.org>
2965 Create Notebook widgets to the details view.
2967 This isn't finished just yet - I still need to create a reasonable
2968 style to match the current theme.
2970 * src/main/java/org/glom/web/client/Utils.java: Add method for
2971 calculating the height of a widget. This is used in the Notebook class.
2972 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2973 new constructor method in Group.
2974 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
2975 method for creating child widget that can be used by subclasses
2976 like Notebook. New constructor that allows disabling the group
2977 titles - Notebooks don't set a group title for their child groups.
2978 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
2979 to make Notebooks using GWT's TabLayoutPanel.
2980 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
2981 constructor that allows disabling the group titles.
2982 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
2983 LayoutItemNotebook DTO.
2984 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
2985 DTO for Notebooks. It's just an empty class for now but we might need
2986 it to transfer some specific information in the future.
2988 2011-10-21 Ben Konrath <ben@bagu.org>
2990 Add navigation buttons to related list tables.
2992 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2993 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2994 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
2995 method getSuitableRecordToViewDetails() for getting the table name
2996 and primary key value for related list navigation buttons.
2997 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2998 private cell renderer class to get the navigation information for
2999 related list tables from the server. Extract the navigation
3000 processing code from the details cell navigation and use it for the
3001 related list navigation as well.
3002 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
3003 cell renderer class for the details open buttons. This was needed
3004 because the related list navigation buttons and the list view
3005 navigation buttons need to react differently when clicked.
3006 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
3007 the onEnterKeyDown() method because it's now overriden in the
3008 subclasses that are specific to the related list tables and the list
3010 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
3011 the vertical size a little because the buttons add a bit of vertical
3012 space to table. This is not a perfect solution because the vertical
3013 size of with table fewer than 5 rows will be a little smaller.
3014 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
3015 changes in how navigation buttons are handled.
3016 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
3017 getSuitableRecordToViewDetails() using the new RelatedListNavigation
3018 database access object.
3019 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
3020 to find the portal for a given relationship name from
3021 RelatedListDBAccess. Add method to find a primary key field for a
3023 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
3024 Move code to find the portal for a given relationship name to
3026 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
3027 New file: database access object for getting the related list
3028 navigation information (the table name and the primary key value).
3029 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
3030 DTO for transferring a table name to navigate to and a primary key
3032 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
3033 boolean and getter/setter to specifies if the related list should add
3036 2011-10-24 Murray Cumming <murrayc@murrayc.com>
3038 Use the master branch of java-libglom
3040 * pom.xml: Depend on java-libglom 1.19 instead.
3042 This is the master branch. See also the libglom-1-18 branch.
3044 2011-10-11 Ben Konrath <ben@bagu.org>
3046 Enable the open navigation button when the data has been set.
3048 This avoids having active buttons that don't do anything when the data
3051 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
3053 2011-10-11 Ben Konrath <ben@bagu.org>
3055 Use IsWidget interface for FlowTableItem.
3057 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
3058 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
3060 2011-10-11 Ben Konrath <ben@bagu.org>
3062 Remove GWT styling from open button in details view.
3064 There are still some issues with how the details cell is arranged but
3065 this should be made to match Glom 1.20. I'm going to leave fixing this
3066 until I have Glom 1.20 up and running.
3068 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
3069 style name on open button.
3070 * src/main/webapp/style.css: Move and edit details-navigation class.
3071 Re-arrange some classes to make them appear in the same order as the
3074 2011-10-07 Ben Konrath <ben@bagu.org>
3076 Update to GWT 2.4.0.
3078 * .gitignore: Ignore new cache directory.
3079 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
3080 * pom.xml: Change GWT and maven plugin to 2.4.0.
3081 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
3083 * src/main/java/org/glom/web/client/ClientFactory.java:
3084 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
3085 * src/main/java/org/glom/web/client/OnlineGlom.java:
3086 Update source for API changes.
3087 * utils/build-onlineglom-war.sh: Remove cache directory before the
3090 2011-10-07 Ben Konrath <ben@bagu.org>
3092 Add navigation buttons in the details view.
3094 This isn't finished but I thought I'd commit what I have as it's a
3095 pretty good start. I still need to:
3097 1. Change the style so that it fits better into the current theme
3098 2. Adjust the details cell to expand as much as possible.
3100 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
3101 click handlers to navigation buttons in the DetailsCells. Create a
3102 refreshData() method to get just the data from the server without the
3104 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3105 Update the tableSelector and browser title when the table name
3106 changes without using the tableSelector.
3107 * src/main/java/org/glom/web/client/ui/DetailsView.java:
3108 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
3109 getDetailsCells() to getCells(). Update variable names.
3110 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
3111 method to set click handler on navigation button. Rename a few
3112 variables. Add navigation buttons where needed.
3113 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
3114 variables and methods.
3115 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
3116 navigation boolean and navigation table as required in the
3117 LayoutItemField DTO.
3118 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
3119 variables for navigation along with getter/setter methods.
3121 2011-10-07 Ben Konrath <ben@bagu.org>
3123 Rename Field to DetailsCell.
3125 This is a refactor-only commit. No functionality has been added or
3128 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3129 Update variable and method names.
3130 * src/main/java/org/glom/web/client/ui/DetailsView.java:
3131 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
3132 variable and method names.
3133 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
3135 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
3136 variable and method names.
3138 2011-10-07 Ben Konrath <ben@bagu.org>
3140 Create separate methods for layout and data the details view.
3142 This is a refactor-only commit. No functionality has been added or
3145 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
3146 private methods: setData(), createLayout().
3148 2011-10-07 Ben Konrath <ben@bagu.org>
3150 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
3152 This is part of a change to get navigation buttons in the details view
3153 but it should have been done this way from the start.
3155 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
3156 for method name change in TableSelectionView.
3157 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3158 Create TableChangeEvent and set the browser title using the
3159 TableSelectionView API.
3160 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3161 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3162 Change getSelectedTable() to getSelectedTableName(). Add
3163 getSelectedTableTitle().
3165 2011-10-07 Ben Konrath <ben@bagu.org>
3167 Use primaryKeyValue naming convention in constructor of DetailsPlace.
3169 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3171 2011-10-07 Ben Konrath <ben@bagu.org>
3173 Update TableChangeEvent to use newTableName naming convention.
3175 This makes the class more consistent with GWT naming conventions.
3177 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3178 Update for method name change in TableChangeEvent.
3179 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
3180 for method name change in TableChangeEvent.
3181 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
3182 newTableName variable and getter method. Make toDebugString()
3185 2011-09-30 Ben Konrath <ben@bagu.org>
3187 Disable the pager in the list tables when the data row count is less than the minimum.
3189 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3190 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3192 2011-09-30 Ben Konrath <ben@bagu.org>
3194 Add empty rows to the end of related list and list view tables.
3196 I also extracted the cell rendering classes from the ListTable because
3197 the code was becoming a little crazy with all the anonymous inner
3198 classes. My plan is to use these cell rendering classes in the details
3199 view as well so this refactor will be needed for that change.
3201 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
3202 set the row count in related list tables if the data has more rows
3203 than the minimum number of rows visible.
3204 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
3205 row count in list view tables if the data has more rows than the
3206 minimum number of rows visible.
3207 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
3208 for rendering TYPE_BOOLEAN cells. The code was extracted from the
3210 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
3211 for rendering TYPE_NUMERIC cells. The code was extracted from the
3213 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
3214 class for rendering cells with buttons in list views. The code was
3215 extracted from the ListTable class.
3216 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
3217 for rendering TYPE_TEXT cells. The code was extracted from the
3219 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
3220 Add empty rows to the end of the data if required. Implement
3221 ListTable.getMinNumVisibleRows().
3222 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
3223 cell renderer code to public classes. Return null in
3224 Column.getValue() for empty rows. Add new abstract method:
3225 getMinNumVisibleRows(). Move code to set the row count of the list view
3226 table to ListViewImpl.
3227 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
3228 empty rows to the end of the data if required. Implement
3229 ListTable.getMinNumVisibleRows().
3232 2011-09-27 Ben Konrath <ben@bagu.org>
3234 Use GWT.log for client-side debugging statements.
3236 These are optimized out when deployed so I should have used this method
3237 in the first place. These statements will eventually be replaced with some sort
3238 of notification in the browser.
3240 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3241 * src/main/java/org/glom/web/client/activity/ListActivity.java:
3242 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3243 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
3244 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
3246 2011-09-27 Ben Konrath <ben@bagu.org>
3248 Put tableselector on the right, back to list link on right.
3250 The idea is that the table selector is acting like a label for the
3251 currently displayed table so it should be placed below the document title. This
3252 puts the table title in a similar position to where it is in Glom.
3254 * mockups/details-contacts.html:
3255 * mockups/details-projects.html:
3256 * mockups/listview-contacts.html:
3257 * mockups/listview-projects.html:
3258 * mockups/style.css:
3259 Update mockups to match how the interfaces currently look.
3260 * src/main/webapp/style.css: Swap positions of backlink with the table
3261 selector. Add some space on the left side of the table selector to
3262 line things up with the document title.
3264 2011-09-27 Ben Konrath <ben@bagu.org>
3266 Add field colouring to details view.