1 2011-12-22 Ben Konrath <ben@bagu.org>
3 Fix another bug with related list navigation.
5 I've tested all the navigation buttons in all of the related lists
6 so things should be good now.
8 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
10 2011-12-22 Ben Konrath <ben@bagu.org>
12 Fix a crasher when refreshing the list view with the default table.
14 This crash will also happen when loading the list view with the default
15 table from a link or bookmark.
17 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
18 to the main document selection page when the document id hasn't been
20 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
21 the main document selection page when the document id hasn't been
23 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
24 values for the details place when the document id hasn't been set.
25 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
26 values for the list place when the document id hasn't been set.
28 2011-12-21 Ben Konrath <ben@bagu.org>
30 Protect against NPE when glom.document.locale is not in config.
32 This patch protects against an NPE when glom.document.locale is not in
33 the config file. This NPE will also happen if glom.document.locale is
36 The patch also updates the error message to display the class name when
37 the getMessage() returns null. This was happening when the NPE was
38 thrown and I had "Configuration Error: null". If an NPE is encountered
39 with this patch, "Configuration Error: NullPointerException " will be
42 This commit closes this bug:
44 https://bugzilla.gnome.org/show_bug.cgi?id=666669
46 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
48 2011-12-20 Murray Cumming <murrayc@murrayc.com>
50 Rename onlineglom.properties to onlineglom.properties.sample.
52 * src/main/resources/onlineglom.properties: Rename to:
53 * src/main/resources/onlineglom.properties.sample:
54 * src/main/resources/README: And add this file explaining that people
55 should rename it back when deploying.
57 2011-12-20 Murray Cumming <murrayc@murrayc.com>
59 Allow choosing the translation in the .properties file.
61 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
62 init(): Read a glom.document.locale value from the configuration file
63 and call Glom's TransatableItem::set_current_locale() method.
64 * src/main/resources/onlineglom.properties: Add a commented-out
65 example of this new setting.
67 It would be better to add &lang=de_DE to the URL, but the current
68 libglom API does not allow us to do this easily. I am working on that.
70 2011-12-19 Murray Cumming <murrayc@murrayc.com>
72 Avoid a crash in parsing of token parameters.
74 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
75 ava: getTokenParams(): Do not crash if a parameter has a key but no
76 value, and ignore parameters with neither.
78 2011-12-17 Murray Cumming <murrayc@murayc.com>
80 History token building/handling: Improve use of token parameters.
82 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
83 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
84 and buildParamsToken(HashMap), for use by derived classes.
85 Make the separator private because it is no longer be needed.
86 * src/main/java/org/glom/web/client/place/DetailsPlace.java
87 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
88 instead of manual string concatenation.
89 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
90 of hardcoded indices and awkward splitting code.
91 * src/main/java/org/glom/web/client/place/ListPlace.java
92 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
93 instead of manual string concatenation.
94 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
95 of hardcoded indices and awkward splitting code.
96 This should fix bug #666420
98 2011-12-16 Murray Cumming <murrayc@murrayc.com>
100 Fix a Navgiation->Navigation typo in the code.
102 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
103 Rename processNavgiation() to processNavigation().
105 2011-12-16 Murray Cumming <murrayc@murrayc.com>
107 Fix a seperator->separator typo in the code.
109 * src/main/java/org/glom/web/client/place/DetailsPlace.java
110 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
111 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
114 2011-12-15 Ben Konrath <ben@bagu.org>
116 Cleanup some comments.
118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
120 2011-12-14 Ben Konrath <ben@bagu.org>
122 Replace \n with <br/> for multiline text in the details view.
124 Vertical scrollbars are added when needed as well.
126 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
128 2011-12-14 Ben Konrath <ben@bagu.org>
130 Specify the font for document selection links.
132 * src/main/webapp/style.css:
134 2011-12-14 Ben Konrath <ben@bagu.org>
136 Fix bouncy CellTable while paging.
138 This doesn't currently work with related list tables in unselected
141 * src/main/java/org/glom/web/client/ui/list/ListTable.java
143 2011-12-14 Ben Konrath <ben@bagu.org>
145 Revamp the appearance of the document selection page.
147 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
148 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
149 * src/main/webapp/style.css:
151 2011-12-13 Ben Konrath <ben@bagu.org>
153 Set navigation button column to the smallest size possible.
155 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
157 2011-12-13 Ben Konrath <ben@bagu.org>
159 Change OpenButton nomenclature to NavigationButton.
161 Using NavigtionButton makes things more generic. Classes, methods and
162 variables have been changed.
164 This is a rename-only refactor.
166 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
167 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
168 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
169 Renamed from OpenButtonCell.
170 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
171 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
172 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
174 2011-12-12 Ben Konrath <ben@bagu.org>
176 Remove unnecessary String argument in RelatedListTable and ListViewTable.
178 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
179 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
180 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
181 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
183 2011-12-12 Ben Konrath <ben@bagu.org>
185 Update variable names and comments.
187 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
188 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
190 2011-12-12 Ben Konrath <ben@bagu.org>
192 Properly initialize numNonEmptyRows variable to zero.
194 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
195 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
197 2011-12-05 Ben Konrath <ben@bagu.org>
199 Add latest mockup with HTML tables.
201 Features of this mockup:
203 -> HTML table for flowtable
204 -> HTML table for flowtable column
205 -> Example of how related lists would look
206 -> Not using text entries for data items
208 The current version of Online Glom doesn't use HTML tables for the
211 This mockup has been sent to the glom-devel mailing list but it's good
212 to have it here as well.
214 * mockups/details-view-html-tables.html:
216 2011-12-05 Ben Konrath <ben@bagu.org>
218 Remove unnecessary getPrimaryKeyField() method.
220 getPrimaryKeyFieldForTable(String) has been renamed to
221 getPrimaryKeyField(String).
223 * src/main/java/org/glom/web/server/database/DBAccess.java:
224 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
225 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
227 2011-12-05 Ben Konrath <ben@bagu.org>
229 Add string representation of TypedDataItem value to conversion error message.
231 * src/main/java/org/glom/web/server/Utils.java: Logging the error
232 message was extracted into its own method to avoid duplication.
234 2011-12-05 Ben Konrath <ben@bagu.org>
236 Add type checking to navigation primary key value creation.
238 Create navigation primary key only if the expected type from the Glom
239 document matches the type returned by the SQL query.
241 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
243 2011-12-05 Ben Konrath <ben@bagu.org>
245 Rename a couple of variables in RelatedListNavigation.
247 This is a rename-only refactor.
249 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
251 2011-12-05 Ben Konrath <ben@bagu.org>
253 Move getListLayoutGroup() into getListViewLayoutGroup().
255 This removes getListLayoutGroup(). It was only being called by
256 getListViewLayoutGroup().
258 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
260 2011-12-05 Ben Konrath <ben@bagu.org>
262 Remove check for LayoutItem_Portal in list table method.
264 This check is no longer necessary because the method isn't being used
265 to create the LayoutItemPortal DTO.
267 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
269 2011-12-05 Ben Konrath <ben@bagu.org>
271 Properly support related list navigation.
273 Navigation from the "Repository Analyzer -> Package Scans ->
274 Dependencies" related table wasn't working because the primary key for
275 related tables wasn't being set properly. This commit fixes the
278 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
279 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
280 doesn't set the primary key properly for related list tables.
281 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
282 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
283 useful for getting the primary key for list view tables and for related
285 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
286 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
287 Move code to set the primary key for the table from the abstract
288 ListDBAccess class to ListViewDBAccess as it's only correct for list
290 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
291 Properly add primary key to related list tables.
293 2011-12-02 Ben Konrath <ben@bagu.org>
295 Properly set the horizontal alignment of fields.
297 This fix is for both the list tables and the details view.
299 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
300 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
301 to set the horizontal alignment of fields.
303 2011-12-02 Ben Konrath <ben@bagu.org>
305 Display currency codes in the details view.
307 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
309 2011-12-02 Ben Konrath <ben@bagu.org>
311 Avoid duplicate JNI call.
313 JNI is not as efficient as pure Java and this is an easy (and small)
316 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
317 Use previously retrieved value for whereClauseToTableName instead of
320 2011-12-02 Ben Konrath <ben@bagu.org>
322 Rename a couple of variables in RelatedListNavigation.
324 This is a rename-only refactor.
326 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
328 2011-12-02 Ben Konrath <ben@bagu.org>
330 Indicate clearly that a mismatched primary key type is a bug.
332 * src/main/java/org/glom/web/server/Utils.java: Change log level from
333 warning to error. Add 'This is a bug.' to message.
335 2011-12-02 Ben Konrath <ben@bagu.org>
337 Update / fix some comments.
339 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
341 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
343 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
344 Fix comments. Add some TODOs.
346 2011-12-02 Ben Konrath <ben@bagu.org>
348 Enable navigation to details view with string primary key from related list.
350 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
351 Create a text primary key value when return type of result is
352 java.sql.Types.VARCHAR.
354 2011-12-02 Ben Konrath <ben@bagu.org>
356 Use checkboxes for booleans in the details view.
358 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
360 2011-12-01 Ben Konrath <ben@bagu.org>
362 Improve performance of related list height calculation.
364 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
365 Put code to calculate the expected height in a static initializer so
366 that that it's only called once.
368 2011-12-01 Ben Konrath <ben@bagu.org>
370 Show related list tables in notebooks (again).
372 Calculate the height of the related list tables so the Notebook can be
373 set the correct height. The height of the related list table is also needed by
374 FlowTable to be able decide how to create the layout.
376 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
377 and set the Portal height based on the height of the related list
378 table and the Portal container.
379 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
380 Add method to calculate the height of the related list tables.
381 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
382 * src/main/webapp/style.css: Add css class for Pager. This is needed to
383 calculate the height of the Pager widget.
385 2011-12-01 Ben Konrath <ben@bagu.org>
387 Use CellTable API for table property instead of setting style on Element.
389 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
391 2011-12-01 Ben Konrath <ben@bagu.org>
393 Make ListViewTable and RelatedListTable a consistent height.
395 The tables are now a consistent height regardless of the contents of
396 the table. A hidden button is added to empty rows to ensure that the
397 height of these rows will match the height of rows with data.
399 A navigation button column is now added to every table. The width of
400 the navigation column is set to 0px when a RelatedListTable shouldn't
401 have navigation buttons. This maintains the a consistent row height in
402 tables that don't show the navigation buttons.
404 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
405 navigation column when not needed.
406 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
407 arguments for navigation button to constructor of ListViewTable.
408 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
409 hidden button for empty data rows.
410 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
411 arguments for navigation button to constructor.
412 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
413 create navigation buttons. Add hideNavigationButtons() method.
414 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
415 arguments for navigation button to constructor.
417 2011-12-01 Ben Konrath <ben@bagu.org>
419 Use 'visibility: hidden' in Utils.getWidgetHeight().
421 This is better choice because hidden elements are invisible, don't
422 respond to events and are not part of the tab order. They will,
423 however, take up space which is required to be able to calculate the
424 height of the widget.
426 * src/main/java/org/glom/web/client/Utils.java:
428 2011-12-01 Ben Konrath <ben@bagu.org>
430 Use Utils.getWidgetHeight() in FlowTable.
432 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
434 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
436 2011-12-01 Ben Konrath <ben@bagu.org>
438 Put the details css class name on the correct table column.
440 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
442 2011-11-30 Ben Konrath <ben@bagu.org>
444 Update for java-libglom API change.
446 The getters and setters on FieldFormatting and NumericFormat were
447 changed to remove the 'M'.
449 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
451 2011-11-29 Ben Konrath <ben@bagu.org>
453 Only allow RelatedListTables in Portals.
455 * src/main/java/org/glom/web/client/ui/details/Portal.java:
457 2011-11-29 Ben Konrath <ben@bagu.org>
459 Only create a contents panel for Portals when title is being set.
461 * src/main/java/org/glom/web/client/ui/details/Portal.java:
463 2011-11-29 Ben Konrath <ben@bagu.org>
465 Set TabLayoutPanel height based on calculated height its widgets.
467 This is a potential fix for this bug:
469 https://bugzilla.gnome.org/show_bug.cgi?id=665133
471 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
473 2011-11-29 Ben Konrath <ben@bagu.org>
475 Align details field labels and data with the Open buttons.
477 * src/main/webapp/style.css:
479 2011-11-29 Ben Konrath <ben@bagu.org>
481 Remove unnecessary <div> in the Notebook widget.
483 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
484 method to get container FlowPanel (<div>).
485 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
486 initWidget() method directly on the TabLayoutPanel widget instead of
487 Group's container widget.
489 2011-11-29 Ben Konrath <ben@bagu.org>
491 Don't add group titles for Portals in Notebooks.
493 This reverts the previous patch and fixes a bug I introduced with
494 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
496 * src/main/java/org/glom/web/client/ui/details/Group.java:
497 * src/main/java/org/glom/web/client/ui/details/Portal.java:
499 2011-11-28 Ben Konrath <ben@bagu.org>
501 Remove unused boolean argument in Portal constructor.
505 * src/main/java/org/glom/web/client/ui/details/Group.java:
506 * src/main/java/org/glom/web/client/ui/details/Portal.java:
508 2011-11-28 Ben Konrath <ben@bagu.org>
510 Remove hack for glom 1.18 style glom files.
512 * src/main/java/org/glom/web/client/ui/details/Group.java:
513 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
514 * src/main/java/org/glom/web/client/ui/details/Portal.java:
516 2011-11-28 Ben Konrath <ben@bagu.org>
518 Use Gda Value version of primary key to log result too large error.
520 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
522 2011-11-28 Ben Konrath <ben@bagu.org>
524 Don't use TypedDataItem.getText() for Unknown types from the URL.
526 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
527 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
528 instead of getText().
529 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
530 String field and getUnknown() method.
532 2011-11-28 Ben Konrath <ben@bagu.org>
534 Log an error message when the java-libglom .so is not present.
536 The error message was being set in the exception but not logged.
538 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
540 2011-11-28 Ben Konrath <ben@bagu.org>
542 Ignore LayoutItem_CalendarPortals.
544 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
545 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
547 2011-11-28 Ben Konrath <ben@bagu.org>
549 Extract method for creating the LayoutItemPortal DTO.
551 Just breaking the code up into smaller chunks.
553 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
555 2011-11-28 Ben Konrath <ben@bagu.org>
559 This should have been added with the refactor. Oops!
561 * src/main/java/org/glom/web/shared/TypedDataItem.java:
563 2011-11-28 Ben Konrath <ben@bagu.org>
565 Create primary key value from URL string using type from Glom document.
567 See this bug, comments 19 - 25:
569 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
571 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
572 create a TypeDataItem for the primary key here when loading from a
573 URL. Show the same string for the primary key value as was received
574 from the URL string (when loading from a URL).
575 * src/main/java/org/glom/web/server/Utils.java: Update method for
576 creating the Gda Value from the TypeDataItem to properly deal with
577 creating a Gda Value based on the Glom document type for the primary
578 key value string when loading from a URL.
579 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
580 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
581 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
582 Update for changed method name.
584 2011-11-27 Ben Konrath <ben@bagu.org>
586 Rename PrimaryKeyItem to TypedDataItem.
588 The name PrimaryKeyItem suggests what the class should be used for.
589 TypedDataItem is a neutral name that describes the class better.
591 This is a rename-only refactor.
593 * src/main/java/org/glom/web/client/OnlineGlomService.java:
594 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
595 * src/main/java/org/glom/web/client/Utils.java:
596 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
597 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
598 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
599 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
600 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
601 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
603 * src/main/java/org/glom/web/server/Utils.java:
604 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
605 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
606 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
607 * src/main/java/org/glom/web/shared/NavigationRecord.java:
609 2011-11-25 Ben Konrath <ben@bagu.org>
611 Improve Gda Value conversion from PrimaryKeyItem.
613 The value from the PrimaryKeyItem is only used if its type match the
614 type from the glom document.
616 * src/main/java/org/glom/web/server/Utils.java:
618 2011-11-25 Ben Konrath <ben@bagu.org>
620 Manually check if the java-liblgom .so is visible to the JVM.
622 It seems that Tomcat has problems when a static initializer throws an
623 exception. This check is done before the first method call into
624 java-libglom so that execution doesn't continue if the .so is not
627 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
629 2011-11-25 Ben Konrath <ben@bagu.org>
631 Improve browser configuration error messages.
635 https://bugzilla.gnome.org/show_bug.cgi?id=662792
637 * src/main/java/org/glom/web/client/OnlineGlomService.java:
638 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
639 getConfigurationErrorMessage() method.
640 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
641 Get and display a specific configuration error message when no Glom
643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
644 Implement getConfigurationErrorMessage() method. Surround configuration
645 code in the init() method with a try/catch block. This allows the
646 errors to be caught while keeping the servlet available to retrieve the
647 configuration error message.
649 2011-11-25 Ben Konrath <ben@bagu.org>
651 Don't use Strings to hold primary key values.
653 The primary key values are now held in a new data object
654 (PrimaryKeyItem) that holds type information and the primary key value
655 using the correct type.
657 * src/main/java/org/glom/web/client/OnlineGlomService.java:
658 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
659 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
660 PrimaryKeyItem instead of String to hold the primary key value.
661 * src/main/java/org/glom/web/client/Utils.java: Remove
662 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
663 PrimaryKeyItem based on the GlomFieldType and the DataItem.
664 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
665 PrimaryKeyItem instead of String to hold the primary key value. Load
666 document selection page when the documentID has not been set correctly.
667 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
668 DetailsPlace -> URL and URL -> DetailsPlace conversion with
670 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
671 Return empty string for URL instead of "null".
672 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
673 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
674 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
675 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
676 PrimaryKeyItem instead of String to hold primary key values.
677 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
678 PrimaryKeyValue to a Gda Value.
679 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
680 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
681 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
682 Replace temporary database access code that uses the PrimaryKeyValue to
683 Gda Value conversion.
684 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
685 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
686 PrimaryKeyItem instead of String.
687 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
688 hold primary key values.
690 2011-11-24 Ben Konrath <ben@bagu.org>
692 Use newly added java-libglom API to create queries.
694 This isn't finished. I still need to stop using Strings for primary key
695 values in the client code.
697 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
698 libglom to use fake connections so that retrieving the query string will
700 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
701 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
702 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
703 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
704 Use the newly added libglom sql methods and classes to create the
705 query. Add temporary hack to convert primary value strings to Gda
708 2011-11-23 Ben Konrath <ben@bagu.org>
710 Don't explicitly set the height of Portals.
712 See comments 6 - 10 of this bug for details:
714 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
716 * src/main/java/org/glom/web/client/ui/details/Portal.java:
718 2011-11-23 Ben Konrath <ben@bagu.org>
720 Use an HTML table instead of CSS for the FlowTable layout.
722 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
723 GWT's FlexTable to implement the FlowTable.
724 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
726 2011-11-18 Ben Konrath <ben@bagu.org>
728 Add boolean example to HTML table mockup.
730 * mockups/details-view-html-tables-text-entries.html:
732 2011-11-17 Ben Konrath <ben@bagu.org>
734 Ensure the pager buttons are always visible for related lists.
736 To accomplish this, I've turned off text wrapping in the list view and
737 related list tables for both the header and data text. The related list
738 table now has a fixed layout so the it doesn't overflow its container.
739 This is required to ensure that the cell text is clipped when it
740 overflows the cell and an ellipsis is added to the right side of the
741 cell when text is clipped.
743 A fixed table layout for the related list table in the details view
744 seems what we want for the details view anyway, so the side-effect is
747 The ellipsis will only be displayed in Firefox >= 7.
751 https://bugzilla.gnome.org/show_bug.cgi?id=662930
753 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
754 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
755 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
757 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
758 Set the 'table-layout: fixed' CSS property to the related list table.
759 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
760 'white-space: nowrap;' CSS property on both the list view and the
763 2011-11-16 Ben Konrath <ben@bagu.org>
765 Rework the fix for empty notebook tab labels.
767 Setting the empty group titles with its name caused problems for the
768 details layout. Instead of using libglom's
769 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
770 to the client when the title is empty. This allows the Notebook to use
771 the name when the title is empty without affecting anything else.
773 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
774 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
776 2011-11-16 Ben Konrath <ben@bagu.org>
778 Set group titles with name when title is empty.
780 This fixes a problem with an empty notebook tab label in the Lesson
781 Planner document. The forth tab in the notebook should be "Internet":
783 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
785 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
786 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
789 2011-11-16 Ben Konrath <ben@bagu.org>
791 Remove whitespace from the configured username properties.
793 This assumes that usernames won't have whitespace at the beginning
794 or end. But I think this is a reasonable assumption.
796 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
797 String.trim() to remove the whitespace from the username properties.
799 2011-11-15 Ben Konrath <ben@bagu.org>
801 Add details view mockup with HTML tables and text entries.
803 This is from the attachment on this bug:
805 https://bugzilla.gnome.org/show_bug.cgi?id=663109
807 * mockups/details-view-html-tables-text-entries.html:
809 2011-11-15 Ben Konrath <ben@bagu.org>
811 Add space between the columns of the flow table.
815 https://bugzilla.gnome.org/show_bug.cgi?id=662918
817 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
818 space between columns in the flow table.
820 2011-11-15 Ben Konrath <ben@bagu.org>
822 Add backup files to the .gitignore.
824 * .gitignore: Ignore files that end with ~.
826 2011-11-09 Ben Konrath <ben@bagu.org>
828 Use latest release of gwt-log.
830 Gwt-log releases are now being submitted to the maven central
831 repository so manual installation of the jar is no longer required.
833 * pom.xml: Update version and groupId of gwt-log dependency.
835 2011-10-31 Ben Konrath <ben@bagu.org>
837 Don't use GWT numeric formatting to override the glom currency formatting.
839 Currencies are now displayed like they are in Glom. See this bug:
841 https://bugzilla.gnome.org/show_bug.cgi?id=646216
843 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
845 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
846 currency code to constructor and set it when the cell is rendered.
847 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
848 currency code to the constructor of the NumericCell.
850 2011-10-27 Ben Konrath <ben@bagu.org>
852 Require the latest release of java-libglom (1.17.4).
856 2011-10-26 Ben Konrath <ben@bagu.org>
858 Add style to Notebook that matches current theme.
860 It's not the best style in the world but it's better than the default.
862 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
863 padding at the bottom of the child widgets.
864 * src/main/webapp/style.css: Add style for the Notebook.
866 2011-10-26 Ben Konrath <ben@bagu.org>
868 Move servlet initialization code to overridden init method.
870 This is half of the solution to getting proper error messages
871 displayed when configuration errors occur. Here's the relevant bug:
873 https://bugzilla.gnome.org/show_bug.cgi?id=662792
875 The rest of the solution involves surrounding the init method with a
876 try/catch block and setting a global variable with the error /
877 exception. A new async method should be created to retrieve and display
878 the error message / exception.
880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
881 code from constructor to init method adding exceptions as needed.
883 2011-10-26 Ben Konrath <ben@bagu.org>
885 Add script to monitor and restart tomcat if required.
887 * utils/check-and-recover-tomcat.py: New file.
889 2011-10-26 Ben Konrath <ben@bagu.org>
891 Display the correct number of data items in the pager.
895 https://bugzilla.gnome.org/show_bug.cgi?id=661441
897 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
898 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
899 The implementation is the same for both tables: Keep track of the
900 number of non-empty rows and fire and RowCountChangeEvent after the data has
902 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
903 custom Pager class that subclasses SimplePager to handle displaying
904 the correct number when empty rows have been added.
906 2011-10-26 Ben Konrath <ben@bagu.org>
908 Correct error in previous commit.
910 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
911 eventBus parameter from listView.setCellTable().
913 2011-10-26 Ben Konrath <ben@bagu.org>
915 Fix error in TODO comment.
917 * src/main/java/org/glom/web/client/activity/ListActivity.java:
919 2011-10-24 Ben Konrath <ben@bagu.org>
921 Create Notebook widgets to the details view.
923 This isn't finished just yet - I still need to create a reasonable
924 style to match the current theme.
926 * src/main/java/org/glom/web/client/Utils.java: Add method for
927 calculating the height of a widget. This is used in the Notebook class.
928 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
929 new constructor method in Group.
930 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
931 method for creating child widget that can be used by subclasses
932 like Notebook. New constructor that allows disabling the group
933 titles - Notebooks don't set a group title for their child groups.
934 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
935 to make Notebooks using GWT's TabLayoutPanel.
936 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
937 constructor that allows disabling the group titles.
938 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
939 LayoutItemNotebook DTO.
940 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
941 DTO for Notebooks. It's just an empty class for now but we might need
942 it to transfer some specific information in the future.
944 2011-10-21 Ben Konrath <ben@bagu.org>
946 Add navigation buttons to related list tables.
948 * src/main/java/org/glom/web/client/OnlineGlomService.java:
949 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
950 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
951 method getSuitableRecordToViewDetails() for getting the table name
952 and primary key value for related list navigation buttons.
953 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
954 private cell renderer class to get the navigation information for
955 related list tables from the server. Extract the navigation
956 processing code from the details cell navigation and use it for the
957 related list navigation as well.
958 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
959 cell renderer class for the details open buttons. This was needed
960 because the related list navigation buttons and the list view
961 navigation buttons need to react differently when clicked.
962 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
963 the onEnterKeyDown() method because it's now overriden in the
964 subclasses that are specific to the related list tables and the list
966 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
967 the vertical size a little because the buttons add a bit of vertical
968 space to table. This is not a perfect solution because the vertical
969 size of with table fewer than 5 rows will be a little smaller.
970 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
971 changes in how navigation buttons are handled.
972 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
973 getSuitableRecordToViewDetails() using the new RelatedListNavigation
974 database access object.
975 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
976 to find the portal for a given relationship name from
977 RelatedListDBAccess. Add method to find a primary key field for a
979 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
980 Move code to find the portal for a given relationship name to
982 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
983 New file: database access object for getting the related list
984 navigation information (the table name and the primary key value).
985 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
986 DTO for transferring a table name to navigate to and a primary key
988 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
989 boolean and getter/setter to specifies if the related list should add
992 2011-10-24 Murray Cumming <murrayc@murrayc.com>
994 Use the master branch of java-libglom
996 * pom.xml: Depend on java-libglom 1.19 instead.
998 This is the master branch. See also the libglom-1-18 branch.
1000 2011-10-11 Ben Konrath <ben@bagu.org>
1002 Enable the open navigation button when the data has been set.
1004 This avoids having active buttons that don't do anything when the data
1007 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1009 2011-10-11 Ben Konrath <ben@bagu.org>
1011 Use IsWidget interface for FlowTableItem.
1013 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
1014 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
1016 2011-10-11 Ben Konrath <ben@bagu.org>
1018 Remove GWT styling from open button in details view.
1020 There are still some issues with how the details cell is arranged but
1021 this should be made to match Glom 1.20. I'm going to leave fixing this
1022 until I have Glom 1.20 up and running.
1024 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
1025 style name on open button.
1026 * src/main/webapp/style.css: Move and edit details-navigation class.
1027 Re-arrange some classes to make them appear in the same order as the
1030 2011-10-07 Ben Konrath <ben@bagu.org>
1032 Update to GWT 2.4.0.
1034 * .gitignore: Ignore new cache directory.
1035 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
1036 * pom.xml: Change GWT and maven plugin to 2.4.0.
1037 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
1039 * src/main/java/org/glom/web/client/ClientFactory.java:
1040 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1041 * src/main/java/org/glom/web/client/OnlineGlom.java:
1042 Update source for API changes.
1043 * utils/build-onlineglom-war.sh: Remove cache directory before the
1046 2011-10-07 Ben Konrath <ben@bagu.org>
1048 Add navigation buttons in the details view.
1050 This isn't finished but I thought I'd commit what I have as it's a
1051 pretty good start. I still need to:
1053 1. Change the style so that it fits better into the current theme
1054 2. Adjust the details cell to expand as much as possible.
1056 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1057 click handlers to navigation buttons in the DetailsCells. Create a
1058 refreshData() method to get just the data from the server without the
1060 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1061 Update the tableSelector and browser title when the table name
1062 changes without using the tableSelector.
1063 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1064 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1065 getDetailsCells() to getCells(). Update variable names.
1066 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
1067 method to set click handler on navigation button. Rename a few
1068 variables. Add navigation buttons where needed.
1069 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
1070 variables and methods.
1071 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
1072 navigation boolean and navigation table as required in the
1073 LayoutItemField DTO.
1074 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1075 variables for navigation along with getter/setter methods.
1077 2011-10-07 Ben Konrath <ben@bagu.org>
1079 Rename Field to DetailsCell.
1081 This is a refactor-only commit. No functionality has been added or
1084 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1085 Update variable and method names.
1086 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1087 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1088 variable and method names.
1089 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1091 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1092 variable and method names.
1094 2011-10-07 Ben Konrath <ben@bagu.org>
1096 Create separate methods for layout and data the details view.
1098 This is a refactor-only commit. No functionality has been added or
1101 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1102 private methods: setData(), createLayout().
1104 2011-10-07 Ben Konrath <ben@bagu.org>
1106 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1108 This is part of a change to get navigation buttons in the details view
1109 but it should have been done this way from the start.
1111 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1112 for method name change in TableSelectionView.
1113 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1114 Create TableChangeEvent and set the browser title using the
1115 TableSelectionView API.
1116 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1117 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1118 Change getSelectedTable() to getSelectedTableName(). Add
1119 getSelectedTableTitle().
1121 2011-10-07 Ben Konrath <ben@bagu.org>
1123 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1125 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1127 2011-10-07 Ben Konrath <ben@bagu.org>
1129 Update TableChangeEvent to use newTableName naming convention.
1131 This makes the class more consistent with GWT naming conventions.
1133 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1134 Update for method name change in TableChangeEvent.
1135 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1136 for method name change in TableChangeEvent.
1137 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1138 newTableName variable and getter method. Make toDebugString()
1141 2011-09-30 Ben Konrath <ben@bagu.org>
1143 Disable the pager in the list tables when the data row count is less than the minimum.
1145 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1146 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1148 2011-09-30 Ben Konrath <ben@bagu.org>
1150 Add empty rows to the end of related list and list view tables.
1152 I also extracted the cell rendering classes from the ListTable because
1153 the code was becoming a little crazy with all the anonymous inner
1154 classes. My plan is to use these cell rendering classes in the details
1155 view as well so this refactor will be needed for that change.
1157 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1158 set the row count in related list tables if the data has more rows
1159 than the minimum number of rows visible.
1160 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1161 row count in list view tables if the data has more rows than the
1162 minimum number of rows visible.
1163 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1164 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1166 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1167 for rendering TYPE_NUMERIC cells. The code was extracted from the
1169 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1170 class for rendering cells with buttons in list views. The code was
1171 extracted from the ListTable class.
1172 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1173 for rendering TYPE_TEXT cells. The code was extracted from the
1175 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1176 Add empty rows to the end of the data if required. Implement
1177 ListTable.getMinNumVisibleRows().
1178 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1179 cell renderer code to public classes. Return null in
1180 Column.getValue() for empty rows. Add new abstract method:
1181 getMinNumVisibleRows(). Move code to set the row count of the list view
1182 table to ListViewImpl.
1183 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1184 empty rows to the end of the data if required. Implement
1185 ListTable.getMinNumVisibleRows().
1188 2011-09-27 Ben Konrath <ben@bagu.org>
1190 Use GWT.log for client-side debugging statements.
1192 These are optimized out when deployed so I should have used this method
1193 in the first place. These statements will eventually be replaced with some sort
1194 of notification in the browser.
1196 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1197 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1198 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1199 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1200 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1202 2011-09-27 Ben Konrath <ben@bagu.org>
1204 Put tableselector on the right, back to list link on right.
1206 The idea is that the table selector is acting like a label for the
1207 currently displayed table so it should be placed below the document title. This
1208 puts the table title in a similar position to where it is in Glom.
1210 * mockups/details-contacts.html:
1211 * mockups/details-projects.html:
1212 * mockups/listview-contacts.html:
1213 * mockups/listview-projects.html:
1214 * mockups/style.css:
1215 Update mockups to match how the interfaces currently look.
1216 * src/main/webapp/style.css: Swap positions of backlink with the table
1217 selector. Add some space on the left side of the table selector to
1218 line things up with the document title.
1220 2011-09-27 Ben Konrath <ben@bagu.org>
1222 Add field colouring to details view.
1224 This change re-works how field colouring works. The colour formatting
1225 information is now set to the client with the layout information instead of
1226 with the data. This eliminates the need to send the same colour strings for
1227 data in list view column when colour information is set.
1229 In order to set an alternate colour for negative numeric values, the
1230 number is now sent to client and formatted with the GWT NumberFormat class.
1232 This change also fixes:
1234 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1236 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1237 internationalization framework which is needed for client side numeric
1239 * src/main/java/org/glom/web/client/Utils.java: New file for some
1240 client static utility methods.
1241 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1242 the DataItem object to the Field class. Use a utility method to
1243 create the foreignKeyValue string.
1244 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1245 alignment and text colours in the constructor. Add setData(DataItem)
1246 method. Remove setText(String) method.
1247 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1248 colour information to GlomTextCell. Create and use GlomNumberCell for
1249 rendering numbers. Use utility method to get the string for the
1250 primary key of the key provider. Re-work how the horizontal alignment
1252 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1253 formatting to layout information. Methods for converting the libglom
1254 formatting information were moved from DBAccess.
1255 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1256 numeric formatting (it's now done on the client side). Don't set text
1257 colours in DataItem. Move libglom formatting conversion methods to
1259 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1260 getters/setters for text colour information.
1261 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1262 for transferring the libglom NumericFormat information to the client.
1263 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1264 and getters/setters for: GlomNumericFormat, background colour and
1265 foreground colour strings.
1267 2011-09-26 Ben Konrath <ben@bagu.org>
1269 Simplify code that iterates through the LayoutGroup.
1271 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1273 2011-09-26 Ben Konrath <ben@bagu.org>
1275 Accept Eclipse formatting for OnlineGlomServiceAsync.
1277 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1279 2011-09-26 Ben Konrath <ben@bagu.org>
1281 Don't use the ListDBAccess classes to get the primary key layout information.
1283 This was causing a bug where the wrong index for the hidden primary key
1284 was being sent to the client.
1286 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1287 primary key while creating the LayoutGroup DTO. Create a
1288 LayoutItemField DTO for hidden primary keys. Don't use the
1289 RelatedListDBAccess because it was only used for getting the primary
1291 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1292 access modifier from public to protected for getPrimaryKeyField() and
1293 getPrimaryKeyLayoutItemField().
1294 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1295 abstract method getExpectedResultSize() because RelatedListDBAccess
1296 doesn't have enough info to implement it.
1297 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1298 Remove @Override for getExpectedResultSize().
1299 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1300 Remove method getExpectedResultSize().
1302 2011-09-23 Ben Konrath <ben@bagu.org>
1304 Log which layout (list or details) the ignored item is from.
1306 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1308 2011-09-23 Ben Konrath <ben@bagu.org>
1310 Remove annotations that turn off code formatting in DataItem.
1312 * src/main/java/org/glom/web/shared/DataItem.java:
1314 2011-09-23 Ben Konrath <ben@bagu.org>
1316 Rename GlomField to DataItem and update associated methods.
1318 This is a rename-only refactor. No functionality has been added or
1321 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1322 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1323 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1324 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1325 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1326 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1327 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1328 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1330 * src/main/java/org/glom/web/server/database/DBAccess.java:
1331 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1332 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1333 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1334 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1335 * src/main/java/org/glom/web/shared/DataItem.java:
1336 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1337 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1339 2011-09-23 Ben Konrath <ben@bagu.org>
1341 Rename GlomDocument to DocumentInfo and update associated methods.
1343 This is a rename-only refactor. No functionality has been added or
1346 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1347 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1348 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1349 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1350 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1351 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1352 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1354 2011-09-20 Ben Konrath <ben@bagu.org>
1356 Require java-libglom 1.17.3.
1358 This picks up the fix for the seg fault problem with the Scenes table
1359 in the Openismus Film Manager example.
1363 2011-09-20 Ben Konrath <ben@bagu.org>
1365 Change the way sort clause is added for primary key when no sort clause is requested.
1367 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1368 before the sort clause is created. When a sort clause is not requested, the
1369 sort clause is created by finding the primary key in the LayoutFieldVector
1372 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1374 2011-09-20 Ben Konrath <ben@bagu.org>
1376 Log error message if no documents are found in the configured directory.
1378 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1379 Extract the glom file extension string to a private static final class
1380 variable (mostly as syntactic sugar). Accept a minor formatting change.
1381 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1382 the example glom.document.directory configuration property to make it
1383 more clear that it can any directory, not just the home directory.
1385 2011-09-18 Ben Konrath <ben@bagu.org>
1387 Add related lists to details view.
1389 The related list table has support for paging and sorting just like the
1390 table in the list view.
1392 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1393 SQL queries for the related list tables.
1394 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1395 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1396 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1397 Rename getList methods to getListView and add comments. Remove
1398 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1399 it being unused. Add methods: getDetailsLayoutAndData(),
1400 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1401 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1402 Create the layout and set the data for the fields in one async call
1403 instead of two. Create related lists where appropriate.
1404 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1405 for method name changes in OnlineGlomService.
1406 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1407 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1408 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1410 * src/main/java/org/glom/web/client/ui/ListView.java:
1411 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1412 tableName from setCellTable(). Create a ListViewTable instead of
1414 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1415 represent a data field in the details view.
1416 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1417 from addDetailsCell() to Field class. Keep track of the Fields and
1418 Portals in the details view.
1419 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1420 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1421 and add a method to get it. Add method to set the contents of the
1423 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1424 New class for related list tables. This class has the data provider
1425 for the related list table.
1426 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1427 abstract class which is the base class for the ListViewTable and the
1429 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1430 New class for list view tables. This class has the data provider for
1431 the list view table.
1432 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1433 methods for related list tables. Add more information to the
1434 LayoutItemField and LayoutItemPortal DTOs.
1435 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1436 Remove debugging print statement.
1437 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1438 Remove debugging print statements. Add primary key field to SQL count
1440 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1441 Remove unnecessary LayoutFieldVector parameter from
1442 getResultSizeOfSQLQuery() method.
1443 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1444 New class for related list table database access.
1445 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1446 class that is a wrapper DTO for details view layout and data.
1447 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1448 new 'fromField' string to this DTO.
1449 * src/main/webapp/style.css: Remove bottom margin and override top
1452 2011-09-15 Ben Konrath <ben@bagu.org>
1454 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1456 This sets things up to make it easier to add the data retrieval for
1457 related lists (portals). No user noticeable changes were made with
1460 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1461 class has the code to retrieve the layouts and access the
1462 database using the new database helper classes.
1463 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1464 Most of the functionality has been removed from this class. This
1465 class now represents the public interface for the client side
1466 code. It also deals with configuring the servlet and cleaning
1467 things up when the servlet is stopped.
1468 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1469 of static methods into this utility class.
1470 * src/main/java/org/glom/web/server/database/DBAccess.java:
1471 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1472 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1473 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1474 These classes have the database retrieval code. The class hierarchy
1475 has been setup to make it easy to reuse code for similar
1478 2011-09-06 Ben Konrath <ben@bagu.org>
1480 Create separate classes for list table code and the data provider.
1482 As part of this refactor, I also split up the code a bit to make it
1485 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1486 table code to two new classes (below).
1487 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1488 with code from ListViewImpl.
1489 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1490 New file with code from ListViewImpl.
1492 2011-09-06 Ben Konrath <ben@bagu.org>
1494 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1496 This fixes the LayoutItemPortal DTO to match the libglom layout object
1499 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1501 2011-09-01 Ben Konrath <ben@bagu.org>
1503 Set title of Portals in the Details View.
1505 * pom.xml: Bump required version of java-libglom to 1.17.1.
1506 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1507 widget creation to its own class. Add comments to constructor.
1508 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1509 The code is mostly from the Group class with the title now set.
1510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1511 title of Portal. Update some comments. Fix some code formatting.
1513 2011-09-01 Ben Konrath <ben@bagu.org>
1515 Remove TODO comment for the flow table column width.
1517 The flow table column width is working correctly and doesn't need to be
1518 changed. See this mailing list post for more info:
1520 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1522 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1524 2011-08-27 Ben Konrath <ben@bagu.org>
1526 Add document title (database name) to top of the browser page.
1528 I added the document title to the TableSelecitonView but that will
1529 change if / when we add a view that doesn't require table selection.
1531 * mockups/details-contacts.html:
1532 * mockups/details-projects.html:
1533 * mockups/listview-contacts.html:
1534 * mockups/listview-projects.html:
1535 * mockups/style.css: Add document title to mockups to keep things
1537 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1538 sizes to account for the document title.
1539 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1540 Set the document title when it has been retrieved from the server.
1541 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1542 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1543 and implement setDocumentTitle(String) method.
1544 * src/main/webapp/style.css: Add ID for document title style.
1546 2011-08-25 Ben Konrath <ben@bagu.org>
1548 Add NavigationType enum to LayoutItemPortal DTO.
1550 This is the start of adding support for Portals to the Details View.
1552 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1553 LayoutItem_Portal.navigation_type enum from libglom to
1554 LayoutItemPortal.NavigationType enum.
1555 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1556 NavigationType enum, field for storing the NavigationType and getter
1559 2011-08-25 Ben Konrath <ben@bagu.org>
1561 Implement the flow table layout in the Details View.
1563 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1564 FlowTable to Group to account for the renamed class.
1565 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1566 File. This is a container widget that implements the Glom details view
1567 flow table behaviour.
1568 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1569 org/glom/web/client/ui/FlowTable.java.
1570 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1571 so that the size of the subgroups are a closer match to the size of
1572 the Glom subgroups. This makes the flowtable layout match the layout
1573 in Glom for the Music Collection example file.
1575 2011-08-16 Ben Konrath <ben@bagu.org>
1577 Create container element for LayoutItemPortal in Details View.
1579 This will help me develop the layout for the FlowTable.
1581 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1582 fieldPanel variable to detailsCell.
1584 2011-08-15 Ben Konrath <ben@bagu.org>
1586 Set the height of the data element in the Details View.
1588 I changed the InlineLabels (text in a span element) to Labels (text in
1589 a div element) so that I could set the height of the details-data
1590 elements instead of the details-cell parent elements. This allows the
1591 the details-data element to display the correct height if style is
1592 applied that shows the height.
1594 This change has the added benefit of allowing the order of the labels
1595 and data elements to be changed for right-to-left languages.
1597 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1598 InlineLabels to Labels.
1599 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1600 InlineLabels to Labels. Set the height of the data element.
1601 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1602 multiline text height in the Formatting DTO.
1603 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1604 for multiline height along with getter and setter methods.
1605 * src/main/webapp/style.css: Adjust style to account for the change
1606 from span elements to div elements in the details cell.
1608 2011-08-15 Ben Konrath <ben@bagu.org>
1610 Make the List View appearance match the mockups.
1612 It doesn't match exactly but it's much better than it was.
1614 * mockups/listview-contacts.html: Remove unused css classes.
1615 * mockups/listview-projects.html: Remove unused css classes.
1616 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1617 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1618 for mainPanel instead of VerticalPanel (table). Set style name on
1619 CellTable. Set style name on Details column. Right-align Details
1621 * src/main/webapp/style.css: Adjust properties to match the mockups.
1623 2011-08-12 Ben Konrath <ben@bagu.org>
1625 Add better support for subgroups in the details view.
1627 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1628 changed FlowTable constructor.
1629 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1630 support for subgroups and subgroup-titles.
1631 * src/main/webapp/style.css: Add CSS class for subgroups and
1634 2011-08-12 Ben Konrath <ben@bagu.org>
1636 Return the top level LayoutGroup title.
1638 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1640 2011-08-11 Ben Konrath <ben@bagu.org>
1642 Make the TableSelector header match the mockup.
1644 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1645 the layout panel. Properly lineup the table selection header with
1646 the list and details view.
1647 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1648 margin around the details view.
1649 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1650 Rename listBox variable to tableSelector. Set id for the style sheet.
1651 Use a FlowPanel instead of a HorizontalPanel.
1652 * src/main/webapp/style.css: Add properties to make the TableSelector
1653 box match the mockups.
1655 2011-07-13 Ben Konrath <ben@bagu.org>
1657 Update install script for java-libglom version change.
1659 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1662 2011-07-13 Ben Konrath <ben@bagu.org>
1664 Add support sub-group in the details view.
1666 I also removed the code that special-cased the default details view
1669 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1671 I still have to make a proper flowtable.
1673 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1674 Don't special-case default details view layout.
1675 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1676 addLayoutField() as I'm going to use it.
1677 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1678 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1680 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1681 extracted from DetailsViewImpl.GroupPanel. Add support for
1683 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1684 column count when getting the details layout.
1686 2011-07-12 Ben Konrath <ben@bagu.org>
1688 Set browser title with database and table titles.
1690 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1691 Set the browser title when the table changes and when the activity
1693 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1694 title when retrieving document info (the GlomDocument object).
1695 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1696 with getter and setter methods. Remove unused convenience constructor.
1697 Use default code formatting.
1699 2011-07-12 Ben Konrath <ben@bagu.org>
1701 Ignore LayoutItemPortals in the details view.
1703 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1706 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1707 LayoutItemPortal layout objects.
1708 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1709 LayoutItemPortal objects when retrieving the details layout.
1710 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1711 file. This is an empty class and just used to get type information for
1714 2011-07-12 Ben Konrath <ben@bagu.org>
1716 Use java-libglom 1.17.0.
1720 2011-07-11 Ben Konrath <ben@bagu.org>
1722 Remove "Table:" label from table selector.
1724 This matches a recent change in the Glom UI.
1726 * mockups/details-contacts.html:
1727 * mockups/details-projects.html:
1728 * mockups/listview-contacts.html:
1729 * mockups/listview-projects.html: Remove the "Table:" label from the
1731 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1733 2011-07-11 Ben Konrath <ben@bagu.org>
1735 Add main groups to the details view.
1737 This makes things look a little nicer in the details view. The next step
1738 is to implement the flowtable.
1740 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1741 resources from the standard gwt css theme. Standard.css is now
1742 included in OnlineGlom.html so that the online glom css rules have
1743 precedence over the gwt theme.
1744 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1745 the whole LayoutGroup to the DetailsView instead of just the titles.
1746 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1747 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1748 details layout with a helper class (GroupPanel). I might extract this
1749 class when I make the full flowtable.
1750 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1751 string as default so I don't have to worry about NPEs when processing
1753 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1754 note beside OnlineGlom.gwt.xml above).
1755 * src/main/webapp/style.css: Add default font-size to body to override
1756 the font-size set by the standard theme. Don't use h2 tags for
1757 group-title. Create new details-cell class.
1759 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1761 ConfiguredDocument: Set the port number too.
1763 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1764 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1765 Glom document. Presumably this worked sometimes so far because there is a
1766 default port number.
1768 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1770 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1772 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1773 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1774 correct, though we should throw an exception too.
1776 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1778 Fix a addDocuemnt typo.
1780 * src/main/java/org/glom/web/shared/Documents.java
1781 (Documents.addDocuemnt): Rename to addDocument().
1782 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1783 (OnlineGlomServiceImpl.getDocuments): Adapt.
1785 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1787 Slightly improved log output when connection fails.
1789 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1790 (ConfiguredDocument.setUsernameAndPassword):
1791 We don't know for sure if it' the username/password that's wrong, so
1792 rephrase the message.
1793 Also ouput the exception message, though it's generic in this case.
1795 2011-07-08 Ben Konrath <ben@bagu.org>
1799 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1800 added braces to a one line if statement because the Eclipse formatter
1801 was getting confused.
1803 2011-07-07 Ben Konrath <ben@bagu.org>
1805 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1807 These should really be two separate tasks but I counldn't get things to
1808 work with GWT 2.2.0 and Eclipse 3.7.
1812 * .settings/org.eclipse.jdt.core.prefs:
1813 * .settings/org.eclipse.jdt.ui.prefs:
1814 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1815 * .settings/org.eclipse.m2e.core.prefs:
1816 Add new config files. Update current files. Remove references to the
1817 webtools plugins as we're not using any of the webtools features.
1818 * .gitignore: Add logs directory which is created when running with
1820 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1821 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1822 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1824 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1826 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1828 onlineglom.properties: Add explanatory comments.
1830 * src/main/resources/onlineglom.properties: Also change the default user
1831 from ben to someuser, to avoid the risk of people thinking we just
1832 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1834 2011-06-28 Ben Konrath <ben@bagu.org>
1836 Use filename in Log for incorrect passwords.
1838 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1839 getFileName(String) method to get the filename from the URI.
1841 2011-06-28 Ben Konrath <ben@bagu.org>
1843 Add the table name to the URL token for the ListPlace.
1845 This makes things consistent between the DetailsPlace and the
1846 ListPlace. It also allows the the ListPlace to be bookmarked.
1848 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1849 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1851 Remove getDefaultListLayout(). The default layout is now returned
1852 by the getListLayout() method when the table name is an empty string.
1853 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1854 Add table name field. Change to a new ListPlace when the table
1855 has been changed. Use getListLayout() for getting the default
1857 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1858 Add table name field. Set the correct table name in the list box
1859 when loading from bookmark. This corrects a problem for the
1861 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1862 Move table name to super-class (HasSelectableTable). Move document
1863 and table URL keys to super-class in HasSelectableTable.
1864 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1865 Add table name field. Add Tokenizer class with URL key common to
1866 the subclasses (DetailsPlace and ListPlace).
1867 * src/main/java/org/glom/web/client/place/ListPlace.java:
1868 Add table name. Add code to parse the URL token.
1869 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1870 Update ListPlace construction with empty table name string.
1871 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1872 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1873 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1874 Update ListPlace construction with table name string.
1875 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1876 Change defaultTableName field to tableName to reflect how it's now
1877 used. Update the getter and setter methods.
1879 2011-06-28 Ben Konrath <ben@bagu.org>
1881 Enable the table selector in the DetailsView.
1883 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1884 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1885 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1886 Remove getDefaultDetailsLayout(). The default layout is now returned
1887 by the getDetailsLayout() method when the table name is an empty
1889 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1890 event handler for table change event. Change to using
1891 getDetailsLayout() for the default details layout.
1892 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1894 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1895 when navigating to the details place.
1897 2011-06-27 Ben Konrath <ben@bagu.org>
1899 Use filename based unique document ID in URL and for RPC.
1901 The document ID is the glom document name with spaces (' ') replaced
1902 with pluses ('+') and without the .glom extension.
1904 This change is mostly a string substitution of 'documentTitle' for
1905 'documentID'. The only code change is the addition of a Documents DTO to get the
1906 filename to document title mappings as indicated below.
1908 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1909 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1910 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1911 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1912 Use Documents DTO to create the document links in the document
1914 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1915 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1916 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1917 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1918 * src/main/java/org/glom/web/client/place/ListPlace.java:
1919 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1920 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1921 * src/main/java/org/glom/web/client/ui/ListView.java:
1922 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1923 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1924 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1925 * src/main/java/org/glom/web/server/Log.java:
1926 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1927 getDocumentTitles() to getDocuments() and return the Documents DTO.
1928 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1929 transferring the filename to document title mappings.
1931 2011-06-25 Ben Konrath <ben@bagu.org>
1933 Make the authentication popup work again.
1935 This bug was introduced when I extracted ConfiguredDocument to its own class.
1937 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1938 correct success / fail status in setUsernameAndPassword().
1940 2011-06-25 Ben Konrath <ben@bagu.org>
1942 Use filename as unique key for configuring database usernames and passwords.
1944 This replaces the use of the Glom document title which could change
1945 depending on the locale. Thanks to Murray Cumming for pointing out this
1948 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1949 * src/main/resources/onlineglom.properties:
1951 2011-06-24 Ben Konrath <ben@bagu.org>
1953 Pass primary key value to DetailsView.
1955 This enables the DetailsView to load the correct data.
1957 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1958 primary key value field and set in constructor. Pass primary key
1959 value to getDetailsData().
1960 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1961 variables for document title and primary key value.
1962 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1963 key value to the DetailsPlace.
1965 2011-06-24 Ben Konrath <ben@bagu.org>
1967 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1969 This allows the primary key to be retrieved by the Details button. This
1970 functionality has not been implemented yet but it's in the works.
1972 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1973 the LayoutGroup result to ListView.setCellTable instead of all of its
1974 fields individually.
1975 * src/main/java/org/glom/web/client/ui/ListView.java:
1976 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1977 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1978 get the primary key for the table.
1979 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1980 index of the primary key in the LayoutGroup accounting for hidden
1981 primary keys. Rename getJavaNumberFormat() to
1982 convertToJavaNumberFormat() for consistency. Cleanup / add some
1984 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1985 field for primary key index and a field to indicate whether the
1986 primary key is hidden or not.
1988 2011-06-23 Ben Konrath <ben@bagu.org>
1990 Rename getTableData methods to getListData.
1992 This is a rename refactor for consistency with other methods.
1994 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1995 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1996 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1997 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1999 2011-06-23 Ben Konrath <ben@bagu.org>
2001 Extract the ConfiguredDocument innerclass into its own class.
2003 This makes the servlet code more object oriented.
2005 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
2006 from private ConfiguredDocument class in OnlineGlomServiceImpl.
2007 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
2008 new ConfiguredDocument class.
2010 2011-06-21 Ben Konrath <ben@bagu.org>
2012 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
2014 This makes things more inline with how libglom works and reduces code
2015 duplication. This refactor lays the groundwork for adding the primary key to
2016 the LayoutGroup object.
2018 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2019 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2020 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2021 Change method names to getListLayout and getDefaultListLayout for
2022 consistency. Use LayoutGroup as the DTO for the list layout instead of
2023 ColumnInfo and LayoutListTable.
2024 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
2025 new method names along with the LayoutGroup object for transferring the
2027 * src/main/java/org/glom/web/client/ui/ListView.java:
2028 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2029 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
2030 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
2032 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
2033 Replaced with LayoutGroup.
2034 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
2035 expectedResultSize and defaultTableName fields which are needed for
2037 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2038 type field which is needed for the list layout but will also be
2039 useful for the details layout as things progress.
2040 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2041 Make class abstract. Remove the unnecessary
2042 getFormattingHorizontalAlignment method. Add setFormatting method.
2044 2011-06-16 Ben Konrath <ben@bagu.org>
2046 Add scripts for building and installing war.
2048 These will help when updating OnlineGlom but they're also good
2049 supplemental documentation of the build and deployment proceeding.
2051 * utils/build-onlineglom-war.sh: New file.
2052 * utils/install-onlineglom-war.sh: New file.
2054 2011-06-16 Ben Konrath <ben@bagu.org>
2056 Create wrapper class to create consistent log messages.
2058 I wrapped methods in the Log class of gwt-log to add the method names
2059 from the servlet and create consistent formatting of the document title
2060 and table names in the log messages.
2062 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
2063 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
2064 log methods to use methods from wrapped Log class.
2066 2011-06-16 Ben Konrath <ben@bagu.org>
2068 Remove superfluous conditional return.
2070 Thanks to Murray Cumming for pointing this out!
2072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2074 2011-06-15 Ben Konrath <ben@bagu.org>
2076 Return an ArrayList of LayoutGroups for the Details layout.
2078 This corrects a problem with the details layout as it can have more
2079 than one top level LayoutGroup.
2081 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2082 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2083 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2084 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2085 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2086 with ArrayList of LayoutGroups for the details view layout.
2087 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2088 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2089 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2090 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2091 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2092 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2094 2011-06-14 Ben Konrath <ben@bagu.org>
2096 Use cast_dynamic method to determine the libglom LayoutItem type.
2098 This is better than finding the LayoutItem type by using the string
2099 returned from the get_part_type_name() method.
2101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2103 2011-06-14 Ben Konrath <ben@bagu.org>
2105 Add method names to log entries in the servlet.
2107 This helps when tracking down deployment problems.
2109 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2111 2011-06-14 Ben Konrath <ben@bagu.org>
2113 Add data to the DetailsView using a hard-coded primary key value.
2115 The layout and functionality of the DetailsView is not complete. This
2116 is just a checkpoint so the patch doesn't get too big.
2118 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2119 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2120 Add getDetailsData() servlet method.
2121 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2122 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2123 LayoutFields are added to the DetailsView.
2124 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2125 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2126 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2127 take the string for the title instead of the object.
2128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2129 Add implementation getDetailsData() along with some private helper
2131 * src/main/webapp/style.css: Add padding to details-data class. Add a
2132 details-label class with the same padding as the details-data class.
2134 2011-06-03 Ben Konrath <ben@bagu.org>
2136 Use presenter.goTo() to change to the DetailsPlace.
2138 This will make things easier when we need to open the DetailsView with
2139 data specific to the row that was clicked.
2141 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2143 2011-06-02 Ben Konrath <ben@bagu.org>
2145 Add CSS file from mockups.
2147 I'm adding this now because it's going to be useful to have when
2148 developing the DetailsView. The TableSelectionView and ListView aren't
2151 * src/main/webapp/OnlineGlom.html:
2152 * src/main/webapp/style.css:
2154 2011-06-02 Ben Konrath <ben@bagu.org>
2156 Use String.isEmpty() to check for empty string.
2158 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2160 2011-06-02 Ben Konrath <ben@bagu.org>
2162 Display main layout group titles in the DetailsView.
2164 This is the start of the DetailsActivity/DetailsView implementation.
2166 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2167 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2168 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2169 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2170 Get the layout information for the details view from the server and set
2171 the main layout group titles.
2172 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2173 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2174 Add addLayoutGroup() and addLayoutField() methods. This are just
2175 temporary methods for creating the the details view that will change
2177 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2178 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2180 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2181 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2182 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2183 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2184 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2185 Data Transfer Objects that mimic the libglom object structure. These are
2186 used for transferring the details layout but could also be used for
2187 transferring the list layout.
2189 2011-05-27 Ben Konrath <ben@bagu.org>
2191 Reset the AuthenticationPopup when clearing the ListView.
2193 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2195 2011-05-27 Ben Konrath <ben@bagu.org>
2197 Fix problem with onlineglom.properties file loading.
2199 The old way worked in Eclipse but not on the server. Loading the
2200 onlineglom.properties file now works in Eclipse and on the server.
2202 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2204 2011-05-24 Ben Konrath <ben@bagu.org>
2206 Update gwt-log from 3.1.0 to 3.1.2.
2208 Gwt-log 3.1.0 has been marked as depreciated.
2212 2011-05-24 Ben Konrath <ben@bagu.org>
2214 Add comment to ListActivity.goTo() method.
2216 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2218 2011-05-24 Ben Konrath <ben@bagu.org>
2220 Remove FIXME in convertGdkColorToHtmlColour()
2222 The Gdk::Color value returned by libglom is 16-bits per channel on both
2223 64 and 32-bit platforms.
2225 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2227 2011-05-19 Ben Konrath <ben@bagu.org>
2229 Improve performance of initial ListView load.
2231 I removed a round trip to the server for getting the default table name
2232 and then requesting information about that table. This also removes a potential
2233 problem with the table change handler not being setup in time to receive the
2234 table change event from the ListActivity.
2236 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2237 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2238 getDefaultLayoutListTable() method. Improve comments.
2239 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2240 getDefaultLayoutListTable() method instead of firing a table change
2241 event to get the table to load.
2242 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2243 implementation of getDefaultLayoutListTable() method.
2244 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2247 2011-05-19 Ben Konrath <ben@bagu.org>
2249 Override toDebugString() in TableChangeEvent.
2251 This is useful to have for debugging.
2253 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2255 2011-05-19 Ben Konrath <ben@bagu.org>
2257 Add a "Back to List" link when at the DetailsPlace.
2259 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2260 Populate the CellTable based on the selected table of the ListBox if
2261 it's set otherwise use the default table. This allows the "Back to
2263 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2264 Remove Place from constructors. Add a setPlace() method. Add
2265 goToPlace() method. Set class as presenter for TableSelectionView.
2266 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2267 Use the same TableSelectionActivity when switching between the List and
2269 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2270 Subclass the new HasSelectableTablePlace. This removes some duplicate
2272 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2273 New class to represent Places that display the TableSelectionView.
2274 * src/main/java/org/glom/web/client/place/ListPlace.java:
2275 Subclass the new HasSelectableTablePlace. This removes some duplicate
2277 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2278 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2279 Add Presenter interface. Add setBackLinkVisible() method. Add
2280 setBackLink() method.
2282 2011-05-18 Ben Konrath <ben@bagu.org>
2284 Enable the "Details" buttons.
2286 Right now only an empty details view is displayed.
2288 * src/main/java/org/glom/web/client/ClientFactory.java:
2289 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2290 Add DetailsView to ClientFactory.
2291 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2292 A basic activity for the details view.
2293 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2294 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2296 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2297 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2299 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2300 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2301 unnecessary super() in constructor.
2302 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2303 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2304 really shouldn't create a new TableSelectionActivity for both the ListPlace
2305 and the DetailsPlace so this should be considered a temporary solution.
2306 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2307 New file. Represents a URL for the details view.
2308 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2309 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2310 A basic details view interface and implementation.
2311 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2312 Enable the "Details" buttons.
2314 2011-05-12 Ben Konrath <ben@bagu.org>
2316 Use a LayoutPanel with multiple display areas for main layout.
2318 This is mostly a refactor in that there are no changes from the user
2319 point of view. These changes are required so that we can swap out the list view
2320 with the details view when the user clicks the "Details" button.
2322 * src/main/java/org/glom/web/client/ClientFactory.java:
2323 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2324 OnlineGlomView. Add TableSelectionView, ListView and
2325 AuthenticationPopup.
2326 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2327 for main layout. Add display regions for main activities. Add
2328 activity manager for for main activities.
2329 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2330 file from parts of the deleted OnlineGlomActivity.
2331 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2332 New file from parts of the deleted OnlineGlomActivity.
2333 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2334 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2335 New files for app wide table change event.
2336 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2337 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2338 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2339 Activity mappers for the main activities replace the deleted app-wide
2341 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2342 Fix a spelling error in he comment.
2343 * src/main/java/org/glom/web/client/ui/ListView.java:
2344 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2345 Renamed from LayoutListView and modified for MVP. This still not a
2346 proper dumb view as prescribed by the MVP pattern but it works for now.
2347 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2348 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2349 New widget stripped out of the deleted OnlineGlomView.
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2351 Remove hack that is fixed by this patch.
2353 2011-05-06 Ben Konrath <ben@bagu.org>
2355 Rename OnlineGlomPlace to ListPlace.
2357 The only change besides the rename is that url will now display #list
2358 instead of #Document.
2360 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2361 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2362 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2363 * src/main/java/org/glom/web/client/place/ListPlace.java:
2364 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2366 2011-05-06 Ben Konrath <ben@bagu.org>
2368 Use Presenter for app navigation.
2370 This is the proper way to deal with Place (URL) changes with the MVP
2373 * src/main/java/org/glom/web/client/ClientFactory.java:
2374 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2375 PlaceHistoryMapper and PlaceHistoryHandler.
2376 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2377 PlaceHistoryMapper and PlaceHistoryHandler.
2378 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2379 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2380 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2381 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2382 Add Presenter interface and setPresenter methods. Rename addHyperLink
2383 to addDocumentLink taking only the document title as a parameter.
2385 2011-04-14 Ben Konrath <ben@bagu.org>
2387 Prompt for db username/password if they haven't been set.
2389 This is implemented with a popup widget that is contained within the
2390 OnlineGlomView and managed by the OnlineGlomActivity.
2392 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2393 methods for checking and setting the database username and password.
2394 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2395 new methods for checking and setting the database username and
2397 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2398 Display authentication popup if the JDBC connection to the database
2399 has not been authenticated.
2400 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2402 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2403 for dealing with the authentication popup.
2404 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2405 Implement the methods for dealing with the authentication popup.
2406 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2407 try to executed queries if the database connection hasn't been
2408 authenticated. Implement methods for checking and setting the
2409 database username and password.
2411 2011-04-12 Ben Konrath <ben@bagu.org>
2413 Make log messages a little clearer.
2415 Add a dash betweeen the document title and the table name.
2417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2419 2011-04-12 Ben Konrath <ben@bagu.org>
2421 Protect against NPEs when cleaning up database resources.
2423 While this isn't strictly necessary because the exception is caught,
2424 not protecting against the NPEs makes it harder to find the real error
2427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2429 2011-04-12 Ben Konrath <ben@bagu.org>
2431 Move configuration of the servlet to the constructor.
2433 The servlet will be initialized even if the database authentication
2434 information is not set or correct. I still need to add the UI for prompting
2435 the user for the authentication information when it's required.
2437 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2438 javadocs for getDocumentTitles() method.
2439 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2440 Set error message when RPC fails.
2441 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2442 glom files directory from the configuration file. Try to set the
2443 database authentication information for the specific document if it's
2444 set and works otherwise try to use the global authentication
2445 information set for the directory.
2446 * src/main/resources/onlineglom.properties: Moved from
2447 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2448 Added detailed comments for the new keys.
2450 2011-04-11 Ben Konrath <ben@bagu.org>
2452 Remove unnecessary @Override in DocumentSelectionViewImpl.
2454 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2456 2011-04-11 Ben Konrath <ben@bagu.org>
2458 Remove center alignment in DocumentSelectionView.
2460 The title element is still centred but the document titles and bottom
2461 sentence are both left-aligned.
2463 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2465 2011-04-11 Ben Konrath <ben@bagu.org>
2467 Change 'Demo' naming convention to 'Document'.
2469 This is just a rename refactor with no functional changes to the code.
2471 * src/main/java/org/glom/web/client/ClientFactory.java:
2472 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2473 * src/main/java/org/glom/web/client/OnlineGlom.java:
2474 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2475 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2476 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2477 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2478 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2479 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2480 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2481 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2482 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2483 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2485 2011-04-08 Ben Konrath <ben@bagu.org>
2487 Remove FIXME from safeLongToInt() method.
2489 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2494 2011-04-08 Ben Konrath <ben@bagu.org>
2496 Display an error if no glom documents are found in the specified directory.
2498 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2499 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2500 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2503 2011-04-08 Ben Konrath <ben@bagu.org>
2505 Add copyright header to one more file ... oops.
2507 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2509 2011-04-08 Ben Konrath <ben@bagu.org>
2511 Add copyright header to files without it.
2513 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2514 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2515 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2516 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2517 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2518 * src/main/java/org/glom/web/shared/GlomField.java:
2520 2011-04-08 Ben Konrath <ben@bagu.org>
2522 Add support for accessing multiple glom documents in the servlet.
2524 This completes the demo selection functionality.
2526 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2527 document title to methods.
2528 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2529 document title to methods.
2530 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2531 Set browser window title when the activity starts. Correct name of
2532 document title variable.
2533 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2534 Set browser window title when the activity starts. Set the table
2535 selector change handler after table selector has been set. Clear the
2536 OnlineGlomView when the activity has been stopped.
2537 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2538 document title as the place token. Use "#Document:" instead of
2539 "#OnlineGlomPlace:" in the URL.
2540 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2541 Change heading to "Online Glom"
2542 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2543 document title in RPC methods.
2544 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2545 setDocumentTitle() method. Add clear() method.
2546 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2547 setDocumentTitle() method. Implement clear() method which removes the
2548 change handler on the ListBox, clears the ListBox and clears the
2550 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2551 Implement methods with document title. Keep track for the configured
2552 glom documents and their corresponding JDBC configurations in a hash
2553 table. This information is retrieved using the document title as the
2554 key in the hash table.
2555 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2556 document title field as it's no longer needed.
2558 2011-04-08 Ben Konrath <ben@bagu.org>
2560 Update the Eclipse JDT configuration.
2562 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2563 methods. Automatically add the copyright header to new files.
2565 2011-04-05 Ben Konrath <ben@bagu.org>
2567 Add new page for demo selection.
2569 This patch adds all the components required to view and start an
2570 OnlineGlom demo by clicking on the desired hyperlink. The user is
2571 able to return to the demo selection page with the browser's back
2572 button. I still need to modify the servlet to work with multiple
2573 documents so all demo links will load the file defined in the
2574 OnlineGlom.properties.
2576 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2577 This is only useful during development so we don't need to save it.
2578 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2579 get a reference to the DemoSelectionView.
2580 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2581 method to get a reference to the DemoSelectionView.
2582 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2583 default view to DemoSelectionView.
2584 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2585 to get glom document titles for glom files in a hard-coded directory.
2586 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2587 method to get glom document titles for glom files in a hard-coded
2589 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2590 Presenter for DemoSelectionView.
2591 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2592 for DemoSelectionView.
2593 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2594 Update for DemoSelectionView.
2595 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2596 Basic 'Place' implementation for the DemoSelectionView.
2597 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2598 The interface for the DemoSelectionView.
2599 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2600 The implementation of the DemoSelectionView.
2601 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2602 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2603 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2604 implementation of method to get glom document titles for glom files
2605 in a hard-coded directory.
2606 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2607 on longer being used.
2608 * src/main/webapp/glom.png: Glom logo.
2610 2011-04-05 Ben Konrath <ben@bagu.org>
2612 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2614 This is the forth and final commit of a refactor that will allow
2615 OnlineGlom to be used with multiple documents.
2617 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2618 Move RPC code from OnlineGlomViewImpl to this class.
2619 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2621 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2622 RPC code to the presenter class (the P in MVP).
2624 2011-04-04 Ben Konrath <ben@bagu.org>
2626 Start moving the existing OnlineGlom code to MVP.
2628 This work is based on the GWT MVP framework that is documented here:
2630 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2632 This is the third commit of a refactor that will allow OnlineGlom to
2633 be used with multiple documents.
2635 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2636 Interface for client factory which is used to get instances of various
2637 classes throughout the app.
2638 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2639 Implementation of client factory.
2640 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2641 initialize the MVP framework.
2642 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2643 New file. Activity manager for the main container widget. This is the
2645 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2646 Maps place (URL) to its corresponding activity.
2647 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2648 New file. This is just a place holder for a generated file.
2649 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2650 New file. Represents the URL for the main Online Glom app.
2651 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2652 for changes in LayoutListViewImpl.
2653 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2654 interface for View. Move code to OnlineGlomViewImpl class.
2655 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2656 file. Implementation of OnlineGlomView.
2657 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2658 Place resources. Use ClientFactoryImpl by default.
2660 2011-04-04 Ben Konrath <ben@bagu.org>
2662 Move View classes to their own package.
2664 This is the second commit of a refactor that will allow OnlineGlom to
2665 be used with multiple documents.
2667 * src/main/java/org/glom/web/client/OnlineGlom.java:
2668 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2669 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2671 2011-04-02 Ben Konrath <ben@bagu.org>
2673 Move UI code from the main module to its own class.
2675 This is the first commit of a refactor that will allow OnlineGlom to be
2676 used with multiple documents.
2678 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2679 references to OnlineGlom to OnlineGlomView.
2680 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2681 OnlineGlomView and instantiate it here.
2682 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2683 represents the main OnlineGlomView with one document.
2685 2011-04-01 Ben Konrath <ben@bagu.org>
2687 Fix formatting of gwt.xml and add DTD.
2689 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2691 2011-03-30 Ben Konrath <ben@bagu.org>
2693 Propperly convert gdkColor string to html colour string.
2695 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2697 2011-03-28 Ben Konrath <ben@bagu.org>
2699 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2701 This implementation matches
2702 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2703 readable and is not tied to Swig.
2705 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2707 2011-03-28 Ben Konrath <ben@bagu.org>
2709 Use read-only checkboxes for boolean field types.
2711 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2712 in the CellTable based on the field type. It currently only
2713 distinguishes between boolean and text columns but I'll need to add
2714 support for more types.
2715 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2716 column type in the ColumnInfo object. Add method to convert between the
2717 glom field type enum in ColumnInfo and the glom field type in libglom.
2718 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2720 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2721 getting and setting booleans.
2723 2011-03-25 Ben Konrath <ben@bagu.org>
2725 Don't get the Date twice from the ResultSet.
2727 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2729 2011-03-25 Ben Konrath <ben@bagu.org>
2731 Cleanup code in the servlet.
2733 * TODO: Remove item about row count. Add item about testing row count
2734 query with large number of rows.
2735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2736 spelling mistakes, change method parameter to be consistent with
2739 2011-03-25 Ben Konrath <ben@bagu.org>
2741 Add server side logging with the gwt-log library.
2743 * .gitignore: Ignore the log file we're now producing.
2744 * TODO: Add a couple TODO item for logging.
2745 * pom.xml: Add gwt-log and log4j as a dependency.
2746 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2747 logging of errors, warnings and some important info.
2748 * src/main/resources/log4j.properties: New file to configure log4j.
2750 2011-03-24 Ben Konrath <ben@bagu.org>
2752 Add a disable button for the Details view.
2754 * src/main/java/org/glom/web/client/LayoutListView.java:
2756 2011-03-22 Ben Konrath <ben@bagu.org>
2758 Use a count query to get the number of rows for the list view pager.
2760 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2762 2011-03-22 Ben Konrath <ben@bagu.org>
2764 Add more TODO information about CellTable pager positioning.
2768 2011-03-19 Ben Konrath <ben@bagu.org>
2770 Add TODO item about CellTable pager positioning.
2774 2011-03-18 Ben Konrath <ben@bagu.org>
2776 Remove unneeded GlomFieldColumn class.
2778 This is just a small code cleanup.
2780 * src/main/java/org/glom/web/client/LayoutListView.java:
2782 2011-03-18 Ben Konrath <ben@bagu.org>
2784 Use cursor mode in the query that gets data for the list view.
2786 I still need to fix the potential memory problem when getting the row
2787 count for the list view.
2789 * TODO: Add note about testing memory usage with large data sets. Add
2790 item about fixing row counting with large data sets.
2791 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2792 PostgreSQL JDBC driver into cursor mode when getting data for the
2795 2011-03-15 Ben Konrath <ben@bagu.org>
2797 Remove the GWT Container from the Eclipse build classpath.
2799 The GWT dependencies are set by Maven so this isn't needed.
2803 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2805 Added some earlier mockups to git, but not to the tarball dist.
2807 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2808 Openismus. These hopefully show how we might structure the HTML so that
2809 it can be styled easily with CSS. However, we probably need to adapt them
2810 for the CSS structure that GWT dictates for common widgets.
2812 2011-03-14 Ben Konrath <ben@bagu.org>
2814 Locate OnlineGlom.properties using the ServletContext.
2816 This is required to be able to locate the file in the deployed servlet.
2818 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2819 Configure the database and glom document in in a helper method so
2820 that the ServletContext can be used to locate OnlineGlom.properties.
2821 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2822 src/main/webapp. This is the proper location for .properites files.
2824 2011-03-12 Ben Konrath <ben@bagu.org>
2826 Add note to README about why we're compiling down to obfuscated JavaScript.
2830 2011-03-11 Ben Konrath <ben@bagu.org>
2832 Use properties file to configure servlet.
2834 This allows people to change the glom file path, db username and db
2835 password without recompiling the code.
2837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2838 * src/main/webapp/OnlineGlom.properties:
2840 2011-03-11 Ben Konrath <ben@bagu.org>
2842 Use table fields in layout list view if the layout list is not defined.
2844 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2845 Manually create a LayoutFieldVector for the query builder using the
2846 table fields when a layout list is not defined in the glom file.
2848 2011-03-11 Ben Konrath <ben@bagu.org>
2850 Only show FIXME string for images when there's an image.
2852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2853 in this change are some small code cleanups.
2855 2011-03-11 Ben Konrath <ben@bagu.org>
2857 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2859 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2861 2011-03-11 Ben Konrath <ben@bagu.org>
2863 Correctly set the index of the default table.
2865 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2866 Correctly set the index of the default table. Add commented out example
2869 2011-03-10 Ben Konrath <ben@bagu.org>
2871 Add comment to pom.xml about the previous change.
2873 * pom.xml: Add comment about the deployment issue so that it's obvious
2874 why java-libglom is set to the provided scope.
2876 2011-03-10 Ben Konrath <ben@bagu.org>
2878 Change java-libglom dependency from compile to provided in pom.xml.
2880 Since java-libglom uses jni it can only be loaded once and therefore
2881 must be placed in $CATALINA_HOME/lib and not included in each war.
2882 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2883 More information about this issue can be found in the Tomcat 6 release
2884 notes in the "JNI Based Applications" section:
2886 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2888 * README: Remove note about this issue. Deployment info should really
2889 be on the wiki anyway so I'll add it right now.
2890 * pom.xml: Change java-libglom dependency from compile to provided so
2891 that it's copied in to the packaged war.
2893 2011-03-09 Ben Konrath <ben@bagu.org>
2895 Change to using a neutral locale for currency, date and time formatting.
2897 This solves the problem of currency values being represented without a
2898 space between the currency code and the number (e.g. "EUR5.89" is now
2899 represented as "EUR 5.89"). More work is required when we implement
2900 a locale preference setting.
2902 * TODO: Add note about currency formatting issues with different
2904 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2905 to using the neutral ROOT locale.
2907 2011-03-09 Ben Konrath <ben@bagu.org>
2909 Add support for currency codes that are not ISO 4217 codes.
2911 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2912 the currency code defined in the glom file when it's not 3 characters
2913 long or when Java doesn't recognize the string as an ISO 4217 code.
2915 2011-03-08 Ben Konrath <ben@bagu.org>
2917 Remove test classes, launch configurations and configuration.
2919 The test stuff was getting in the way when creating the war. To make
2920 the war file you can now do 'mvn clean package'. The packaged war file
2921 will be in the target directory.
2923 * .classpath: Remove unused classpathentry for tests and i18n.
2924 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2925 property. Don't run test or i18n goals when packaging the war.
2926 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2931 * OnlineGlomTest-dev.launch:
2932 * OnlineGlomTest-prod.launch:
2933 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2934 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2936 2011-03-07 Ben Konrath <ben@bagu.org>
2938 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2940 These fixes allow me to use 'mvn deploy' to create the war file.
2942 * .classpath: This generated config has been updated by Eclipse. This
2943 change was probably triggered by me updating from Eclipse 3.6.1 to
2945 * .gitignore: Add entry to ignore the directory
2946 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2947 * .project: The generated config has been updated by Eclipse. This
2948 change was probably triggered by me updating from Eclipse 3.6.1 to
2950 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2951 so that Eclipse doesn't complain
2952 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2953 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2954 'tests' directory to 'client' directory. This is the new
2955 gwt-maven-plugin convension.
2956 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2957 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2959 2011-03-07 Ben Konrath <ben@bagu.org>
2961 Add support for horizontal alignment in the LayoutList columns.
2963 * TODO: Remove item about horizontal alignment. Add item about
2964 improvements to ColumnInfo.
2965 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2966 alignment on the columns. Use ColumnInfo RPC object get the column
2967 title and horizontal alignment.
2968 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2969 LayoutListView creation with ColumnInfo RPC object.
2970 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2971 a ColumnInfo object for every LayoutList columnn. Convert the
2972 FieldFormatting.HorizontalAlignment to the correct
2973 ColumnnInfo.HorizontatlAlignment with the new
2974 getColumnInfoHorizontalAlignment helper method.
2975 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2976 to encapsulate column information like alignment and title. This
2977 could be used to set the colour instead of on a per cell field basis.
2978 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2979 column title storage and retrieval with ColumnInfo.
2981 2011-03-04 Ben Konrath <ben@bagu.org>
2983 Add support for column sorting.
2985 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2986 AsynDataProvider to be an anonymous inner class. Use new
2987 getSortedTableData RPC method when column sort is requested. Set all
2988 columns sortable and add an AsyncHandler to activate sorting in the
2990 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2991 method getSortedTableData(). Cleanup other method signatures.
2992 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2993 new method getSortedTableData(). Cleanup other method signatures.
2994 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2995 Implement getSortedTableData() and getTableData() methods by using a
2996 private helper method with the appropriate parameters filled in. Use
2997 user supplied sort clause when supplied, otherwise fall back to
2998 sorting by the primary key. Move destroy() method to be underneath
2999 constructor for readability. Cleanup comments.
3001 2011-03-03 Ben Konrath <ben@bagu.org>
3003 Add support for colour text and colour backgrounds to the layout list cells.
3005 Only the cell backgrounds are coloured which leaves a gap between the
3006 cells that isn't coloured. I need to figure out a way to set
3007 'style=background-colour:' on the whole column rather than just the
3010 * TODO: Add a note about colouring the background of the whole column.
3011 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
3012 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
3013 render the coloured text and backgrounds. Use GlomField[] for the row type.
3014 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
3016 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
3017 GlomField[] for the row type.
3018 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
3019 GlomField[] for the row type. Set the text, text colour and background
3020 colour in the GlomField objects as specified in the glom document. Add
3021 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
3022 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
3023 the glom field text, foreground colour and background colour.
3025 2011-03-02 Ben Konrath <ben@bagu.org>
3027 Don't display hidden tables in the combo box.
3029 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
3031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3032 code to ignore hidden tables using ArrayLists for the table names and
3034 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
3035 tableNames to use ArrayLists instead of String[]. Update getter and setter
3038 2011-03-01 Ben Konrath <ben@bagu.org>
3040 Add support for Date and Time number types.
3042 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3043 Implement formatting for Date and Time values. Change the default glom
3044 file to small business example.
3046 2011-03-01 Ben Konrath <ben@bagu.org>
3048 Add support for formatting glom types as specified in the glom file.
3050 Formatting isn't finished yet - I still need to add support for Date
3053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3054 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
3055 checks for null values in JDBC cleanup code and catch all exceptions
3056 instead of just SQLExceptions.
3057 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
3060 2011-03-01 Ben Konrath <ben@bagu.org>
3062 Use GWT 2.2.0 instead of 2.1.1.
3064 * pom.xml: Change GWT version numbers.
3066 2011-03-01 Ben Konrath <ben@bagu.org>
3068 A few small code cleanups.
3070 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
3072 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
3073 unnecessary object creation in constructor.
3074 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
3075 unnecessary object creation in constructor.
3077 2011-02-28 Ben Konrath <ben@bagu.org>
3079 Add file for TODO list.
3083 2011-02-18 Ben Konrath <ben@bagu.org>
3085 Enable the CellTable Pager when more than 20 rows need to be viewed.
3087 The Pager will automatically become active when the results are larger
3088 than the CellTable size which is currently set to 20 lines.
3090 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
3091 name on debug statment in RPC call in LayoutListDataProvider, add
3092 numRows parameter to LayoutListView constructor, propperly set rowCount
3094 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
3095 name on debug statment in RPC call, use LayoutListTable object in RPC
3096 calls, pass rowCount to LayoutListView.
3097 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
3098 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
3100 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
3101 interface for changes in OnlineGlomService.
3102 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3103 getLayoutListHeaders() to getLayoutListTable() and return
3104 LayoutListTable. Using this object allows me to pass other information
3105 about the LayoutList like the expected number of rows in the result set.
3106 The Connection object from the connection pool is now propperly closed.
3107 Only the requested number of lines are returned to the client in
3109 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
3110 GlomTable and add columnTitles and numRows.
3112 2011-02-18 Ben Konrath <ben@bagu.org>
3114 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
3116 This is a small performance boost. I'll use GlomTable to get the required
3117 layoutlist information.
3119 * src/main/java/org/glom/web/client/OnlineGlom.java:
3120 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3121 * src/main/java/org/glom/web/shared/GlomDocument.java:
3123 2011-02-18 Ben Konrath <ben@bagu.org>
3125 Add option to turn off formatting in JDT formatter preferences.
3127 * .settings/org.eclipse.jdt.core.prefs:
3129 2011-02-18 Ben Konrath <ben@bagu.org>
3131 Rename LayoutList to LayoutListView.
3133 I'm working towards setting things up to easily use MVP when the time
3136 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3138 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3141 2011-02-17 Ben Konrath <ben@bagu.org>
3143 Move LayoutListDataProvider class into LayoutList.java.
3145 * src/main/java/org/glom/web/client/LayoutList.java:
3147 2011-02-17 Ben Konrath <ben@bagu.org>
3149 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3151 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3153 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3154 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3155 from LibGlomServer.java.
3156 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3157 Rename from LibGlomServiceAsync.java.
3158 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3159 Rename from LibGlomServiceImpl.java.
3160 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3162 2011-02-17 Ben Konrath <ben@bagu.org>
3164 Update JDT settings.
3166 * .settings/org.eclipse.jdt.core.prefs:
3168 2011-02-17 Ben Konrath <ben@bagu.org>
3170 Move GWT-RPC objects to shared package (where they should be).
3172 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3173 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3174 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3175 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3176 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3177 org.glom.web.shared package.
3178 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3179 org.glom.web.shared package.
3180 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3181 directory in compilation to javascript.
3183 2011-02-16 Ben Konrath <ben@bagu.org>
3185 Add sort clause to the sql query that grabs table information.
3187 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3188 if one of the columns is a primary key.
3190 2011-02-16 Ben Konrath <ben@bagu.org>
3192 Disable generateAsync feature of gwt-maven.
3194 The generated interface does not correctly match the methods in LibGlomService
3195 and the generated singleton Util inner-class doesn't respect the servlet
3198 * pom.xml: Turn off generateAsync feature.
3199 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3200 with singleton Util inner-class.
3202 2011-02-14 Ben Konrath <ben@bagu.org>
3204 Add LGPL v3 licence notices.
3206 Followed directions listed here:
3207 http://www.gnu.org/licenses/gpl-howto.html
3209 * COPYING: This file is a copy of the GPL v3.
3210 * COPYING.LESSER: This file is a copy of the LGPL v3.
3211 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3213 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3215 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3217 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3219 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3221 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3223 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3226 2011-02-14 Ben Konrath <ben@bagu.org>
3228 Use ArrayList instead of Array in GWT-RPC calls.
3230 Apparently this gives a slight performance boost to the compiled
3233 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3235 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead