1 2011-12-17 Murray Cumming <murrayc@murayc.com>
3 History token building/handling: Improve use of token parameters.
5 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
6 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
7 and buildParamsToken(HashMap), for use by derived classes.
8 Make the separator private because it is no longer be needed.
9 * src/main/java/org/glom/web/client/place/DetailsPlace.java
10 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
11 instead of manual string concatenation.
12 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
13 of hardcoded indices and awkward splitting code.
14 * src/main/java/org/glom/web/client/place/ListPlace.java
15 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
16 instead of manual string concatenation.
17 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
18 of hardcoded indices and awkward splitting code.
19 This should fix bug #666420
21 2011-12-16 Murray Cumming <murrayc@murrayc.com>
23 Fix a Navgiation->Navigation typo in the code.
25 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
26 Rename processNavgiation() to processNavigation().
28 2011-12-16 Murray Cumming <murrayc@murrayc.com>
30 Fix a seperator->separator typo in the code.
32 * src/main/java/org/glom/web/client/place/DetailsPlace.java
33 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
34 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
37 2011-12-15 Ben Konrath <ben@bagu.org>
39 Cleanup some comments.
41 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
43 2011-12-14 Ben Konrath <ben@bagu.org>
45 Replace \n with <br/> for multiline text in the details view.
47 Vertical scrollbars are added when needed as well.
49 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
51 2011-12-14 Ben Konrath <ben@bagu.org>
53 Specify the font for document selection links.
55 * src/main/webapp/style.css:
57 2011-12-14 Ben Konrath <ben@bagu.org>
59 Fix bouncy CellTable while paging.
61 This doesn't currently work with related list tables in unselected
64 * src/main/java/org/glom/web/client/ui/list/ListTable.java
66 2011-12-14 Ben Konrath <ben@bagu.org>
68 Revamp the appearance of the document selection page.
70 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
71 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
72 * src/main/webapp/style.css:
74 2011-12-13 Ben Konrath <ben@bagu.org>
76 Set navigation button column to the smallest size possible.
78 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
80 2011-12-13 Ben Konrath <ben@bagu.org>
82 Change OpenButton nomenclature to NavigationButton.
84 Using NavigtionButton makes things more generic. Classes, methods and
85 variables have been changed.
87 This is a rename-only refactor.
89 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
90 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
91 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
92 Renamed from OpenButtonCell.
93 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
94 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
95 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
97 2011-12-12 Ben Konrath <ben@bagu.org>
99 Remove unnecessary String argument in RelatedListTable and ListViewTable.
101 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
102 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
103 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
104 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
106 2011-12-12 Ben Konrath <ben@bagu.org>
108 Update variable names and comments.
110 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
111 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
113 2011-12-12 Ben Konrath <ben@bagu.org>
115 Properly initialize numNonEmptyRows variable to zero.
117 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
118 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
120 2011-12-05 Ben Konrath <ben@bagu.org>
122 Add latest mockup with HTML tables.
124 Features of this mockup:
126 -> HTML table for flowtable
127 -> HTML table for flowtable column
128 -> Example of how related lists would look
129 -> Not using text entries for data items
131 The current version of Online Glom doesn't use HTML tables for the
134 This mockup has been sent to the glom-devel mailing list but it's good
135 to have it here as well.
137 * mockups/details-view-html-tables.html:
139 2011-12-05 Ben Konrath <ben@bagu.org>
141 Remove unnecessary getPrimaryKeyField() method.
143 getPrimaryKeyFieldForTable(String) has been renamed to
144 getPrimaryKeyField(String).
146 * src/main/java/org/glom/web/server/database/DBAccess.java:
147 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
148 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
150 2011-12-05 Ben Konrath <ben@bagu.org>
152 Add string representation of TypedDataItem value to conversion error message.
154 * src/main/java/org/glom/web/server/Utils.java: Logging the error
155 message was extracted into its own method to avoid duplication.
157 2011-12-05 Ben Konrath <ben@bagu.org>
159 Add type checking to navigation primary key value creation.
161 Create navigation primary key only if the expected type from the Glom
162 document matches the type returned by the SQL query.
164 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
166 2011-12-05 Ben Konrath <ben@bagu.org>
168 Rename a couple of variables in RelatedListNavigation.
170 This is a rename-only refactor.
172 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
174 2011-12-05 Ben Konrath <ben@bagu.org>
176 Move getListLayoutGroup() into getListViewLayoutGroup().
178 This removes getListLayoutGroup(). It was only being called by
179 getListViewLayoutGroup().
181 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
183 2011-12-05 Ben Konrath <ben@bagu.org>
185 Remove check for LayoutItem_Portal in list table method.
187 This check is no longer necessary because the method isn't being used
188 to create the LayoutItemPortal DTO.
190 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
192 2011-12-05 Ben Konrath <ben@bagu.org>
194 Properly support related list navigation.
196 Navigation from the "Repository Analyzer -> Package Scans ->
197 Dependencies" related table wasn't working because the primary key for
198 related tables wasn't being set properly. This commit fixes the
201 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
202 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
203 doesn't set the primary key properly for related list tables.
204 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
205 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
206 useful for getting the primary key for list view tables and for related
208 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
209 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
210 Move code to set the primary key for the table from the abstract
211 ListDBAccess class to ListViewDBAccess as it's only correct for list
213 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
214 Properly add primary key to related list tables.
216 2011-12-02 Ben Konrath <ben@bagu.org>
218 Properly set the horizontal alignment of fields.
220 This fix is for both the list tables and the details view.
222 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
223 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
224 to set the horizontal alignment of fields.
226 2011-12-02 Ben Konrath <ben@bagu.org>
228 Display currency codes in the details view.
230 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
232 2011-12-02 Ben Konrath <ben@bagu.org>
234 Avoid duplicate JNI call.
236 JNI is not as efficient as pure Java and this is an easy (and small)
239 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
240 Use previously retrieved value for whereClauseToTableName instead of
243 2011-12-02 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-02 Ben Konrath <ben@bagu.org>
253 Indicate clearly that a mismatched primary key type is a bug.
255 * src/main/java/org/glom/web/server/Utils.java: Change log level from
256 warning to error. Add 'This is a bug.' to message.
258 2011-12-02 Ben Konrath <ben@bagu.org>
260 Update / fix some comments.
262 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
264 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
266 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
267 Fix comments. Add some TODOs.
269 2011-12-02 Ben Konrath <ben@bagu.org>
271 Enable navigation to details view with string primary key from related list.
273 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
274 Create a text primary key value when return type of result is
275 java.sql.Types.VARCHAR.
277 2011-12-02 Ben Konrath <ben@bagu.org>
279 Use checkboxes for booleans in the details view.
281 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
283 2011-12-01 Ben Konrath <ben@bagu.org>
285 Improve performance of related list height calculation.
287 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
288 Put code to calculate the expected height in a static initializer so
289 that that it's only called once.
291 2011-12-01 Ben Konrath <ben@bagu.org>
293 Show related list tables in notebooks (again).
295 Calculate the height of the related list tables so the Notebook can be
296 set the correct height. The height of the related list table is also needed by
297 FlowTable to be able decide how to create the layout.
299 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
300 and set the Portal height based on the height of the related list
301 table and the Portal container.
302 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
303 Add method to calculate the height of the related list tables.
304 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
305 * src/main/webapp/style.css: Add css class for Pager. This is needed to
306 calculate the height of the Pager widget.
308 2011-12-01 Ben Konrath <ben@bagu.org>
310 Use CellTable API for table property instead of setting style on Element.
312 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
314 2011-12-01 Ben Konrath <ben@bagu.org>
316 Make ListViewTable and RelatedListTable a consistent height.
318 The tables are now a consistent height regardless of the contents of
319 the table. A hidden button is added to empty rows to ensure that the
320 height of these rows will match the height of rows with data.
322 A navigation button column is now added to every table. The width of
323 the navigation column is set to 0px when a RelatedListTable shouldn't
324 have navigation buttons. This maintains the a consistent row height in
325 tables that don't show the navigation buttons.
327 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
328 navigation column when not needed.
329 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
330 arguments for navigation button to constructor of ListViewTable.
331 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
332 hidden button for empty data rows.
333 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
334 arguments for navigation button to constructor.
335 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
336 create navigation buttons. Add hideNavigationButtons() method.
337 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
338 arguments for navigation button to constructor.
340 2011-12-01 Ben Konrath <ben@bagu.org>
342 Use 'visibility: hidden' in Utils.getWidgetHeight().
344 This is better choice because hidden elements are invisible, don't
345 respond to events and are not part of the tab order. They will,
346 however, take up space which is required to be able to calculate the
347 height of the widget.
349 * src/main/java/org/glom/web/client/Utils.java:
351 2011-12-01 Ben Konrath <ben@bagu.org>
353 Use Utils.getWidgetHeight() in FlowTable.
355 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
357 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
359 2011-12-01 Ben Konrath <ben@bagu.org>
361 Put the details css class name on the correct table column.
363 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
365 2011-11-30 Ben Konrath <ben@bagu.org>
367 Update for java-libglom API change.
369 The getters and setters on FieldFormatting and NumericFormat were
370 changed to remove the 'M'.
372 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
374 2011-11-29 Ben Konrath <ben@bagu.org>
376 Only allow RelatedListTables in Portals.
378 * src/main/java/org/glom/web/client/ui/details/Portal.java:
380 2011-11-29 Ben Konrath <ben@bagu.org>
382 Only create a contents panel for Portals when title is being set.
384 * src/main/java/org/glom/web/client/ui/details/Portal.java:
386 2011-11-29 Ben Konrath <ben@bagu.org>
388 Set TabLayoutPanel height based on calculated height its widgets.
390 This is a potential fix for this bug:
392 https://bugzilla.gnome.org/show_bug.cgi?id=665133
394 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
396 2011-11-29 Ben Konrath <ben@bagu.org>
398 Align details field labels and data with the Open buttons.
400 * src/main/webapp/style.css:
402 2011-11-29 Ben Konrath <ben@bagu.org>
404 Remove unnecessary <div> in the Notebook widget.
406 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
407 method to get container FlowPanel (<div>).
408 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
409 initWidget() method directly on the TabLayoutPanel widget instead of
410 Group's container widget.
412 2011-11-29 Ben Konrath <ben@bagu.org>
414 Don't add group titles for Portals in Notebooks.
416 This reverts the previous patch and fixes a bug I introduced with
417 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
419 * src/main/java/org/glom/web/client/ui/details/Group.java:
420 * src/main/java/org/glom/web/client/ui/details/Portal.java:
422 2011-11-28 Ben Konrath <ben@bagu.org>
424 Remove unused boolean argument in Portal constructor.
428 * src/main/java/org/glom/web/client/ui/details/Group.java:
429 * src/main/java/org/glom/web/client/ui/details/Portal.java:
431 2011-11-28 Ben Konrath <ben@bagu.org>
433 Remove hack for glom 1.18 style glom files.
435 * src/main/java/org/glom/web/client/ui/details/Group.java:
436 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
437 * src/main/java/org/glom/web/client/ui/details/Portal.java:
439 2011-11-28 Ben Konrath <ben@bagu.org>
441 Use Gda Value version of primary key to log result too large error.
443 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
445 2011-11-28 Ben Konrath <ben@bagu.org>
447 Don't use TypedDataItem.getText() for Unknown types from the URL.
449 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
450 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
451 instead of getText().
452 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
453 String field and getUnknown() method.
455 2011-11-28 Ben Konrath <ben@bagu.org>
457 Log an error message when the java-libglom .so is not present.
459 The error message was being set in the exception but not logged.
461 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
463 2011-11-28 Ben Konrath <ben@bagu.org>
465 Ignore LayoutItem_CalendarPortals.
467 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
468 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
470 2011-11-28 Ben Konrath <ben@bagu.org>
472 Extract method for creating the LayoutItemPortal DTO.
474 Just breaking the code up into smaller chunks.
476 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
478 2011-11-28 Ben Konrath <ben@bagu.org>
482 This should have been added with the refactor. Oops!
484 * src/main/java/org/glom/web/shared/TypedDataItem.java:
486 2011-11-28 Ben Konrath <ben@bagu.org>
488 Create primary key value from URL string using type from Glom document.
490 See this bug, comments 19 - 25:
492 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
494 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
495 create a TypeDataItem for the primary key here when loading from a
496 URL. Show the same string for the primary key value as was received
497 from the URL string (when loading from a URL).
498 * src/main/java/org/glom/web/server/Utils.java: Update method for
499 creating the Gda Value from the TypeDataItem to properly deal with
500 creating a Gda Value based on the Glom document type for the primary
501 key value string when loading from a URL.
502 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
503 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
504 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
505 Update for changed method name.
507 2011-11-27 Ben Konrath <ben@bagu.org>
509 Rename PrimaryKeyItem to TypedDataItem.
511 The name PrimaryKeyItem suggests what the class should be used for.
512 TypedDataItem is a neutral name that describes the class better.
514 This is a rename-only refactor.
516 * src/main/java/org/glom/web/client/OnlineGlomService.java:
517 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
518 * src/main/java/org/glom/web/client/Utils.java:
519 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
520 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
521 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
522 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
523 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
524 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
525 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
526 * src/main/java/org/glom/web/server/Utils.java:
527 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
528 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
529 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
530 * src/main/java/org/glom/web/shared/NavigationRecord.java:
532 2011-11-25 Ben Konrath <ben@bagu.org>
534 Improve Gda Value conversion from PrimaryKeyItem.
536 The value from the PrimaryKeyItem is only used if its type match the
537 type from the glom document.
539 * src/main/java/org/glom/web/server/Utils.java:
541 2011-11-25 Ben Konrath <ben@bagu.org>
543 Manually check if the java-liblgom .so is visible to the JVM.
545 It seems that Tomcat has problems when a static initializer throws an
546 exception. This check is done before the first method call into
547 java-libglom so that execution doesn't continue if the .so is not
550 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
552 2011-11-25 Ben Konrath <ben@bagu.org>
554 Improve browser configuration error messages.
558 https://bugzilla.gnome.org/show_bug.cgi?id=662792
560 * src/main/java/org/glom/web/client/OnlineGlomService.java:
561 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
562 getConfigurationErrorMessage() method.
563 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
564 Get and display a specific configuration error message when no Glom
566 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
567 Implement getConfigurationErrorMessage() method. Surround configuration
568 code in the init() method with a try/catch block. This allows the
569 errors to be caught while keeping the servlet available to retrieve the
570 configuration error message.
572 2011-11-25 Ben Konrath <ben@bagu.org>
574 Don't use Strings to hold primary key values.
576 The primary key values are now held in a new data object
577 (PrimaryKeyItem) that holds type information and the primary key value
578 using the correct type.
580 * src/main/java/org/glom/web/client/OnlineGlomService.java:
581 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
582 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
583 PrimaryKeyItem instead of String to hold the primary key value.
584 * src/main/java/org/glom/web/client/Utils.java: Remove
585 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
586 PrimaryKeyItem based on the GlomFieldType and the DataItem.
587 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
588 PrimaryKeyItem instead of String to hold the primary key value. Load
589 document selection page when the documentID has not been set correctly.
590 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
591 DetailsPlace -> URL and URL -> DetailsPlace conversion with
593 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
594 Return empty string for URL instead of "null".
595 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
596 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
597 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
598 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
599 PrimaryKeyItem instead of String to hold primary key values.
600 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
601 PrimaryKeyValue to a Gda Value.
602 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
603 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
604 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
605 Replace temporary database access code that uses the PrimaryKeyValue to
606 Gda Value conversion.
607 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
608 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
609 PrimaryKeyItem instead of String.
610 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
611 hold primary key values.
613 2011-11-24 Ben Konrath <ben@bagu.org>
615 Use newly added java-libglom API to create queries.
617 This isn't finished. I still need to stop using Strings for primary key
618 values in the client code.
620 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
621 libglom to use fake connections so that retrieving the query string will
623 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
624 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
625 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
626 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
627 Use the newly added libglom sql methods and classes to create the
628 query. Add temporary hack to convert primary value strings to Gda
631 2011-11-23 Ben Konrath <ben@bagu.org>
633 Don't explicitly set the height of Portals.
635 See comments 6 - 10 of this bug for details:
637 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
639 * src/main/java/org/glom/web/client/ui/details/Portal.java:
641 2011-11-23 Ben Konrath <ben@bagu.org>
643 Use an HTML table instead of CSS for the FlowTable layout.
645 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
646 GWT's FlexTable to implement the FlowTable.
647 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
649 2011-11-18 Ben Konrath <ben@bagu.org>
651 Add boolean example to HTML table mockup.
653 * mockups/details-view-html-tables-text-entries.html:
655 2011-11-17 Ben Konrath <ben@bagu.org>
657 Ensure the pager buttons are always visible for related lists.
659 To accomplish this, I've turned off text wrapping in the list view and
660 related list tables for both the header and data text. The related list
661 table now has a fixed layout so the it doesn't overflow its container.
662 This is required to ensure that the cell text is clipped when it
663 overflows the cell and an ellipsis is added to the right side of the
664 cell when text is clipped.
666 A fixed table layout for the related list table in the details view
667 seems what we want for the details view anyway, so the side-effect is
670 The ellipsis will only be displayed in Firefox >= 7.
674 https://bugzilla.gnome.org/show_bug.cgi?id=662930
676 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
677 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
678 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
680 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
681 Set the 'table-layout: fixed' CSS property to the related list table.
682 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
683 'white-space: nowrap;' CSS property on both the list view and the
686 2011-11-16 Ben Konrath <ben@bagu.org>
688 Rework the fix for empty notebook tab labels.
690 Setting the empty group titles with its name caused problems for the
691 details layout. Instead of using libglom's
692 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
693 to the client when the title is empty. This allows the Notebook to use
694 the name when the title is empty without affecting anything else.
696 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
697 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
699 2011-11-16 Ben Konrath <ben@bagu.org>
701 Set group titles with name when title is empty.
703 This fixes a problem with an empty notebook tab label in the Lesson
704 Planner document. The forth tab in the notebook should be "Internet":
706 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
708 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
709 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
712 2011-11-16 Ben Konrath <ben@bagu.org>
714 Remove whitespace from the configured username properties.
716 This assumes that usernames won't have whitespace at the beginning
717 or end. But I think this is a reasonable assumption.
719 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
720 String.trim() to remove the whitespace from the username properties.
722 2011-11-15 Ben Konrath <ben@bagu.org>
724 Add details view mockup with HTML tables and text entries.
726 This is from the attachment on this bug:
728 https://bugzilla.gnome.org/show_bug.cgi?id=663109
730 * mockups/details-view-html-tables-text-entries.html:
732 2011-11-15 Ben Konrath <ben@bagu.org>
734 Add space between the columns of the flow table.
738 https://bugzilla.gnome.org/show_bug.cgi?id=662918
740 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
741 space between columns in the flow table.
743 2011-11-15 Ben Konrath <ben@bagu.org>
745 Add backup files to the .gitignore.
747 * .gitignore: Ignore files that end with ~.
749 2011-11-09 Ben Konrath <ben@bagu.org>
751 Use latest release of gwt-log.
753 Gwt-log releases are now being submitted to the maven central
754 repository so manual installation of the jar is no longer required.
756 * pom.xml: Update version and groupId of gwt-log dependency.
758 2011-10-31 Ben Konrath <ben@bagu.org>
760 Don't use GWT numeric formatting to override the glom currency formatting.
762 Currencies are now displayed like they are in Glom. See this bug:
764 https://bugzilla.gnome.org/show_bug.cgi?id=646216
766 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
768 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
769 currency code to constructor and set it when the cell is rendered.
770 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
771 currency code to the constructor of the NumericCell.
773 2011-10-27 Ben Konrath <ben@bagu.org>
775 Require the latest release of java-libglom (1.17.4).
779 2011-10-26 Ben Konrath <ben@bagu.org>
781 Add style to Notebook that matches current theme.
783 It's not the best style in the world but it's better than the default.
785 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
786 padding at the bottom of the child widgets.
787 * src/main/webapp/style.css: Add style for the Notebook.
789 2011-10-26 Ben Konrath <ben@bagu.org>
791 Move servlet initialization code to overridden init method.
793 This is half of the solution to getting proper error messages
794 displayed when configuration errors occur. Here's the relevant bug:
796 https://bugzilla.gnome.org/show_bug.cgi?id=662792
798 The rest of the solution involves surrounding the init method with a
799 try/catch block and setting a global variable with the error /
800 exception. A new async method should be created to retrieve and display
801 the error message / exception.
803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
804 code from constructor to init method adding exceptions as needed.
806 2011-10-26 Ben Konrath <ben@bagu.org>
808 Add script to monitor and restart tomcat if required.
810 * utils/check-and-recover-tomcat.py: New file.
812 2011-10-26 Ben Konrath <ben@bagu.org>
814 Display the correct number of data items in the pager.
818 https://bugzilla.gnome.org/show_bug.cgi?id=661441
820 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
821 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
822 The implementation is the same for both tables: Keep track of the
823 number of non-empty rows and fire and RowCountChangeEvent after the data has
825 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
826 custom Pager class that subclasses SimplePager to handle displaying
827 the correct number when empty rows have been added.
829 2011-10-26 Ben Konrath <ben@bagu.org>
831 Correct error in previous commit.
833 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
834 eventBus parameter from listView.setCellTable().
836 2011-10-26 Ben Konrath <ben@bagu.org>
838 Fix error in TODO comment.
840 * src/main/java/org/glom/web/client/activity/ListActivity.java:
842 2011-10-24 Ben Konrath <ben@bagu.org>
844 Create Notebook widgets to the details view.
846 This isn't finished just yet - I still need to create a reasonable
847 style to match the current theme.
849 * src/main/java/org/glom/web/client/Utils.java: Add method for
850 calculating the height of a widget. This is used in the Notebook class.
851 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
852 new constructor method in Group.
853 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
854 method for creating child widget that can be used by subclasses
855 like Notebook. New constructor that allows disabling the group
856 titles - Notebooks don't set a group title for their child groups.
857 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
858 to make Notebooks using GWT's TabLayoutPanel.
859 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
860 constructor that allows disabling the group titles.
861 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
862 LayoutItemNotebook DTO.
863 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
864 DTO for Notebooks. It's just an empty class for now but we might need
865 it to transfer some specific information in the future.
867 2011-10-21 Ben Konrath <ben@bagu.org>
869 Add navigation buttons to related list tables.
871 * src/main/java/org/glom/web/client/OnlineGlomService.java:
872 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
874 method getSuitableRecordToViewDetails() for getting the table name
875 and primary key value for related list navigation buttons.
876 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
877 private cell renderer class to get the navigation information for
878 related list tables from the server. Extract the navigation
879 processing code from the details cell navigation and use it for the
880 related list navigation as well.
881 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
882 cell renderer class for the details open buttons. This was needed
883 because the related list navigation buttons and the list view
884 navigation buttons need to react differently when clicked.
885 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
886 the onEnterKeyDown() method because it's now overriden in the
887 subclasses that are specific to the related list tables and the list
889 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
890 the vertical size a little because the buttons add a bit of vertical
891 space to table. This is not a perfect solution because the vertical
892 size of with table fewer than 5 rows will be a little smaller.
893 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
894 changes in how navigation buttons are handled.
895 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
896 getSuitableRecordToViewDetails() using the new RelatedListNavigation
897 database access object.
898 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
899 to find the portal for a given relationship name from
900 RelatedListDBAccess. Add method to find a primary key field for a
902 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
903 Move code to find the portal for a given relationship name to
905 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
906 New file: database access object for getting the related list
907 navigation information (the table name and the primary key value).
908 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
909 DTO for transferring a table name to navigate to and a primary key
911 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
912 boolean and getter/setter to specifies if the related list should add
915 2011-10-24 Murray Cumming <murrayc@murrayc.com>
917 Use the master branch of java-libglom
919 * pom.xml: Depend on java-libglom 1.19 instead.
921 This is the master branch. See also the libglom-1-18 branch.
923 2011-10-11 Ben Konrath <ben@bagu.org>
925 Enable the open navigation button when the data has been set.
927 This avoids having active buttons that don't do anything when the data
930 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
932 2011-10-11 Ben Konrath <ben@bagu.org>
934 Use IsWidget interface for FlowTableItem.
936 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
937 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
939 2011-10-11 Ben Konrath <ben@bagu.org>
941 Remove GWT styling from open button in details view.
943 There are still some issues with how the details cell is arranged but
944 this should be made to match Glom 1.20. I'm going to leave fixing this
945 until I have Glom 1.20 up and running.
947 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
948 style name on open button.
949 * src/main/webapp/style.css: Move and edit details-navigation class.
950 Re-arrange some classes to make them appear in the same order as the
953 2011-10-07 Ben Konrath <ben@bagu.org>
957 * .gitignore: Ignore new cache directory.
958 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
959 * pom.xml: Change GWT and maven plugin to 2.4.0.
960 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
962 * src/main/java/org/glom/web/client/ClientFactory.java:
963 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
964 * src/main/java/org/glom/web/client/OnlineGlom.java:
965 Update source for API changes.
966 * utils/build-onlineglom-war.sh: Remove cache directory before the
969 2011-10-07 Ben Konrath <ben@bagu.org>
971 Add navigation buttons in the details view.
973 This isn't finished but I thought I'd commit what I have as it's a
974 pretty good start. I still need to:
976 1. Change the style so that it fits better into the current theme
977 2. Adjust the details cell to expand as much as possible.
979 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
980 click handlers to navigation buttons in the DetailsCells. Create a
981 refreshData() method to get just the data from the server without the
983 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
984 Update the tableSelector and browser title when the table name
985 changes without using the tableSelector.
986 * src/main/java/org/glom/web/client/ui/DetailsView.java:
987 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
988 getDetailsCells() to getCells(). Update variable names.
989 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
990 method to set click handler on navigation button. Rename a few
991 variables. Add navigation buttons where needed.
992 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
993 variables and methods.
994 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
995 navigation boolean and navigation table as required in the
997 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
998 variables for navigation along with getter/setter methods.
1000 2011-10-07 Ben Konrath <ben@bagu.org>
1002 Rename Field to DetailsCell.
1004 This is a refactor-only commit. No functionality has been added or
1007 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1008 Update variable and method names.
1009 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1010 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1011 variable and method names.
1012 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1014 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1015 variable and method names.
1017 2011-10-07 Ben Konrath <ben@bagu.org>
1019 Create separate methods for layout and data the details view.
1021 This is a refactor-only commit. No functionality has been added or
1024 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1025 private methods: setData(), createLayout().
1027 2011-10-07 Ben Konrath <ben@bagu.org>
1029 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1031 This is part of a change to get navigation buttons in the details view
1032 but it should have been done this way from the start.
1034 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1035 for method name change in TableSelectionView.
1036 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1037 Create TableChangeEvent and set the browser title using the
1038 TableSelectionView API.
1039 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1040 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1041 Change getSelectedTable() to getSelectedTableName(). Add
1042 getSelectedTableTitle().
1044 2011-10-07 Ben Konrath <ben@bagu.org>
1046 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1048 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1050 2011-10-07 Ben Konrath <ben@bagu.org>
1052 Update TableChangeEvent to use newTableName naming convention.
1054 This makes the class more consistent with GWT naming conventions.
1056 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1057 Update for method name change in TableChangeEvent.
1058 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1059 for method name change in TableChangeEvent.
1060 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1061 newTableName variable and getter method. Make toDebugString()
1064 2011-09-30 Ben Konrath <ben@bagu.org>
1066 Disable the pager in the list tables when the data row count is less than the minimum.
1068 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1069 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1071 2011-09-30 Ben Konrath <ben@bagu.org>
1073 Add empty rows to the end of related list and list view tables.
1075 I also extracted the cell rendering classes from the ListTable because
1076 the code was becoming a little crazy with all the anonymous inner
1077 classes. My plan is to use these cell rendering classes in the details
1078 view as well so this refactor will be needed for that change.
1080 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1081 set the row count in related list tables if the data has more rows
1082 than the minimum number of rows visible.
1083 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1084 row count in list view tables if the data has more rows than the
1085 minimum number of rows visible.
1086 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1087 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1089 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1090 for rendering TYPE_NUMERIC cells. The code was extracted from the
1092 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1093 class for rendering cells with buttons in list views. The code was
1094 extracted from the ListTable class.
1095 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1096 for rendering TYPE_TEXT cells. The code was extracted from the
1098 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1099 Add empty rows to the end of the data if required. Implement
1100 ListTable.getMinNumVisibleRows().
1101 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1102 cell renderer code to public classes. Return null in
1103 Column.getValue() for empty rows. Add new abstract method:
1104 getMinNumVisibleRows(). Move code to set the row count of the list view
1105 table to ListViewImpl.
1106 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1107 empty rows to the end of the data if required. Implement
1108 ListTable.getMinNumVisibleRows().
1111 2011-09-27 Ben Konrath <ben@bagu.org>
1113 Use GWT.log for client-side debugging statements.
1115 These are optimized out when deployed so I should have used this method
1116 in the first place. These statements will eventually be replaced with some sort
1117 of notification in the browser.
1119 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1120 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1121 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1122 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1123 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1125 2011-09-27 Ben Konrath <ben@bagu.org>
1127 Put tableselector on the right, back to list link on right.
1129 The idea is that the table selector is acting like a label for the
1130 currently displayed table so it should be placed below the document title. This
1131 puts the table title in a similar position to where it is in Glom.
1133 * mockups/details-contacts.html:
1134 * mockups/details-projects.html:
1135 * mockups/listview-contacts.html:
1136 * mockups/listview-projects.html:
1137 * mockups/style.css:
1138 Update mockups to match how the interfaces currently look.
1139 * src/main/webapp/style.css: Swap positions of backlink with the table
1140 selector. Add some space on the left side of the table selector to
1141 line things up with the document title.
1143 2011-09-27 Ben Konrath <ben@bagu.org>
1145 Add field colouring to details view.
1147 This change re-works how field colouring works. The colour formatting
1148 information is now set to the client with the layout information instead of
1149 with the data. This eliminates the need to send the same colour strings for
1150 data in list view column when colour information is set.
1152 In order to set an alternate colour for negative numeric values, the
1153 number is now sent to client and formatted with the GWT NumberFormat class.
1155 This change also fixes:
1157 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1159 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1160 internationalization framework which is needed for client side numeric
1162 * src/main/java/org/glom/web/client/Utils.java: New file for some
1163 client static utility methods.
1164 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1165 the DataItem object to the Field class. Use a utility method to
1166 create the foreignKeyValue string.
1167 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1168 alignment and text colours in the constructor. Add setData(DataItem)
1169 method. Remove setText(String) method.
1170 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1171 colour information to GlomTextCell. Create and use GlomNumberCell for
1172 rendering numbers. Use utility method to get the string for the
1173 primary key of the key provider. Re-work how the horizontal alignment
1175 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1176 formatting to layout information. Methods for converting the libglom
1177 formatting information were moved from DBAccess.
1178 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1179 numeric formatting (it's now done on the client side). Don't set text
1180 colours in DataItem. Move libglom formatting conversion methods to
1182 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1183 getters/setters for text colour information.
1184 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1185 for transferring the libglom NumericFormat information to the client.
1186 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1187 and getters/setters for: GlomNumericFormat, background colour and
1188 foreground colour strings.
1190 2011-09-26 Ben Konrath <ben@bagu.org>
1192 Simplify code that iterates through the LayoutGroup.
1194 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1196 2011-09-26 Ben Konrath <ben@bagu.org>
1198 Accept Eclipse formatting for OnlineGlomServiceAsync.
1200 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1202 2011-09-26 Ben Konrath <ben@bagu.org>
1204 Don't use the ListDBAccess classes to get the primary key layout information.
1206 This was causing a bug where the wrong index for the hidden primary key
1207 was being sent to the client.
1209 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1210 primary key while creating the LayoutGroup DTO. Create a
1211 LayoutItemField DTO for hidden primary keys. Don't use the
1212 RelatedListDBAccess because it was only used for getting the primary
1214 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1215 access modifier from public to protected for getPrimaryKeyField() and
1216 getPrimaryKeyLayoutItemField().
1217 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1218 abstract method getExpectedResultSize() because RelatedListDBAccess
1219 doesn't have enough info to implement it.
1220 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1221 Remove @Override for getExpectedResultSize().
1222 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1223 Remove method getExpectedResultSize().
1225 2011-09-23 Ben Konrath <ben@bagu.org>
1227 Log which layout (list or details) the ignored item is from.
1229 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1231 2011-09-23 Ben Konrath <ben@bagu.org>
1233 Remove annotations that turn off code formatting in DataItem.
1235 * src/main/java/org/glom/web/shared/DataItem.java:
1237 2011-09-23 Ben Konrath <ben@bagu.org>
1239 Rename GlomField to DataItem and update associated methods.
1241 This is a rename-only refactor. No functionality has been added or
1244 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1245 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1246 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1247 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1248 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1249 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1250 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1251 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1252 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1253 * src/main/java/org/glom/web/server/database/DBAccess.java:
1254 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1255 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1256 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1257 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1258 * src/main/java/org/glom/web/shared/DataItem.java:
1259 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1260 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1262 2011-09-23 Ben Konrath <ben@bagu.org>
1264 Rename GlomDocument to DocumentInfo and update associated methods.
1266 This is a rename-only refactor. No functionality has been added or
1269 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1270 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1271 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1272 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1273 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1274 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1275 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1277 2011-09-20 Ben Konrath <ben@bagu.org>
1279 Require java-libglom 1.17.3.
1281 This picks up the fix for the seg fault problem with the Scenes table
1282 in the Openismus Film Manager example.
1286 2011-09-20 Ben Konrath <ben@bagu.org>
1288 Change the way sort clause is added for primary key when no sort clause is requested.
1290 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1291 before the sort clause is created. When a sort clause is not requested, the
1292 sort clause is created by finding the primary key in the LayoutFieldVector
1295 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1297 2011-09-20 Ben Konrath <ben@bagu.org>
1299 Log error message if no documents are found in the configured directory.
1301 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1302 Extract the glom file extension string to a private static final class
1303 variable (mostly as syntactic sugar). Accept a minor formatting change.
1304 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1305 the example glom.document.directory configuration property to make it
1306 more clear that it can any directory, not just the home directory.
1308 2011-09-18 Ben Konrath <ben@bagu.org>
1310 Add related lists to details view.
1312 The related list table has support for paging and sorting just like the
1313 table in the list view.
1315 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1316 SQL queries for the related list tables.
1317 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1318 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1319 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1320 Rename getList methods to getListView and add comments. Remove
1321 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1322 it being unused. Add methods: getDetailsLayoutAndData(),
1323 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1324 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1325 Create the layout and set the data for the fields in one async call
1326 instead of two. Create related lists where appropriate.
1327 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1328 for method name changes in OnlineGlomService.
1329 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1330 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1331 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1333 * src/main/java/org/glom/web/client/ui/ListView.java:
1334 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1335 tableName from setCellTable(). Create a ListViewTable instead of
1337 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1338 represent a data field in the details view.
1339 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1340 from addDetailsCell() to Field class. Keep track of the Fields and
1341 Portals in the details view.
1342 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1343 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1344 and add a method to get it. Add method to set the contents of the
1346 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1347 New class for related list tables. This class has the data provider
1348 for the related list table.
1349 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1350 abstract class which is the base class for the ListViewTable and the
1352 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1353 New class for list view tables. This class has the data provider for
1354 the list view table.
1355 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1356 methods for related list tables. Add more information to the
1357 LayoutItemField and LayoutItemPortal DTOs.
1358 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1359 Remove debugging print statement.
1360 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1361 Remove debugging print statements. Add primary key field to SQL count
1363 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1364 Remove unnecessary LayoutFieldVector parameter from
1365 getResultSizeOfSQLQuery() method.
1366 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1367 New class for related list table database access.
1368 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1369 class that is a wrapper DTO for details view layout and data.
1370 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1371 new 'fromField' string to this DTO.
1372 * src/main/webapp/style.css: Remove bottom margin and override top
1375 2011-09-15 Ben Konrath <ben@bagu.org>
1377 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1379 This sets things up to make it easier to add the data retrieval for
1380 related lists (portals). No user noticeable changes were made with
1383 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1384 class has the code to retrieve the layouts and access the
1385 database using the new database helper classes.
1386 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1387 Most of the functionality has been removed from this class. This
1388 class now represents the public interface for the client side
1389 code. It also deals with configuring the servlet and cleaning
1390 things up when the servlet is stopped.
1391 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1392 of static methods into this utility class.
1393 * src/main/java/org/glom/web/server/database/DBAccess.java:
1394 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1395 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1396 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1397 These classes have the database retrieval code. The class hierarchy
1398 has been setup to make it easy to reuse code for similar
1401 2011-09-06 Ben Konrath <ben@bagu.org>
1403 Create separate classes for list table code and the data provider.
1405 As part of this refactor, I also split up the code a bit to make it
1408 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1409 table code to two new classes (below).
1410 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1411 with code from ListViewImpl.
1412 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1413 New file with code from ListViewImpl.
1415 2011-09-06 Ben Konrath <ben@bagu.org>
1417 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1419 This fixes the LayoutItemPortal DTO to match the libglom layout object
1422 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1424 2011-09-01 Ben Konrath <ben@bagu.org>
1426 Set title of Portals in the Details View.
1428 * pom.xml: Bump required version of java-libglom to 1.17.1.
1429 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1430 widget creation to its own class. Add comments to constructor.
1431 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1432 The code is mostly from the Group class with the title now set.
1433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1434 title of Portal. Update some comments. Fix some code formatting.
1436 2011-09-01 Ben Konrath <ben@bagu.org>
1438 Remove TODO comment for the flow table column width.
1440 The flow table column width is working correctly and doesn't need to be
1441 changed. See this mailing list post for more info:
1443 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1445 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1447 2011-08-27 Ben Konrath <ben@bagu.org>
1449 Add document title (database name) to top of the browser page.
1451 I added the document title to the TableSelecitonView but that will
1452 change if / when we add a view that doesn't require table selection.
1454 * mockups/details-contacts.html:
1455 * mockups/details-projects.html:
1456 * mockups/listview-contacts.html:
1457 * mockups/listview-projects.html:
1458 * mockups/style.css: Add document title to mockups to keep things
1460 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1461 sizes to account for the document title.
1462 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1463 Set the document title when it has been retrieved from the server.
1464 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1465 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1466 and implement setDocumentTitle(String) method.
1467 * src/main/webapp/style.css: Add ID for document title style.
1469 2011-08-25 Ben Konrath <ben@bagu.org>
1471 Add NavigationType enum to LayoutItemPortal DTO.
1473 This is the start of adding support for Portals to the Details View.
1475 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1476 LayoutItem_Portal.navigation_type enum from libglom to
1477 LayoutItemPortal.NavigationType enum.
1478 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1479 NavigationType enum, field for storing the NavigationType and getter
1482 2011-08-25 Ben Konrath <ben@bagu.org>
1484 Implement the flow table layout in the Details View.
1486 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1487 FlowTable to Group to account for the renamed class.
1488 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1489 File. This is a container widget that implements the Glom details view
1490 flow table behaviour.
1491 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1492 org/glom/web/client/ui/FlowTable.java.
1493 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1494 so that the size of the subgroups are a closer match to the size of
1495 the Glom subgroups. This makes the flowtable layout match the layout
1496 in Glom for the Music Collection example file.
1498 2011-08-16 Ben Konrath <ben@bagu.org>
1500 Create container element for LayoutItemPortal in Details View.
1502 This will help me develop the layout for the FlowTable.
1504 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1505 fieldPanel variable to detailsCell.
1507 2011-08-15 Ben Konrath <ben@bagu.org>
1509 Set the height of the data element in the Details View.
1511 I changed the InlineLabels (text in a span element) to Labels (text in
1512 a div element) so that I could set the height of the details-data
1513 elements instead of the details-cell parent elements. This allows the
1514 the details-data element to display the correct height if style is
1515 applied that shows the height.
1517 This change has the added benefit of allowing the order of the labels
1518 and data elements to be changed for right-to-left languages.
1520 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1521 InlineLabels to Labels.
1522 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1523 InlineLabels to Labels. Set the height of the data element.
1524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1525 multiline text height in the Formatting DTO.
1526 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1527 for multiline height along with getter and setter methods.
1528 * src/main/webapp/style.css: Adjust style to account for the change
1529 from span elements to div elements in the details cell.
1531 2011-08-15 Ben Konrath <ben@bagu.org>
1533 Make the List View appearance match the mockups.
1535 It doesn't match exactly but it's much better than it was.
1537 * mockups/listview-contacts.html: Remove unused css classes.
1538 * mockups/listview-projects.html: Remove unused css classes.
1539 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1540 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1541 for mainPanel instead of VerticalPanel (table). Set style name on
1542 CellTable. Set style name on Details column. Right-align Details
1544 * src/main/webapp/style.css: Adjust properties to match the mockups.
1546 2011-08-12 Ben Konrath <ben@bagu.org>
1548 Add better support for subgroups in the details view.
1550 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1551 changed FlowTable constructor.
1552 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1553 support for subgroups and subgroup-titles.
1554 * src/main/webapp/style.css: Add CSS class for subgroups and
1557 2011-08-12 Ben Konrath <ben@bagu.org>
1559 Return the top level LayoutGroup title.
1561 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1563 2011-08-11 Ben Konrath <ben@bagu.org>
1565 Make the TableSelector header match the mockup.
1567 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1568 the layout panel. Properly lineup the table selection header with
1569 the list and details view.
1570 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1571 margin around the details view.
1572 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1573 Rename listBox variable to tableSelector. Set id for the style sheet.
1574 Use a FlowPanel instead of a HorizontalPanel.
1575 * src/main/webapp/style.css: Add properties to make the TableSelector
1576 box match the mockups.
1578 2011-07-13 Ben Konrath <ben@bagu.org>
1580 Update install script for java-libglom version change.
1582 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1585 2011-07-13 Ben Konrath <ben@bagu.org>
1587 Add support sub-group in the details view.
1589 I also removed the code that special-cased the default details view
1592 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1594 I still have to make a proper flowtable.
1596 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1597 Don't special-case default details view layout.
1598 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1599 addLayoutField() as I'm going to use it.
1600 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1601 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1603 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1604 extracted from DetailsViewImpl.GroupPanel. Add support for
1606 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1607 column count when getting the details layout.
1609 2011-07-12 Ben Konrath <ben@bagu.org>
1611 Set browser title with database and table titles.
1613 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1614 Set the browser title when the table changes and when the activity
1616 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1617 title when retrieving document info (the GlomDocument object).
1618 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1619 with getter and setter methods. Remove unused convenience constructor.
1620 Use default code formatting.
1622 2011-07-12 Ben Konrath <ben@bagu.org>
1624 Ignore LayoutItemPortals in the details view.
1626 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1629 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1630 LayoutItemPortal layout objects.
1631 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1632 LayoutItemPortal objects when retrieving the details layout.
1633 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1634 file. This is an empty class and just used to get type information for
1637 2011-07-12 Ben Konrath <ben@bagu.org>
1639 Use java-libglom 1.17.0.
1643 2011-07-11 Ben Konrath <ben@bagu.org>
1645 Remove "Table:" label from table selector.
1647 This matches a recent change in the Glom UI.
1649 * mockups/details-contacts.html:
1650 * mockups/details-projects.html:
1651 * mockups/listview-contacts.html:
1652 * mockups/listview-projects.html: Remove the "Table:" label from the
1654 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1656 2011-07-11 Ben Konrath <ben@bagu.org>
1658 Add main groups to the details view.
1660 This makes things look a little nicer in the details view. The next step
1661 is to implement the flowtable.
1663 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1664 resources from the standard gwt css theme. Standard.css is now
1665 included in OnlineGlom.html so that the online glom css rules have
1666 precedence over the gwt theme.
1667 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1668 the whole LayoutGroup to the DetailsView instead of just the titles.
1669 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1670 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1671 details layout with a helper class (GroupPanel). I might extract this
1672 class when I make the full flowtable.
1673 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1674 string as default so I don't have to worry about NPEs when processing
1676 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1677 note beside OnlineGlom.gwt.xml above).
1678 * src/main/webapp/style.css: Add default font-size to body to override
1679 the font-size set by the standard theme. Don't use h2 tags for
1680 group-title. Create new details-cell class.
1682 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1684 ConfiguredDocument: Set the port number too.
1686 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1687 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1688 Glom document. Presumably this worked sometimes so far because there is a
1689 default port number.
1691 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1693 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1695 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1696 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1697 correct, though we should throw an exception too.
1699 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1701 Fix a addDocuemnt typo.
1703 * src/main/java/org/glom/web/shared/Documents.java
1704 (Documents.addDocuemnt): Rename to addDocument().
1705 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1706 (OnlineGlomServiceImpl.getDocuments): Adapt.
1708 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1710 Slightly improved log output when connection fails.
1712 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1713 (ConfiguredDocument.setUsernameAndPassword):
1714 We don't know for sure if it' the username/password that's wrong, so
1715 rephrase the message.
1716 Also ouput the exception message, though it's generic in this case.
1718 2011-07-08 Ben Konrath <ben@bagu.org>
1722 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1723 added braces to a one line if statement because the Eclipse formatter
1724 was getting confused.
1726 2011-07-07 Ben Konrath <ben@bagu.org>
1728 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1730 These should really be two separate tasks but I counldn't get things to
1731 work with GWT 2.2.0 and Eclipse 3.7.
1735 * .settings/org.eclipse.jdt.core.prefs:
1736 * .settings/org.eclipse.jdt.ui.prefs:
1737 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1738 * .settings/org.eclipse.m2e.core.prefs:
1739 Add new config files. Update current files. Remove references to the
1740 webtools plugins as we're not using any of the webtools features.
1741 * .gitignore: Add logs directory which is created when running with
1743 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1744 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1745 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1747 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1749 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1751 onlineglom.properties: Add explanatory comments.
1753 * src/main/resources/onlineglom.properties: Also change the default user
1754 from ben to someuser, to avoid the risk of people thinking we just
1755 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1757 2011-06-28 Ben Konrath <ben@bagu.org>
1759 Use filename in Log for incorrect passwords.
1761 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1762 getFileName(String) method to get the filename from the URI.
1764 2011-06-28 Ben Konrath <ben@bagu.org>
1766 Add the table name to the URL token for the ListPlace.
1768 This makes things consistent between the DetailsPlace and the
1769 ListPlace. It also allows the the ListPlace to be bookmarked.
1771 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1772 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1773 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1774 Remove getDefaultListLayout(). The default layout is now returned
1775 by the getListLayout() method when the table name is an empty string.
1776 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1777 Add table name field. Change to a new ListPlace when the table
1778 has been changed. Use getListLayout() for getting the default
1780 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1781 Add table name field. Set the correct table name in the list box
1782 when loading from bookmark. This corrects a problem for the
1784 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1785 Move table name to super-class (HasSelectableTable). Move document
1786 and table URL keys to super-class in HasSelectableTable.
1787 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1788 Add table name field. Add Tokenizer class with URL key common to
1789 the subclasses (DetailsPlace and ListPlace).
1790 * src/main/java/org/glom/web/client/place/ListPlace.java:
1791 Add table name. Add code to parse the URL token.
1792 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1793 Update ListPlace construction with empty table name string.
1794 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1795 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1796 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1797 Update ListPlace construction with table name string.
1798 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1799 Change defaultTableName field to tableName to reflect how it's now
1800 used. Update the getter and setter methods.
1802 2011-06-28 Ben Konrath <ben@bagu.org>
1804 Enable the table selector in the DetailsView.
1806 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1807 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1808 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1809 Remove getDefaultDetailsLayout(). The default layout is now returned
1810 by the getDetailsLayout() method when the table name is an empty
1812 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1813 event handler for table change event. Change to using
1814 getDetailsLayout() for the default details layout.
1815 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1817 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1818 when navigating to the details place.
1820 2011-06-27 Ben Konrath <ben@bagu.org>
1822 Use filename based unique document ID in URL and for RPC.
1824 The document ID is the glom document name with spaces (' ') replaced
1825 with pluses ('+') and without the .glom extension.
1827 This change is mostly a string substitution of 'documentTitle' for
1828 'documentID'. The only code change is the addition of a Documents DTO to get the
1829 filename to document title mappings as indicated below.
1831 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1832 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1833 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1834 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1835 Use Documents DTO to create the document links in the document
1837 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1838 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1839 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1840 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1841 * src/main/java/org/glom/web/client/place/ListPlace.java:
1842 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1843 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1844 * src/main/java/org/glom/web/client/ui/ListView.java:
1845 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1846 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1847 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1848 * src/main/java/org/glom/web/server/Log.java:
1849 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1850 getDocumentTitles() to getDocuments() and return the Documents DTO.
1851 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1852 transferring the filename to document title mappings.
1854 2011-06-25 Ben Konrath <ben@bagu.org>
1856 Make the authentication popup work again.
1858 This bug was introduced when I extracted ConfiguredDocument to its own class.
1860 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1861 correct success / fail status in setUsernameAndPassword().
1863 2011-06-25 Ben Konrath <ben@bagu.org>
1865 Use filename as unique key for configuring database usernames and passwords.
1867 This replaces the use of the Glom document title which could change
1868 depending on the locale. Thanks to Murray Cumming for pointing out this
1871 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1872 * src/main/resources/onlineglom.properties:
1874 2011-06-24 Ben Konrath <ben@bagu.org>
1876 Pass primary key value to DetailsView.
1878 This enables the DetailsView to load the correct data.
1880 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1881 primary key value field and set in constructor. Pass primary key
1882 value to getDetailsData().
1883 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1884 variables for document title and primary key value.
1885 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1886 key value to the DetailsPlace.
1888 2011-06-24 Ben Konrath <ben@bagu.org>
1890 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1892 This allows the primary key to be retrieved by the Details button. This
1893 functionality has not been implemented yet but it's in the works.
1895 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1896 the LayoutGroup result to ListView.setCellTable instead of all of its
1897 fields individually.
1898 * src/main/java/org/glom/web/client/ui/ListView.java:
1899 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1900 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1901 get the primary key for the table.
1902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1903 index of the primary key in the LayoutGroup accounting for hidden
1904 primary keys. Rename getJavaNumberFormat() to
1905 convertToJavaNumberFormat() for consistency. Cleanup / add some
1907 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1908 field for primary key index and a field to indicate whether the
1909 primary key is hidden or not.
1911 2011-06-23 Ben Konrath <ben@bagu.org>
1913 Rename getTableData methods to getListData.
1915 This is a rename refactor for consistency with other methods.
1917 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1918 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1919 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1922 2011-06-23 Ben Konrath <ben@bagu.org>
1924 Extract the ConfiguredDocument innerclass into its own class.
1926 This makes the servlet code more object oriented.
1928 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1929 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1930 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1931 new ConfiguredDocument class.
1933 2011-06-21 Ben Konrath <ben@bagu.org>
1935 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1937 This makes things more inline with how libglom works and reduces code
1938 duplication. This refactor lays the groundwork for adding the primary key to
1939 the LayoutGroup object.
1941 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1942 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1943 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1944 Change method names to getListLayout and getDefaultListLayout for
1945 consistency. Use LayoutGroup as the DTO for the list layout instead of
1946 ColumnInfo and LayoutListTable.
1947 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1948 new method names along with the LayoutGroup object for transferring the
1950 * src/main/java/org/glom/web/client/ui/ListView.java:
1951 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1952 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1953 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1955 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1956 Replaced with LayoutGroup.
1957 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1958 expectedResultSize and defaultTableName fields which are needed for
1960 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1961 type field which is needed for the list layout but will also be
1962 useful for the details layout as things progress.
1963 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1964 Make class abstract. Remove the unnecessary
1965 getFormattingHorizontalAlignment method. Add setFormatting method.
1967 2011-06-16 Ben Konrath <ben@bagu.org>
1969 Add scripts for building and installing war.
1971 These will help when updating OnlineGlom but they're also good
1972 supplemental documentation of the build and deployment proceeding.
1974 * utils/build-onlineglom-war.sh: New file.
1975 * utils/install-onlineglom-war.sh: New file.
1977 2011-06-16 Ben Konrath <ben@bagu.org>
1979 Create wrapper class to create consistent log messages.
1981 I wrapped methods in the Log class of gwt-log to add the method names
1982 from the servlet and create consistent formatting of the document title
1983 and table names in the log messages.
1985 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1986 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1987 log methods to use methods from wrapped Log class.
1989 2011-06-16 Ben Konrath <ben@bagu.org>
1991 Remove superfluous conditional return.
1993 Thanks to Murray Cumming for pointing this out!
1995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1997 2011-06-15 Ben Konrath <ben@bagu.org>
1999 Return an ArrayList of LayoutGroups for the Details layout.
2001 This corrects a problem with the details layout as it can have more
2002 than one top level LayoutGroup.
2004 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2005 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2006 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2007 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2008 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2009 with ArrayList of LayoutGroups for the details view layout.
2010 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2011 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2012 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2013 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2014 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2015 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2017 2011-06-14 Ben Konrath <ben@bagu.org>
2019 Use cast_dynamic method to determine the libglom LayoutItem type.
2021 This is better than finding the LayoutItem type by using the string
2022 returned from the get_part_type_name() method.
2024 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2026 2011-06-14 Ben Konrath <ben@bagu.org>
2028 Add method names to log entries in the servlet.
2030 This helps when tracking down deployment problems.
2032 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2034 2011-06-14 Ben Konrath <ben@bagu.org>
2036 Add data to the DetailsView using a hard-coded primary key value.
2038 The layout and functionality of the DetailsView is not complete. This
2039 is just a checkpoint so the patch doesn't get too big.
2041 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2042 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2043 Add getDetailsData() servlet method.
2044 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2045 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2046 LayoutFields are added to the DetailsView.
2047 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2048 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2049 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2050 take the string for the title instead of the object.
2051 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2052 Add implementation getDetailsData() along with some private helper
2054 * src/main/webapp/style.css: Add padding to details-data class. Add a
2055 details-label class with the same padding as the details-data class.
2057 2011-06-03 Ben Konrath <ben@bagu.org>
2059 Use presenter.goTo() to change to the DetailsPlace.
2061 This will make things easier when we need to open the DetailsView with
2062 data specific to the row that was clicked.
2064 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2066 2011-06-02 Ben Konrath <ben@bagu.org>
2068 Add CSS file from mockups.
2070 I'm adding this now because it's going to be useful to have when
2071 developing the DetailsView. The TableSelectionView and ListView aren't
2074 * src/main/webapp/OnlineGlom.html:
2075 * src/main/webapp/style.css:
2077 2011-06-02 Ben Konrath <ben@bagu.org>
2079 Use String.isEmpty() to check for empty string.
2081 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2083 2011-06-02 Ben Konrath <ben@bagu.org>
2085 Display main layout group titles in the DetailsView.
2087 This is the start of the DetailsActivity/DetailsView implementation.
2089 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2090 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2091 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2092 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2093 Get the layout information for the details view from the server and set
2094 the main layout group titles.
2095 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2096 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2097 Add addLayoutGroup() and addLayoutField() methods. This are just
2098 temporary methods for creating the the details view that will change
2100 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2101 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2103 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2104 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2105 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2106 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2107 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2108 Data Transfer Objects that mimic the libglom object structure. These are
2109 used for transferring the details layout but could also be used for
2110 transferring the list layout.
2112 2011-05-27 Ben Konrath <ben@bagu.org>
2114 Reset the AuthenticationPopup when clearing the ListView.
2116 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2118 2011-05-27 Ben Konrath <ben@bagu.org>
2120 Fix problem with onlineglom.properties file loading.
2122 The old way worked in Eclipse but not on the server. Loading the
2123 onlineglom.properties file now works in Eclipse and on the server.
2125 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2127 2011-05-24 Ben Konrath <ben@bagu.org>
2129 Update gwt-log from 3.1.0 to 3.1.2.
2131 Gwt-log 3.1.0 has been marked as depreciated.
2135 2011-05-24 Ben Konrath <ben@bagu.org>
2137 Add comment to ListActivity.goTo() method.
2139 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2141 2011-05-24 Ben Konrath <ben@bagu.org>
2143 Remove FIXME in convertGdkColorToHtmlColour()
2145 The Gdk::Color value returned by libglom is 16-bits per channel on both
2146 64 and 32-bit platforms.
2148 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2150 2011-05-19 Ben Konrath <ben@bagu.org>
2152 Improve performance of initial ListView load.
2154 I removed a round trip to the server for getting the default table name
2155 and then requesting information about that table. This also removes a potential
2156 problem with the table change handler not being setup in time to receive the
2157 table change event from the ListActivity.
2159 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2160 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2161 getDefaultLayoutListTable() method. Improve comments.
2162 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2163 getDefaultLayoutListTable() method instead of firing a table change
2164 event to get the table to load.
2165 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2166 implementation of getDefaultLayoutListTable() method.
2167 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2170 2011-05-19 Ben Konrath <ben@bagu.org>
2172 Override toDebugString() in TableChangeEvent.
2174 This is useful to have for debugging.
2176 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2178 2011-05-19 Ben Konrath <ben@bagu.org>
2180 Add a "Back to List" link when at the DetailsPlace.
2182 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2183 Populate the CellTable based on the selected table of the ListBox if
2184 it's set otherwise use the default table. This allows the "Back to
2186 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2187 Remove Place from constructors. Add a setPlace() method. Add
2188 goToPlace() method. Set class as presenter for TableSelectionView.
2189 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2190 Use the same TableSelectionActivity when switching between the List and
2192 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2193 Subclass the new HasSelectableTablePlace. This removes some duplicate
2195 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2196 New class to represent Places that display the TableSelectionView.
2197 * src/main/java/org/glom/web/client/place/ListPlace.java:
2198 Subclass the new HasSelectableTablePlace. This removes some duplicate
2200 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2201 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2202 Add Presenter interface. Add setBackLinkVisible() method. Add
2203 setBackLink() method.
2205 2011-05-18 Ben Konrath <ben@bagu.org>
2207 Enable the "Details" buttons.
2209 Right now only an empty details view is displayed.
2211 * src/main/java/org/glom/web/client/ClientFactory.java:
2212 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2213 Add DetailsView to ClientFactory.
2214 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2215 A basic activity for the details view.
2216 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2217 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2219 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2220 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2222 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2223 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2224 unnecessary super() in constructor.
2225 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2226 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2227 really shouldn't create a new TableSelectionActivity for both the ListPlace
2228 and the DetailsPlace so this should be considered a temporary solution.
2229 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2230 New file. Represents a URL for the details view.
2231 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2232 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2233 A basic details view interface and implementation.
2234 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2235 Enable the "Details" buttons.
2237 2011-05-12 Ben Konrath <ben@bagu.org>
2239 Use a LayoutPanel with multiple display areas for main layout.
2241 This is mostly a refactor in that there are no changes from the user
2242 point of view. These changes are required so that we can swap out the list view
2243 with the details view when the user clicks the "Details" button.
2245 * src/main/java/org/glom/web/client/ClientFactory.java:
2246 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2247 OnlineGlomView. Add TableSelectionView, ListView and
2248 AuthenticationPopup.
2249 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2250 for main layout. Add display regions for main activities. Add
2251 activity manager for for main activities.
2252 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2253 file from parts of the deleted OnlineGlomActivity.
2254 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2255 New file from parts of the deleted OnlineGlomActivity.
2256 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2257 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2258 New files for app wide table change event.
2259 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2260 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2261 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2262 Activity mappers for the main activities replace the deleted app-wide
2264 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2265 Fix a spelling error in he comment.
2266 * src/main/java/org/glom/web/client/ui/ListView.java:
2267 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2268 Renamed from LayoutListView and modified for MVP. This still not a
2269 proper dumb view as prescribed by the MVP pattern but it works for now.
2270 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2271 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2272 New widget stripped out of the deleted OnlineGlomView.
2273 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2274 Remove hack that is fixed by this patch.
2276 2011-05-06 Ben Konrath <ben@bagu.org>
2278 Rename OnlineGlomPlace to ListPlace.
2280 The only change besides the rename is that url will now display #list
2281 instead of #Document.
2283 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2284 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2285 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2286 * src/main/java/org/glom/web/client/place/ListPlace.java:
2287 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2289 2011-05-06 Ben Konrath <ben@bagu.org>
2291 Use Presenter for app navigation.
2293 This is the proper way to deal with Place (URL) changes with the MVP
2296 * src/main/java/org/glom/web/client/ClientFactory.java:
2297 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2298 PlaceHistoryMapper and PlaceHistoryHandler.
2299 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2300 PlaceHistoryMapper and PlaceHistoryHandler.
2301 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2302 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2303 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2304 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2305 Add Presenter interface and setPresenter methods. Rename addHyperLink
2306 to addDocumentLink taking only the document title as a parameter.
2308 2011-04-14 Ben Konrath <ben@bagu.org>
2310 Prompt for db username/password if they haven't been set.
2312 This is implemented with a popup widget that is contained within the
2313 OnlineGlomView and managed by the OnlineGlomActivity.
2315 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2316 methods for checking and setting the database username and password.
2317 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2318 new methods for checking and setting the database username and
2320 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2321 Display authentication popup if the JDBC connection to the database
2322 has not been authenticated.
2323 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2325 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2326 for dealing with the authentication popup.
2327 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2328 Implement the methods for dealing with the authentication popup.
2329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2330 try to executed queries if the database connection hasn't been
2331 authenticated. Implement methods for checking and setting the
2332 database username and password.
2334 2011-04-12 Ben Konrath <ben@bagu.org>
2336 Make log messages a little clearer.
2338 Add a dash betweeen the document title and the table name.
2340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2342 2011-04-12 Ben Konrath <ben@bagu.org>
2344 Protect against NPEs when cleaning up database resources.
2346 While this isn't strictly necessary because the exception is caught,
2347 not protecting against the NPEs makes it harder to find the real error
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2352 2011-04-12 Ben Konrath <ben@bagu.org>
2354 Move configuration of the servlet to the constructor.
2356 The servlet will be initialized even if the database authentication
2357 information is not set or correct. I still need to add the UI for prompting
2358 the user for the authentication information when it's required.
2360 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2361 javadocs for getDocumentTitles() method.
2362 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2363 Set error message when RPC fails.
2364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2365 glom files directory from the configuration file. Try to set the
2366 database authentication information for the specific document if it's
2367 set and works otherwise try to use the global authentication
2368 information set for the directory.
2369 * src/main/resources/onlineglom.properties: Moved from
2370 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2371 Added detailed comments for the new keys.
2373 2011-04-11 Ben Konrath <ben@bagu.org>
2375 Remove unnecessary @Override in DocumentSelectionViewImpl.
2377 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2379 2011-04-11 Ben Konrath <ben@bagu.org>
2381 Remove center alignment in DocumentSelectionView.
2383 The title element is still centred but the document titles and bottom
2384 sentence are both left-aligned.
2386 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2388 2011-04-11 Ben Konrath <ben@bagu.org>
2390 Change 'Demo' naming convention to 'Document'.
2392 This is just a rename refactor with no functional changes to the code.
2394 * src/main/java/org/glom/web/client/ClientFactory.java:
2395 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2396 * src/main/java/org/glom/web/client/OnlineGlom.java:
2397 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2398 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2399 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2400 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2401 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2402 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2403 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2404 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2405 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2406 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2408 2011-04-08 Ben Konrath <ben@bagu.org>
2410 Remove FIXME from safeLongToInt() method.
2412 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2415 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2417 2011-04-08 Ben Konrath <ben@bagu.org>
2419 Display an error if no glom documents are found in the specified directory.
2421 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2422 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2423 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2424 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2426 2011-04-08 Ben Konrath <ben@bagu.org>
2428 Add copyright header to one more file ... oops.
2430 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2432 2011-04-08 Ben Konrath <ben@bagu.org>
2434 Add copyright header to files without it.
2436 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2437 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2438 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2439 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2440 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2441 * src/main/java/org/glom/web/shared/GlomField.java:
2443 2011-04-08 Ben Konrath <ben@bagu.org>
2445 Add support for accessing multiple glom documents in the servlet.
2447 This completes the demo selection functionality.
2449 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2450 document title to methods.
2451 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2452 document title to methods.
2453 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2454 Set browser window title when the activity starts. Correct name of
2455 document title variable.
2456 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2457 Set browser window title when the activity starts. Set the table
2458 selector change handler after table selector has been set. Clear the
2459 OnlineGlomView when the activity has been stopped.
2460 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2461 document title as the place token. Use "#Document:" instead of
2462 "#OnlineGlomPlace:" in the URL.
2463 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2464 Change heading to "Online Glom"
2465 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2466 document title in RPC methods.
2467 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2468 setDocumentTitle() method. Add clear() method.
2469 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2470 setDocumentTitle() method. Implement clear() method which removes the
2471 change handler on the ListBox, clears the ListBox and clears the
2473 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2474 Implement methods with document title. Keep track for the configured
2475 glom documents and their corresponding JDBC configurations in a hash
2476 table. This information is retrieved using the document title as the
2477 key in the hash table.
2478 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2479 document title field as it's no longer needed.
2481 2011-04-08 Ben Konrath <ben@bagu.org>
2483 Update the Eclipse JDT configuration.
2485 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2486 methods. Automatically add the copyright header to new files.
2488 2011-04-05 Ben Konrath <ben@bagu.org>
2490 Add new page for demo selection.
2492 This patch adds all the components required to view and start an
2493 OnlineGlom demo by clicking on the desired hyperlink. The user is
2494 able to return to the demo selection page with the browser's back
2495 button. I still need to modify the servlet to work with multiple
2496 documents so all demo links will load the file defined in the
2497 OnlineGlom.properties.
2499 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2500 This is only useful during development so we don't need to save it.
2501 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2502 get a reference to the DemoSelectionView.
2503 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2504 method to get a reference to the DemoSelectionView.
2505 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2506 default view to DemoSelectionView.
2507 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2508 to get glom document titles for glom files in a hard-coded directory.
2509 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2510 method to get glom document titles for glom files in a hard-coded
2512 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2513 Presenter for DemoSelectionView.
2514 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2515 for DemoSelectionView.
2516 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2517 Update for DemoSelectionView.
2518 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2519 Basic 'Place' implementation for the DemoSelectionView.
2520 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2521 The interface for the DemoSelectionView.
2522 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2523 The implementation of the DemoSelectionView.
2524 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2525 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2526 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2527 implementation of method to get glom document titles for glom files
2528 in a hard-coded directory.
2529 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2530 on longer being used.
2531 * src/main/webapp/glom.png: Glom logo.
2533 2011-04-05 Ben Konrath <ben@bagu.org>
2535 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2537 This is the forth and final commit of a refactor that will allow
2538 OnlineGlom to be used with multiple documents.
2540 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2541 Move RPC code from OnlineGlomViewImpl to this class.
2542 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2544 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2545 RPC code to the presenter class (the P in MVP).
2547 2011-04-04 Ben Konrath <ben@bagu.org>
2549 Start moving the existing OnlineGlom code to MVP.
2551 This work is based on the GWT MVP framework that is documented here:
2553 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2555 This is the third commit of a refactor that will allow OnlineGlom to
2556 be used with multiple documents.
2558 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2559 Interface for client factory which is used to get instances of various
2560 classes throughout the app.
2561 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2562 Implementation of client factory.
2563 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2564 initialize the MVP framework.
2565 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2566 New file. Activity manager for the main container widget. This is the
2568 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2569 Maps place (URL) to its corresponding activity.
2570 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2571 New file. This is just a place holder for a generated file.
2572 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2573 New file. Represents the URL for the main Online Glom app.
2574 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2575 for changes in LayoutListViewImpl.
2576 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2577 interface for View. Move code to OnlineGlomViewImpl class.
2578 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2579 file. Implementation of OnlineGlomView.
2580 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2581 Place resources. Use ClientFactoryImpl by default.
2583 2011-04-04 Ben Konrath <ben@bagu.org>
2585 Move View classes to their own package.
2587 This is the second commit of a refactor that will allow OnlineGlom to
2588 be used with multiple documents.
2590 * src/main/java/org/glom/web/client/OnlineGlom.java:
2591 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2592 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2594 2011-04-02 Ben Konrath <ben@bagu.org>
2596 Move UI code from the main module to its own class.
2598 This is the first commit of a refactor that will allow OnlineGlom to be
2599 used with multiple documents.
2601 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2602 references to OnlineGlom to OnlineGlomView.
2603 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2604 OnlineGlomView and instantiate it here.
2605 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2606 represents the main OnlineGlomView with one document.
2608 2011-04-01 Ben Konrath <ben@bagu.org>
2610 Fix formatting of gwt.xml and add DTD.
2612 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2614 2011-03-30 Ben Konrath <ben@bagu.org>
2616 Propperly convert gdkColor string to html colour string.
2618 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2620 2011-03-28 Ben Konrath <ben@bagu.org>
2622 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2624 This implementation matches
2625 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2626 readable and is not tied to Swig.
2628 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2630 2011-03-28 Ben Konrath <ben@bagu.org>
2632 Use read-only checkboxes for boolean field types.
2634 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2635 in the CellTable based on the field type. It currently only
2636 distinguishes between boolean and text columns but I'll need to add
2637 support for more types.
2638 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2639 column type in the ColumnInfo object. Add method to convert between the
2640 glom field type enum in ColumnInfo and the glom field type in libglom.
2641 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2643 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2644 getting and setting booleans.
2646 2011-03-25 Ben Konrath <ben@bagu.org>
2648 Don't get the Date twice from the ResultSet.
2650 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2652 2011-03-25 Ben Konrath <ben@bagu.org>
2654 Cleanup code in the servlet.
2656 * TODO: Remove item about row count. Add item about testing row count
2657 query with large number of rows.
2658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2659 spelling mistakes, change method parameter to be consistent with
2662 2011-03-25 Ben Konrath <ben@bagu.org>
2664 Add server side logging with the gwt-log library.
2666 * .gitignore: Ignore the log file we're now producing.
2667 * TODO: Add a couple TODO item for logging.
2668 * pom.xml: Add gwt-log and log4j as a dependency.
2669 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2670 logging of errors, warnings and some important info.
2671 * src/main/resources/log4j.properties: New file to configure log4j.
2673 2011-03-24 Ben Konrath <ben@bagu.org>
2675 Add a disable button for the Details view.
2677 * src/main/java/org/glom/web/client/LayoutListView.java:
2679 2011-03-22 Ben Konrath <ben@bagu.org>
2681 Use a count query to get the number of rows for the list view pager.
2683 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2685 2011-03-22 Ben Konrath <ben@bagu.org>
2687 Add more TODO information about CellTable pager positioning.
2691 2011-03-19 Ben Konrath <ben@bagu.org>
2693 Add TODO item about CellTable pager positioning.
2697 2011-03-18 Ben Konrath <ben@bagu.org>
2699 Remove unneeded GlomFieldColumn class.
2701 This is just a small code cleanup.
2703 * src/main/java/org/glom/web/client/LayoutListView.java:
2705 2011-03-18 Ben Konrath <ben@bagu.org>
2707 Use cursor mode in the query that gets data for the list view.
2709 I still need to fix the potential memory problem when getting the row
2710 count for the list view.
2712 * TODO: Add note about testing memory usage with large data sets. Add
2713 item about fixing row counting with large data sets.
2714 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2715 PostgreSQL JDBC driver into cursor mode when getting data for the
2718 2011-03-15 Ben Konrath <ben@bagu.org>
2720 Remove the GWT Container from the Eclipse build classpath.
2722 The GWT dependencies are set by Maven so this isn't needed.
2726 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2728 Added some earlier mockups to git, but not to the tarball dist.
2730 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2731 Openismus. These hopefully show how we might structure the HTML so that
2732 it can be styled easily with CSS. However, we probably need to adapt them
2733 for the CSS structure that GWT dictates for common widgets.
2735 2011-03-14 Ben Konrath <ben@bagu.org>
2737 Locate OnlineGlom.properties using the ServletContext.
2739 This is required to be able to locate the file in the deployed servlet.
2741 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2742 Configure the database and glom document in in a helper method so
2743 that the ServletContext can be used to locate OnlineGlom.properties.
2744 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2745 src/main/webapp. This is the proper location for .properites files.
2747 2011-03-12 Ben Konrath <ben@bagu.org>
2749 Add note to README about why we're compiling down to obfuscated JavaScript.
2753 2011-03-11 Ben Konrath <ben@bagu.org>
2755 Use properties file to configure servlet.
2757 This allows people to change the glom file path, db username and db
2758 password without recompiling the code.
2760 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2761 * src/main/webapp/OnlineGlom.properties:
2763 2011-03-11 Ben Konrath <ben@bagu.org>
2765 Use table fields in layout list view if the layout list is not defined.
2767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2768 Manually create a LayoutFieldVector for the query builder using the
2769 table fields when a layout list is not defined in the glom file.
2771 2011-03-11 Ben Konrath <ben@bagu.org>
2773 Only show FIXME string for images when there's an image.
2775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2776 in this change are some small code cleanups.
2778 2011-03-11 Ben Konrath <ben@bagu.org>
2780 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2782 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2784 2011-03-11 Ben Konrath <ben@bagu.org>
2786 Correctly set the index of the default table.
2788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2789 Correctly set the index of the default table. Add commented out example
2792 2011-03-10 Ben Konrath <ben@bagu.org>
2794 Add comment to pom.xml about the previous change.
2796 * pom.xml: Add comment about the deployment issue so that it's obvious
2797 why java-libglom is set to the provided scope.
2799 2011-03-10 Ben Konrath <ben@bagu.org>
2801 Change java-libglom dependency from compile to provided in pom.xml.
2803 Since java-libglom uses jni it can only be loaded once and therefore
2804 must be placed in $CATALINA_HOME/lib and not included in each war.
2805 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2806 More information about this issue can be found in the Tomcat 6 release
2807 notes in the "JNI Based Applications" section:
2809 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2811 * README: Remove note about this issue. Deployment info should really
2812 be on the wiki anyway so I'll add it right now.
2813 * pom.xml: Change java-libglom dependency from compile to provided so
2814 that it's copied in to the packaged war.
2816 2011-03-09 Ben Konrath <ben@bagu.org>
2818 Change to using a neutral locale for currency, date and time formatting.
2820 This solves the problem of currency values being represented without a
2821 space between the currency code and the number (e.g. "EUR5.89" is now
2822 represented as "EUR 5.89"). More work is required when we implement
2823 a locale preference setting.
2825 * TODO: Add note about currency formatting issues with different
2827 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2828 to using the neutral ROOT locale.
2830 2011-03-09 Ben Konrath <ben@bagu.org>
2832 Add support for currency codes that are not ISO 4217 codes.
2834 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2835 the currency code defined in the glom file when it's not 3 characters
2836 long or when Java doesn't recognize the string as an ISO 4217 code.
2838 2011-03-08 Ben Konrath <ben@bagu.org>
2840 Remove test classes, launch configurations and configuration.
2842 The test stuff was getting in the way when creating the war. To make
2843 the war file you can now do 'mvn clean package'. The packaged war file
2844 will be in the target directory.
2846 * .classpath: Remove unused classpathentry for tests and i18n.
2847 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2848 property. Don't run test or i18n goals when packaging the war.
2849 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2854 * OnlineGlomTest-dev.launch:
2855 * OnlineGlomTest-prod.launch:
2856 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2857 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2859 2011-03-07 Ben Konrath <ben@bagu.org>
2861 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2863 These fixes allow me to use 'mvn deploy' to create the war file.
2865 * .classpath: This generated config has been updated by Eclipse. This
2866 change was probably triggered by me updating from Eclipse 3.6.1 to
2868 * .gitignore: Add entry to ignore the directory
2869 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2870 * .project: The generated config has been updated by Eclipse. This
2871 change was probably triggered by me updating from Eclipse 3.6.1 to
2873 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2874 so that Eclipse doesn't complain
2875 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2876 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2877 'tests' directory to 'client' directory. This is the new
2878 gwt-maven-plugin convension.
2879 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2880 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2882 2011-03-07 Ben Konrath <ben@bagu.org>
2884 Add support for horizontal alignment in the LayoutList columns.
2886 * TODO: Remove item about horizontal alignment. Add item about
2887 improvements to ColumnInfo.
2888 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2889 alignment on the columns. Use ColumnInfo RPC object get the column
2890 title and horizontal alignment.
2891 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2892 LayoutListView creation with ColumnInfo RPC object.
2893 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2894 a ColumnInfo object for every LayoutList columnn. Convert the
2895 FieldFormatting.HorizontalAlignment to the correct
2896 ColumnnInfo.HorizontatlAlignment with the new
2897 getColumnInfoHorizontalAlignment helper method.
2898 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2899 to encapsulate column information like alignment and title. This
2900 could be used to set the colour instead of on a per cell field basis.
2901 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2902 column title storage and retrieval with ColumnInfo.
2904 2011-03-04 Ben Konrath <ben@bagu.org>
2906 Add support for column sorting.
2908 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2909 AsynDataProvider to be an anonymous inner class. Use new
2910 getSortedTableData RPC method when column sort is requested. Set all
2911 columns sortable and add an AsyncHandler to activate sorting in the
2913 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2914 method getSortedTableData(). Cleanup other method signatures.
2915 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2916 new method getSortedTableData(). Cleanup other method signatures.
2917 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2918 Implement getSortedTableData() and getTableData() methods by using a
2919 private helper method with the appropriate parameters filled in. Use
2920 user supplied sort clause when supplied, otherwise fall back to
2921 sorting by the primary key. Move destroy() method to be underneath
2922 constructor for readability. Cleanup comments.
2924 2011-03-03 Ben Konrath <ben@bagu.org>
2926 Add support for colour text and colour backgrounds to the layout list cells.
2928 Only the cell backgrounds are coloured which leaves a gap between the
2929 cells that isn't coloured. I need to figure out a way to set
2930 'style=background-colour:' on the whole column rather than just the
2933 * TODO: Add a note about colouring the background of the whole column.
2934 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2935 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2936 render the coloured text and backgrounds. Use GlomField[] for the row type.
2937 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2939 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2940 GlomField[] for the row type.
2941 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2942 GlomField[] for the row type. Set the text, text colour and background
2943 colour in the GlomField objects as specified in the glom document. Add
2944 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2945 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2946 the glom field text, foreground colour and background colour.
2948 2011-03-02 Ben Konrath <ben@bagu.org>
2950 Don't display hidden tables in the combo box.
2952 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2954 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2955 code to ignore hidden tables using ArrayLists for the table names and
2957 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2958 tableNames to use ArrayLists instead of String[]. Update getter and setter
2961 2011-03-01 Ben Konrath <ben@bagu.org>
2963 Add support for Date and Time number types.
2965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2966 Implement formatting for Date and Time values. Change the default glom
2967 file to small business example.
2969 2011-03-01 Ben Konrath <ben@bagu.org>
2971 Add support for formatting glom types as specified in the glom file.
2973 Formatting isn't finished yet - I still need to add support for Date
2976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2977 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2978 checks for null values in JDBC cleanup code and catch all exceptions
2979 instead of just SQLExceptions.
2980 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2983 2011-03-01 Ben Konrath <ben@bagu.org>
2985 Use GWT 2.2.0 instead of 2.1.1.
2987 * pom.xml: Change GWT version numbers.
2989 2011-03-01 Ben Konrath <ben@bagu.org>
2991 A few small code cleanups.
2993 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2995 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2996 unnecessary object creation in constructor.
2997 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2998 unnecessary object creation in constructor.
3000 2011-02-28 Ben Konrath <ben@bagu.org>
3002 Add file for TODO list.
3006 2011-02-18 Ben Konrath <ben@bagu.org>
3008 Enable the CellTable Pager when more than 20 rows need to be viewed.
3010 The Pager will automatically become active when the results are larger
3011 than the CellTable size which is currently set to 20 lines.
3013 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
3014 name on debug statment in RPC call in LayoutListDataProvider, add
3015 numRows parameter to LayoutListView constructor, propperly set rowCount
3017 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
3018 name on debug statment in RPC call, use LayoutListTable object in RPC
3019 calls, pass rowCount to LayoutListView.
3020 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
3021 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
3023 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
3024 interface for changes in OnlineGlomService.
3025 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3026 getLayoutListHeaders() to getLayoutListTable() and return
3027 LayoutListTable. Using this object allows me to pass other information
3028 about the LayoutList like the expected number of rows in the result set.
3029 The Connection object from the connection pool is now propperly closed.
3030 Only the requested number of lines are returned to the client in
3032 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
3033 GlomTable and add columnTitles and numRows.
3035 2011-02-18 Ben Konrath <ben@bagu.org>
3037 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
3039 This is a small performance boost. I'll use GlomTable to get the required
3040 layoutlist information.
3042 * src/main/java/org/glom/web/client/OnlineGlom.java:
3043 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3044 * src/main/java/org/glom/web/shared/GlomDocument.java:
3046 2011-02-18 Ben Konrath <ben@bagu.org>
3048 Add option to turn off formatting in JDT formatter preferences.
3050 * .settings/org.eclipse.jdt.core.prefs:
3052 2011-02-18 Ben Konrath <ben@bagu.org>
3054 Rename LayoutList to LayoutListView.
3056 I'm working towards setting things up to easily use MVP when the time
3059 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3061 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3064 2011-02-17 Ben Konrath <ben@bagu.org>
3066 Move LayoutListDataProvider class into LayoutList.java.
3068 * src/main/java/org/glom/web/client/LayoutList.java:
3070 2011-02-17 Ben Konrath <ben@bagu.org>
3072 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3074 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3076 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3077 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3078 from LibGlomServer.java.
3079 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3080 Rename from LibGlomServiceAsync.java.
3081 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3082 Rename from LibGlomServiceImpl.java.
3083 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3085 2011-02-17 Ben Konrath <ben@bagu.org>
3087 Update JDT settings.
3089 * .settings/org.eclipse.jdt.core.prefs:
3091 2011-02-17 Ben Konrath <ben@bagu.org>
3093 Move GWT-RPC objects to shared package (where they should be).
3095 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3096 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3097 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3098 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3099 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3100 org.glom.web.shared package.
3101 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3102 org.glom.web.shared package.
3103 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3104 directory in compilation to javascript.
3106 2011-02-16 Ben Konrath <ben@bagu.org>
3108 Add sort clause to the sql query that grabs table information.
3110 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3111 if one of the columns is a primary key.
3113 2011-02-16 Ben Konrath <ben@bagu.org>
3115 Disable generateAsync feature of gwt-maven.
3117 The generated interface does not correctly match the methods in LibGlomService
3118 and the generated singleton Util inner-class doesn't respect the servlet
3121 * pom.xml: Turn off generateAsync feature.
3122 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3123 with singleton Util inner-class.
3125 2011-02-14 Ben Konrath <ben@bagu.org>
3127 Add LGPL v3 licence notices.
3129 Followed directions listed here:
3130 http://www.gnu.org/licenses/gpl-howto.html
3132 * COPYING: This file is a copy of the GPL v3.
3133 * COPYING.LESSER: This file is a copy of the LGPL v3.
3134 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3136 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3138 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3140 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3142 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3144 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3146 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3149 2011-02-14 Ben Konrath <ben@bagu.org>
3151 Use ArrayList instead of Array in GWT-RPC calls.
3153 Apparently this gives a slight performance boost to the compiled
3156 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3158 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3161 2011-02-14 Ben Konrath <ben@bagu.org>
3163 Access data from a postgres db rather than the example glom file.
3165 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3166 compile down to obfuscated javascript.
3167 * pom.xml: Add c3p0 and postgres JDBC libraries.
3168 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3169 using a postgres db accessed through the c3p0 connection pooling library.
3171 2011-02-14 Ben Konrath <ben@bagu.org>
3173 Update Java formatter settings.
3175 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3177 2011-02-02 Ben Konrath <ben@bagu.org>
3179 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3181 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3183 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3184 the compiled webapp directory that Eclipse uses as we're using Maven now.
3185 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3186 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3188 * pom.xml: Format file, change target Java version to 1.6.
3190 2011-02-02 Ben Konrath <ben@bagu.org>
3192 Add information about a deployment related issue.
3194 * README: Add Notes section with the problem outlined.
3196 2011-02-02 Ben Konrath <ben@bagu.org>
3198 Call Glom.libglom_deinit() when the servlet is shutdown.
3200 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3201 Glom.libglom_deinit() to destroy() method.
3203 2011-01-28 Ben Konrath <ben@bagu.org>
3205 Use generated Util class to get the RPC Async interface.
3207 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3209 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3210 getInstance() method to get a reference to the RPC Async interface.
3211 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3212 getInstance() method to get a reference to the RPC Async interface, remove
3213 the now unused getLibGlomServiceProxy() method.
3215 2011-01-27 Ben Konrath <ben@bagu.org>
3217 Cleanup ChangeLog entry from previous commit.
3219 * ChangeLog: Group logical changes together and add comments.
3221 2011-01-25 Ben Konrath <ben@bagu.org>
3223 Convert to gwt-maven project.
3225 * .gitignore: Update for new project structure.
3226 * README: New file with a link to the online documentation.
3227 * pom.xml: The generated maven configuration file with some tweaks.
3229 Add / update Eclipse settings. These files are a merge of the files that
3230 were generated with the gwt-maven plugin and the files we were previously
3234 * .settings/.jsdtscope:
3235 * .settings/com.google.gdt.eclipse.core.prefs:
3236 * .settings/com.google.gwt.eclipse.core.prefs:
3237 * .settings/org.eclipse.jdt.core.prefs:
3238 * .settings/org.eclipse.wst.common.component: