1 2011-12-05 Ben Konrath <ben@bagu.org>
3 Remove unnecessary getPrimaryKeyField() method.
5 getPrimaryKeyFieldForTable(String) has been renamed to
6 getPrimaryKeyField(String).
8 * src/main/java/org/glom/web/server/database/DBAccess.java:
9 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
10 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
12 2011-12-05 Ben Konrath <ben@bagu.org>
14 Add string representation of TypedDataItem value to conversion error message.
16 * src/main/java/org/glom/web/server/Utils.java: Logging the error
17 message was extracted into its own method to avoid duplication.
19 2011-12-05 Ben Konrath <ben@bagu.org>
21 Add type checking to navigation primary key value creation.
23 Create navigation primary key only if the expected type from the Glom
24 document matches the type returned by the SQL query.
26 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
28 2011-12-05 Ben Konrath <ben@bagu.org>
30 Rename a couple of variables in RelatedListNavigation.
32 This is a rename-only refactor.
34 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
36 2011-12-05 Ben Konrath <ben@bagu.org>
38 Move getListLayoutGroup() into getListViewLayoutGroup().
40 This removes getListLayoutGroup(). It was only being called by
41 getListViewLayoutGroup().
43 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
45 2011-12-05 Ben Konrath <ben@bagu.org>
47 Remove check for LayoutItem_Portal in list table method.
49 This check is no longer necessary because the method isn't being used
50 to create the LayoutItemPortal DTO.
52 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
54 2011-12-05 Ben Konrath <ben@bagu.org>
56 Properly support related list navigation.
58 Navigation from the "Repository Analyzer -> Package Scans ->
59 Dependencies" related table wasn't working because the primary key for
60 related tables wasn't being set properly. This commit fixes the
63 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
64 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
65 doesn't set the primary key properly for related list tables.
66 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
67 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
68 useful for getting the primary key for list view tables and for related
70 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
71 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
72 Move code to set the primary key for the table from the abstract
73 ListDBAccess class to ListViewDBAccess as it's only correct for list
75 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
76 Properly add primary key to related list tables.
78 2011-12-02 Ben Konrath <ben@bagu.org>
80 Properly set the horizontal alignment of fields.
82 This fix is for both the list tables and the details view.
84 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
85 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
86 to set the horizontal alignment of fields.
88 2011-12-02 Ben Konrath <ben@bagu.org>
90 Display currency codes in the details view.
92 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
94 2011-12-02 Ben Konrath <ben@bagu.org>
96 Avoid duplicate JNI call.
98 JNI is not as efficient as pure Java and this is an easy (and small)
101 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
102 Use previously retrieved value for whereClauseToTableName instead of
105 2011-12-02 Ben Konrath <ben@bagu.org>
107 Rename a couple of variables in RelatedListNavigation.
109 This is a rename-only refactor.
111 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
113 2011-12-02 Ben Konrath <ben@bagu.org>
115 Indicate clearly that a mismatched primary key type is a bug.
117 * src/main/java/org/glom/web/server/Utils.java: Change log level from
118 warning to error. Add 'This is a bug.' to message.
120 2011-12-02 Ben Konrath <ben@bagu.org>
122 Update / fix some comments.
124 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
126 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
128 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
129 Fix comments. Add some TODOs.
131 2011-12-02 Ben Konrath <ben@bagu.org>
133 Enable navigation to details view with string primary key from related list.
135 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
136 Create a text primary key value when return type of result is
137 java.sql.Types.VARCHAR.
139 2011-12-02 Ben Konrath <ben@bagu.org>
141 Use checkboxes for booleans in the details view.
143 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
145 2011-12-01 Ben Konrath <ben@bagu.org>
147 Improve performance of related list height calculation.
149 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
150 Put code to calculate the expected height in a static initializer so
151 that that it's only called once.
153 2011-12-01 Ben Konrath <ben@bagu.org>
155 Show related list tables in notebooks (again).
157 Calculate the height of the related list tables so the Notebook can be
158 set the correct height. The height of the related list table is also needed by
159 FlowTable to be able decide how to create the layout.
161 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
162 and set the Portal height based on the height of the related list
163 table and the Portal container.
164 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
165 Add method to calculate the height of the related list tables.
166 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
167 * src/main/webapp/style.css: Add css class for Pager. This is needed to
168 calculate the height of the Pager widget.
170 2011-12-01 Ben Konrath <ben@bagu.org>
172 Use CellTable API for table property instead of setting style on Element.
174 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
176 2011-12-01 Ben Konrath <ben@bagu.org>
178 Make ListViewTable and RelatedListTable a consistent height.
180 The tables are now a consistent height regardless of the contents of
181 the table. A hidden button is added to empty rows to ensure that the
182 height of these rows will match the height of rows with data.
184 A navigation button column is now added to every table. The width of
185 the navigation column is set to 0px when a RelatedListTable shouldn't
186 have navigation buttons. This maintains the a consistent row height in
187 tables that don't show the navigation buttons.
189 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
190 navigation column when not needed.
191 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
192 arguments for navigation button to constructor of ListViewTable.
193 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
194 hidden button for empty data rows.
195 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
196 arguments for navigation button to constructor.
197 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
198 create navigation buttons. Add hideNavigationButtons() method.
199 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
200 arguments for navigation button to constructor.
202 2011-12-01 Ben Konrath <ben@bagu.org>
204 Use 'visibility: hidden' in Utils.getWidgetHeight().
206 This is better choice because hidden elements are invisible, don't
207 respond to events and are not part of the tab order. They will,
208 however, take up space which is required to be able to calculate the
209 height of the widget.
211 * src/main/java/org/glom/web/client/Utils.java:
213 2011-12-01 Ben Konrath <ben@bagu.org>
215 Use Utils.getWidgetHeight() in FlowTable.
217 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
219 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
221 2011-12-01 Ben Konrath <ben@bagu.org>
223 Put the details css class name on the correct table column.
225 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
227 2011-11-30 Ben Konrath <ben@bagu.org>
229 Update for java-libglom API change.
231 The getters and setters on FieldFormatting and NumericFormat were
232 changed to remove the 'M'.
234 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
236 2011-11-29 Ben Konrath <ben@bagu.org>
238 Only allow RelatedListTables in Portals.
240 * src/main/java/org/glom/web/client/ui/details/Portal.java:
242 2011-11-29 Ben Konrath <ben@bagu.org>
244 Only create a contents panel for Portals when title is being set.
246 * src/main/java/org/glom/web/client/ui/details/Portal.java:
248 2011-11-29 Ben Konrath <ben@bagu.org>
250 Set TabLayoutPanel height based on calculated height its widgets.
252 This is a potential fix for this bug:
254 https://bugzilla.gnome.org/show_bug.cgi?id=665133
256 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
258 2011-11-29 Ben Konrath <ben@bagu.org>
260 Align details field labels and data with the Open buttons.
262 * src/main/webapp/style.css:
264 2011-11-29 Ben Konrath <ben@bagu.org>
266 Remove unnecessary <div> in the Notebook widget.
268 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
269 method to get container FlowPanel (<div>).
270 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
271 initWidget() method directly on the TabLayoutPanel widget instead of
272 Group's container widget.
274 2011-11-29 Ben Konrath <ben@bagu.org>
276 Don't add group titles for Portals in Notebooks.
278 This reverts the previous patch and fixes a bug I introduced with
279 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
281 * src/main/java/org/glom/web/client/ui/details/Group.java:
282 * src/main/java/org/glom/web/client/ui/details/Portal.java:
284 2011-11-28 Ben Konrath <ben@bagu.org>
286 Remove unused boolean argument in Portal constructor.
290 * src/main/java/org/glom/web/client/ui/details/Group.java:
291 * src/main/java/org/glom/web/client/ui/details/Portal.java:
293 2011-11-28 Ben Konrath <ben@bagu.org>
295 Remove hack for glom 1.18 style glom files.
297 * src/main/java/org/glom/web/client/ui/details/Group.java:
298 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
299 * src/main/java/org/glom/web/client/ui/details/Portal.java:
301 2011-11-28 Ben Konrath <ben@bagu.org>
303 Use Gda Value version of primary key to log result too large error.
305 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
307 2011-11-28 Ben Konrath <ben@bagu.org>
309 Don't use TypedDataItem.getText() for Unknown types from the URL.
311 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
312 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
313 instead of getText().
314 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
315 String field and getUnknown() method.
317 2011-11-28 Ben Konrath <ben@bagu.org>
319 Log an error message when the java-libglom .so is not present.
321 The error message was being set in the exception but not logged.
323 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
325 2011-11-28 Ben Konrath <ben@bagu.org>
327 Ignore LayoutItem_CalendarPortals.
329 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
330 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
332 2011-11-28 Ben Konrath <ben@bagu.org>
334 Extract method for creating the LayoutItemPortal DTO.
336 Just breaking the code up into smaller chunks.
338 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
340 2011-11-28 Ben Konrath <ben@bagu.org>
344 This should have been added with the refactor. Oops!
346 * src/main/java/org/glom/web/shared/TypedDataItem.java:
348 2011-11-28 Ben Konrath <ben@bagu.org>
350 Create primary key value from URL string using type from Glom document.
352 See this bug, comments 19 - 25:
354 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
356 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
357 create a TypeDataItem for the primary key here when loading from a
358 URL. Show the same string for the primary key value as was received
359 from the URL string (when loading from a URL).
360 * src/main/java/org/glom/web/server/Utils.java: Update method for
361 creating the Gda Value from the TypeDataItem to properly deal with
362 creating a Gda Value based on the Glom document type for the primary
363 key value string when loading from a URL.
364 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
365 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
366 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
367 Update for changed method name.
369 2011-11-27 Ben Konrath <ben@bagu.org>
371 Rename PrimaryKeyItem to TypedDataItem.
373 The name PrimaryKeyItem suggests what the class should be used for.
374 TypedDataItem is a neutral name that describes the class better.
376 This is a rename-only refactor.
378 * src/main/java/org/glom/web/client/OnlineGlomService.java:
379 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
380 * src/main/java/org/glom/web/client/Utils.java:
381 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
382 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
383 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
384 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
385 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
386 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
388 * src/main/java/org/glom/web/server/Utils.java:
389 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
390 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
391 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
392 * src/main/java/org/glom/web/shared/NavigationRecord.java:
394 2011-11-25 Ben Konrath <ben@bagu.org>
396 Improve Gda Value conversion from PrimaryKeyItem.
398 The value from the PrimaryKeyItem is only used if its type match the
399 type from the glom document.
401 * src/main/java/org/glom/web/server/Utils.java:
403 2011-11-25 Ben Konrath <ben@bagu.org>
405 Manually check if the java-liblgom .so is visible to the JVM.
407 It seems that Tomcat has problems when a static initializer throws an
408 exception. This check is done before the first method call into
409 java-libglom so that execution doesn't continue if the .so is not
412 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
414 2011-11-25 Ben Konrath <ben@bagu.org>
416 Improve browser configuration error messages.
420 https://bugzilla.gnome.org/show_bug.cgi?id=662792
422 * src/main/java/org/glom/web/client/OnlineGlomService.java:
423 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
424 getConfigurationErrorMessage() method.
425 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
426 Get and display a specific configuration error message when no Glom
428 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
429 Implement getConfigurationErrorMessage() method. Surround configuration
430 code in the init() method with a try/catch block. This allows the
431 errors to be caught while keeping the servlet available to retrieve the
432 configuration error message.
434 2011-11-25 Ben Konrath <ben@bagu.org>
436 Don't use Strings to hold primary key values.
438 The primary key values are now held in a new data object
439 (PrimaryKeyItem) that holds type information and the primary key value
440 using the correct type.
442 * src/main/java/org/glom/web/client/OnlineGlomService.java:
443 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
444 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
445 PrimaryKeyItem instead of String to hold the primary key value.
446 * src/main/java/org/glom/web/client/Utils.java: Remove
447 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
448 PrimaryKeyItem based on the GlomFieldType and the DataItem.
449 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
450 PrimaryKeyItem instead of String to hold the primary key value. Load
451 document selection page when the documentID has not been set correctly.
452 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
453 DetailsPlace -> URL and URL -> DetailsPlace conversion with
455 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
456 Return empty string for URL instead of "null".
457 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
458 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
459 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
460 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
461 PrimaryKeyItem instead of String to hold primary key values.
462 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
463 PrimaryKeyValue to a Gda Value.
464 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
465 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
466 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
467 Replace temporary database access code that uses the PrimaryKeyValue to
468 Gda Value conversion.
469 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
470 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
471 PrimaryKeyItem instead of String.
472 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
473 hold primary key values.
475 2011-11-24 Ben Konrath <ben@bagu.org>
477 Use newly added java-libglom API to create queries.
479 This isn't finished. I still need to stop using Strings for primary key
480 values in the client code.
482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
483 libglom to use fake connections so that retrieving the query string will
485 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
486 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
487 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
488 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
489 Use the newly added libglom sql methods and classes to create the
490 query. Add temporary hack to convert primary value strings to Gda
493 2011-11-23 Ben Konrath <ben@bagu.org>
495 Don't explicitly set the height of Portals.
497 See comments 6 - 10 of this bug for details:
499 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
501 * src/main/java/org/glom/web/client/ui/details/Portal.java:
503 2011-11-23 Ben Konrath <ben@bagu.org>
505 Use an HTML table instead of CSS for the FlowTable layout.
507 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
508 GWT's FlexTable to implement the FlowTable.
509 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
511 2011-11-18 Ben Konrath <ben@bagu.org>
513 Add boolean example to HTML table mockup.
515 * mockups/details-view-html-tables-text-entries.html:
517 2011-11-17 Ben Konrath <ben@bagu.org>
519 Ensure the pager buttons are always visible for related lists.
521 To accomplish this, I've turned off text wrapping in the list view and
522 related list tables for both the header and data text. The related list
523 table now has a fixed layout so the it doesn't overflow its container.
524 This is required to ensure that the cell text is clipped when it
525 overflows the cell and an ellipsis is added to the right side of the
526 cell when text is clipped.
528 A fixed table layout for the related list table in the details view
529 seems what we want for the details view anyway, so the side-effect is
532 The ellipsis will only be displayed in Firefox >= 7.
536 https://bugzilla.gnome.org/show_bug.cgi?id=662930
538 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
539 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
540 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
542 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
543 Set the 'table-layout: fixed' CSS property to the related list table.
544 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
545 'white-space: nowrap;' CSS property on both the list view and the
548 2011-11-16 Ben Konrath <ben@bagu.org>
550 Rework the fix for empty notebook tab labels.
552 Setting the empty group titles with its name caused problems for the
553 details layout. Instead of using libglom's
554 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
555 to the client when the title is empty. This allows the Notebook to use
556 the name when the title is empty without affecting anything else.
558 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
559 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
561 2011-11-16 Ben Konrath <ben@bagu.org>
563 Set group titles with name when title is empty.
565 This fixes a problem with an empty notebook tab label in the Lesson
566 Planner document. The forth tab in the notebook should be "Internet":
568 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
570 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
571 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
574 2011-11-16 Ben Konrath <ben@bagu.org>
576 Remove whitespace from the configured username properties.
578 This assumes that usernames won't have whitespace at the beginning
579 or end. But I think this is a reasonable assumption.
581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
582 String.trim() to remove the whitespace from the username properties.
584 2011-11-15 Ben Konrath <ben@bagu.org>
586 Add details view mockup with HTML tables and text entries.
588 This is from the attachment on this bug:
590 https://bugzilla.gnome.org/show_bug.cgi?id=663109
592 * mockups/details-view-html-tables-text-entries.html:
594 2011-11-15 Ben Konrath <ben@bagu.org>
596 Add space between the columns of the flow table.
600 https://bugzilla.gnome.org/show_bug.cgi?id=662918
602 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
603 space between columns in the flow table.
605 2011-11-15 Ben Konrath <ben@bagu.org>
607 Add backup files to the .gitignore.
609 * .gitignore: Ignore files that end with ~.
611 2011-11-09 Ben Konrath <ben@bagu.org>
613 Use latest release of gwt-log.
615 Gwt-log releases are now being submitted to the maven central
616 repository so manual installation of the jar is no longer required.
618 * pom.xml: Update version and groupId of gwt-log dependency.
620 2011-10-31 Ben Konrath <ben@bagu.org>
622 Don't use GWT numeric formatting to override the glom currency formatting.
624 Currencies are now displayed like they are in Glom. See this bug:
626 https://bugzilla.gnome.org/show_bug.cgi?id=646216
628 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
630 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
631 currency code to constructor and set it when the cell is rendered.
632 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
633 currency code to the constructor of the NumericCell.
635 2011-10-27 Ben Konrath <ben@bagu.org>
637 Require the latest release of java-libglom (1.17.4).
641 2011-10-26 Ben Konrath <ben@bagu.org>
643 Add style to Notebook that matches current theme.
645 It's not the best style in the world but it's better than the default.
647 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
648 padding at the bottom of the child widgets.
649 * src/main/webapp/style.css: Add style for the Notebook.
651 2011-10-26 Ben Konrath <ben@bagu.org>
653 Move servlet initialization code to overridden init method.
655 This is half of the solution to getting proper error messages
656 displayed when configuration errors occur. Here's the relevant bug:
658 https://bugzilla.gnome.org/show_bug.cgi?id=662792
660 The rest of the solution involves surrounding the init method with a
661 try/catch block and setting a global variable with the error /
662 exception. A new async method should be created to retrieve and display
663 the error message / exception.
665 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
666 code from constructor to init method adding exceptions as needed.
668 2011-10-26 Ben Konrath <ben@bagu.org>
670 Add script to monitor and restart tomcat if required.
672 * utils/check-and-recover-tomcat.py: New file.
674 2011-10-26 Ben Konrath <ben@bagu.org>
676 Display the correct number of data items in the pager.
680 https://bugzilla.gnome.org/show_bug.cgi?id=661441
682 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
683 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
684 The implementation is the same for both tables: Keep track of the
685 number of non-empty rows and fire and RowCountChangeEvent after the data has
687 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
688 custom Pager class that subclasses SimplePager to handle displaying
689 the correct number when empty rows have been added.
691 2011-10-26 Ben Konrath <ben@bagu.org>
693 Correct error in previous commit.
695 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
696 eventBus parameter from listView.setCellTable().
698 2011-10-26 Ben Konrath <ben@bagu.org>
700 Fix error in TODO comment.
702 * src/main/java/org/glom/web/client/activity/ListActivity.java:
704 2011-10-24 Ben Konrath <ben@bagu.org>
706 Create Notebook widgets to the details view.
708 This isn't finished just yet - I still need to create a reasonable
709 style to match the current theme.
711 * src/main/java/org/glom/web/client/Utils.java: Add method for
712 calculating the height of a widget. This is used in the Notebook class.
713 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
714 new constructor method in Group.
715 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
716 method for creating child widget that can be used by subclasses
717 like Notebook. New constructor that allows disabling the group
718 titles - Notebooks don't set a group title for their child groups.
719 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
720 to make Notebooks using GWT's TabLayoutPanel.
721 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
722 constructor that allows disabling the group titles.
723 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
724 LayoutItemNotebook DTO.
725 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
726 DTO for Notebooks. It's just an empty class for now but we might need
727 it to transfer some specific information in the future.
729 2011-10-21 Ben Konrath <ben@bagu.org>
731 Add navigation buttons to related list tables.
733 * src/main/java/org/glom/web/client/OnlineGlomService.java:
734 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
736 method getSuitableRecordToViewDetails() for getting the table name
737 and primary key value for related list navigation buttons.
738 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
739 private cell renderer class to get the navigation information for
740 related list tables from the server. Extract the navigation
741 processing code from the details cell navigation and use it for the
742 related list navigation as well.
743 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
744 cell renderer class for the details open buttons. This was needed
745 because the related list navigation buttons and the list view
746 navigation buttons need to react differently when clicked.
747 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
748 the onEnterKeyDown() method because it's now overriden in the
749 subclasses that are specific to the related list tables and the list
751 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
752 the vertical size a little because the buttons add a bit of vertical
753 space to table. This is not a perfect solution because the vertical
754 size of with table fewer than 5 rows will be a little smaller.
755 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
756 changes in how navigation buttons are handled.
757 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
758 getSuitableRecordToViewDetails() using the new RelatedListNavigation
759 database access object.
760 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
761 to find the portal for a given relationship name from
762 RelatedListDBAccess. Add method to find a primary key field for a
764 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
765 Move code to find the portal for a given relationship name to
767 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
768 New file: database access object for getting the related list
769 navigation information (the table name and the primary key value).
770 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
771 DTO for transferring a table name to navigate to and a primary key
773 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
774 boolean and getter/setter to specifies if the related list should add
777 2011-10-24 Murray Cumming <murrayc@murrayc.com>
779 Use the master branch of java-libglom
781 * pom.xml: Depend on java-libglom 1.19 instead.
783 This is the master branch. See also the libglom-1-18 branch.
785 2011-10-11 Ben Konrath <ben@bagu.org>
787 Enable the open navigation button when the data has been set.
789 This avoids having active buttons that don't do anything when the data
792 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
794 2011-10-11 Ben Konrath <ben@bagu.org>
796 Use IsWidget interface for FlowTableItem.
798 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
799 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
801 2011-10-11 Ben Konrath <ben@bagu.org>
803 Remove GWT styling from open button in details view.
805 There are still some issues with how the details cell is arranged but
806 this should be made to match Glom 1.20. I'm going to leave fixing this
807 until I have Glom 1.20 up and running.
809 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
810 style name on open button.
811 * src/main/webapp/style.css: Move and edit details-navigation class.
812 Re-arrange some classes to make them appear in the same order as the
815 2011-10-07 Ben Konrath <ben@bagu.org>
819 * .gitignore: Ignore new cache directory.
820 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
821 * pom.xml: Change GWT and maven plugin to 2.4.0.
822 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
824 * src/main/java/org/glom/web/client/ClientFactory.java:
825 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
826 * src/main/java/org/glom/web/client/OnlineGlom.java:
827 Update source for API changes.
828 * utils/build-onlineglom-war.sh: Remove cache directory before the
831 2011-10-07 Ben Konrath <ben@bagu.org>
833 Add navigation buttons in the details view.
835 This isn't finished but I thought I'd commit what I have as it's a
836 pretty good start. I still need to:
838 1. Change the style so that it fits better into the current theme
839 2. Adjust the details cell to expand as much as possible.
841 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
842 click handlers to navigation buttons in the DetailsCells. Create a
843 refreshData() method to get just the data from the server without the
845 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
846 Update the tableSelector and browser title when the table name
847 changes without using the tableSelector.
848 * src/main/java/org/glom/web/client/ui/DetailsView.java:
849 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
850 getDetailsCells() to getCells(). Update variable names.
851 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
852 method to set click handler on navigation button. Rename a few
853 variables. Add navigation buttons where needed.
854 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
855 variables and methods.
856 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
857 navigation boolean and navigation table as required in the
859 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
860 variables for navigation along with getter/setter methods.
862 2011-10-07 Ben Konrath <ben@bagu.org>
864 Rename Field to DetailsCell.
866 This is a refactor-only commit. No functionality has been added or
869 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
870 Update variable and method names.
871 * src/main/java/org/glom/web/client/ui/DetailsView.java:
872 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
873 variable and method names.
874 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
876 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
877 variable and method names.
879 2011-10-07 Ben Konrath <ben@bagu.org>
881 Create separate methods for layout and data the details view.
883 This is a refactor-only commit. No functionality has been added or
886 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
887 private methods: setData(), createLayout().
889 2011-10-07 Ben Konrath <ben@bagu.org>
891 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
893 This is part of a change to get navigation buttons in the details view
894 but it should have been done this way from the start.
896 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
897 for method name change in TableSelectionView.
898 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
899 Create TableChangeEvent and set the browser title using the
900 TableSelectionView API.
901 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
902 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
903 Change getSelectedTable() to getSelectedTableName(). Add
904 getSelectedTableTitle().
906 2011-10-07 Ben Konrath <ben@bagu.org>
908 Use primaryKeyValue naming convention in constructor of DetailsPlace.
910 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
912 2011-10-07 Ben Konrath <ben@bagu.org>
914 Update TableChangeEvent to use newTableName naming convention.
916 This makes the class more consistent with GWT naming conventions.
918 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
919 Update for method name change in TableChangeEvent.
920 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
921 for method name change in TableChangeEvent.
922 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
923 newTableName variable and getter method. Make toDebugString()
926 2011-09-30 Ben Konrath <ben@bagu.org>
928 Disable the pager in the list tables when the data row count is less than the minimum.
930 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
931 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
933 2011-09-30 Ben Konrath <ben@bagu.org>
935 Add empty rows to the end of related list and list view tables.
937 I also extracted the cell rendering classes from the ListTable because
938 the code was becoming a little crazy with all the anonymous inner
939 classes. My plan is to use these cell rendering classes in the details
940 view as well so this refactor will be needed for that change.
942 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
943 set the row count in related list tables if the data has more rows
944 than the minimum number of rows visible.
945 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
946 row count in list view tables if the data has more rows than the
947 minimum number of rows visible.
948 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
949 for rendering TYPE_BOOLEAN cells. The code was extracted from the
951 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
952 for rendering TYPE_NUMERIC cells. The code was extracted from the
954 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
955 class for rendering cells with buttons in list views. The code was
956 extracted from the ListTable class.
957 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
958 for rendering TYPE_TEXT cells. The code was extracted from the
960 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
961 Add empty rows to the end of the data if required. Implement
962 ListTable.getMinNumVisibleRows().
963 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
964 cell renderer code to public classes. Return null in
965 Column.getValue() for empty rows. Add new abstract method:
966 getMinNumVisibleRows(). Move code to set the row count of the list view
967 table to ListViewImpl.
968 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
969 empty rows to the end of the data if required. Implement
970 ListTable.getMinNumVisibleRows().
973 2011-09-27 Ben Konrath <ben@bagu.org>
975 Use GWT.log for client-side debugging statements.
977 These are optimized out when deployed so I should have used this method
978 in the first place. These statements will eventually be replaced with some sort
979 of notification in the browser.
981 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
982 * src/main/java/org/glom/web/client/activity/ListActivity.java:
983 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
984 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
985 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
987 2011-09-27 Ben Konrath <ben@bagu.org>
989 Put tableselector on the right, back to list link on right.
991 The idea is that the table selector is acting like a label for the
992 currently displayed table so it should be placed below the document title. This
993 puts the table title in a similar position to where it is in Glom.
995 * mockups/details-contacts.html:
996 * mockups/details-projects.html:
997 * mockups/listview-contacts.html:
998 * mockups/listview-projects.html:
1000 Update mockups to match how the interfaces currently look.
1001 * src/main/webapp/style.css: Swap positions of backlink with the table
1002 selector. Add some space on the left side of the table selector to
1003 line things up with the document title.
1005 2011-09-27 Ben Konrath <ben@bagu.org>
1007 Add field colouring to details view.
1009 This change re-works how field colouring works. The colour formatting
1010 information is now set to the client with the layout information instead of
1011 with the data. This eliminates the need to send the same colour strings for
1012 data in list view column when colour information is set.
1014 In order to set an alternate colour for negative numeric values, the
1015 number is now sent to client and formatted with the GWT NumberFormat class.
1017 This change also fixes:
1019 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1021 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1022 internationalization framework which is needed for client side numeric
1024 * src/main/java/org/glom/web/client/Utils.java: New file for some
1025 client static utility methods.
1026 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1027 the DataItem object to the Field class. Use a utility method to
1028 create the foreignKeyValue string.
1029 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1030 alignment and text colours in the constructor. Add setData(DataItem)
1031 method. Remove setText(String) method.
1032 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1033 colour information to GlomTextCell. Create and use GlomNumberCell for
1034 rendering numbers. Use utility method to get the string for the
1035 primary key of the key provider. Re-work how the horizontal alignment
1037 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1038 formatting to layout information. Methods for converting the libglom
1039 formatting information were moved from DBAccess.
1040 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1041 numeric formatting (it's now done on the client side). Don't set text
1042 colours in DataItem. Move libglom formatting conversion methods to
1044 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1045 getters/setters for text colour information.
1046 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1047 for transferring the libglom NumericFormat information to the client.
1048 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1049 and getters/setters for: GlomNumericFormat, background colour and
1050 foreground colour strings.
1052 2011-09-26 Ben Konrath <ben@bagu.org>
1054 Simplify code that iterates through the LayoutGroup.
1056 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1058 2011-09-26 Ben Konrath <ben@bagu.org>
1060 Accept Eclipse formatting for OnlineGlomServiceAsync.
1062 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1064 2011-09-26 Ben Konrath <ben@bagu.org>
1066 Don't use the ListDBAccess classes to get the primary key layout information.
1068 This was causing a bug where the wrong index for the hidden primary key
1069 was being sent to the client.
1071 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1072 primary key while creating the LayoutGroup DTO. Create a
1073 LayoutItemField DTO for hidden primary keys. Don't use the
1074 RelatedListDBAccess because it was only used for getting the primary
1076 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1077 access modifier from public to protected for getPrimaryKeyField() and
1078 getPrimaryKeyLayoutItemField().
1079 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1080 abstract method getExpectedResultSize() because RelatedListDBAccess
1081 doesn't have enough info to implement it.
1082 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1083 Remove @Override for getExpectedResultSize().
1084 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1085 Remove method getExpectedResultSize().
1087 2011-09-23 Ben Konrath <ben@bagu.org>
1089 Log which layout (list or details) the ignored item is from.
1091 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1093 2011-09-23 Ben Konrath <ben@bagu.org>
1095 Remove annotations that turn off code formatting in DataItem.
1097 * src/main/java/org/glom/web/shared/DataItem.java:
1099 2011-09-23 Ben Konrath <ben@bagu.org>
1101 Rename GlomField to DataItem and update associated methods.
1103 This is a rename-only refactor. No functionality has been added or
1106 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1107 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1108 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1109 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1110 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1111 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1112 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1113 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1114 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1115 * src/main/java/org/glom/web/server/database/DBAccess.java:
1116 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1117 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1118 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1119 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1120 * src/main/java/org/glom/web/shared/DataItem.java:
1121 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1122 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1124 2011-09-23 Ben Konrath <ben@bagu.org>
1126 Rename GlomDocument to DocumentInfo and update associated methods.
1128 This is a rename-only refactor. No functionality has been added or
1131 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1132 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1133 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1134 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1135 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1136 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1137 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1139 2011-09-20 Ben Konrath <ben@bagu.org>
1141 Require java-libglom 1.17.3.
1143 This picks up the fix for the seg fault problem with the Scenes table
1144 in the Openismus Film Manager example.
1148 2011-09-20 Ben Konrath <ben@bagu.org>
1150 Change the way sort clause is added for primary key when no sort clause is requested.
1152 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1153 before the sort clause is created. When a sort clause is not requested, the
1154 sort clause is created by finding the primary key in the LayoutFieldVector
1157 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1159 2011-09-20 Ben Konrath <ben@bagu.org>
1161 Log error message if no documents are found in the configured directory.
1163 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1164 Extract the glom file extension string to a private static final class
1165 variable (mostly as syntactic sugar). Accept a minor formatting change.
1166 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1167 the example glom.document.directory configuration property to make it
1168 more clear that it can any directory, not just the home directory.
1170 2011-09-18 Ben Konrath <ben@bagu.org>
1172 Add related lists to details view.
1174 The related list table has support for paging and sorting just like the
1175 table in the list view.
1177 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1178 SQL queries for the related list tables.
1179 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1180 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1181 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1182 Rename getList methods to getListView and add comments. Remove
1183 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1184 it being unused. Add methods: getDetailsLayoutAndData(),
1185 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1186 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1187 Create the layout and set the data for the fields in one async call
1188 instead of two. Create related lists where appropriate.
1189 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1190 for method name changes in OnlineGlomService.
1191 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1192 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1193 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1195 * src/main/java/org/glom/web/client/ui/ListView.java:
1196 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1197 tableName from setCellTable(). Create a ListViewTable instead of
1199 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1200 represent a data field in the details view.
1201 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1202 from addDetailsCell() to Field class. Keep track of the Fields and
1203 Portals in the details view.
1204 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1205 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1206 and add a method to get it. Add method to set the contents of the
1208 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1209 New class for related list tables. This class has the data provider
1210 for the related list table.
1211 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1212 abstract class which is the base class for the ListViewTable and the
1214 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1215 New class for list view tables. This class has the data provider for
1216 the list view table.
1217 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1218 methods for related list tables. Add more information to the
1219 LayoutItemField and LayoutItemPortal DTOs.
1220 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1221 Remove debugging print statement.
1222 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1223 Remove debugging print statements. Add primary key field to SQL count
1225 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1226 Remove unnecessary LayoutFieldVector parameter from
1227 getResultSizeOfSQLQuery() method.
1228 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1229 New class for related list table database access.
1230 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1231 class that is a wrapper DTO for details view layout and data.
1232 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1233 new 'fromField' string to this DTO.
1234 * src/main/webapp/style.css: Remove bottom margin and override top
1237 2011-09-15 Ben Konrath <ben@bagu.org>
1239 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1241 This sets things up to make it easier to add the data retrieval for
1242 related lists (portals). No user noticeable changes were made with
1245 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1246 class has the code to retrieve the layouts and access the
1247 database using the new database helper classes.
1248 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1249 Most of the functionality has been removed from this class. This
1250 class now represents the public interface for the client side
1251 code. It also deals with configuring the servlet and cleaning
1252 things up when the servlet is stopped.
1253 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1254 of static methods into this utility class.
1255 * src/main/java/org/glom/web/server/database/DBAccess.java:
1256 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1257 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1258 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1259 These classes have the database retrieval code. The class hierarchy
1260 has been setup to make it easy to reuse code for similar
1263 2011-09-06 Ben Konrath <ben@bagu.org>
1265 Create separate classes for list table code and the data provider.
1267 As part of this refactor, I also split up the code a bit to make it
1270 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1271 table code to two new classes (below).
1272 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1273 with code from ListViewImpl.
1274 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1275 New file with code from ListViewImpl.
1277 2011-09-06 Ben Konrath <ben@bagu.org>
1279 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1281 This fixes the LayoutItemPortal DTO to match the libglom layout object
1284 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1286 2011-09-01 Ben Konrath <ben@bagu.org>
1288 Set title of Portals in the Details View.
1290 * pom.xml: Bump required version of java-libglom to 1.17.1.
1291 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1292 widget creation to its own class. Add comments to constructor.
1293 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1294 The code is mostly from the Group class with the title now set.
1295 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1296 title of Portal. Update some comments. Fix some code formatting.
1298 2011-09-01 Ben Konrath <ben@bagu.org>
1300 Remove TODO comment for the flow table column width.
1302 The flow table column width is working correctly and doesn't need to be
1303 changed. See this mailing list post for more info:
1305 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1307 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1309 2011-08-27 Ben Konrath <ben@bagu.org>
1311 Add document title (database name) to top of the browser page.
1313 I added the document title to the TableSelecitonView but that will
1314 change if / when we add a view that doesn't require table selection.
1316 * mockups/details-contacts.html:
1317 * mockups/details-projects.html:
1318 * mockups/listview-contacts.html:
1319 * mockups/listview-projects.html:
1320 * mockups/style.css: Add document title to mockups to keep things
1322 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1323 sizes to account for the document title.
1324 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1325 Set the document title when it has been retrieved from the server.
1326 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1327 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1328 and implement setDocumentTitle(String) method.
1329 * src/main/webapp/style.css: Add ID for document title style.
1331 2011-08-25 Ben Konrath <ben@bagu.org>
1333 Add NavigationType enum to LayoutItemPortal DTO.
1335 This is the start of adding support for Portals to the Details View.
1337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1338 LayoutItem_Portal.navigation_type enum from libglom to
1339 LayoutItemPortal.NavigationType enum.
1340 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1341 NavigationType enum, field for storing the NavigationType and getter
1344 2011-08-25 Ben Konrath <ben@bagu.org>
1346 Implement the flow table layout in the Details View.
1348 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1349 FlowTable to Group to account for the renamed class.
1350 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1351 File. This is a container widget that implements the Glom details view
1352 flow table behaviour.
1353 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1354 org/glom/web/client/ui/FlowTable.java.
1355 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1356 so that the size of the subgroups are a closer match to the size of
1357 the Glom subgroups. This makes the flowtable layout match the layout
1358 in Glom for the Music Collection example file.
1360 2011-08-16 Ben Konrath <ben@bagu.org>
1362 Create container element for LayoutItemPortal in Details View.
1364 This will help me develop the layout for the FlowTable.
1366 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1367 fieldPanel variable to detailsCell.
1369 2011-08-15 Ben Konrath <ben@bagu.org>
1371 Set the height of the data element in the Details View.
1373 I changed the InlineLabels (text in a span element) to Labels (text in
1374 a div element) so that I could set the height of the details-data
1375 elements instead of the details-cell parent elements. This allows the
1376 the details-data element to display the correct height if style is
1377 applied that shows the height.
1379 This change has the added benefit of allowing the order of the labels
1380 and data elements to be changed for right-to-left languages.
1382 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1383 InlineLabels to Labels.
1384 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1385 InlineLabels to Labels. Set the height of the data element.
1386 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1387 multiline text height in the Formatting DTO.
1388 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1389 for multiline height along with getter and setter methods.
1390 * src/main/webapp/style.css: Adjust style to account for the change
1391 from span elements to div elements in the details cell.
1393 2011-08-15 Ben Konrath <ben@bagu.org>
1395 Make the List View appearance match the mockups.
1397 It doesn't match exactly but it's much better than it was.
1399 * mockups/listview-contacts.html: Remove unused css classes.
1400 * mockups/listview-projects.html: Remove unused css classes.
1401 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1402 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1403 for mainPanel instead of VerticalPanel (table). Set style name on
1404 CellTable. Set style name on Details column. Right-align Details
1406 * src/main/webapp/style.css: Adjust properties to match the mockups.
1408 2011-08-12 Ben Konrath <ben@bagu.org>
1410 Add better support for subgroups in the details view.
1412 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1413 changed FlowTable constructor.
1414 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1415 support for subgroups and subgroup-titles.
1416 * src/main/webapp/style.css: Add CSS class for subgroups and
1419 2011-08-12 Ben Konrath <ben@bagu.org>
1421 Return the top level LayoutGroup title.
1423 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1425 2011-08-11 Ben Konrath <ben@bagu.org>
1427 Make the TableSelector header match the mockup.
1429 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1430 the layout panel. Properly lineup the table selection header with
1431 the list and details view.
1432 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1433 margin around the details view.
1434 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1435 Rename listBox variable to tableSelector. Set id for the style sheet.
1436 Use a FlowPanel instead of a HorizontalPanel.
1437 * src/main/webapp/style.css: Add properties to make the TableSelector
1438 box match the mockups.
1440 2011-07-13 Ben Konrath <ben@bagu.org>
1442 Update install script for java-libglom version change.
1444 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1447 2011-07-13 Ben Konrath <ben@bagu.org>
1449 Add support sub-group in the details view.
1451 I also removed the code that special-cased the default details view
1454 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1456 I still have to make a proper flowtable.
1458 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1459 Don't special-case default details view layout.
1460 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1461 addLayoutField() as I'm going to use it.
1462 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1463 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1465 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1466 extracted from DetailsViewImpl.GroupPanel. Add support for
1468 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1469 column count when getting the details layout.
1471 2011-07-12 Ben Konrath <ben@bagu.org>
1473 Set browser title with database and table titles.
1475 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1476 Set the browser title when the table changes and when the activity
1478 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1479 title when retrieving document info (the GlomDocument object).
1480 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1481 with getter and setter methods. Remove unused convenience constructor.
1482 Use default code formatting.
1484 2011-07-12 Ben Konrath <ben@bagu.org>
1486 Ignore LayoutItemPortals in the details view.
1488 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1491 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1492 LayoutItemPortal layout objects.
1493 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1494 LayoutItemPortal objects when retrieving the details layout.
1495 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1496 file. This is an empty class and just used to get type information for
1499 2011-07-12 Ben Konrath <ben@bagu.org>
1501 Use java-libglom 1.17.0.
1505 2011-07-11 Ben Konrath <ben@bagu.org>
1507 Remove "Table:" label from table selector.
1509 This matches a recent change in the Glom UI.
1511 * mockups/details-contacts.html:
1512 * mockups/details-projects.html:
1513 * mockups/listview-contacts.html:
1514 * mockups/listview-projects.html: Remove the "Table:" label from the
1516 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1518 2011-07-11 Ben Konrath <ben@bagu.org>
1520 Add main groups to the details view.
1522 This makes things look a little nicer in the details view. The next step
1523 is to implement the flowtable.
1525 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1526 resources from the standard gwt css theme. Standard.css is now
1527 included in OnlineGlom.html so that the online glom css rules have
1528 precedence over the gwt theme.
1529 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1530 the whole LayoutGroup to the DetailsView instead of just the titles.
1531 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1532 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1533 details layout with a helper class (GroupPanel). I might extract this
1534 class when I make the full flowtable.
1535 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1536 string as default so I don't have to worry about NPEs when processing
1538 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1539 note beside OnlineGlom.gwt.xml above).
1540 * src/main/webapp/style.css: Add default font-size to body to override
1541 the font-size set by the standard theme. Don't use h2 tags for
1542 group-title. Create new details-cell class.
1544 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1546 ConfiguredDocument: Set the port number too.
1548 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1549 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1550 Glom document. Presumably this worked sometimes so far because there is a
1551 default port number.
1553 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1555 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1557 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1558 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1559 correct, though we should throw an exception too.
1561 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1563 Fix a addDocuemnt typo.
1565 * src/main/java/org/glom/web/shared/Documents.java
1566 (Documents.addDocuemnt): Rename to addDocument().
1567 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1568 (OnlineGlomServiceImpl.getDocuments): Adapt.
1570 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1572 Slightly improved log output when connection fails.
1574 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1575 (ConfiguredDocument.setUsernameAndPassword):
1576 We don't know for sure if it' the username/password that's wrong, so
1577 rephrase the message.
1578 Also ouput the exception message, though it's generic in this case.
1580 2011-07-08 Ben Konrath <ben@bagu.org>
1584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1585 added braces to a one line if statement because the Eclipse formatter
1586 was getting confused.
1588 2011-07-07 Ben Konrath <ben@bagu.org>
1590 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1592 These should really be two separate tasks but I counldn't get things to
1593 work with GWT 2.2.0 and Eclipse 3.7.
1597 * .settings/org.eclipse.jdt.core.prefs:
1598 * .settings/org.eclipse.jdt.ui.prefs:
1599 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1600 * .settings/org.eclipse.m2e.core.prefs:
1601 Add new config files. Update current files. Remove references to the
1602 webtools plugins as we're not using any of the webtools features.
1603 * .gitignore: Add logs directory which is created when running with
1605 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1606 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1607 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1609 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1611 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1613 onlineglom.properties: Add explanatory comments.
1615 * src/main/resources/onlineglom.properties: Also change the default user
1616 from ben to someuser, to avoid the risk of people thinking we just
1617 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1619 2011-06-28 Ben Konrath <ben@bagu.org>
1621 Use filename in Log for incorrect passwords.
1623 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1624 getFileName(String) method to get the filename from the URI.
1626 2011-06-28 Ben Konrath <ben@bagu.org>
1628 Add the table name to the URL token for the ListPlace.
1630 This makes things consistent between the DetailsPlace and the
1631 ListPlace. It also allows the the ListPlace to be bookmarked.
1633 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1634 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1635 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1636 Remove getDefaultListLayout(). The default layout is now returned
1637 by the getListLayout() method when the table name is an empty string.
1638 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1639 Add table name field. Change to a new ListPlace when the table
1640 has been changed. Use getListLayout() for getting the default
1642 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1643 Add table name field. Set the correct table name in the list box
1644 when loading from bookmark. This corrects a problem for the
1646 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1647 Move table name to super-class (HasSelectableTable). Move document
1648 and table URL keys to super-class in HasSelectableTable.
1649 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1650 Add table name field. Add Tokenizer class with URL key common to
1651 the subclasses (DetailsPlace and ListPlace).
1652 * src/main/java/org/glom/web/client/place/ListPlace.java:
1653 Add table name. Add code to parse the URL token.
1654 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1655 Update ListPlace construction with empty table name string.
1656 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1657 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1658 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1659 Update ListPlace construction with table name string.
1660 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1661 Change defaultTableName field to tableName to reflect how it's now
1662 used. Update the getter and setter methods.
1664 2011-06-28 Ben Konrath <ben@bagu.org>
1666 Enable the table selector in the DetailsView.
1668 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1669 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1670 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1671 Remove getDefaultDetailsLayout(). The default layout is now returned
1672 by the getDetailsLayout() method when the table name is an empty
1674 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1675 event handler for table change event. Change to using
1676 getDetailsLayout() for the default details layout.
1677 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1679 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1680 when navigating to the details place.
1682 2011-06-27 Ben Konrath <ben@bagu.org>
1684 Use filename based unique document ID in URL and for RPC.
1686 The document ID is the glom document name with spaces (' ') replaced
1687 with pluses ('+') and without the .glom extension.
1689 This change is mostly a string substitution of 'documentTitle' for
1690 'documentID'. The only code change is the addition of a Documents DTO to get the
1691 filename to document title mappings as indicated below.
1693 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1694 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1695 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1696 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1697 Use Documents DTO to create the document links in the document
1699 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1700 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1701 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1702 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1703 * src/main/java/org/glom/web/client/place/ListPlace.java:
1704 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1705 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1706 * src/main/java/org/glom/web/client/ui/ListView.java:
1707 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1708 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1709 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1710 * src/main/java/org/glom/web/server/Log.java:
1711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1712 getDocumentTitles() to getDocuments() and return the Documents DTO.
1713 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1714 transferring the filename to document title mappings.
1716 2011-06-25 Ben Konrath <ben@bagu.org>
1718 Make the authentication popup work again.
1720 This bug was introduced when I extracted ConfiguredDocument to its own class.
1722 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1723 correct success / fail status in setUsernameAndPassword().
1725 2011-06-25 Ben Konrath <ben@bagu.org>
1727 Use filename as unique key for configuring database usernames and passwords.
1729 This replaces the use of the Glom document title which could change
1730 depending on the locale. Thanks to Murray Cumming for pointing out this
1733 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1734 * src/main/resources/onlineglom.properties:
1736 2011-06-24 Ben Konrath <ben@bagu.org>
1738 Pass primary key value to DetailsView.
1740 This enables the DetailsView to load the correct data.
1742 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1743 primary key value field and set in constructor. Pass primary key
1744 value to getDetailsData().
1745 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1746 variables for document title and primary key value.
1747 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1748 key value to the DetailsPlace.
1750 2011-06-24 Ben Konrath <ben@bagu.org>
1752 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1754 This allows the primary key to be retrieved by the Details button. This
1755 functionality has not been implemented yet but it's in the works.
1757 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1758 the LayoutGroup result to ListView.setCellTable instead of all of its
1759 fields individually.
1760 * src/main/java/org/glom/web/client/ui/ListView.java:
1761 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1762 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1763 get the primary key for the table.
1764 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1765 index of the primary key in the LayoutGroup accounting for hidden
1766 primary keys. Rename getJavaNumberFormat() to
1767 convertToJavaNumberFormat() for consistency. Cleanup / add some
1769 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1770 field for primary key index and a field to indicate whether the
1771 primary key is hidden or not.
1773 2011-06-23 Ben Konrath <ben@bagu.org>
1775 Rename getTableData methods to getListData.
1777 This is a rename refactor for consistency with other methods.
1779 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1780 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1781 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1782 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1784 2011-06-23 Ben Konrath <ben@bagu.org>
1786 Extract the ConfiguredDocument innerclass into its own class.
1788 This makes the servlet code more object oriented.
1790 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1791 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1792 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1793 new ConfiguredDocument class.
1795 2011-06-21 Ben Konrath <ben@bagu.org>
1797 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1799 This makes things more inline with how libglom works and reduces code
1800 duplication. This refactor lays the groundwork for adding the primary key to
1801 the LayoutGroup object.
1803 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1804 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1806 Change method names to getListLayout and getDefaultListLayout for
1807 consistency. Use LayoutGroup as the DTO for the list layout instead of
1808 ColumnInfo and LayoutListTable.
1809 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1810 new method names along with the LayoutGroup object for transferring the
1812 * src/main/java/org/glom/web/client/ui/ListView.java:
1813 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1814 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1815 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1817 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1818 Replaced with LayoutGroup.
1819 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1820 expectedResultSize and defaultTableName fields which are needed for
1822 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1823 type field which is needed for the list layout but will also be
1824 useful for the details layout as things progress.
1825 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1826 Make class abstract. Remove the unnecessary
1827 getFormattingHorizontalAlignment method. Add setFormatting method.
1829 2011-06-16 Ben Konrath <ben@bagu.org>
1831 Add scripts for building and installing war.
1833 These will help when updating OnlineGlom but they're also good
1834 supplemental documentation of the build and deployment proceeding.
1836 * utils/build-onlineglom-war.sh: New file.
1837 * utils/install-onlineglom-war.sh: New file.
1839 2011-06-16 Ben Konrath <ben@bagu.org>
1841 Create wrapper class to create consistent log messages.
1843 I wrapped methods in the Log class of gwt-log to add the method names
1844 from the servlet and create consistent formatting of the document title
1845 and table names in the log messages.
1847 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1848 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1849 log methods to use methods from wrapped Log class.
1851 2011-06-16 Ben Konrath <ben@bagu.org>
1853 Remove superfluous conditional return.
1855 Thanks to Murray Cumming for pointing this out!
1857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1859 2011-06-15 Ben Konrath <ben@bagu.org>
1861 Return an ArrayList of LayoutGroups for the Details layout.
1863 This corrects a problem with the details layout as it can have more
1864 than one top level LayoutGroup.
1866 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1867 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1868 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1869 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1870 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1871 with ArrayList of LayoutGroups for the details view layout.
1872 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1873 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1874 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1875 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1876 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1877 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1879 2011-06-14 Ben Konrath <ben@bagu.org>
1881 Use cast_dynamic method to determine the libglom LayoutItem type.
1883 This is better than finding the LayoutItem type by using the string
1884 returned from the get_part_type_name() method.
1886 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1888 2011-06-14 Ben Konrath <ben@bagu.org>
1890 Add method names to log entries in the servlet.
1892 This helps when tracking down deployment problems.
1894 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1896 2011-06-14 Ben Konrath <ben@bagu.org>
1898 Add data to the DetailsView using a hard-coded primary key value.
1900 The layout and functionality of the DetailsView is not complete. This
1901 is just a checkpoint so the patch doesn't get too big.
1903 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1904 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1905 Add getDetailsData() servlet method.
1906 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1907 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1908 LayoutFields are added to the DetailsView.
1909 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1910 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1911 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1912 take the string for the title instead of the object.
1913 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1914 Add implementation getDetailsData() along with some private helper
1916 * src/main/webapp/style.css: Add padding to details-data class. Add a
1917 details-label class with the same padding as the details-data class.
1919 2011-06-03 Ben Konrath <ben@bagu.org>
1921 Use presenter.goTo() to change to the DetailsPlace.
1923 This will make things easier when we need to open the DetailsView with
1924 data specific to the row that was clicked.
1926 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1928 2011-06-02 Ben Konrath <ben@bagu.org>
1930 Add CSS file from mockups.
1932 I'm adding this now because it's going to be useful to have when
1933 developing the DetailsView. The TableSelectionView and ListView aren't
1936 * src/main/webapp/OnlineGlom.html:
1937 * src/main/webapp/style.css:
1939 2011-06-02 Ben Konrath <ben@bagu.org>
1941 Use String.isEmpty() to check for empty string.
1943 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1945 2011-06-02 Ben Konrath <ben@bagu.org>
1947 Display main layout group titles in the DetailsView.
1949 This is the start of the DetailsActivity/DetailsView implementation.
1951 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1952 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1953 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1954 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1955 Get the layout information for the details view from the server and set
1956 the main layout group titles.
1957 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1958 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1959 Add addLayoutGroup() and addLayoutField() methods. This are just
1960 temporary methods for creating the the details view that will change
1962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1963 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1965 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1966 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1967 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1968 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1969 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1970 Data Transfer Objects that mimic the libglom object structure. These are
1971 used for transferring the details layout but could also be used for
1972 transferring the list layout.
1974 2011-05-27 Ben Konrath <ben@bagu.org>
1976 Reset the AuthenticationPopup when clearing the ListView.
1978 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1980 2011-05-27 Ben Konrath <ben@bagu.org>
1982 Fix problem with onlineglom.properties file loading.
1984 The old way worked in Eclipse but not on the server. Loading the
1985 onlineglom.properties file now works in Eclipse and on the server.
1987 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1989 2011-05-24 Ben Konrath <ben@bagu.org>
1991 Update gwt-log from 3.1.0 to 3.1.2.
1993 Gwt-log 3.1.0 has been marked as depreciated.
1997 2011-05-24 Ben Konrath <ben@bagu.org>
1999 Add comment to ListActivity.goTo() method.
2001 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2003 2011-05-24 Ben Konrath <ben@bagu.org>
2005 Remove FIXME in convertGdkColorToHtmlColour()
2007 The Gdk::Color value returned by libglom is 16-bits per channel on both
2008 64 and 32-bit platforms.
2010 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2012 2011-05-19 Ben Konrath <ben@bagu.org>
2014 Improve performance of initial ListView load.
2016 I removed a round trip to the server for getting the default table name
2017 and then requesting information about that table. This also removes a potential
2018 problem with the table change handler not being setup in time to receive the
2019 table change event from the ListActivity.
2021 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2022 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2023 getDefaultLayoutListTable() method. Improve comments.
2024 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2025 getDefaultLayoutListTable() method instead of firing a table change
2026 event to get the table to load.
2027 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2028 implementation of getDefaultLayoutListTable() method.
2029 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2032 2011-05-19 Ben Konrath <ben@bagu.org>
2034 Override toDebugString() in TableChangeEvent.
2036 This is useful to have for debugging.
2038 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2040 2011-05-19 Ben Konrath <ben@bagu.org>
2042 Add a "Back to List" link when at the DetailsPlace.
2044 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2045 Populate the CellTable based on the selected table of the ListBox if
2046 it's set otherwise use the default table. This allows the "Back to
2048 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2049 Remove Place from constructors. Add a setPlace() method. Add
2050 goToPlace() method. Set class as presenter for TableSelectionView.
2051 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2052 Use the same TableSelectionActivity when switching between the List and
2054 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2055 Subclass the new HasSelectableTablePlace. This removes some duplicate
2057 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2058 New class to represent Places that display the TableSelectionView.
2059 * src/main/java/org/glom/web/client/place/ListPlace.java:
2060 Subclass the new HasSelectableTablePlace. This removes some duplicate
2062 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2063 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2064 Add Presenter interface. Add setBackLinkVisible() method. Add
2065 setBackLink() method.
2067 2011-05-18 Ben Konrath <ben@bagu.org>
2069 Enable the "Details" buttons.
2071 Right now only an empty details view is displayed.
2073 * src/main/java/org/glom/web/client/ClientFactory.java:
2074 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2075 Add DetailsView to ClientFactory.
2076 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2077 A basic activity for the details view.
2078 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2079 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2081 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2082 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2084 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2085 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2086 unnecessary super() in constructor.
2087 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2088 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2089 really shouldn't create a new TableSelectionActivity for both the ListPlace
2090 and the DetailsPlace so this should be considered a temporary solution.
2091 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2092 New file. Represents a URL for the details view.
2093 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2094 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2095 A basic details view interface and implementation.
2096 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2097 Enable the "Details" buttons.
2099 2011-05-12 Ben Konrath <ben@bagu.org>
2101 Use a LayoutPanel with multiple display areas for main layout.
2103 This is mostly a refactor in that there are no changes from the user
2104 point of view. These changes are required so that we can swap out the list view
2105 with the details view when the user clicks the "Details" button.
2107 * src/main/java/org/glom/web/client/ClientFactory.java:
2108 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2109 OnlineGlomView. Add TableSelectionView, ListView and
2110 AuthenticationPopup.
2111 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2112 for main layout. Add display regions for main activities. Add
2113 activity manager for for main activities.
2114 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2115 file from parts of the deleted OnlineGlomActivity.
2116 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2117 New file from parts of the deleted OnlineGlomActivity.
2118 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2119 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2120 New files for app wide table change event.
2121 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2122 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2123 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2124 Activity mappers for the main activities replace the deleted app-wide
2126 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2127 Fix a spelling error in he comment.
2128 * src/main/java/org/glom/web/client/ui/ListView.java:
2129 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2130 Renamed from LayoutListView and modified for MVP. This still not a
2131 proper dumb view as prescribed by the MVP pattern but it works for now.
2132 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2133 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2134 New widget stripped out of the deleted OnlineGlomView.
2135 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2136 Remove hack that is fixed by this patch.
2138 2011-05-06 Ben Konrath <ben@bagu.org>
2140 Rename OnlineGlomPlace to ListPlace.
2142 The only change besides the rename is that url will now display #list
2143 instead of #Document.
2145 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2146 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2147 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2148 * src/main/java/org/glom/web/client/place/ListPlace.java:
2149 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2151 2011-05-06 Ben Konrath <ben@bagu.org>
2153 Use Presenter for app navigation.
2155 This is the proper way to deal with Place (URL) changes with the MVP
2158 * src/main/java/org/glom/web/client/ClientFactory.java:
2159 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2160 PlaceHistoryMapper and PlaceHistoryHandler.
2161 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2162 PlaceHistoryMapper and PlaceHistoryHandler.
2163 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2164 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2165 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2166 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2167 Add Presenter interface and setPresenter methods. Rename addHyperLink
2168 to addDocumentLink taking only the document title as a parameter.
2170 2011-04-14 Ben Konrath <ben@bagu.org>
2172 Prompt for db username/password if they haven't been set.
2174 This is implemented with a popup widget that is contained within the
2175 OnlineGlomView and managed by the OnlineGlomActivity.
2177 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2178 methods for checking and setting the database username and password.
2179 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2180 new methods for checking and setting the database username and
2182 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2183 Display authentication popup if the JDBC connection to the database
2184 has not been authenticated.
2185 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2187 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2188 for dealing with the authentication popup.
2189 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2190 Implement the methods for dealing with the authentication popup.
2191 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2192 try to executed queries if the database connection hasn't been
2193 authenticated. Implement methods for checking and setting the
2194 database username and password.
2196 2011-04-12 Ben Konrath <ben@bagu.org>
2198 Make log messages a little clearer.
2200 Add a dash betweeen the document title and the table name.
2202 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2204 2011-04-12 Ben Konrath <ben@bagu.org>
2206 Protect against NPEs when cleaning up database resources.
2208 While this isn't strictly necessary because the exception is caught,
2209 not protecting against the NPEs makes it harder to find the real error
2212 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2214 2011-04-12 Ben Konrath <ben@bagu.org>
2216 Move configuration of the servlet to the constructor.
2218 The servlet will be initialized even if the database authentication
2219 information is not set or correct. I still need to add the UI for prompting
2220 the user for the authentication information when it's required.
2222 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2223 javadocs for getDocumentTitles() method.
2224 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2225 Set error message when RPC fails.
2226 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2227 glom files directory from the configuration file. Try to set the
2228 database authentication information for the specific document if it's
2229 set and works otherwise try to use the global authentication
2230 information set for the directory.
2231 * src/main/resources/onlineglom.properties: Moved from
2232 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2233 Added detailed comments for the new keys.
2235 2011-04-11 Ben Konrath <ben@bagu.org>
2237 Remove unnecessary @Override in DocumentSelectionViewImpl.
2239 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2241 2011-04-11 Ben Konrath <ben@bagu.org>
2243 Remove center alignment in DocumentSelectionView.
2245 The title element is still centred but the document titles and bottom
2246 sentence are both left-aligned.
2248 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2250 2011-04-11 Ben Konrath <ben@bagu.org>
2252 Change 'Demo' naming convention to 'Document'.
2254 This is just a rename refactor with no functional changes to the code.
2256 * src/main/java/org/glom/web/client/ClientFactory.java:
2257 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2258 * src/main/java/org/glom/web/client/OnlineGlom.java:
2259 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2260 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2261 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2262 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2263 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2264 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2265 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2266 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2267 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2270 2011-04-08 Ben Konrath <ben@bagu.org>
2272 Remove FIXME from safeLongToInt() method.
2274 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2277 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2279 2011-04-08 Ben Konrath <ben@bagu.org>
2281 Display an error if no glom documents are found in the specified directory.
2283 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2284 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2285 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2286 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2288 2011-04-08 Ben Konrath <ben@bagu.org>
2290 Add copyright header to one more file ... oops.
2292 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2294 2011-04-08 Ben Konrath <ben@bagu.org>
2296 Add copyright header to files without it.
2298 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2299 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2300 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2301 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2302 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2303 * src/main/java/org/glom/web/shared/GlomField.java:
2305 2011-04-08 Ben Konrath <ben@bagu.org>
2307 Add support for accessing multiple glom documents in the servlet.
2309 This completes the demo selection functionality.
2311 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2312 document title to methods.
2313 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2314 document title to methods.
2315 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2316 Set browser window title when the activity starts. Correct name of
2317 document title variable.
2318 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2319 Set browser window title when the activity starts. Set the table
2320 selector change handler after table selector has been set. Clear the
2321 OnlineGlomView when the activity has been stopped.
2322 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2323 document title as the place token. Use "#Document:" instead of
2324 "#OnlineGlomPlace:" in the URL.
2325 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2326 Change heading to "Online Glom"
2327 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2328 document title in RPC methods.
2329 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2330 setDocumentTitle() method. Add clear() method.
2331 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2332 setDocumentTitle() method. Implement clear() method which removes the
2333 change handler on the ListBox, clears the ListBox and clears the
2335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2336 Implement methods with document title. Keep track for the configured
2337 glom documents and their corresponding JDBC configurations in a hash
2338 table. This information is retrieved using the document title as the
2339 key in the hash table.
2340 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2341 document title field as it's no longer needed.
2343 2011-04-08 Ben Konrath <ben@bagu.org>
2345 Update the Eclipse JDT configuration.
2347 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2348 methods. Automatically add the copyright header to new files.
2350 2011-04-05 Ben Konrath <ben@bagu.org>
2352 Add new page for demo selection.
2354 This patch adds all the components required to view and start an
2355 OnlineGlom demo by clicking on the desired hyperlink. The user is
2356 able to return to the demo selection page with the browser's back
2357 button. I still need to modify the servlet to work with multiple
2358 documents so all demo links will load the file defined in the
2359 OnlineGlom.properties.
2361 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2362 This is only useful during development so we don't need to save it.
2363 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2364 get a reference to the DemoSelectionView.
2365 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2366 method to get a reference to the DemoSelectionView.
2367 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2368 default view to DemoSelectionView.
2369 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2370 to get glom document titles for glom files in a hard-coded directory.
2371 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2372 method to get glom document titles for glom files in a hard-coded
2374 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2375 Presenter for DemoSelectionView.
2376 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2377 for DemoSelectionView.
2378 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2379 Update for DemoSelectionView.
2380 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2381 Basic 'Place' implementation for the DemoSelectionView.
2382 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2383 The interface for the DemoSelectionView.
2384 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2385 The implementation of the DemoSelectionView.
2386 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2387 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2388 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2389 implementation of method to get glom document titles for glom files
2390 in a hard-coded directory.
2391 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2392 on longer being used.
2393 * src/main/webapp/glom.png: Glom logo.
2395 2011-04-05 Ben Konrath <ben@bagu.org>
2397 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2399 This is the forth and final commit of a refactor that will allow
2400 OnlineGlom to be used with multiple documents.
2402 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2403 Move RPC code from OnlineGlomViewImpl to this class.
2404 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2406 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2407 RPC code to the presenter class (the P in MVP).
2409 2011-04-04 Ben Konrath <ben@bagu.org>
2411 Start moving the existing OnlineGlom code to MVP.
2413 This work is based on the GWT MVP framework that is documented here:
2415 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2417 This is the third commit of a refactor that will allow OnlineGlom to
2418 be used with multiple documents.
2420 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2421 Interface for client factory which is used to get instances of various
2422 classes throughout the app.
2423 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2424 Implementation of client factory.
2425 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2426 initialize the MVP framework.
2427 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2428 New file. Activity manager for the main container widget. This is the
2430 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2431 Maps place (URL) to its corresponding activity.
2432 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2433 New file. This is just a place holder for a generated file.
2434 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2435 New file. Represents the URL for the main Online Glom app.
2436 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2437 for changes in LayoutListViewImpl.
2438 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2439 interface for View. Move code to OnlineGlomViewImpl class.
2440 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2441 file. Implementation of OnlineGlomView.
2442 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2443 Place resources. Use ClientFactoryImpl by default.
2445 2011-04-04 Ben Konrath <ben@bagu.org>
2447 Move View classes to their own package.
2449 This is the second commit of a refactor that will allow OnlineGlom to
2450 be used with multiple documents.
2452 * src/main/java/org/glom/web/client/OnlineGlom.java:
2453 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2454 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2456 2011-04-02 Ben Konrath <ben@bagu.org>
2458 Move UI code from the main module to its own class.
2460 This is the first commit of a refactor that will allow OnlineGlom to be
2461 used with multiple documents.
2463 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2464 references to OnlineGlom to OnlineGlomView.
2465 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2466 OnlineGlomView and instantiate it here.
2467 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2468 represents the main OnlineGlomView with one document.
2470 2011-04-01 Ben Konrath <ben@bagu.org>
2472 Fix formatting of gwt.xml and add DTD.
2474 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2476 2011-03-30 Ben Konrath <ben@bagu.org>
2478 Propperly convert gdkColor string to html colour string.
2480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2482 2011-03-28 Ben Konrath <ben@bagu.org>
2484 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2486 This implementation matches
2487 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2488 readable and is not tied to Swig.
2490 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2492 2011-03-28 Ben Konrath <ben@bagu.org>
2494 Use read-only checkboxes for boolean field types.
2496 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2497 in the CellTable based on the field type. It currently only
2498 distinguishes between boolean and text columns but I'll need to add
2499 support for more types.
2500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2501 column type in the ColumnInfo object. Add method to convert between the
2502 glom field type enum in ColumnInfo and the glom field type in libglom.
2503 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2505 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2506 getting and setting booleans.
2508 2011-03-25 Ben Konrath <ben@bagu.org>
2510 Don't get the Date twice from the ResultSet.
2512 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2514 2011-03-25 Ben Konrath <ben@bagu.org>
2516 Cleanup code in the servlet.
2518 * TODO: Remove item about row count. Add item about testing row count
2519 query with large number of rows.
2520 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2521 spelling mistakes, change method parameter to be consistent with
2524 2011-03-25 Ben Konrath <ben@bagu.org>
2526 Add server side logging with the gwt-log library.
2528 * .gitignore: Ignore the log file we're now producing.
2529 * TODO: Add a couple TODO item for logging.
2530 * pom.xml: Add gwt-log and log4j as a dependency.
2531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2532 logging of errors, warnings and some important info.
2533 * src/main/resources/log4j.properties: New file to configure log4j.
2535 2011-03-24 Ben Konrath <ben@bagu.org>
2537 Add a disable button for the Details view.
2539 * src/main/java/org/glom/web/client/LayoutListView.java:
2541 2011-03-22 Ben Konrath <ben@bagu.org>
2543 Use a count query to get the number of rows for the list view pager.
2545 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2547 2011-03-22 Ben Konrath <ben@bagu.org>
2549 Add more TODO information about CellTable pager positioning.
2553 2011-03-19 Ben Konrath <ben@bagu.org>
2555 Add TODO item about CellTable pager positioning.
2559 2011-03-18 Ben Konrath <ben@bagu.org>
2561 Remove unneeded GlomFieldColumn class.
2563 This is just a small code cleanup.
2565 * src/main/java/org/glom/web/client/LayoutListView.java:
2567 2011-03-18 Ben Konrath <ben@bagu.org>
2569 Use cursor mode in the query that gets data for the list view.
2571 I still need to fix the potential memory problem when getting the row
2572 count for the list view.
2574 * TODO: Add note about testing memory usage with large data sets. Add
2575 item about fixing row counting with large data sets.
2576 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2577 PostgreSQL JDBC driver into cursor mode when getting data for the
2580 2011-03-15 Ben Konrath <ben@bagu.org>
2582 Remove the GWT Container from the Eclipse build classpath.
2584 The GWT dependencies are set by Maven so this isn't needed.
2588 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2590 Added some earlier mockups to git, but not to the tarball dist.
2592 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2593 Openismus. These hopefully show how we might structure the HTML so that
2594 it can be styled easily with CSS. However, we probably need to adapt them
2595 for the CSS structure that GWT dictates for common widgets.
2597 2011-03-14 Ben Konrath <ben@bagu.org>
2599 Locate OnlineGlom.properties using the ServletContext.
2601 This is required to be able to locate the file in the deployed servlet.
2603 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2604 Configure the database and glom document in in a helper method so
2605 that the ServletContext can be used to locate OnlineGlom.properties.
2606 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2607 src/main/webapp. This is the proper location for .properites files.
2609 2011-03-12 Ben Konrath <ben@bagu.org>
2611 Add note to README about why we're compiling down to obfuscated JavaScript.
2615 2011-03-11 Ben Konrath <ben@bagu.org>
2617 Use properties file to configure servlet.
2619 This allows people to change the glom file path, db username and db
2620 password without recompiling the code.
2622 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2623 * src/main/webapp/OnlineGlom.properties:
2625 2011-03-11 Ben Konrath <ben@bagu.org>
2627 Use table fields in layout list view if the layout list is not defined.
2629 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2630 Manually create a LayoutFieldVector for the query builder using the
2631 table fields when a layout list is not defined in the glom file.
2633 2011-03-11 Ben Konrath <ben@bagu.org>
2635 Only show FIXME string for images when there's an image.
2637 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2638 in this change are some small code cleanups.
2640 2011-03-11 Ben Konrath <ben@bagu.org>
2642 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2644 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2646 2011-03-11 Ben Konrath <ben@bagu.org>
2648 Correctly set the index of the default table.
2650 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2651 Correctly set the index of the default table. Add commented out example
2654 2011-03-10 Ben Konrath <ben@bagu.org>
2656 Add comment to pom.xml about the previous change.
2658 * pom.xml: Add comment about the deployment issue so that it's obvious
2659 why java-libglom is set to the provided scope.
2661 2011-03-10 Ben Konrath <ben@bagu.org>
2663 Change java-libglom dependency from compile to provided in pom.xml.
2665 Since java-libglom uses jni it can only be loaded once and therefore
2666 must be placed in $CATALINA_HOME/lib and not included in each war.
2667 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2668 More information about this issue can be found in the Tomcat 6 release
2669 notes in the "JNI Based Applications" section:
2671 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2673 * README: Remove note about this issue. Deployment info should really
2674 be on the wiki anyway so I'll add it right now.
2675 * pom.xml: Change java-libglom dependency from compile to provided so
2676 that it's copied in to the packaged war.
2678 2011-03-09 Ben Konrath <ben@bagu.org>
2680 Change to using a neutral locale for currency, date and time formatting.
2682 This solves the problem of currency values being represented without a
2683 space between the currency code and the number (e.g. "EUR5.89" is now
2684 represented as "EUR 5.89"). More work is required when we implement
2685 a locale preference setting.
2687 * TODO: Add note about currency formatting issues with different
2689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2690 to using the neutral ROOT locale.
2692 2011-03-09 Ben Konrath <ben@bagu.org>
2694 Add support for currency codes that are not ISO 4217 codes.
2696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2697 the currency code defined in the glom file when it's not 3 characters
2698 long or when Java doesn't recognize the string as an ISO 4217 code.
2700 2011-03-08 Ben Konrath <ben@bagu.org>
2702 Remove test classes, launch configurations and configuration.
2704 The test stuff was getting in the way when creating the war. To make
2705 the war file you can now do 'mvn clean package'. The packaged war file
2706 will be in the target directory.
2708 * .classpath: Remove unused classpathentry for tests and i18n.
2709 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2710 property. Don't run test or i18n goals when packaging the war.
2711 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2716 * OnlineGlomTest-dev.launch:
2717 * OnlineGlomTest-prod.launch:
2718 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2719 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2721 2011-03-07 Ben Konrath <ben@bagu.org>
2723 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2725 These fixes allow me to use 'mvn deploy' to create the war file.
2727 * .classpath: This generated config has been updated by Eclipse. This
2728 change was probably triggered by me updating from Eclipse 3.6.1 to
2730 * .gitignore: Add entry to ignore the directory
2731 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2732 * .project: The generated config has been updated by Eclipse. This
2733 change was probably triggered by me updating from Eclipse 3.6.1 to
2735 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2736 so that Eclipse doesn't complain
2737 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2738 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2739 'tests' directory to 'client' directory. This is the new
2740 gwt-maven-plugin convension.
2741 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2742 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2744 2011-03-07 Ben Konrath <ben@bagu.org>
2746 Add support for horizontal alignment in the LayoutList columns.
2748 * TODO: Remove item about horizontal alignment. Add item about
2749 improvements to ColumnInfo.
2750 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2751 alignment on the columns. Use ColumnInfo RPC object get the column
2752 title and horizontal alignment.
2753 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2754 LayoutListView creation with ColumnInfo RPC object.
2755 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2756 a ColumnInfo object for every LayoutList columnn. Convert the
2757 FieldFormatting.HorizontalAlignment to the correct
2758 ColumnnInfo.HorizontatlAlignment with the new
2759 getColumnInfoHorizontalAlignment helper method.
2760 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2761 to encapsulate column information like alignment and title. This
2762 could be used to set the colour instead of on a per cell field basis.
2763 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2764 column title storage and retrieval with ColumnInfo.
2766 2011-03-04 Ben Konrath <ben@bagu.org>
2768 Add support for column sorting.
2770 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2771 AsynDataProvider to be an anonymous inner class. Use new
2772 getSortedTableData RPC method when column sort is requested. Set all
2773 columns sortable and add an AsyncHandler to activate sorting in the
2775 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2776 method getSortedTableData(). Cleanup other method signatures.
2777 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2778 new method getSortedTableData(). Cleanup other method signatures.
2779 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2780 Implement getSortedTableData() and getTableData() methods by using a
2781 private helper method with the appropriate parameters filled in. Use
2782 user supplied sort clause when supplied, otherwise fall back to
2783 sorting by the primary key. Move destroy() method to be underneath
2784 constructor for readability. Cleanup comments.
2786 2011-03-03 Ben Konrath <ben@bagu.org>
2788 Add support for colour text and colour backgrounds to the layout list cells.
2790 Only the cell backgrounds are coloured which leaves a gap between the
2791 cells that isn't coloured. I need to figure out a way to set
2792 'style=background-colour:' on the whole column rather than just the
2795 * TODO: Add a note about colouring the background of the whole column.
2796 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2797 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2798 render the coloured text and backgrounds. Use GlomField[] for the row type.
2799 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2801 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2802 GlomField[] for the row type.
2803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2804 GlomField[] for the row type. Set the text, text colour and background
2805 colour in the GlomField objects as specified in the glom document. Add
2806 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2807 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2808 the glom field text, foreground colour and background colour.
2810 2011-03-02 Ben Konrath <ben@bagu.org>
2812 Don't display hidden tables in the combo box.
2814 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2816 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2817 code to ignore hidden tables using ArrayLists for the table names and
2819 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2820 tableNames to use ArrayLists instead of String[]. Update getter and setter
2823 2011-03-01 Ben Konrath <ben@bagu.org>
2825 Add support for Date and Time number types.
2827 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2828 Implement formatting for Date and Time values. Change the default glom
2829 file to small business example.
2831 2011-03-01 Ben Konrath <ben@bagu.org>
2833 Add support for formatting glom types as specified in the glom file.
2835 Formatting isn't finished yet - I still need to add support for Date
2838 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2839 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2840 checks for null values in JDBC cleanup code and catch all exceptions
2841 instead of just SQLExceptions.
2842 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2845 2011-03-01 Ben Konrath <ben@bagu.org>
2847 Use GWT 2.2.0 instead of 2.1.1.
2849 * pom.xml: Change GWT version numbers.
2851 2011-03-01 Ben Konrath <ben@bagu.org>
2853 A few small code cleanups.
2855 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2857 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2858 unnecessary object creation in constructor.
2859 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2860 unnecessary object creation in constructor.
2862 2011-02-28 Ben Konrath <ben@bagu.org>
2864 Add file for TODO list.
2868 2011-02-18 Ben Konrath <ben@bagu.org>
2870 Enable the CellTable Pager when more than 20 rows need to be viewed.
2872 The Pager will automatically become active when the results are larger
2873 than the CellTable size which is currently set to 20 lines.
2875 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2876 name on debug statment in RPC call in LayoutListDataProvider, add
2877 numRows parameter to LayoutListView constructor, propperly set rowCount
2879 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2880 name on debug statment in RPC call, use LayoutListTable object in RPC
2881 calls, pass rowCount to LayoutListView.
2882 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2883 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2885 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2886 interface for changes in OnlineGlomService.
2887 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2888 getLayoutListHeaders() to getLayoutListTable() and return
2889 LayoutListTable. Using this object allows me to pass other information
2890 about the LayoutList like the expected number of rows in the result set.
2891 The Connection object from the connection pool is now propperly closed.
2892 Only the requested number of lines are returned to the client in
2894 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2895 GlomTable and add columnTitles and numRows.
2897 2011-02-18 Ben Konrath <ben@bagu.org>
2899 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2901 This is a small performance boost. I'll use GlomTable to get the required
2902 layoutlist information.
2904 * src/main/java/org/glom/web/client/OnlineGlom.java:
2905 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2906 * src/main/java/org/glom/web/shared/GlomDocument.java:
2908 2011-02-18 Ben Konrath <ben@bagu.org>
2910 Add option to turn off formatting in JDT formatter preferences.
2912 * .settings/org.eclipse.jdt.core.prefs:
2914 2011-02-18 Ben Konrath <ben@bagu.org>
2916 Rename LayoutList to LayoutListView.
2918 I'm working towards setting things up to easily use MVP when the time
2921 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2923 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2926 2011-02-17 Ben Konrath <ben@bagu.org>
2928 Move LayoutListDataProvider class into LayoutList.java.
2930 * src/main/java/org/glom/web/client/LayoutList.java:
2932 2011-02-17 Ben Konrath <ben@bagu.org>
2934 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2936 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2938 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2939 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2940 from LibGlomServer.java.
2941 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2942 Rename from LibGlomServiceAsync.java.
2943 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2944 Rename from LibGlomServiceImpl.java.
2945 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2947 2011-02-17 Ben Konrath <ben@bagu.org>
2949 Update JDT settings.
2951 * .settings/org.eclipse.jdt.core.prefs:
2953 2011-02-17 Ben Konrath <ben@bagu.org>
2955 Move GWT-RPC objects to shared package (where they should be).
2957 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2958 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2959 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2960 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2961 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2962 org.glom.web.shared package.
2963 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2964 org.glom.web.shared package.
2965 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2966 directory in compilation to javascript.
2968 2011-02-16 Ben Konrath <ben@bagu.org>
2970 Add sort clause to the sql query that grabs table information.
2972 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2973 if one of the columns is a primary key.
2975 2011-02-16 Ben Konrath <ben@bagu.org>
2977 Disable generateAsync feature of gwt-maven.
2979 The generated interface does not correctly match the methods in LibGlomService
2980 and the generated singleton Util inner-class doesn't respect the servlet
2983 * pom.xml: Turn off generateAsync feature.
2984 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2985 with singleton Util inner-class.
2987 2011-02-14 Ben Konrath <ben@bagu.org>
2989 Add LGPL v3 licence notices.
2991 Followed directions listed here:
2992 http://www.gnu.org/licenses/gpl-howto.html
2994 * COPYING: This file is a copy of the GPL v3.
2995 * COPYING.LESSER: This file is a copy of the LGPL v3.
2996 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2998 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3000 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3002 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3004 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3006 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3008 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3011 2011-02-14 Ben Konrath <ben@bagu.org>
3013 Use ArrayList instead of Array in GWT-RPC calls.
3015 Apparently this gives a slight performance boost to the compiled
3018 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3020 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3023 2011-02-14 Ben Konrath <ben@bagu.org>
3025 Access data from a postgres db rather than the example glom file.
3027 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3028 compile down to obfuscated javascript.
3029 * pom.xml: Add c3p0 and postgres JDBC libraries.
3030 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3031 using a postgres db accessed through the c3p0 connection pooling library.
3033 2011-02-14 Ben Konrath <ben@bagu.org>
3035 Update Java formatter settings.
3037 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3039 2011-02-02 Ben Konrath <ben@bagu.org>
3041 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3043 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3045 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3046 the compiled webapp directory that Eclipse uses as we're using Maven now.
3047 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3048 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3050 * pom.xml: Format file, change target Java version to 1.6.
3052 2011-02-02 Ben Konrath <ben@bagu.org>
3054 Add information about a deployment related issue.
3056 * README: Add Notes section with the problem outlined.
3058 2011-02-02 Ben Konrath <ben@bagu.org>
3060 Call Glom.libglom_deinit() when the servlet is shutdown.
3062 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3063 Glom.libglom_deinit() to destroy() method.
3065 2011-01-28 Ben Konrath <ben@bagu.org>
3067 Use generated Util class to get the RPC Async interface.
3069 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3071 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3072 getInstance() method to get a reference to the RPC Async interface.
3073 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3074 getInstance() method to get a reference to the RPC Async interface, remove
3075 the now unused getLibGlomServiceProxy() method.
3077 2011-01-27 Ben Konrath <ben@bagu.org>
3079 Cleanup ChangeLog entry from previous commit.
3081 * ChangeLog: Group logical changes together and add comments.
3083 2011-01-25 Ben Konrath <ben@bagu.org>
3085 Convert to gwt-maven project.
3087 * .gitignore: Update for new project structure.
3088 * README: New file with a link to the online documentation.
3089 * pom.xml: The generated maven configuration file with some tweaks.
3091 Add / update Eclipse settings. These files are a merge of the files that
3092 were generated with the gwt-maven plugin and the files we were previously
3096 * .settings/.jsdtscope:
3097 * .settings/com.google.gdt.eclipse.core.prefs:
3098 * .settings/com.google.gwt.eclipse.core.prefs:
3099 * .settings/org.eclipse.jdt.core.prefs:
3100 * .settings/org.eclipse.wst.common.component:
3101 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3102 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3103 * .settings/org.maven.ide.eclipse.prefs:
3104 * OnlineGlomTest-dev.launch:
3105 * OnlineGlomTest-prod.launch:
3107 Java source files moved from the 'src' directory to the directory structure
3109 * src/main/java/org/glom/web/client/GlomDocument.java:
3110 * src/main/java/org/glom/web/client/GlomTable.java:
3111 * src/main/java/org/glom/web/client/LayoutList.java:
3112 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3113 * src/main/java/org/glom/web/client/LibGlomService.java:
3114 * src/main/java/org/glom/web/client/OnlineGlom.java:
3115 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3117 Non-functional property file used for translations. I included this as
3118 reminder that it's something I need to sort out.
3119 * src/main/resources/org/glom/web/client/Messages.properties:
3121 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3122 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3124 The servlet configuration files moved from the 'war' directory.
3125 * src/main/webapp/OnlineGlom.css:
3126 * src/main/webapp/OnlineGlom.html:
3127 * src/main/webapp/WEB-INF/web.xml:
3129 Generated test files with most of the code commented out. I included these
3130 so that it's easy to add tests when we're ready for them.
3131 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3132 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3134 2011-01-25 Ben Konrath <ben@bagu.org>
3136 Remove unused println.
3138 * src/org/glom/web/server/LibGlomServiceImpl.java:
3140 2011-01-25 Ben Konrath <ben@bagu.org>
3142 Add project specific JDT settings.
3144 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3145 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3147 2011-01-25 Ben Konrath <ben@bagu.org>
3149 Populate celltable with example data.
3151 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3152 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3153 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3154 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3155 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3156 asynchronously gets the example data.
3157 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3158 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3159 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3160 curently selected table to be retrieved by other widgets.
3161 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3162 implement getTableData() in a hacky way. This method needs to be updated
3163 to grab information from the database when database creating is
3166 2011-01-20 Ben Konrath <ben@bagu.org>
3168 Set table headers when table dropBox changes.
3170 * src/org/glom/web/client/GlomDocument.java: Correct some method
3172 * src/org/glom/web/client/LibGlomService.java: Add method
3173 to get list layout field names.
3174 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3175 to get list layout field names.
3176 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3177 widget for list layout table.
3178 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3179 the table drop box and add new updateTable() method to asynchronously
3180 get the layout list field names for the currently selected table.
3181 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3182 implementation of getLayoutListHeaders() method.
3183 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3185 2011-01-18 Ben Konrath <ben@bagu.org>
3187 Make a listBox with table titles instead of the flexTable demo.
3189 This is the start of something more useful.
3191 * .classpath: Exclude a bunch of packages from the JVM that are
3192 getting in the way of the Eclipse content assist.
3193 * src/org/glom/web/client/GlomDocument.java:
3194 * src/org/glom/web/client/GlomTable.java:
3195 * src/org/glom/web/client/LibGlomService.java:
3196 * src/org/glom/web/client/LibGlomServiceAsync.java:
3197 * src/org/glom/web/client/OnlineGlom.java:
3198 * src/org/glom/web/server/LibGlomServiceImpl.java:
3199 * war/OnlineGlom.html:
3200 * war/WEB-INF/web.xml:
3202 211-01-13 Ben Konrath <ben@bagu.org>
3204 Update to new java-libglom API.
3206 * .gitignore: Ignore OnlineGlom.war.
3207 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3209 2010-12-20 Ben Konrath <ben@bagu.org>
3211 Add some basic style to the table listing.
3213 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3214 header, print useful error message on async callback failure.
3215 * war/OnlineGlom.css: Add style for table header, remove defaults
3216 provided by the Eclipse project wizard.
3218 2010-12-20 Ben Konrath <ben@bagu.org>
3220 Load example file from installed glom dir.
3222 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3223 provided by java-libglom to find the example file.
3225 2010-12-20 Ben Konrath <ben@bagu.org>
3227 Update Eclipse settings.
3230 * .settings/com.google.gdt.eclipse.core.prefs:
3231 * .settings/com.google.gwt.eclipse.core.prefs: