1 2011-12-31 Murray Cumming <murrayc@murrayc.com>
3 Added a test for ListPlace token parsing and creation.
5 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
6 This is much the same as DetailsPlaceTest.
8 I wonder how we could test the other parts of the *Place API.
10 2011-12-30 Murray Cumming <murrayc@murrayc.com>
12 DetailsPlace test: Also test getToken() and recreation via getPlace().
14 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
15 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
16 recreate it, testing the recreated DetailsPlace for the same parameter
19 2011-12-30 Murray Cumming <murrayc@murrayc.com>
21 Use the surefire-report plugin.
23 * pom.xml: This generates a HTML report about the tests in
24 target/site/surefire-report.html
25 when you do mvn surefire-report:report. It seems to be popular/normal.
27 2011-12-30 Murray Cumming <murrayc@murrayc.com>
29 Added a test for DetailsPlace.
31 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
32 Test the getPlace() token parsing.
34 2011-12-30 Murray Cumming <murrayc@murrayc.com>
36 Added a first unit test.
38 * pom.xml: Add a test goal, and a dependency on junit in that scope.
39 * src/test/java/org/glom/web/shared/DataItemTest.java:
40 This is a silly test but it is just to get things started. Note that
41 maven/junit finds the test because it looks in src/test by default.
43 2011-12-22 Ben Konrath <ben@bagu.org>
45 Change charsetName to "UTF-8" when replacing line breaks.
47 JavaScript requires the charsetName to be "UTF-8". CharsetName values
48 that work in Java (such as "UTF8") will not work when compiled to
51 This fixes a problem with multi-line details view fields that have hard
52 line breaks. The "License Text" field on this page demonstrates the
55 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
57 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
59 2011-12-22 Ben Konrath <ben@bagu.org>
61 Fix another bug with related list navigation.
63 I've tested all the navigation buttons in all of the related lists
64 so things should be good now.
66 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
68 2011-12-22 Ben Konrath <ben@bagu.org>
70 Fix a crasher when refreshing the list view with the default table.
72 This crash will also happen when loading the list view with the default
73 table from a link or bookmark.
75 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
76 to the main document selection page when the document id hasn't been
78 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
79 the main document selection page when the document id hasn't been
81 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
82 values for the details place when the document id hasn't been set.
83 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
84 values for the list place when the document id hasn't been set.
86 2011-12-21 Ben Konrath <ben@bagu.org>
88 Protect against NPE when glom.document.locale is not in config.
90 This patch protects against an NPE when glom.document.locale is not in
91 the config file. This NPE will also happen if glom.document.locale is
94 The patch also updates the error message to display the class name when
95 the getMessage() returns null. This was happening when the NPE was
96 thrown and I had "Configuration Error: null". If an NPE is encountered
97 with this patch, "Configuration Error: NullPointerException " will be
100 This commit closes this bug:
102 https://bugzilla.gnome.org/show_bug.cgi?id=666669
104 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
106 2011-12-20 Murray Cumming <murrayc@murrayc.com>
108 Rename onlineglom.properties to onlineglom.properties.sample.
110 * src/main/resources/onlineglom.properties: Rename to:
111 * src/main/resources/onlineglom.properties.sample:
112 * src/main/resources/README: And add this file explaining that people
113 should rename it back when deploying.
115 2011-12-20 Murray Cumming <murrayc@murrayc.com>
117 Allow choosing the translation in the .properties file.
119 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
120 init(): Read a glom.document.locale value from the configuration file
121 and call Glom's TransatableItem::set_current_locale() method.
122 * src/main/resources/onlineglom.properties: Add a commented-out
123 example of this new setting.
125 It would be better to add &lang=de_DE to the URL, but the current
126 libglom API does not allow us to do this easily. I am working on that.
128 2011-12-19 Murray Cumming <murrayc@murrayc.com>
130 Avoid a crash in parsing of token parameters.
132 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
133 ava: getTokenParams(): Do not crash if a parameter has a key but no
134 value, and ignore parameters with neither.
136 2011-12-17 Murray Cumming <murrayc@murayc.com>
138 History token building/handling: Improve use of token parameters.
140 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
141 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
142 and buildParamsToken(HashMap), for use by derived classes.
143 Make the separator private because it is no longer be needed.
144 * src/main/java/org/glom/web/client/place/DetailsPlace.java
145 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
146 instead of manual string concatenation.
147 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
148 of hardcoded indices and awkward splitting code.
149 * src/main/java/org/glom/web/client/place/ListPlace.java
150 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
151 instead of manual string concatenation.
152 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
153 of hardcoded indices and awkward splitting code.
154 This should fix bug #666420
156 2011-12-16 Murray Cumming <murrayc@murrayc.com>
158 Fix a Navgiation->Navigation typo in the code.
160 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
161 Rename processNavgiation() to processNavigation().
163 2011-12-16 Murray Cumming <murrayc@murrayc.com>
165 Fix a seperator->separator typo in the code.
167 * src/main/java/org/glom/web/client/place/DetailsPlace.java
168 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
169 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
172 2011-12-15 Ben Konrath <ben@bagu.org>
174 Cleanup some comments.
176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
178 2011-12-14 Ben Konrath <ben@bagu.org>
180 Replace \n with <br/> for multiline text in the details view.
182 Vertical scrollbars are added when needed as well.
184 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
186 2011-12-14 Ben Konrath <ben@bagu.org>
188 Specify the font for document selection links.
190 * src/main/webapp/style.css:
192 2011-12-14 Ben Konrath <ben@bagu.org>
194 Fix bouncy CellTable while paging.
196 This doesn't currently work with related list tables in unselected
199 * src/main/java/org/glom/web/client/ui/list/ListTable.java
201 2011-12-14 Ben Konrath <ben@bagu.org>
203 Revamp the appearance of the document selection page.
205 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
206 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
207 * src/main/webapp/style.css:
209 2011-12-13 Ben Konrath <ben@bagu.org>
211 Set navigation button column to the smallest size possible.
213 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
215 2011-12-13 Ben Konrath <ben@bagu.org>
217 Change OpenButton nomenclature to NavigationButton.
219 Using NavigtionButton makes things more generic. Classes, methods and
220 variables have been changed.
222 This is a rename-only refactor.
224 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
225 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
226 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
227 Renamed from OpenButtonCell.
228 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
229 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
230 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
232 2011-12-12 Ben Konrath <ben@bagu.org>
234 Remove unnecessary String argument in RelatedListTable and ListViewTable.
236 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
237 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
238 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
239 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
241 2011-12-12 Ben Konrath <ben@bagu.org>
243 Update variable names and comments.
245 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
246 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
248 2011-12-12 Ben Konrath <ben@bagu.org>
250 Properly initialize numNonEmptyRows variable to zero.
252 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
253 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
255 2011-12-05 Ben Konrath <ben@bagu.org>
257 Add latest mockup with HTML tables.
259 Features of this mockup:
261 -> HTML table for flowtable
262 -> HTML table for flowtable column
263 -> Example of how related lists would look
264 -> Not using text entries for data items
266 The current version of Online Glom doesn't use HTML tables for the
269 This mockup has been sent to the glom-devel mailing list but it's good
270 to have it here as well.
272 * mockups/details-view-html-tables.html:
274 2011-12-05 Ben Konrath <ben@bagu.org>
276 Remove unnecessary getPrimaryKeyField() method.
278 getPrimaryKeyFieldForTable(String) has been renamed to
279 getPrimaryKeyField(String).
281 * src/main/java/org/glom/web/server/database/DBAccess.java:
282 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
283 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
285 2011-12-05 Ben Konrath <ben@bagu.org>
287 Add string representation of TypedDataItem value to conversion error message.
289 * src/main/java/org/glom/web/server/Utils.java: Logging the error
290 message was extracted into its own method to avoid duplication.
292 2011-12-05 Ben Konrath <ben@bagu.org>
294 Add type checking to navigation primary key value creation.
296 Create navigation primary key only if the expected type from the Glom
297 document matches the type returned by the SQL query.
299 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
301 2011-12-05 Ben Konrath <ben@bagu.org>
303 Rename a couple of variables in RelatedListNavigation.
305 This is a rename-only refactor.
307 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
309 2011-12-05 Ben Konrath <ben@bagu.org>
311 Move getListLayoutGroup() into getListViewLayoutGroup().
313 This removes getListLayoutGroup(). It was only being called by
314 getListViewLayoutGroup().
316 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
318 2011-12-05 Ben Konrath <ben@bagu.org>
320 Remove check for LayoutItem_Portal in list table method.
322 This check is no longer necessary because the method isn't being used
323 to create the LayoutItemPortal DTO.
325 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
327 2011-12-05 Ben Konrath <ben@bagu.org>
329 Properly support related list navigation.
331 Navigation from the "Repository Analyzer -> Package Scans ->
332 Dependencies" related table wasn't working because the primary key for
333 related tables wasn't being set properly. This commit fixes the
336 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
337 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
338 doesn't set the primary key properly for related list tables.
339 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
340 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
341 useful for getting the primary key for list view tables and for related
343 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
344 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
345 Move code to set the primary key for the table from the abstract
346 ListDBAccess class to ListViewDBAccess as it's only correct for list
348 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
349 Properly add primary key to related list tables.
351 2011-12-02 Ben Konrath <ben@bagu.org>
353 Properly set the horizontal alignment of fields.
355 This fix is for both the list tables and the details view.
357 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
358 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
359 to set the horizontal alignment of fields.
361 2011-12-02 Ben Konrath <ben@bagu.org>
363 Display currency codes in the details view.
365 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
367 2011-12-02 Ben Konrath <ben@bagu.org>
369 Avoid duplicate JNI call.
371 JNI is not as efficient as pure Java and this is an easy (and small)
374 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
375 Use previously retrieved value for whereClauseToTableName instead of
378 2011-12-02 Ben Konrath <ben@bagu.org>
380 Rename a couple of variables in RelatedListNavigation.
382 This is a rename-only refactor.
384 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
386 2011-12-02 Ben Konrath <ben@bagu.org>
388 Indicate clearly that a mismatched primary key type is a bug.
390 * src/main/java/org/glom/web/server/Utils.java: Change log level from
391 warning to error. Add 'This is a bug.' to message.
393 2011-12-02 Ben Konrath <ben@bagu.org>
395 Update / fix some comments.
397 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
399 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
401 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
402 Fix comments. Add some TODOs.
404 2011-12-02 Ben Konrath <ben@bagu.org>
406 Enable navigation to details view with string primary key from related list.
408 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
409 Create a text primary key value when return type of result is
410 java.sql.Types.VARCHAR.
412 2011-12-02 Ben Konrath <ben@bagu.org>
414 Use checkboxes for booleans in the details view.
416 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
418 2011-12-01 Ben Konrath <ben@bagu.org>
420 Improve performance of related list height calculation.
422 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
423 Put code to calculate the expected height in a static initializer so
424 that that it's only called once.
426 2011-12-01 Ben Konrath <ben@bagu.org>
428 Show related list tables in notebooks (again).
430 Calculate the height of the related list tables so the Notebook can be
431 set the correct height. The height of the related list table is also needed by
432 FlowTable to be able decide how to create the layout.
434 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
435 and set the Portal height based on the height of the related list
436 table and the Portal container.
437 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
438 Add method to calculate the height of the related list tables.
439 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
440 * src/main/webapp/style.css: Add css class for Pager. This is needed to
441 calculate the height of the Pager widget.
443 2011-12-01 Ben Konrath <ben@bagu.org>
445 Use CellTable API for table property instead of setting style on Element.
447 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
449 2011-12-01 Ben Konrath <ben@bagu.org>
451 Make ListViewTable and RelatedListTable a consistent height.
453 The tables are now a consistent height regardless of the contents of
454 the table. A hidden button is added to empty rows to ensure that the
455 height of these rows will match the height of rows with data.
457 A navigation button column is now added to every table. The width of
458 the navigation column is set to 0px when a RelatedListTable shouldn't
459 have navigation buttons. This maintains the a consistent row height in
460 tables that don't show the navigation buttons.
462 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
463 navigation column when not needed.
464 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
465 arguments for navigation button to constructor of ListViewTable.
466 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
467 hidden button for empty data rows.
468 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
469 arguments for navigation button to constructor.
470 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
471 create navigation buttons. Add hideNavigationButtons() method.
472 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
473 arguments for navigation button to constructor.
475 2011-12-01 Ben Konrath <ben@bagu.org>
477 Use 'visibility: hidden' in Utils.getWidgetHeight().
479 This is better choice because hidden elements are invisible, don't
480 respond to events and are not part of the tab order. They will,
481 however, take up space which is required to be able to calculate the
482 height of the widget.
484 * src/main/java/org/glom/web/client/Utils.java:
486 2011-12-01 Ben Konrath <ben@bagu.org>
488 Use Utils.getWidgetHeight() in FlowTable.
490 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
492 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
494 2011-12-01 Ben Konrath <ben@bagu.org>
496 Put the details css class name on the correct table column.
498 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
500 2011-11-30 Ben Konrath <ben@bagu.org>
502 Update for java-libglom API change.
504 The getters and setters on FieldFormatting and NumericFormat were
505 changed to remove the 'M'.
507 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
509 2011-11-29 Ben Konrath <ben@bagu.org>
511 Only allow RelatedListTables in Portals.
513 * src/main/java/org/glom/web/client/ui/details/Portal.java:
515 2011-11-29 Ben Konrath <ben@bagu.org>
517 Only create a contents panel for Portals when title is being set.
519 * src/main/java/org/glom/web/client/ui/details/Portal.java:
521 2011-11-29 Ben Konrath <ben@bagu.org>
523 Set TabLayoutPanel height based on calculated height its widgets.
525 This is a potential fix for this bug:
527 https://bugzilla.gnome.org/show_bug.cgi?id=665133
529 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
531 2011-11-29 Ben Konrath <ben@bagu.org>
533 Align details field labels and data with the Open buttons.
535 * src/main/webapp/style.css:
537 2011-11-29 Ben Konrath <ben@bagu.org>
539 Remove unnecessary <div> in the Notebook widget.
541 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
542 method to get container FlowPanel (<div>).
543 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
544 initWidget() method directly on the TabLayoutPanel widget instead of
545 Group's container widget.
547 2011-11-29 Ben Konrath <ben@bagu.org>
549 Don't add group titles for Portals in Notebooks.
551 This reverts the previous patch and fixes a bug I introduced with
552 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
554 * src/main/java/org/glom/web/client/ui/details/Group.java:
555 * src/main/java/org/glom/web/client/ui/details/Portal.java:
557 2011-11-28 Ben Konrath <ben@bagu.org>
559 Remove unused boolean argument in Portal constructor.
563 * src/main/java/org/glom/web/client/ui/details/Group.java:
564 * src/main/java/org/glom/web/client/ui/details/Portal.java:
566 2011-11-28 Ben Konrath <ben@bagu.org>
568 Remove hack for glom 1.18 style glom files.
570 * src/main/java/org/glom/web/client/ui/details/Group.java:
571 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
572 * src/main/java/org/glom/web/client/ui/details/Portal.java:
574 2011-11-28 Ben Konrath <ben@bagu.org>
576 Use Gda Value version of primary key to log result too large error.
578 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
580 2011-11-28 Ben Konrath <ben@bagu.org>
582 Don't use TypedDataItem.getText() for Unknown types from the URL.
584 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
585 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
586 instead of getText().
587 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
588 String field and getUnknown() method.
590 2011-11-28 Ben Konrath <ben@bagu.org>
592 Log an error message when the java-libglom .so is not present.
594 The error message was being set in the exception but not logged.
596 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
598 2011-11-28 Ben Konrath <ben@bagu.org>
600 Ignore LayoutItem_CalendarPortals.
602 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
603 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
605 2011-11-28 Ben Konrath <ben@bagu.org>
607 Extract method for creating the LayoutItemPortal DTO.
609 Just breaking the code up into smaller chunks.
611 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
613 2011-11-28 Ben Konrath <ben@bagu.org>
617 This should have been added with the refactor. Oops!
619 * src/main/java/org/glom/web/shared/TypedDataItem.java:
621 2011-11-28 Ben Konrath <ben@bagu.org>
623 Create primary key value from URL string using type from Glom document.
625 See this bug, comments 19 - 25:
627 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
629 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
630 create a TypeDataItem for the primary key here when loading from a
631 URL. Show the same string for the primary key value as was received
632 from the URL string (when loading from a URL).
633 * src/main/java/org/glom/web/server/Utils.java: Update method for
634 creating the Gda Value from the TypeDataItem to properly deal with
635 creating a Gda Value based on the Glom document type for the primary
636 key value string when loading from a URL.
637 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
638 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
639 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
640 Update for changed method name.
642 2011-11-27 Ben Konrath <ben@bagu.org>
644 Rename PrimaryKeyItem to TypedDataItem.
646 The name PrimaryKeyItem suggests what the class should be used for.
647 TypedDataItem is a neutral name that describes the class better.
649 This is a rename-only refactor.
651 * src/main/java/org/glom/web/client/OnlineGlomService.java:
652 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
653 * src/main/java/org/glom/web/client/Utils.java:
654 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
655 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
656 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
657 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
658 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
659 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
660 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
661 * src/main/java/org/glom/web/server/Utils.java:
662 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
663 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
664 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
665 * src/main/java/org/glom/web/shared/NavigationRecord.java:
667 2011-11-25 Ben Konrath <ben@bagu.org>
669 Improve Gda Value conversion from PrimaryKeyItem.
671 The value from the PrimaryKeyItem is only used if its type match the
672 type from the glom document.
674 * src/main/java/org/glom/web/server/Utils.java:
676 2011-11-25 Ben Konrath <ben@bagu.org>
678 Manually check if the java-liblgom .so is visible to the JVM.
680 It seems that Tomcat has problems when a static initializer throws an
681 exception. This check is done before the first method call into
682 java-libglom so that execution doesn't continue if the .so is not
685 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
687 2011-11-25 Ben Konrath <ben@bagu.org>
689 Improve browser configuration error messages.
693 https://bugzilla.gnome.org/show_bug.cgi?id=662792
695 * src/main/java/org/glom/web/client/OnlineGlomService.java:
696 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
697 getConfigurationErrorMessage() method.
698 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
699 Get and display a specific configuration error message when no Glom
701 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
702 Implement getConfigurationErrorMessage() method. Surround configuration
703 code in the init() method with a try/catch block. This allows the
704 errors to be caught while keeping the servlet available to retrieve the
705 configuration error message.
707 2011-11-25 Ben Konrath <ben@bagu.org>
709 Don't use Strings to hold primary key values.
711 The primary key values are now held in a new data object
712 (PrimaryKeyItem) that holds type information and the primary key value
713 using the correct type.
715 * src/main/java/org/glom/web/client/OnlineGlomService.java:
716 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
718 PrimaryKeyItem instead of String to hold the primary key value.
719 * src/main/java/org/glom/web/client/Utils.java: Remove
720 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
721 PrimaryKeyItem based on the GlomFieldType and the DataItem.
722 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
723 PrimaryKeyItem instead of String to hold the primary key value. Load
724 document selection page when the documentID has not been set correctly.
725 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
726 DetailsPlace -> URL and URL -> DetailsPlace conversion with
728 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
729 Return empty string for URL instead of "null".
730 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
731 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
732 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
733 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
734 PrimaryKeyItem instead of String to hold primary key values.
735 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
736 PrimaryKeyValue to a Gda Value.
737 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
738 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
739 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
740 Replace temporary database access code that uses the PrimaryKeyValue to
741 Gda Value conversion.
742 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
743 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
744 PrimaryKeyItem instead of String.
745 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
746 hold primary key values.
748 2011-11-24 Ben Konrath <ben@bagu.org>
750 Use newly added java-libglom API to create queries.
752 This isn't finished. I still need to stop using Strings for primary key
753 values in the client code.
755 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
756 libglom to use fake connections so that retrieving the query string will
758 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
759 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
760 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
761 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
762 Use the newly added libglom sql methods and classes to create the
763 query. Add temporary hack to convert primary value strings to Gda
766 2011-11-23 Ben Konrath <ben@bagu.org>
768 Don't explicitly set the height of Portals.
770 See comments 6 - 10 of this bug for details:
772 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
774 * src/main/java/org/glom/web/client/ui/details/Portal.java:
776 2011-11-23 Ben Konrath <ben@bagu.org>
778 Use an HTML table instead of CSS for the FlowTable layout.
780 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
781 GWT's FlexTable to implement the FlowTable.
782 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
784 2011-11-18 Ben Konrath <ben@bagu.org>
786 Add boolean example to HTML table mockup.
788 * mockups/details-view-html-tables-text-entries.html:
790 2011-11-17 Ben Konrath <ben@bagu.org>
792 Ensure the pager buttons are always visible for related lists.
794 To accomplish this, I've turned off text wrapping in the list view and
795 related list tables for both the header and data text. The related list
796 table now has a fixed layout so the it doesn't overflow its container.
797 This is required to ensure that the cell text is clipped when it
798 overflows the cell and an ellipsis is added to the right side of the
799 cell when text is clipped.
801 A fixed table layout for the related list table in the details view
802 seems what we want for the details view anyway, so the side-effect is
805 The ellipsis will only be displayed in Firefox >= 7.
809 https://bugzilla.gnome.org/show_bug.cgi?id=662930
811 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
812 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
813 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
815 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
816 Set the 'table-layout: fixed' CSS property to the related list table.
817 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
818 'white-space: nowrap;' CSS property on both the list view and the
821 2011-11-16 Ben Konrath <ben@bagu.org>
823 Rework the fix for empty notebook tab labels.
825 Setting the empty group titles with its name caused problems for the
826 details layout. Instead of using libglom's
827 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
828 to the client when the title is empty. This allows the Notebook to use
829 the name when the title is empty without affecting anything else.
831 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
832 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
834 2011-11-16 Ben Konrath <ben@bagu.org>
836 Set group titles with name when title is empty.
838 This fixes a problem with an empty notebook tab label in the Lesson
839 Planner document. The forth tab in the notebook should be "Internet":
841 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
843 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
844 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
847 2011-11-16 Ben Konrath <ben@bagu.org>
849 Remove whitespace from the configured username properties.
851 This assumes that usernames won't have whitespace at the beginning
852 or end. But I think this is a reasonable assumption.
854 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
855 String.trim() to remove the whitespace from the username properties.
857 2011-11-15 Ben Konrath <ben@bagu.org>
859 Add details view mockup with HTML tables and text entries.
861 This is from the attachment on this bug:
863 https://bugzilla.gnome.org/show_bug.cgi?id=663109
865 * mockups/details-view-html-tables-text-entries.html:
867 2011-11-15 Ben Konrath <ben@bagu.org>
869 Add space between the columns of the flow table.
873 https://bugzilla.gnome.org/show_bug.cgi?id=662918
875 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
876 space between columns in the flow table.
878 2011-11-15 Ben Konrath <ben@bagu.org>
880 Add backup files to the .gitignore.
882 * .gitignore: Ignore files that end with ~.
884 2011-11-09 Ben Konrath <ben@bagu.org>
886 Use latest release of gwt-log.
888 Gwt-log releases are now being submitted to the maven central
889 repository so manual installation of the jar is no longer required.
891 * pom.xml: Update version and groupId of gwt-log dependency.
893 2011-10-31 Ben Konrath <ben@bagu.org>
895 Don't use GWT numeric formatting to override the glom currency formatting.
897 Currencies are now displayed like they are in Glom. See this bug:
899 https://bugzilla.gnome.org/show_bug.cgi?id=646216
901 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
903 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
904 currency code to constructor and set it when the cell is rendered.
905 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
906 currency code to the constructor of the NumericCell.
908 2011-10-27 Ben Konrath <ben@bagu.org>
910 Require the latest release of java-libglom (1.17.4).
914 2011-10-26 Ben Konrath <ben@bagu.org>
916 Add style to Notebook that matches current theme.
918 It's not the best style in the world but it's better than the default.
920 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
921 padding at the bottom of the child widgets.
922 * src/main/webapp/style.css: Add style for the Notebook.
924 2011-10-26 Ben Konrath <ben@bagu.org>
926 Move servlet initialization code to overridden init method.
928 This is half of the solution to getting proper error messages
929 displayed when configuration errors occur. Here's the relevant bug:
931 https://bugzilla.gnome.org/show_bug.cgi?id=662792
933 The rest of the solution involves surrounding the init method with a
934 try/catch block and setting a global variable with the error /
935 exception. A new async method should be created to retrieve and display
936 the error message / exception.
938 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
939 code from constructor to init method adding exceptions as needed.
941 2011-10-26 Ben Konrath <ben@bagu.org>
943 Add script to monitor and restart tomcat if required.
945 * utils/check-and-recover-tomcat.py: New file.
947 2011-10-26 Ben Konrath <ben@bagu.org>
949 Display the correct number of data items in the pager.
953 https://bugzilla.gnome.org/show_bug.cgi?id=661441
955 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
956 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
957 The implementation is the same for both tables: Keep track of the
958 number of non-empty rows and fire and RowCountChangeEvent after the data has
960 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
961 custom Pager class that subclasses SimplePager to handle displaying
962 the correct number when empty rows have been added.
964 2011-10-26 Ben Konrath <ben@bagu.org>
966 Correct error in previous commit.
968 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
969 eventBus parameter from listView.setCellTable().
971 2011-10-26 Ben Konrath <ben@bagu.org>
973 Fix error in TODO comment.
975 * src/main/java/org/glom/web/client/activity/ListActivity.java:
977 2011-10-24 Ben Konrath <ben@bagu.org>
979 Create Notebook widgets to the details view.
981 This isn't finished just yet - I still need to create a reasonable
982 style to match the current theme.
984 * src/main/java/org/glom/web/client/Utils.java: Add method for
985 calculating the height of a widget. This is used in the Notebook class.
986 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
987 new constructor method in Group.
988 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
989 method for creating child widget that can be used by subclasses
990 like Notebook. New constructor that allows disabling the group
991 titles - Notebooks don't set a group title for their child groups.
992 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
993 to make Notebooks using GWT's TabLayoutPanel.
994 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
995 constructor that allows disabling the group titles.
996 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
997 LayoutItemNotebook DTO.
998 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
999 DTO for Notebooks. It's just an empty class for now but we might need
1000 it to transfer some specific information in the future.
1002 2011-10-21 Ben Konrath <ben@bagu.org>
1004 Add navigation buttons to related list tables.
1006 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1007 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1008 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
1009 method getSuitableRecordToViewDetails() for getting the table name
1010 and primary key value for related list navigation buttons.
1011 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1012 private cell renderer class to get the navigation information for
1013 related list tables from the server. Extract the navigation
1014 processing code from the details cell navigation and use it for the
1015 related list navigation as well.
1016 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
1017 cell renderer class for the details open buttons. This was needed
1018 because the related list navigation buttons and the list view
1019 navigation buttons need to react differently when clicked.
1020 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
1021 the onEnterKeyDown() method because it's now overriden in the
1022 subclasses that are specific to the related list tables and the list
1024 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
1025 the vertical size a little because the buttons add a bit of vertical
1026 space to table. This is not a perfect solution because the vertical
1027 size of with table fewer than 5 rows will be a little smaller.
1028 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
1029 changes in how navigation buttons are handled.
1030 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
1031 getSuitableRecordToViewDetails() using the new RelatedListNavigation
1032 database access object.
1033 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
1034 to find the portal for a given relationship name from
1035 RelatedListDBAccess. Add method to find a primary key field for a
1037 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1038 Move code to find the portal for a given relationship name to
1040 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1041 New file: database access object for getting the related list
1042 navigation information (the table name and the primary key value).
1043 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
1044 DTO for transferring a table name to navigate to and a primary key
1046 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1047 boolean and getter/setter to specifies if the related list should add
1050 2011-10-24 Murray Cumming <murrayc@murrayc.com>
1052 Use the master branch of java-libglom
1054 * pom.xml: Depend on java-libglom 1.19 instead.
1056 This is the master branch. See also the libglom-1-18 branch.
1058 2011-10-11 Ben Konrath <ben@bagu.org>
1060 Enable the open navigation button when the data has been set.
1062 This avoids having active buttons that don't do anything when the data
1065 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1067 2011-10-11 Ben Konrath <ben@bagu.org>
1069 Use IsWidget interface for FlowTableItem.
1071 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
1072 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
1074 2011-10-11 Ben Konrath <ben@bagu.org>
1076 Remove GWT styling from open button in details view.
1078 There are still some issues with how the details cell is arranged but
1079 this should be made to match Glom 1.20. I'm going to leave fixing this
1080 until I have Glom 1.20 up and running.
1082 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
1083 style name on open button.
1084 * src/main/webapp/style.css: Move and edit details-navigation class.
1085 Re-arrange some classes to make them appear in the same order as the
1088 2011-10-07 Ben Konrath <ben@bagu.org>
1090 Update to GWT 2.4.0.
1092 * .gitignore: Ignore new cache directory.
1093 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
1094 * pom.xml: Change GWT and maven plugin to 2.4.0.
1095 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
1097 * src/main/java/org/glom/web/client/ClientFactory.java:
1098 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1099 * src/main/java/org/glom/web/client/OnlineGlom.java:
1100 Update source for API changes.
1101 * utils/build-onlineglom-war.sh: Remove cache directory before the
1104 2011-10-07 Ben Konrath <ben@bagu.org>
1106 Add navigation buttons in the details view.
1108 This isn't finished but I thought I'd commit what I have as it's a
1109 pretty good start. I still need to:
1111 1. Change the style so that it fits better into the current theme
1112 2. Adjust the details cell to expand as much as possible.
1114 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1115 click handlers to navigation buttons in the DetailsCells. Create a
1116 refreshData() method to get just the data from the server without the
1118 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1119 Update the tableSelector and browser title when the table name
1120 changes without using the tableSelector.
1121 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1122 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1123 getDetailsCells() to getCells(). Update variable names.
1124 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
1125 method to set click handler on navigation button. Rename a few
1126 variables. Add navigation buttons where needed.
1127 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
1128 variables and methods.
1129 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
1130 navigation boolean and navigation table as required in the
1131 LayoutItemField DTO.
1132 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1133 variables for navigation along with getter/setter methods.
1135 2011-10-07 Ben Konrath <ben@bagu.org>
1137 Rename Field to DetailsCell.
1139 This is a refactor-only commit. No functionality has been added or
1142 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1143 Update variable and method names.
1144 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1145 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1146 variable and method names.
1147 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1149 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1150 variable and method names.
1152 2011-10-07 Ben Konrath <ben@bagu.org>
1154 Create separate methods for layout and data the details view.
1156 This is a refactor-only commit. No functionality has been added or
1159 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1160 private methods: setData(), createLayout().
1162 2011-10-07 Ben Konrath <ben@bagu.org>
1164 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1166 This is part of a change to get navigation buttons in the details view
1167 but it should have been done this way from the start.
1169 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1170 for method name change in TableSelectionView.
1171 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1172 Create TableChangeEvent and set the browser title using the
1173 TableSelectionView API.
1174 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1175 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1176 Change getSelectedTable() to getSelectedTableName(). Add
1177 getSelectedTableTitle().
1179 2011-10-07 Ben Konrath <ben@bagu.org>
1181 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1183 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1185 2011-10-07 Ben Konrath <ben@bagu.org>
1187 Update TableChangeEvent to use newTableName naming convention.
1189 This makes the class more consistent with GWT naming conventions.
1191 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1192 Update for method name change in TableChangeEvent.
1193 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1194 for method name change in TableChangeEvent.
1195 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1196 newTableName variable and getter method. Make toDebugString()
1199 2011-09-30 Ben Konrath <ben@bagu.org>
1201 Disable the pager in the list tables when the data row count is less than the minimum.
1203 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1204 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1206 2011-09-30 Ben Konrath <ben@bagu.org>
1208 Add empty rows to the end of related list and list view tables.
1210 I also extracted the cell rendering classes from the ListTable because
1211 the code was becoming a little crazy with all the anonymous inner
1212 classes. My plan is to use these cell rendering classes in the details
1213 view as well so this refactor will be needed for that change.
1215 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1216 set the row count in related list tables if the data has more rows
1217 than the minimum number of rows visible.
1218 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1219 row count in list view tables if the data has more rows than the
1220 minimum number of rows visible.
1221 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1222 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1224 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1225 for rendering TYPE_NUMERIC cells. The code was extracted from the
1227 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1228 class for rendering cells with buttons in list views. The code was
1229 extracted from the ListTable class.
1230 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1231 for rendering TYPE_TEXT cells. The code was extracted from the
1233 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1234 Add empty rows to the end of the data if required. Implement
1235 ListTable.getMinNumVisibleRows().
1236 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1237 cell renderer code to public classes. Return null in
1238 Column.getValue() for empty rows. Add new abstract method:
1239 getMinNumVisibleRows(). Move code to set the row count of the list view
1240 table to ListViewImpl.
1241 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1242 empty rows to the end of the data if required. Implement
1243 ListTable.getMinNumVisibleRows().
1246 2011-09-27 Ben Konrath <ben@bagu.org>
1248 Use GWT.log for client-side debugging statements.
1250 These are optimized out when deployed so I should have used this method
1251 in the first place. These statements will eventually be replaced with some sort
1252 of notification in the browser.
1254 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1255 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1256 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1257 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1258 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1260 2011-09-27 Ben Konrath <ben@bagu.org>
1262 Put tableselector on the right, back to list link on right.
1264 The idea is that the table selector is acting like a label for the
1265 currently displayed table so it should be placed below the document title. This
1266 puts the table title in a similar position to where it is in Glom.
1268 * mockups/details-contacts.html:
1269 * mockups/details-projects.html:
1270 * mockups/listview-contacts.html:
1271 * mockups/listview-projects.html:
1272 * mockups/style.css:
1273 Update mockups to match how the interfaces currently look.
1274 * src/main/webapp/style.css: Swap positions of backlink with the table
1275 selector. Add some space on the left side of the table selector to
1276 line things up with the document title.
1278 2011-09-27 Ben Konrath <ben@bagu.org>
1280 Add field colouring to details view.
1282 This change re-works how field colouring works. The colour formatting
1283 information is now set to the client with the layout information instead of
1284 with the data. This eliminates the need to send the same colour strings for
1285 data in list view column when colour information is set.
1287 In order to set an alternate colour for negative numeric values, the
1288 number is now sent to client and formatted with the GWT NumberFormat class.
1290 This change also fixes:
1292 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1294 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1295 internationalization framework which is needed for client side numeric
1297 * src/main/java/org/glom/web/client/Utils.java: New file for some
1298 client static utility methods.
1299 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1300 the DataItem object to the Field class. Use a utility method to
1301 create the foreignKeyValue string.
1302 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1303 alignment and text colours in the constructor. Add setData(DataItem)
1304 method. Remove setText(String) method.
1305 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1306 colour information to GlomTextCell. Create and use GlomNumberCell for
1307 rendering numbers. Use utility method to get the string for the
1308 primary key of the key provider. Re-work how the horizontal alignment
1310 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1311 formatting to layout information. Methods for converting the libglom
1312 formatting information were moved from DBAccess.
1313 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1314 numeric formatting (it's now done on the client side). Don't set text
1315 colours in DataItem. Move libglom formatting conversion methods to
1317 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1318 getters/setters for text colour information.
1319 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1320 for transferring the libglom NumericFormat information to the client.
1321 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1322 and getters/setters for: GlomNumericFormat, background colour and
1323 foreground colour strings.
1325 2011-09-26 Ben Konrath <ben@bagu.org>
1327 Simplify code that iterates through the LayoutGroup.
1329 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1331 2011-09-26 Ben Konrath <ben@bagu.org>
1333 Accept Eclipse formatting for OnlineGlomServiceAsync.
1335 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1337 2011-09-26 Ben Konrath <ben@bagu.org>
1339 Don't use the ListDBAccess classes to get the primary key layout information.
1341 This was causing a bug where the wrong index for the hidden primary key
1342 was being sent to the client.
1344 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1345 primary key while creating the LayoutGroup DTO. Create a
1346 LayoutItemField DTO for hidden primary keys. Don't use the
1347 RelatedListDBAccess because it was only used for getting the primary
1349 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1350 access modifier from public to protected for getPrimaryKeyField() and
1351 getPrimaryKeyLayoutItemField().
1352 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1353 abstract method getExpectedResultSize() because RelatedListDBAccess
1354 doesn't have enough info to implement it.
1355 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1356 Remove @Override for getExpectedResultSize().
1357 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1358 Remove method getExpectedResultSize().
1360 2011-09-23 Ben Konrath <ben@bagu.org>
1362 Log which layout (list or details) the ignored item is from.
1364 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1366 2011-09-23 Ben Konrath <ben@bagu.org>
1368 Remove annotations that turn off code formatting in DataItem.
1370 * src/main/java/org/glom/web/shared/DataItem.java:
1372 2011-09-23 Ben Konrath <ben@bagu.org>
1374 Rename GlomField to DataItem and update associated methods.
1376 This is a rename-only refactor. No functionality has been added or
1379 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1380 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1381 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1382 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1383 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1384 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1385 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1386 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1388 * src/main/java/org/glom/web/server/database/DBAccess.java:
1389 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1390 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1391 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1392 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1393 * src/main/java/org/glom/web/shared/DataItem.java:
1394 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1395 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1397 2011-09-23 Ben Konrath <ben@bagu.org>
1399 Rename GlomDocument to DocumentInfo and update associated methods.
1401 This is a rename-only refactor. No functionality has been added or
1404 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1405 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1406 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1407 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1408 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1410 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1412 2011-09-20 Ben Konrath <ben@bagu.org>
1414 Require java-libglom 1.17.3.
1416 This picks up the fix for the seg fault problem with the Scenes table
1417 in the Openismus Film Manager example.
1421 2011-09-20 Ben Konrath <ben@bagu.org>
1423 Change the way sort clause is added for primary key when no sort clause is requested.
1425 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1426 before the sort clause is created. When a sort clause is not requested, the
1427 sort clause is created by finding the primary key in the LayoutFieldVector
1430 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1432 2011-09-20 Ben Konrath <ben@bagu.org>
1434 Log error message if no documents are found in the configured directory.
1436 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1437 Extract the glom file extension string to a private static final class
1438 variable (mostly as syntactic sugar). Accept a minor formatting change.
1439 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1440 the example glom.document.directory configuration property to make it
1441 more clear that it can any directory, not just the home directory.
1443 2011-09-18 Ben Konrath <ben@bagu.org>
1445 Add related lists to details view.
1447 The related list table has support for paging and sorting just like the
1448 table in the list view.
1450 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1451 SQL queries for the related list tables.
1452 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1453 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1455 Rename getList methods to getListView and add comments. Remove
1456 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1457 it being unused. Add methods: getDetailsLayoutAndData(),
1458 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1459 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1460 Create the layout and set the data for the fields in one async call
1461 instead of two. Create related lists where appropriate.
1462 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1463 for method name changes in OnlineGlomService.
1464 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1465 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1466 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1468 * src/main/java/org/glom/web/client/ui/ListView.java:
1469 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1470 tableName from setCellTable(). Create a ListViewTable instead of
1472 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1473 represent a data field in the details view.
1474 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1475 from addDetailsCell() to Field class. Keep track of the Fields and
1476 Portals in the details view.
1477 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1478 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1479 and add a method to get it. Add method to set the contents of the
1481 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1482 New class for related list tables. This class has the data provider
1483 for the related list table.
1484 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1485 abstract class which is the base class for the ListViewTable and the
1487 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1488 New class for list view tables. This class has the data provider for
1489 the list view table.
1490 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1491 methods for related list tables. Add more information to the
1492 LayoutItemField and LayoutItemPortal DTOs.
1493 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1494 Remove debugging print statement.
1495 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1496 Remove debugging print statements. Add primary key field to SQL count
1498 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1499 Remove unnecessary LayoutFieldVector parameter from
1500 getResultSizeOfSQLQuery() method.
1501 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1502 New class for related list table database access.
1503 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1504 class that is a wrapper DTO for details view layout and data.
1505 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1506 new 'fromField' string to this DTO.
1507 * src/main/webapp/style.css: Remove bottom margin and override top
1510 2011-09-15 Ben Konrath <ben@bagu.org>
1512 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1514 This sets things up to make it easier to add the data retrieval for
1515 related lists (portals). No user noticeable changes were made with
1518 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1519 class has the code to retrieve the layouts and access the
1520 database using the new database helper classes.
1521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1522 Most of the functionality has been removed from this class. This
1523 class now represents the public interface for the client side
1524 code. It also deals with configuring the servlet and cleaning
1525 things up when the servlet is stopped.
1526 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1527 of static methods into this utility class.
1528 * src/main/java/org/glom/web/server/database/DBAccess.java:
1529 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1530 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1531 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1532 These classes have the database retrieval code. The class hierarchy
1533 has been setup to make it easy to reuse code for similar
1536 2011-09-06 Ben Konrath <ben@bagu.org>
1538 Create separate classes for list table code and the data provider.
1540 As part of this refactor, I also split up the code a bit to make it
1543 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1544 table code to two new classes (below).
1545 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1546 with code from ListViewImpl.
1547 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1548 New file with code from ListViewImpl.
1550 2011-09-06 Ben Konrath <ben@bagu.org>
1552 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1554 This fixes the LayoutItemPortal DTO to match the libglom layout object
1557 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1559 2011-09-01 Ben Konrath <ben@bagu.org>
1561 Set title of Portals in the Details View.
1563 * pom.xml: Bump required version of java-libglom to 1.17.1.
1564 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1565 widget creation to its own class. Add comments to constructor.
1566 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1567 The code is mostly from the Group class with the title now set.
1568 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1569 title of Portal. Update some comments. Fix some code formatting.
1571 2011-09-01 Ben Konrath <ben@bagu.org>
1573 Remove TODO comment for the flow table column width.
1575 The flow table column width is working correctly and doesn't need to be
1576 changed. See this mailing list post for more info:
1578 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1580 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1582 2011-08-27 Ben Konrath <ben@bagu.org>
1584 Add document title (database name) to top of the browser page.
1586 I added the document title to the TableSelecitonView but that will
1587 change if / when we add a view that doesn't require table selection.
1589 * mockups/details-contacts.html:
1590 * mockups/details-projects.html:
1591 * mockups/listview-contacts.html:
1592 * mockups/listview-projects.html:
1593 * mockups/style.css: Add document title to mockups to keep things
1595 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1596 sizes to account for the document title.
1597 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1598 Set the document title when it has been retrieved from the server.
1599 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1600 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1601 and implement setDocumentTitle(String) method.
1602 * src/main/webapp/style.css: Add ID for document title style.
1604 2011-08-25 Ben Konrath <ben@bagu.org>
1606 Add NavigationType enum to LayoutItemPortal DTO.
1608 This is the start of adding support for Portals to the Details View.
1610 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1611 LayoutItem_Portal.navigation_type enum from libglom to
1612 LayoutItemPortal.NavigationType enum.
1613 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1614 NavigationType enum, field for storing the NavigationType and getter
1617 2011-08-25 Ben Konrath <ben@bagu.org>
1619 Implement the flow table layout in the Details View.
1621 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1622 FlowTable to Group to account for the renamed class.
1623 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1624 File. This is a container widget that implements the Glom details view
1625 flow table behaviour.
1626 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1627 org/glom/web/client/ui/FlowTable.java.
1628 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1629 so that the size of the subgroups are a closer match to the size of
1630 the Glom subgroups. This makes the flowtable layout match the layout
1631 in Glom for the Music Collection example file.
1633 2011-08-16 Ben Konrath <ben@bagu.org>
1635 Create container element for LayoutItemPortal in Details View.
1637 This will help me develop the layout for the FlowTable.
1639 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1640 fieldPanel variable to detailsCell.
1642 2011-08-15 Ben Konrath <ben@bagu.org>
1644 Set the height of the data element in the Details View.
1646 I changed the InlineLabels (text in a span element) to Labels (text in
1647 a div element) so that I could set the height of the details-data
1648 elements instead of the details-cell parent elements. This allows the
1649 the details-data element to display the correct height if style is
1650 applied that shows the height.
1652 This change has the added benefit of allowing the order of the labels
1653 and data elements to be changed for right-to-left languages.
1655 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1656 InlineLabels to Labels.
1657 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1658 InlineLabels to Labels. Set the height of the data element.
1659 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1660 multiline text height in the Formatting DTO.
1661 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1662 for multiline height along with getter and setter methods.
1663 * src/main/webapp/style.css: Adjust style to account for the change
1664 from span elements to div elements in the details cell.
1666 2011-08-15 Ben Konrath <ben@bagu.org>
1668 Make the List View appearance match the mockups.
1670 It doesn't match exactly but it's much better than it was.
1672 * mockups/listview-contacts.html: Remove unused css classes.
1673 * mockups/listview-projects.html: Remove unused css classes.
1674 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1675 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1676 for mainPanel instead of VerticalPanel (table). Set style name on
1677 CellTable. Set style name on Details column. Right-align Details
1679 * src/main/webapp/style.css: Adjust properties to match the mockups.
1681 2011-08-12 Ben Konrath <ben@bagu.org>
1683 Add better support for subgroups in the details view.
1685 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1686 changed FlowTable constructor.
1687 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1688 support for subgroups and subgroup-titles.
1689 * src/main/webapp/style.css: Add CSS class for subgroups and
1692 2011-08-12 Ben Konrath <ben@bagu.org>
1694 Return the top level LayoutGroup title.
1696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1698 2011-08-11 Ben Konrath <ben@bagu.org>
1700 Make the TableSelector header match the mockup.
1702 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1703 the layout panel. Properly lineup the table selection header with
1704 the list and details view.
1705 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1706 margin around the details view.
1707 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1708 Rename listBox variable to tableSelector. Set id for the style sheet.
1709 Use a FlowPanel instead of a HorizontalPanel.
1710 * src/main/webapp/style.css: Add properties to make the TableSelector
1711 box match the mockups.
1713 2011-07-13 Ben Konrath <ben@bagu.org>
1715 Update install script for java-libglom version change.
1717 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1720 2011-07-13 Ben Konrath <ben@bagu.org>
1722 Add support sub-group in the details view.
1724 I also removed the code that special-cased the default details view
1727 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1729 I still have to make a proper flowtable.
1731 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1732 Don't special-case default details view layout.
1733 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1734 addLayoutField() as I'm going to use it.
1735 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1736 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1738 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1739 extracted from DetailsViewImpl.GroupPanel. Add support for
1741 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1742 column count when getting the details layout.
1744 2011-07-12 Ben Konrath <ben@bagu.org>
1746 Set browser title with database and table titles.
1748 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1749 Set the browser title when the table changes and when the activity
1751 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1752 title when retrieving document info (the GlomDocument object).
1753 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1754 with getter and setter methods. Remove unused convenience constructor.
1755 Use default code formatting.
1757 2011-07-12 Ben Konrath <ben@bagu.org>
1759 Ignore LayoutItemPortals in the details view.
1761 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1764 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1765 LayoutItemPortal layout objects.
1766 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1767 LayoutItemPortal objects when retrieving the details layout.
1768 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1769 file. This is an empty class and just used to get type information for
1772 2011-07-12 Ben Konrath <ben@bagu.org>
1774 Use java-libglom 1.17.0.
1778 2011-07-11 Ben Konrath <ben@bagu.org>
1780 Remove "Table:" label from table selector.
1782 This matches a recent change in the Glom UI.
1784 * mockups/details-contacts.html:
1785 * mockups/details-projects.html:
1786 * mockups/listview-contacts.html:
1787 * mockups/listview-projects.html: Remove the "Table:" label from the
1789 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1791 2011-07-11 Ben Konrath <ben@bagu.org>
1793 Add main groups to the details view.
1795 This makes things look a little nicer in the details view. The next step
1796 is to implement the flowtable.
1798 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1799 resources from the standard gwt css theme. Standard.css is now
1800 included in OnlineGlom.html so that the online glom css rules have
1801 precedence over the gwt theme.
1802 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1803 the whole LayoutGroup to the DetailsView instead of just the titles.
1804 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1805 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1806 details layout with a helper class (GroupPanel). I might extract this
1807 class when I make the full flowtable.
1808 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1809 string as default so I don't have to worry about NPEs when processing
1811 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1812 note beside OnlineGlom.gwt.xml above).
1813 * src/main/webapp/style.css: Add default font-size to body to override
1814 the font-size set by the standard theme. Don't use h2 tags for
1815 group-title. Create new details-cell class.
1817 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1819 ConfiguredDocument: Set the port number too.
1821 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1822 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1823 Glom document. Presumably this worked sometimes so far because there is a
1824 default port number.
1826 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1828 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1830 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1831 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1832 correct, though we should throw an exception too.
1834 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1836 Fix a addDocuemnt typo.
1838 * src/main/java/org/glom/web/shared/Documents.java
1839 (Documents.addDocuemnt): Rename to addDocument().
1840 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1841 (OnlineGlomServiceImpl.getDocuments): Adapt.
1843 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1845 Slightly improved log output when connection fails.
1847 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1848 (ConfiguredDocument.setUsernameAndPassword):
1849 We don't know for sure if it' the username/password that's wrong, so
1850 rephrase the message.
1851 Also ouput the exception message, though it's generic in this case.
1853 2011-07-08 Ben Konrath <ben@bagu.org>
1857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1858 added braces to a one line if statement because the Eclipse formatter
1859 was getting confused.
1861 2011-07-07 Ben Konrath <ben@bagu.org>
1863 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1865 These should really be two separate tasks but I counldn't get things to
1866 work with GWT 2.2.0 and Eclipse 3.7.
1870 * .settings/org.eclipse.jdt.core.prefs:
1871 * .settings/org.eclipse.jdt.ui.prefs:
1872 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1873 * .settings/org.eclipse.m2e.core.prefs:
1874 Add new config files. Update current files. Remove references to the
1875 webtools plugins as we're not using any of the webtools features.
1876 * .gitignore: Add logs directory which is created when running with
1878 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1879 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1880 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1882 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1884 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1886 onlineglom.properties: Add explanatory comments.
1888 * src/main/resources/onlineglom.properties: Also change the default user
1889 from ben to someuser, to avoid the risk of people thinking we just
1890 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1892 2011-06-28 Ben Konrath <ben@bagu.org>
1894 Use filename in Log for incorrect passwords.
1896 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1897 getFileName(String) method to get the filename from the URI.
1899 2011-06-28 Ben Konrath <ben@bagu.org>
1901 Add the table name to the URL token for the ListPlace.
1903 This makes things consistent between the DetailsPlace and the
1904 ListPlace. It also allows the the ListPlace to be bookmarked.
1906 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1907 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1908 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1909 Remove getDefaultListLayout(). The default layout is now returned
1910 by the getListLayout() method when the table name is an empty string.
1911 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1912 Add table name field. Change to a new ListPlace when the table
1913 has been changed. Use getListLayout() for getting the default
1915 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1916 Add table name field. Set the correct table name in the list box
1917 when loading from bookmark. This corrects a problem for the
1919 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1920 Move table name to super-class (HasSelectableTable). Move document
1921 and table URL keys to super-class in HasSelectableTable.
1922 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1923 Add table name field. Add Tokenizer class with URL key common to
1924 the subclasses (DetailsPlace and ListPlace).
1925 * src/main/java/org/glom/web/client/place/ListPlace.java:
1926 Add table name. Add code to parse the URL token.
1927 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1928 Update ListPlace construction with empty table name string.
1929 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1930 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1931 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1932 Update ListPlace construction with table name string.
1933 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1934 Change defaultTableName field to tableName to reflect how it's now
1935 used. Update the getter and setter methods.
1937 2011-06-28 Ben Konrath <ben@bagu.org>
1939 Enable the table selector in the DetailsView.
1941 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1942 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1943 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1944 Remove getDefaultDetailsLayout(). The default layout is now returned
1945 by the getDetailsLayout() method when the table name is an empty
1947 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1948 event handler for table change event. Change to using
1949 getDetailsLayout() for the default details layout.
1950 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1952 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1953 when navigating to the details place.
1955 2011-06-27 Ben Konrath <ben@bagu.org>
1957 Use filename based unique document ID in URL and for RPC.
1959 The document ID is the glom document name with spaces (' ') replaced
1960 with pluses ('+') and without the .glom extension.
1962 This change is mostly a string substitution of 'documentTitle' for
1963 'documentID'. The only code change is the addition of a Documents DTO to get the
1964 filename to document title mappings as indicated below.
1966 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1967 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1968 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1969 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1970 Use Documents DTO to create the document links in the document
1972 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1973 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1974 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1975 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1976 * src/main/java/org/glom/web/client/place/ListPlace.java:
1977 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1978 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1979 * src/main/java/org/glom/web/client/ui/ListView.java:
1980 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1981 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1982 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1983 * src/main/java/org/glom/web/server/Log.java:
1984 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1985 getDocumentTitles() to getDocuments() and return the Documents DTO.
1986 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1987 transferring the filename to document title mappings.
1989 2011-06-25 Ben Konrath <ben@bagu.org>
1991 Make the authentication popup work again.
1993 This bug was introduced when I extracted ConfiguredDocument to its own class.
1995 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1996 correct success / fail status in setUsernameAndPassword().
1998 2011-06-25 Ben Konrath <ben@bagu.org>
2000 Use filename as unique key for configuring database usernames and passwords.
2002 This replaces the use of the Glom document title which could change
2003 depending on the locale. Thanks to Murray Cumming for pointing out this
2006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2007 * src/main/resources/onlineglom.properties:
2009 2011-06-24 Ben Konrath <ben@bagu.org>
2011 Pass primary key value to DetailsView.
2013 This enables the DetailsView to load the correct data.
2015 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2016 primary key value field and set in constructor. Pass primary key
2017 value to getDetailsData().
2018 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
2019 variables for document title and primary key value.
2020 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
2021 key value to the DetailsPlace.
2023 2011-06-24 Ben Konrath <ben@bagu.org>
2025 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
2027 This allows the primary key to be retrieved by the Details button. This
2028 functionality has not been implemented yet but it's in the works.
2030 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
2031 the LayoutGroup result to ListView.setCellTable instead of all of its
2032 fields individually.
2033 * src/main/java/org/glom/web/client/ui/ListView.java:
2034 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
2035 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
2036 get the primary key for the table.
2037 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2038 index of the primary key in the LayoutGroup accounting for hidden
2039 primary keys. Rename getJavaNumberFormat() to
2040 convertToJavaNumberFormat() for consistency. Cleanup / add some
2042 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
2043 field for primary key index and a field to indicate whether the
2044 primary key is hidden or not.
2046 2011-06-23 Ben Konrath <ben@bagu.org>
2048 Rename getTableData methods to getListData.
2050 This is a rename refactor for consistency with other methods.
2052 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2053 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2054 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2055 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2057 2011-06-23 Ben Konrath <ben@bagu.org>
2059 Extract the ConfiguredDocument innerclass into its own class.
2061 This makes the servlet code more object oriented.
2063 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
2064 from private ConfiguredDocument class in OnlineGlomServiceImpl.
2065 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
2066 new ConfiguredDocument class.
2068 2011-06-21 Ben Konrath <ben@bagu.org>
2070 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
2072 This makes things more inline with how libglom works and reduces code
2073 duplication. This refactor lays the groundwork for adding the primary key to
2074 the LayoutGroup object.
2076 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2077 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2078 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2079 Change method names to getListLayout and getDefaultListLayout for
2080 consistency. Use LayoutGroup as the DTO for the list layout instead of
2081 ColumnInfo and LayoutListTable.
2082 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
2083 new method names along with the LayoutGroup object for transferring the
2085 * src/main/java/org/glom/web/client/ui/ListView.java:
2086 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2087 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
2088 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
2090 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
2091 Replaced with LayoutGroup.
2092 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
2093 expectedResultSize and defaultTableName fields which are needed for
2095 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2096 type field which is needed for the list layout but will also be
2097 useful for the details layout as things progress.
2098 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2099 Make class abstract. Remove the unnecessary
2100 getFormattingHorizontalAlignment method. Add setFormatting method.
2102 2011-06-16 Ben Konrath <ben@bagu.org>
2104 Add scripts for building and installing war.
2106 These will help when updating OnlineGlom but they're also good
2107 supplemental documentation of the build and deployment proceeding.
2109 * utils/build-onlineglom-war.sh: New file.
2110 * utils/install-onlineglom-war.sh: New file.
2112 2011-06-16 Ben Konrath <ben@bagu.org>
2114 Create wrapper class to create consistent log messages.
2116 I wrapped methods in the Log class of gwt-log to add the method names
2117 from the servlet and create consistent formatting of the document title
2118 and table names in the log messages.
2120 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
2121 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
2122 log methods to use methods from wrapped Log class.
2124 2011-06-16 Ben Konrath <ben@bagu.org>
2126 Remove superfluous conditional return.
2128 Thanks to Murray Cumming for pointing this out!
2130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2132 2011-06-15 Ben Konrath <ben@bagu.org>
2134 Return an ArrayList of LayoutGroups for the Details layout.
2136 This corrects a problem with the details layout as it can have more
2137 than one top level LayoutGroup.
2139 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2140 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2141 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2142 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2143 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2144 with ArrayList of LayoutGroups for the details view layout.
2145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2146 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2147 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2148 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2149 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2150 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2152 2011-06-14 Ben Konrath <ben@bagu.org>
2154 Use cast_dynamic method to determine the libglom LayoutItem type.
2156 This is better than finding the LayoutItem type by using the string
2157 returned from the get_part_type_name() method.
2159 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2161 2011-06-14 Ben Konrath <ben@bagu.org>
2163 Add method names to log entries in the servlet.
2165 This helps when tracking down deployment problems.
2167 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2169 2011-06-14 Ben Konrath <ben@bagu.org>
2171 Add data to the DetailsView using a hard-coded primary key value.
2173 The layout and functionality of the DetailsView is not complete. This
2174 is just a checkpoint so the patch doesn't get too big.
2176 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2177 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2178 Add getDetailsData() servlet method.
2179 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2180 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2181 LayoutFields are added to the DetailsView.
2182 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2183 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2184 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2185 take the string for the title instead of the object.
2186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2187 Add implementation getDetailsData() along with some private helper
2189 * src/main/webapp/style.css: Add padding to details-data class. Add a
2190 details-label class with the same padding as the details-data class.
2192 2011-06-03 Ben Konrath <ben@bagu.org>
2194 Use presenter.goTo() to change to the DetailsPlace.
2196 This will make things easier when we need to open the DetailsView with
2197 data specific to the row that was clicked.
2199 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2201 2011-06-02 Ben Konrath <ben@bagu.org>
2203 Add CSS file from mockups.
2205 I'm adding this now because it's going to be useful to have when
2206 developing the DetailsView. The TableSelectionView and ListView aren't
2209 * src/main/webapp/OnlineGlom.html:
2210 * src/main/webapp/style.css:
2212 2011-06-02 Ben Konrath <ben@bagu.org>
2214 Use String.isEmpty() to check for empty string.
2216 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2218 2011-06-02 Ben Konrath <ben@bagu.org>
2220 Display main layout group titles in the DetailsView.
2222 This is the start of the DetailsActivity/DetailsView implementation.
2224 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2225 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2226 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2227 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2228 Get the layout information for the details view from the server and set
2229 the main layout group titles.
2230 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2231 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2232 Add addLayoutGroup() and addLayoutField() methods. This are just
2233 temporary methods for creating the the details view that will change
2235 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2236 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2238 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2239 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2240 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2241 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2242 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2243 Data Transfer Objects that mimic the libglom object structure. These are
2244 used for transferring the details layout but could also be used for
2245 transferring the list layout.
2247 2011-05-27 Ben Konrath <ben@bagu.org>
2249 Reset the AuthenticationPopup when clearing the ListView.
2251 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2253 2011-05-27 Ben Konrath <ben@bagu.org>
2255 Fix problem with onlineglom.properties file loading.
2257 The old way worked in Eclipse but not on the server. Loading the
2258 onlineglom.properties file now works in Eclipse and on the server.
2260 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2262 2011-05-24 Ben Konrath <ben@bagu.org>
2264 Update gwt-log from 3.1.0 to 3.1.2.
2266 Gwt-log 3.1.0 has been marked as depreciated.
2270 2011-05-24 Ben Konrath <ben@bagu.org>
2272 Add comment to ListActivity.goTo() method.
2274 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2276 2011-05-24 Ben Konrath <ben@bagu.org>
2278 Remove FIXME in convertGdkColorToHtmlColour()
2280 The Gdk::Color value returned by libglom is 16-bits per channel on both
2281 64 and 32-bit platforms.
2283 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2285 2011-05-19 Ben Konrath <ben@bagu.org>
2287 Improve performance of initial ListView load.
2289 I removed a round trip to the server for getting the default table name
2290 and then requesting information about that table. This also removes a potential
2291 problem with the table change handler not being setup in time to receive the
2292 table change event from the ListActivity.
2294 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2295 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2296 getDefaultLayoutListTable() method. Improve comments.
2297 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2298 getDefaultLayoutListTable() method instead of firing a table change
2299 event to get the table to load.
2300 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2301 implementation of getDefaultLayoutListTable() method.
2302 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2305 2011-05-19 Ben Konrath <ben@bagu.org>
2307 Override toDebugString() in TableChangeEvent.
2309 This is useful to have for debugging.
2311 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2313 2011-05-19 Ben Konrath <ben@bagu.org>
2315 Add a "Back to List" link when at the DetailsPlace.
2317 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2318 Populate the CellTable based on the selected table of the ListBox if
2319 it's set otherwise use the default table. This allows the "Back to
2321 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2322 Remove Place from constructors. Add a setPlace() method. Add
2323 goToPlace() method. Set class as presenter for TableSelectionView.
2324 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2325 Use the same TableSelectionActivity when switching between the List and
2327 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2328 Subclass the new HasSelectableTablePlace. This removes some duplicate
2330 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2331 New class to represent Places that display the TableSelectionView.
2332 * src/main/java/org/glom/web/client/place/ListPlace.java:
2333 Subclass the new HasSelectableTablePlace. This removes some duplicate
2335 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2336 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2337 Add Presenter interface. Add setBackLinkVisible() method. Add
2338 setBackLink() method.
2340 2011-05-18 Ben Konrath <ben@bagu.org>
2342 Enable the "Details" buttons.
2344 Right now only an empty details view is displayed.
2346 * src/main/java/org/glom/web/client/ClientFactory.java:
2347 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2348 Add DetailsView to ClientFactory.
2349 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2350 A basic activity for the details view.
2351 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2352 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2354 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2355 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2357 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2358 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2359 unnecessary super() in constructor.
2360 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2361 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2362 really shouldn't create a new TableSelectionActivity for both the ListPlace
2363 and the DetailsPlace so this should be considered a temporary solution.
2364 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2365 New file. Represents a URL for the details view.
2366 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2367 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2368 A basic details view interface and implementation.
2369 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2370 Enable the "Details" buttons.
2372 2011-05-12 Ben Konrath <ben@bagu.org>
2374 Use a LayoutPanel with multiple display areas for main layout.
2376 This is mostly a refactor in that there are no changes from the user
2377 point of view. These changes are required so that we can swap out the list view
2378 with the details view when the user clicks the "Details" button.
2380 * src/main/java/org/glom/web/client/ClientFactory.java:
2381 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2382 OnlineGlomView. Add TableSelectionView, ListView and
2383 AuthenticationPopup.
2384 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2385 for main layout. Add display regions for main activities. Add
2386 activity manager for for main activities.
2387 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2388 file from parts of the deleted OnlineGlomActivity.
2389 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2390 New file from parts of the deleted OnlineGlomActivity.
2391 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2392 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2393 New files for app wide table change event.
2394 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2395 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2396 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2397 Activity mappers for the main activities replace the deleted app-wide
2399 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2400 Fix a spelling error in he comment.
2401 * src/main/java/org/glom/web/client/ui/ListView.java:
2402 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2403 Renamed from LayoutListView and modified for MVP. This still not a
2404 proper dumb view as prescribed by the MVP pattern but it works for now.
2405 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2406 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2407 New widget stripped out of the deleted OnlineGlomView.
2408 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2409 Remove hack that is fixed by this patch.
2411 2011-05-06 Ben Konrath <ben@bagu.org>
2413 Rename OnlineGlomPlace to ListPlace.
2415 The only change besides the rename is that url will now display #list
2416 instead of #Document.
2418 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2419 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2420 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2421 * src/main/java/org/glom/web/client/place/ListPlace.java:
2422 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2424 2011-05-06 Ben Konrath <ben@bagu.org>
2426 Use Presenter for app navigation.
2428 This is the proper way to deal with Place (URL) changes with the MVP
2431 * src/main/java/org/glom/web/client/ClientFactory.java:
2432 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2433 PlaceHistoryMapper and PlaceHistoryHandler.
2434 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2435 PlaceHistoryMapper and PlaceHistoryHandler.
2436 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2437 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2438 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2439 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2440 Add Presenter interface and setPresenter methods. Rename addHyperLink
2441 to addDocumentLink taking only the document title as a parameter.
2443 2011-04-14 Ben Konrath <ben@bagu.org>
2445 Prompt for db username/password if they haven't been set.
2447 This is implemented with a popup widget that is contained within the
2448 OnlineGlomView and managed by the OnlineGlomActivity.
2450 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2451 methods for checking and setting the database username and password.
2452 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2453 new methods for checking and setting the database username and
2455 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2456 Display authentication popup if the JDBC connection to the database
2457 has not been authenticated.
2458 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2460 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2461 for dealing with the authentication popup.
2462 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2463 Implement the methods for dealing with the authentication popup.
2464 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2465 try to executed queries if the database connection hasn't been
2466 authenticated. Implement methods for checking and setting the
2467 database username and password.
2469 2011-04-12 Ben Konrath <ben@bagu.org>
2471 Make log messages a little clearer.
2473 Add a dash betweeen the document title and the table name.
2475 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2477 2011-04-12 Ben Konrath <ben@bagu.org>
2479 Protect against NPEs when cleaning up database resources.
2481 While this isn't strictly necessary because the exception is caught,
2482 not protecting against the NPEs makes it harder to find the real error
2485 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2487 2011-04-12 Ben Konrath <ben@bagu.org>
2489 Move configuration of the servlet to the constructor.
2491 The servlet will be initialized even if the database authentication
2492 information is not set or correct. I still need to add the UI for prompting
2493 the user for the authentication information when it's required.
2495 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2496 javadocs for getDocumentTitles() method.
2497 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2498 Set error message when RPC fails.
2499 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2500 glom files directory from the configuration file. Try to set the
2501 database authentication information for the specific document if it's
2502 set and works otherwise try to use the global authentication
2503 information set for the directory.
2504 * src/main/resources/onlineglom.properties: Moved from
2505 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2506 Added detailed comments for the new keys.
2508 2011-04-11 Ben Konrath <ben@bagu.org>
2510 Remove unnecessary @Override in DocumentSelectionViewImpl.
2512 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2514 2011-04-11 Ben Konrath <ben@bagu.org>
2516 Remove center alignment in DocumentSelectionView.
2518 The title element is still centred but the document titles and bottom
2519 sentence are both left-aligned.
2521 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2523 2011-04-11 Ben Konrath <ben@bagu.org>
2525 Change 'Demo' naming convention to 'Document'.
2527 This is just a rename refactor with no functional changes to the code.
2529 * src/main/java/org/glom/web/client/ClientFactory.java:
2530 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2531 * src/main/java/org/glom/web/client/OnlineGlom.java:
2532 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2533 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2534 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2535 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2536 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2537 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2538 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2539 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2540 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2543 2011-04-08 Ben Konrath <ben@bagu.org>
2545 Remove FIXME from safeLongToInt() method.
2547 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2550 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2552 2011-04-08 Ben Konrath <ben@bagu.org>
2554 Display an error if no glom documents are found in the specified directory.
2556 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2557 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2558 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2559 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2561 2011-04-08 Ben Konrath <ben@bagu.org>
2563 Add copyright header to one more file ... oops.
2565 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2567 2011-04-08 Ben Konrath <ben@bagu.org>
2569 Add copyright header to files without it.
2571 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2572 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2573 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2574 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2575 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2576 * src/main/java/org/glom/web/shared/GlomField.java:
2578 2011-04-08 Ben Konrath <ben@bagu.org>
2580 Add support for accessing multiple glom documents in the servlet.
2582 This completes the demo selection functionality.
2584 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2585 document title to methods.
2586 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2587 document title to methods.
2588 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2589 Set browser window title when the activity starts. Correct name of
2590 document title variable.
2591 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2592 Set browser window title when the activity starts. Set the table
2593 selector change handler after table selector has been set. Clear the
2594 OnlineGlomView when the activity has been stopped.
2595 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2596 document title as the place token. Use "#Document:" instead of
2597 "#OnlineGlomPlace:" in the URL.
2598 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2599 Change heading to "Online Glom"
2600 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2601 document title in RPC methods.
2602 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2603 setDocumentTitle() method. Add clear() method.
2604 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2605 setDocumentTitle() method. Implement clear() method which removes the
2606 change handler on the ListBox, clears the ListBox and clears the
2608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2609 Implement methods with document title. Keep track for the configured
2610 glom documents and their corresponding JDBC configurations in a hash
2611 table. This information is retrieved using the document title as the
2612 key in the hash table.
2613 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2614 document title field as it's no longer needed.
2616 2011-04-08 Ben Konrath <ben@bagu.org>
2618 Update the Eclipse JDT configuration.
2620 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2621 methods. Automatically add the copyright header to new files.
2623 2011-04-05 Ben Konrath <ben@bagu.org>
2625 Add new page for demo selection.
2627 This patch adds all the components required to view and start an
2628 OnlineGlom demo by clicking on the desired hyperlink. The user is
2629 able to return to the demo selection page with the browser's back
2630 button. I still need to modify the servlet to work with multiple
2631 documents so all demo links will load the file defined in the
2632 OnlineGlom.properties.
2634 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2635 This is only useful during development so we don't need to save it.
2636 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2637 get a reference to the DemoSelectionView.
2638 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2639 method to get a reference to the DemoSelectionView.
2640 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2641 default view to DemoSelectionView.
2642 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2643 to get glom document titles for glom files in a hard-coded directory.
2644 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2645 method to get glom document titles for glom files in a hard-coded
2647 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2648 Presenter for DemoSelectionView.
2649 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2650 for DemoSelectionView.
2651 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2652 Update for DemoSelectionView.
2653 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2654 Basic 'Place' implementation for the DemoSelectionView.
2655 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2656 The interface for the DemoSelectionView.
2657 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2658 The implementation of the DemoSelectionView.
2659 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2660 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2661 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2662 implementation of method to get glom document titles for glom files
2663 in a hard-coded directory.
2664 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2665 on longer being used.
2666 * src/main/webapp/glom.png: Glom logo.
2668 2011-04-05 Ben Konrath <ben@bagu.org>
2670 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2672 This is the forth and final commit of a refactor that will allow
2673 OnlineGlom to be used with multiple documents.
2675 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2676 Move RPC code from OnlineGlomViewImpl to this class.
2677 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2679 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2680 RPC code to the presenter class (the P in MVP).
2682 2011-04-04 Ben Konrath <ben@bagu.org>
2684 Start moving the existing OnlineGlom code to MVP.
2686 This work is based on the GWT MVP framework that is documented here:
2688 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2690 This is the third commit of a refactor that will allow OnlineGlom to
2691 be used with multiple documents.
2693 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2694 Interface for client factory which is used to get instances of various
2695 classes throughout the app.
2696 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2697 Implementation of client factory.
2698 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2699 initialize the MVP framework.
2700 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2701 New file. Activity manager for the main container widget. This is the
2703 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2704 Maps place (URL) to its corresponding activity.
2705 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2706 New file. This is just a place holder for a generated file.
2707 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2708 New file. Represents the URL for the main Online Glom app.
2709 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2710 for changes in LayoutListViewImpl.
2711 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2712 interface for View. Move code to OnlineGlomViewImpl class.
2713 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2714 file. Implementation of OnlineGlomView.
2715 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2716 Place resources. Use ClientFactoryImpl by default.
2718 2011-04-04 Ben Konrath <ben@bagu.org>
2720 Move View classes to their own package.
2722 This is the second commit of a refactor that will allow OnlineGlom to
2723 be used with multiple documents.
2725 * src/main/java/org/glom/web/client/OnlineGlom.java:
2726 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2727 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2729 2011-04-02 Ben Konrath <ben@bagu.org>
2731 Move UI code from the main module to its own class.
2733 This is the first commit of a refactor that will allow OnlineGlom to be
2734 used with multiple documents.
2736 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2737 references to OnlineGlom to OnlineGlomView.
2738 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2739 OnlineGlomView and instantiate it here.
2740 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2741 represents the main OnlineGlomView with one document.
2743 2011-04-01 Ben Konrath <ben@bagu.org>
2745 Fix formatting of gwt.xml and add DTD.
2747 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2749 2011-03-30 Ben Konrath <ben@bagu.org>
2751 Propperly convert gdkColor string to html colour string.
2753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2755 2011-03-28 Ben Konrath <ben@bagu.org>
2757 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2759 This implementation matches
2760 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2761 readable and is not tied to Swig.
2763 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2765 2011-03-28 Ben Konrath <ben@bagu.org>
2767 Use read-only checkboxes for boolean field types.
2769 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2770 in the CellTable based on the field type. It currently only
2771 distinguishes between boolean and text columns but I'll need to add
2772 support for more types.
2773 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2774 column type in the ColumnInfo object. Add method to convert between the
2775 glom field type enum in ColumnInfo and the glom field type in libglom.
2776 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2778 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2779 getting and setting booleans.
2781 2011-03-25 Ben Konrath <ben@bagu.org>
2783 Don't get the Date twice from the ResultSet.
2785 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2787 2011-03-25 Ben Konrath <ben@bagu.org>
2789 Cleanup code in the servlet.
2791 * TODO: Remove item about row count. Add item about testing row count
2792 query with large number of rows.
2793 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2794 spelling mistakes, change method parameter to be consistent with
2797 2011-03-25 Ben Konrath <ben@bagu.org>
2799 Add server side logging with the gwt-log library.
2801 * .gitignore: Ignore the log file we're now producing.
2802 * TODO: Add a couple TODO item for logging.
2803 * pom.xml: Add gwt-log and log4j as a dependency.
2804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2805 logging of errors, warnings and some important info.
2806 * src/main/resources/log4j.properties: New file to configure log4j.
2808 2011-03-24 Ben Konrath <ben@bagu.org>
2810 Add a disable button for the Details view.
2812 * src/main/java/org/glom/web/client/LayoutListView.java:
2814 2011-03-22 Ben Konrath <ben@bagu.org>
2816 Use a count query to get the number of rows for the list view pager.
2818 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2820 2011-03-22 Ben Konrath <ben@bagu.org>
2822 Add more TODO information about CellTable pager positioning.
2826 2011-03-19 Ben Konrath <ben@bagu.org>
2828 Add TODO item about CellTable pager positioning.
2832 2011-03-18 Ben Konrath <ben@bagu.org>
2834 Remove unneeded GlomFieldColumn class.
2836 This is just a small code cleanup.
2838 * src/main/java/org/glom/web/client/LayoutListView.java:
2840 2011-03-18 Ben Konrath <ben@bagu.org>
2842 Use cursor mode in the query that gets data for the list view.
2844 I still need to fix the potential memory problem when getting the row
2845 count for the list view.
2847 * TODO: Add note about testing memory usage with large data sets. Add
2848 item about fixing row counting with large data sets.
2849 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2850 PostgreSQL JDBC driver into cursor mode when getting data for the
2853 2011-03-15 Ben Konrath <ben@bagu.org>
2855 Remove the GWT Container from the Eclipse build classpath.
2857 The GWT dependencies are set by Maven so this isn't needed.
2861 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2863 Added some earlier mockups to git, but not to the tarball dist.
2865 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2866 Openismus. These hopefully show how we might structure the HTML so that
2867 it can be styled easily with CSS. However, we probably need to adapt them
2868 for the CSS structure that GWT dictates for common widgets.
2870 2011-03-14 Ben Konrath <ben@bagu.org>
2872 Locate OnlineGlom.properties using the ServletContext.
2874 This is required to be able to locate the file in the deployed servlet.
2876 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2877 Configure the database and glom document in in a helper method so
2878 that the ServletContext can be used to locate OnlineGlom.properties.
2879 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2880 src/main/webapp. This is the proper location for .properites files.
2882 2011-03-12 Ben Konrath <ben@bagu.org>
2884 Add note to README about why we're compiling down to obfuscated JavaScript.
2888 2011-03-11 Ben Konrath <ben@bagu.org>
2890 Use properties file to configure servlet.
2892 This allows people to change the glom file path, db username and db
2893 password without recompiling the code.
2895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2896 * src/main/webapp/OnlineGlom.properties:
2898 2011-03-11 Ben Konrath <ben@bagu.org>
2900 Use table fields in layout list view if the layout list is not defined.
2902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2903 Manually create a LayoutFieldVector for the query builder using the
2904 table fields when a layout list is not defined in the glom file.
2906 2011-03-11 Ben Konrath <ben@bagu.org>
2908 Only show FIXME string for images when there's an image.
2910 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2911 in this change are some small code cleanups.
2913 2011-03-11 Ben Konrath <ben@bagu.org>
2915 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2917 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2919 2011-03-11 Ben Konrath <ben@bagu.org>
2921 Correctly set the index of the default table.
2923 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2924 Correctly set the index of the default table. Add commented out example
2927 2011-03-10 Ben Konrath <ben@bagu.org>
2929 Add comment to pom.xml about the previous change.
2931 * pom.xml: Add comment about the deployment issue so that it's obvious
2932 why java-libglom is set to the provided scope.
2934 2011-03-10 Ben Konrath <ben@bagu.org>
2936 Change java-libglom dependency from compile to provided in pom.xml.
2938 Since java-libglom uses jni it can only be loaded once and therefore
2939 must be placed in $CATALINA_HOME/lib and not included in each war.
2940 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2941 More information about this issue can be found in the Tomcat 6 release
2942 notes in the "JNI Based Applications" section:
2944 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2946 * README: Remove note about this issue. Deployment info should really
2947 be on the wiki anyway so I'll add it right now.
2948 * pom.xml: Change java-libglom dependency from compile to provided so
2949 that it's copied in to the packaged war.
2951 2011-03-09 Ben Konrath <ben@bagu.org>
2953 Change to using a neutral locale for currency, date and time formatting.
2955 This solves the problem of currency values being represented without a
2956 space between the currency code and the number (e.g. "EUR5.89" is now
2957 represented as "EUR 5.89"). More work is required when we implement
2958 a locale preference setting.
2960 * TODO: Add note about currency formatting issues with different
2962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2963 to using the neutral ROOT locale.
2965 2011-03-09 Ben Konrath <ben@bagu.org>
2967 Add support for currency codes that are not ISO 4217 codes.
2969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2970 the currency code defined in the glom file when it's not 3 characters
2971 long or when Java doesn't recognize the string as an ISO 4217 code.
2973 2011-03-08 Ben Konrath <ben@bagu.org>
2975 Remove test classes, launch configurations and configuration.
2977 The test stuff was getting in the way when creating the war. To make
2978 the war file you can now do 'mvn clean package'. The packaged war file
2979 will be in the target directory.
2981 * .classpath: Remove unused classpathentry for tests and i18n.
2982 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2983 property. Don't run test or i18n goals when packaging the war.
2984 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2989 * OnlineGlomTest-dev.launch:
2990 * OnlineGlomTest-prod.launch:
2991 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2992 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2994 2011-03-07 Ben Konrath <ben@bagu.org>
2996 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2998 These fixes allow me to use 'mvn deploy' to create the war file.
3000 * .classpath: This generated config has been updated by Eclipse. This
3001 change was probably triggered by me updating from Eclipse 3.6.1 to
3003 * .gitignore: Add entry to ignore the directory
3004 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
3005 * .project: The generated config has been updated by Eclipse. This
3006 change was probably triggered by me updating from Eclipse 3.6.1 to
3008 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
3009 so that Eclipse doesn't complain
3010 * pom.xml: Update to gwt-maven-plugin 2.2.0.
3011 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
3012 'tests' directory to 'client' directory. This is the new
3013 gwt-maven-plugin convension.
3014 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
3015 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
3017 2011-03-07 Ben Konrath <ben@bagu.org>
3019 Add support for horizontal alignment in the LayoutList columns.
3021 * TODO: Remove item about horizontal alignment. Add item about
3022 improvements to ColumnInfo.
3023 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
3024 alignment on the columns. Use ColumnInfo RPC object get the column
3025 title and horizontal alignment.
3026 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3027 LayoutListView creation with ColumnInfo RPC object.
3028 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
3029 a ColumnInfo object for every LayoutList columnn. Convert the
3030 FieldFormatting.HorizontalAlignment to the correct
3031 ColumnnInfo.HorizontatlAlignment with the new
3032 getColumnInfoHorizontalAlignment helper method.
3033 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
3034 to encapsulate column information like alignment and title. This
3035 could be used to set the colour instead of on a per cell field basis.
3036 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
3037 column title storage and retrieval with ColumnInfo.
3039 2011-03-04 Ben Konrath <ben@bagu.org>
3041 Add support for column sorting.
3043 * src/main/java/org/glom/web/client/LayoutListView.java: Change
3044 AsynDataProvider to be an anonymous inner class. Use new
3045 getSortedTableData RPC method when column sort is requested. Set all
3046 columns sortable and add an AsyncHandler to activate sorting in the
3048 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
3049 method getSortedTableData(). Cleanup other method signatures.
3050 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
3051 new method getSortedTableData(). Cleanup other method signatures.
3052 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3053 Implement getSortedTableData() and getTableData() methods by using a
3054 private helper method with the appropriate parameters filled in. Use
3055 user supplied sort clause when supplied, otherwise fall back to
3056 sorting by the primary key. Move destroy() method to be underneath
3057 constructor for readability. Cleanup comments.
3059 2011-03-03 Ben Konrath <ben@bagu.org>
3061 Add support for colour text and colour backgrounds to the layout list cells.
3063 Only the cell backgrounds are coloured which leaves a gap between the
3064 cells that isn't coloured. I need to figure out a way to set
3065 'style=background-colour:' on the whole column rather than just the
3068 * TODO: Add a note about colouring the background of the whole column.
3069 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
3070 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
3071 render the coloured text and backgrounds. Use GlomField[] for the row type.
3072 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
3074 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
3075 GlomField[] for the row type.
3076 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
3077 GlomField[] for the row type. Set the text, text colour and background
3078 colour in the GlomField objects as specified in the glom document. Add
3079 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
3080 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
3081 the glom field text, foreground colour and background colour.
3083 2011-03-02 Ben Konrath <ben@bagu.org>
3085 Don't display hidden tables in the combo box.
3087 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
3089 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3090 code to ignore hidden tables using ArrayLists for the table names and
3092 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
3093 tableNames to use ArrayLists instead of String[]. Update getter and setter
3096 2011-03-01 Ben Konrath <ben@bagu.org>
3098 Add support for Date and Time number types.
3100 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3101 Implement formatting for Date and Time values. Change the default glom
3102 file to small business example.
3104 2011-03-01 Ben Konrath <ben@bagu.org>
3106 Add support for formatting glom types as specified in the glom file.
3108 Formatting isn't finished yet - I still need to add support for Date
3111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3112 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
3113 checks for null values in JDBC cleanup code and catch all exceptions
3114 instead of just SQLExceptions.
3115 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
3118 2011-03-01 Ben Konrath <ben@bagu.org>
3120 Use GWT 2.2.0 instead of 2.1.1.
3122 * pom.xml: Change GWT version numbers.
3124 2011-03-01 Ben Konrath <ben@bagu.org>
3126 A few small code cleanups.
3128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
3130 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
3131 unnecessary object creation in constructor.
3132 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
3133 unnecessary object creation in constructor.
3135 2011-02-28 Ben Konrath <ben@bagu.org>
3137 Add file for TODO list.
3141 2011-02-18 Ben Konrath <ben@bagu.org>
3143 Enable the CellTable Pager when more than 20 rows need to be viewed.
3145 The Pager will automatically become active when the results are larger
3146 than the CellTable size which is currently set to 20 lines.
3148 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
3149 name on debug statment in RPC call in LayoutListDataProvider, add
3150 numRows parameter to LayoutListView constructor, propperly set rowCount
3152 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
3153 name on debug statment in RPC call, use LayoutListTable object in RPC
3154 calls, pass rowCount to LayoutListView.
3155 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
3156 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
3158 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
3159 interface for changes in OnlineGlomService.
3160 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3161 getLayoutListHeaders() to getLayoutListTable() and return
3162 LayoutListTable. Using this object allows me to pass other information
3163 about the LayoutList like the expected number of rows in the result set.
3164 The Connection object from the connection pool is now propperly closed.
3165 Only the requested number of lines are returned to the client in
3167 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
3168 GlomTable and add columnTitles and numRows.
3170 2011-02-18 Ben Konrath <ben@bagu.org>
3172 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
3174 This is a small performance boost. I'll use GlomTable to get the required
3175 layoutlist information.
3177 * src/main/java/org/glom/web/client/OnlineGlom.java:
3178 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3179 * src/main/java/org/glom/web/shared/GlomDocument.java:
3181 2011-02-18 Ben Konrath <ben@bagu.org>
3183 Add option to turn off formatting in JDT formatter preferences.
3185 * .settings/org.eclipse.jdt.core.prefs:
3187 2011-02-18 Ben Konrath <ben@bagu.org>
3189 Rename LayoutList to LayoutListView.
3191 I'm working towards setting things up to easily use MVP when the time
3194 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3196 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3199 2011-02-17 Ben Konrath <ben@bagu.org>
3201 Move LayoutListDataProvider class into LayoutList.java.
3203 * src/main/java/org/glom/web/client/LayoutList.java:
3205 2011-02-17 Ben Konrath <ben@bagu.org>
3207 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3209 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3211 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3212 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3213 from LibGlomServer.java.
3214 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3215 Rename from LibGlomServiceAsync.java.
3216 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3217 Rename from LibGlomServiceImpl.java.
3218 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3220 2011-02-17 Ben Konrath <ben@bagu.org>
3222 Update JDT settings.
3224 * .settings/org.eclipse.jdt.core.prefs:
3226 2011-02-17 Ben Konrath <ben@bagu.org>
3228 Move GWT-RPC objects to shared package (where they should be).
3230 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3231 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3232 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3233 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3234 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3235 org.glom.web.shared package.
3236 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3237 org.glom.web.shared package.