1 2011-11-28 Ben Konrath <ben@bagu.org>
3 Don't use TypedDataItem.getText() for Unknown types from the URL.
5 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
6 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
8 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
9 String field and getUnknown() method.
11 2011-11-28 Ben Konrath <ben@bagu.org>
13 Log an error message when the java-libglom .so is not present.
15 The error message was being set in the exception but not logged.
17 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
19 2011-11-28 Ben Konrath <ben@bagu.org>
21 Ignore LayoutItem_CalendarPortals.
23 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
24 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
26 2011-11-28 Ben Konrath <ben@bagu.org>
28 Extract method for creating the LayoutItemPortal DTO.
30 Just breaking the code up into smaller chunks.
32 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
34 2011-11-28 Ben Konrath <ben@bagu.org>
38 This should have been added with the refactor. Oops!
40 * src/main/java/org/glom/web/shared/TypedDataItem.java:
42 2011-11-28 Ben Konrath <ben@bagu.org>
44 Create primary key value from URL string using type from Glom document.
46 See this bug, comments 19 - 25:
48 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
50 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
51 create a TypeDataItem for the primary key here when loading from a
52 URL. Show the same string for the primary key value as was received
53 from the URL string (when loading from a URL).
54 * src/main/java/org/glom/web/server/Utils.java: Update method for
55 creating the Gda Value from the TypeDataItem to properly deal with
56 creating a Gda Value based on the Glom document type for the primary
57 key value string when loading from a URL.
58 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
59 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
60 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
61 Update for changed method name.
63 2011-11-27 Ben Konrath <ben@bagu.org>
65 Rename PrimaryKeyItem to TypedDataItem.
67 The name PrimaryKeyItem suggests what the class should be used for.
68 TypedDataItem is a neutral name that describes the class better.
70 This is a rename-only refactor.
72 * src/main/java/org/glom/web/client/OnlineGlomService.java:
73 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
74 * src/main/java/org/glom/web/client/Utils.java:
75 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
76 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
77 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
78 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
79 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
80 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
81 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
82 * src/main/java/org/glom/web/server/Utils.java:
83 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
84 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
85 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
86 * src/main/java/org/glom/web/shared/NavigationRecord.java:
88 2011-11-25 Ben Konrath <ben@bagu.org>
90 Improve Gda Value conversion from PrimaryKeyItem.
92 The value from the PrimaryKeyItem is only used if its type match the
93 type from the glom document.
95 * src/main/java/org/glom/web/server/Utils.java:
97 2011-11-25 Ben Konrath <ben@bagu.org>
99 Manually check if the java-liblgom .so is visible to the JVM.
101 It seems that Tomcat has problems when a static initializer throws an
102 exception. This check is done before the first method call into
103 java-libglom so that execution doesn't continue if the .so is not
106 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
108 2011-11-25 Ben Konrath <ben@bagu.org>
110 Improve browser configuration error messages.
114 https://bugzilla.gnome.org/show_bug.cgi?id=662792
116 * src/main/java/org/glom/web/client/OnlineGlomService.java:
117 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
118 getConfigurationErrorMessage() method.
119 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
120 Get and display a specific configuration error message when no Glom
122 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
123 Implement getConfigurationErrorMessage() method. Surround configuration
124 code in the init() method with a try/catch block. This allows the
125 errors to be caught while keeping the servlet available to retrieve the
126 configuration error message.
128 2011-11-25 Ben Konrath <ben@bagu.org>
130 Don't use Strings to hold primary key values.
132 The primary key values are now held in a new data object
133 (PrimaryKeyItem) that holds type information and the primary key value
134 using the correct type.
136 * src/main/java/org/glom/web/client/OnlineGlomService.java:
137 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
138 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
139 PrimaryKeyItem instead of String to hold the primary key value.
140 * src/main/java/org/glom/web/client/Utils.java: Remove
141 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
142 PrimaryKeyItem based on the GlomFieldType and the DataItem.
143 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
144 PrimaryKeyItem instead of String to hold the primary key value. Load
145 document selection page when the documentID has not been set correctly.
146 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
147 DetailsPlace -> URL and URL -> DetailsPlace conversion with
149 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
150 Return empty string for URL instead of "null".
151 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
152 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
153 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
154 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
155 PrimaryKeyItem instead of String to hold primary key values.
156 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
157 PrimaryKeyValue to a Gda Value.
158 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
159 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
160 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
161 Replace temporary database access code that uses the PrimaryKeyValue to
162 Gda Value conversion.
163 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
164 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
165 PrimaryKeyItem instead of String.
166 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
167 hold primary key values.
169 2011-11-24 Ben Konrath <ben@bagu.org>
171 Use newly added java-libglom API to create queries.
173 This isn't finished. I still need to stop using Strings for primary key
174 values in the client code.
176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
177 libglom to use fake connections so that retrieving the query string will
179 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
180 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
181 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
182 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
183 Use the newly added libglom sql methods and classes to create the
184 query. Add temporary hack to convert primary value strings to Gda
187 2011-11-23 Ben Konrath <ben@bagu.org>
189 Don't explicitly set the height of Portals.
191 See comments 6 - 10 of this bug for details:
193 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
195 * src/main/java/org/glom/web/client/ui/details/Portal.java:
197 2011-11-23 Ben Konrath <ben@bagu.org>
199 Use an HTML table instead of CSS for the FlowTable layout.
201 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
202 GWT's FlexTable to implement the FlowTable.
203 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
205 2011-11-18 Ben Konrath <ben@bagu.org>
207 Add boolean example to HTML table mockup.
209 * mockups/details-view-html-tables-text-entries.html:
211 2011-11-17 Ben Konrath <ben@bagu.org>
213 Ensure the pager buttons are always visible for related lists.
215 To accomplish this, I've turned off text wrapping in the list view and
216 related list tables for both the header and data text. The related list
217 table now has a fixed layout so the it doesn't overflow its container.
218 This is required to ensure that the cell text is clipped when it
219 overflows the cell and an ellipsis is added to the right side of the
220 cell when text is clipped.
222 A fixed table layout for the related list table in the details view
223 seems what we want for the details view anyway, so the side-effect is
226 The ellipsis will only be displayed in Firefox >= 7.
230 https://bugzilla.gnome.org/show_bug.cgi?id=662930
232 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
233 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
234 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
236 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
237 Set the 'table-layout: fixed' CSS property to the related list table.
238 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
239 'white-space: nowrap;' CSS property on both the list view and the
242 2011-11-16 Ben Konrath <ben@bagu.org>
244 Rework the fix for empty notebook tab labels.
246 Setting the empty group titles with its name caused problems for the
247 details layout. Instead of using libglom's
248 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
249 to the client when the title is empty. This allows the Notebook to use
250 the name when the title is empty without affecting anything else.
252 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
253 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
255 2011-11-16 Ben Konrath <ben@bagu.org>
257 Set group titles with name when title is empty.
259 This fixes a problem with an empty notebook tab label in the Lesson
260 Planner document. The forth tab in the notebook should be "Internet":
262 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
264 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
265 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
268 2011-11-16 Ben Konrath <ben@bagu.org>
270 Remove whitespace from the configured username properties.
272 This assumes that usernames won't have whitespace at the beginning
273 or end. But I think this is a reasonable assumption.
275 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
276 String.trim() to remove the whitespace from the username properties.
278 2011-11-15 Ben Konrath <ben@bagu.org>
280 Add details view mockup with HTML tables and text entries.
282 This is from the attachment on this bug:
284 https://bugzilla.gnome.org/show_bug.cgi?id=663109
286 * mockups/details-view-html-tables-text-entries.html:
288 2011-11-15 Ben Konrath <ben@bagu.org>
290 Add space between the columns of the flow table.
294 https://bugzilla.gnome.org/show_bug.cgi?id=662918
296 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
297 space between columns in the flow table.
299 2011-11-15 Ben Konrath <ben@bagu.org>
301 Add backup files to the .gitignore.
303 * .gitignore: Ignore files that end with ~.
305 2011-11-09 Ben Konrath <ben@bagu.org>
307 Use latest release of gwt-log.
309 Gwt-log releases are now being submitted to the maven central
310 repository so manual installation of the jar is no longer required.
312 * pom.xml: Update version and groupId of gwt-log dependency.
314 2011-10-31 Ben Konrath <ben@bagu.org>
316 Don't use GWT numeric formatting to override the glom currency formatting.
318 Currencies are now displayed like they are in Glom. See this bug:
320 https://bugzilla.gnome.org/show_bug.cgi?id=646216
322 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
324 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
325 currency code to constructor and set it when the cell is rendered.
326 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
327 currency code to the constructor of the NumericCell.
329 2011-10-27 Ben Konrath <ben@bagu.org>
331 Require the latest release of java-libglom (1.17.4).
335 2011-10-26 Ben Konrath <ben@bagu.org>
337 Add style to Notebook that matches current theme.
339 It's not the best style in the world but it's better than the default.
341 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
342 padding at the bottom of the child widgets.
343 * src/main/webapp/style.css: Add style for the Notebook.
345 2011-10-26 Ben Konrath <ben@bagu.org>
347 Move servlet initialization code to overridden init method.
349 This is half of the solution to getting proper error messages
350 displayed when configuration errors occur. Here's the relevant bug:
352 https://bugzilla.gnome.org/show_bug.cgi?id=662792
354 The rest of the solution involves surrounding the init method with a
355 try/catch block and setting a global variable with the error /
356 exception. A new async method should be created to retrieve and display
357 the error message / exception.
359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
360 code from constructor to init method adding exceptions as needed.
362 2011-10-26 Ben Konrath <ben@bagu.org>
364 Add script to monitor and restart tomcat if required.
366 * utils/check-and-recover-tomcat.py: New file.
368 2011-10-26 Ben Konrath <ben@bagu.org>
370 Display the correct number of data items in the pager.
374 https://bugzilla.gnome.org/show_bug.cgi?id=661441
376 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
377 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
378 The implementation is the same for both tables: Keep track of the
379 number of non-empty rows and fire and RowCountChangeEvent after the data has
381 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
382 custom Pager class that subclasses SimplePager to handle displaying
383 the correct number when empty rows have been added.
385 2011-10-26 Ben Konrath <ben@bagu.org>
387 Correct error in previous commit.
389 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
390 eventBus parameter from listView.setCellTable().
392 2011-10-26 Ben Konrath <ben@bagu.org>
394 Fix error in TODO comment.
396 * src/main/java/org/glom/web/client/activity/ListActivity.java:
398 2011-10-24 Ben Konrath <ben@bagu.org>
400 Create Notebook widgets to the details view.
402 This isn't finished just yet - I still need to create a reasonable
403 style to match the current theme.
405 * src/main/java/org/glom/web/client/Utils.java: Add method for
406 calculating the height of a widget. This is used in the Notebook class.
407 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
408 new constructor method in Group.
409 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
410 method for creating child widget that can be used by subclasses
411 like Notebook. New constructor that allows disabling the group
412 titles - Notebooks don't set a group title for their child groups.
413 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
414 to make Notebooks using GWT's TabLayoutPanel.
415 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
416 constructor that allows disabling the group titles.
417 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
418 LayoutItemNotebook DTO.
419 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
420 DTO for Notebooks. It's just an empty class for now but we might need
421 it to transfer some specific information in the future.
423 2011-10-21 Ben Konrath <ben@bagu.org>
425 Add navigation buttons to related list tables.
427 * src/main/java/org/glom/web/client/OnlineGlomService.java:
428 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
429 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
430 method getSuitableRecordToViewDetails() for getting the table name
431 and primary key value for related list navigation buttons.
432 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
433 private cell renderer class to get the navigation information for
434 related list tables from the server. Extract the navigation
435 processing code from the details cell navigation and use it for the
436 related list navigation as well.
437 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
438 cell renderer class for the details open buttons. This was needed
439 because the related list navigation buttons and the list view
440 navigation buttons need to react differently when clicked.
441 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
442 the onEnterKeyDown() method because it's now overriden in the
443 subclasses that are specific to the related list tables and the list
445 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
446 the vertical size a little because the buttons add a bit of vertical
447 space to table. This is not a perfect solution because the vertical
448 size of with table fewer than 5 rows will be a little smaller.
449 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
450 changes in how navigation buttons are handled.
451 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
452 getSuitableRecordToViewDetails() using the new RelatedListNavigation
453 database access object.
454 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
455 to find the portal for a given relationship name from
456 RelatedListDBAccess. Add method to find a primary key field for a
458 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
459 Move code to find the portal for a given relationship name to
461 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
462 New file: database access object for getting the related list
463 navigation information (the table name and the primary key value).
464 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
465 DTO for transferring a table name to navigate to and a primary key
467 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
468 boolean and getter/setter to specifies if the related list should add
471 2011-10-24 Murray Cumming <murrayc@murrayc.com>
473 Use the master branch of java-libglom
475 * pom.xml: Depend on java-libglom 1.19 instead.
477 This is the master branch. See also the libglom-1-18 branch.
479 2011-10-11 Ben Konrath <ben@bagu.org>
481 Enable the open navigation button when the data has been set.
483 This avoids having active buttons that don't do anything when the data
486 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
488 2011-10-11 Ben Konrath <ben@bagu.org>
490 Use IsWidget interface for FlowTableItem.
492 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
493 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
495 2011-10-11 Ben Konrath <ben@bagu.org>
497 Remove GWT styling from open button in details view.
499 There are still some issues with how the details cell is arranged but
500 this should be made to match Glom 1.20. I'm going to leave fixing this
501 until I have Glom 1.20 up and running.
503 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
504 style name on open button.
505 * src/main/webapp/style.css: Move and edit details-navigation class.
506 Re-arrange some classes to make them appear in the same order as the
509 2011-10-07 Ben Konrath <ben@bagu.org>
513 * .gitignore: Ignore new cache directory.
514 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
515 * pom.xml: Change GWT and maven plugin to 2.4.0.
516 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
518 * src/main/java/org/glom/web/client/ClientFactory.java:
519 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
520 * src/main/java/org/glom/web/client/OnlineGlom.java:
521 Update source for API changes.
522 * utils/build-onlineglom-war.sh: Remove cache directory before the
525 2011-10-07 Ben Konrath <ben@bagu.org>
527 Add navigation buttons in the details view.
529 This isn't finished but I thought I'd commit what I have as it's a
530 pretty good start. I still need to:
532 1. Change the style so that it fits better into the current theme
533 2. Adjust the details cell to expand as much as possible.
535 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
536 click handlers to navigation buttons in the DetailsCells. Create a
537 refreshData() method to get just the data from the server without the
539 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
540 Update the tableSelector and browser title when the table name
541 changes without using the tableSelector.
542 * src/main/java/org/glom/web/client/ui/DetailsView.java:
543 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
544 getDetailsCells() to getCells(). Update variable names.
545 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
546 method to set click handler on navigation button. Rename a few
547 variables. Add navigation buttons where needed.
548 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
549 variables and methods.
550 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
551 navigation boolean and navigation table as required in the
553 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
554 variables for navigation along with getter/setter methods.
556 2011-10-07 Ben Konrath <ben@bagu.org>
558 Rename Field to DetailsCell.
560 This is a refactor-only commit. No functionality has been added or
563 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
564 Update variable and method names.
565 * src/main/java/org/glom/web/client/ui/DetailsView.java:
566 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
567 variable and method names.
568 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
570 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
571 variable and method names.
573 2011-10-07 Ben Konrath <ben@bagu.org>
575 Create separate methods for layout and data the details view.
577 This is a refactor-only commit. No functionality has been added or
580 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
581 private methods: setData(), createLayout().
583 2011-10-07 Ben Konrath <ben@bagu.org>
585 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
587 This is part of a change to get navigation buttons in the details view
588 but it should have been done this way from the start.
590 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
591 for method name change in TableSelectionView.
592 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
593 Create TableChangeEvent and set the browser title using the
594 TableSelectionView API.
595 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
596 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
597 Change getSelectedTable() to getSelectedTableName(). Add
598 getSelectedTableTitle().
600 2011-10-07 Ben Konrath <ben@bagu.org>
602 Use primaryKeyValue naming convention in constructor of DetailsPlace.
604 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
606 2011-10-07 Ben Konrath <ben@bagu.org>
608 Update TableChangeEvent to use newTableName naming convention.
610 This makes the class more consistent with GWT naming conventions.
612 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
613 Update for method name change in TableChangeEvent.
614 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
615 for method name change in TableChangeEvent.
616 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
617 newTableName variable and getter method. Make toDebugString()
620 2011-09-30 Ben Konrath <ben@bagu.org>
622 Disable the pager in the list tables when the data row count is less than the minimum.
624 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
625 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
627 2011-09-30 Ben Konrath <ben@bagu.org>
629 Add empty rows to the end of related list and list view tables.
631 I also extracted the cell rendering classes from the ListTable because
632 the code was becoming a little crazy with all the anonymous inner
633 classes. My plan is to use these cell rendering classes in the details
634 view as well so this refactor will be needed for that change.
636 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
637 set the row count in related list tables if the data has more rows
638 than the minimum number of rows visible.
639 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
640 row count in list view tables if the data has more rows than the
641 minimum number of rows visible.
642 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
643 for rendering TYPE_BOOLEAN cells. The code was extracted from the
645 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
646 for rendering TYPE_NUMERIC cells. The code was extracted from the
648 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
649 class for rendering cells with buttons in list views. The code was
650 extracted from the ListTable class.
651 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
652 for rendering TYPE_TEXT cells. The code was extracted from the
654 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
655 Add empty rows to the end of the data if required. Implement
656 ListTable.getMinNumVisibleRows().
657 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
658 cell renderer code to public classes. Return null in
659 Column.getValue() for empty rows. Add new abstract method:
660 getMinNumVisibleRows(). Move code to set the row count of the list view
661 table to ListViewImpl.
662 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
663 empty rows to the end of the data if required. Implement
664 ListTable.getMinNumVisibleRows().
667 2011-09-27 Ben Konrath <ben@bagu.org>
669 Use GWT.log for client-side debugging statements.
671 These are optimized out when deployed so I should have used this method
672 in the first place. These statements will eventually be replaced with some sort
673 of notification in the browser.
675 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
676 * src/main/java/org/glom/web/client/activity/ListActivity.java:
677 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
678 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
679 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
681 2011-09-27 Ben Konrath <ben@bagu.org>
683 Put tableselector on the right, back to list link on right.
685 The idea is that the table selector is acting like a label for the
686 currently displayed table so it should be placed below the document title. This
687 puts the table title in a similar position to where it is in Glom.
689 * mockups/details-contacts.html:
690 * mockups/details-projects.html:
691 * mockups/listview-contacts.html:
692 * mockups/listview-projects.html:
694 Update mockups to match how the interfaces currently look.
695 * src/main/webapp/style.css: Swap positions of backlink with the table
696 selector. Add some space on the left side of the table selector to
697 line things up with the document title.
699 2011-09-27 Ben Konrath <ben@bagu.org>
701 Add field colouring to details view.
703 This change re-works how field colouring works. The colour formatting
704 information is now set to the client with the layout information instead of
705 with the data. This eliminates the need to send the same colour strings for
706 data in list view column when colour information is set.
708 In order to set an alternate colour for negative numeric values, the
709 number is now sent to client and formatted with the GWT NumberFormat class.
711 This change also fixes:
713 https://bugzilla.gnome.org/show_bug.cgi?id=659752
715 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
716 internationalization framework which is needed for client side numeric
718 * src/main/java/org/glom/web/client/Utils.java: New file for some
719 client static utility methods.
720 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
721 the DataItem object to the Field class. Use a utility method to
722 create the foreignKeyValue string.
723 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
724 alignment and text colours in the constructor. Add setData(DataItem)
725 method. Remove setText(String) method.
726 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
727 colour information to GlomTextCell. Create and use GlomNumberCell for
728 rendering numbers. Use utility method to get the string for the
729 primary key of the key provider. Re-work how the horizontal alignment
731 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
732 formatting to layout information. Methods for converting the libglom
733 formatting information were moved from DBAccess.
734 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
735 numeric formatting (it's now done on the client side). Don't set text
736 colours in DataItem. Move libglom formatting conversion methods to
738 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
739 getters/setters for text colour information.
740 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
741 for transferring the libglom NumericFormat information to the client.
742 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
743 and getters/setters for: GlomNumericFormat, background colour and
744 foreground colour strings.
746 2011-09-26 Ben Konrath <ben@bagu.org>
748 Simplify code that iterates through the LayoutGroup.
750 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
752 2011-09-26 Ben Konrath <ben@bagu.org>
754 Accept Eclipse formatting for OnlineGlomServiceAsync.
756 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
758 2011-09-26 Ben Konrath <ben@bagu.org>
760 Don't use the ListDBAccess classes to get the primary key layout information.
762 This was causing a bug where the wrong index for the hidden primary key
763 was being sent to the client.
765 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
766 primary key while creating the LayoutGroup DTO. Create a
767 LayoutItemField DTO for hidden primary keys. Don't use the
768 RelatedListDBAccess because it was only used for getting the primary
770 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
771 access modifier from public to protected for getPrimaryKeyField() and
772 getPrimaryKeyLayoutItemField().
773 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
774 abstract method getExpectedResultSize() because RelatedListDBAccess
775 doesn't have enough info to implement it.
776 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
777 Remove @Override for getExpectedResultSize().
778 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
779 Remove method getExpectedResultSize().
781 2011-09-23 Ben Konrath <ben@bagu.org>
783 Log which layout (list or details) the ignored item is from.
785 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
787 2011-09-23 Ben Konrath <ben@bagu.org>
789 Remove annotations that turn off code formatting in DataItem.
791 * src/main/java/org/glom/web/shared/DataItem.java:
793 2011-09-23 Ben Konrath <ben@bagu.org>
795 Rename GlomField to DataItem and update associated methods.
797 This is a rename-only refactor. No functionality has been added or
800 * src/main/java/org/glom/web/client/OnlineGlomService.java:
801 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
802 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
803 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
804 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
805 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
806 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
807 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
808 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
809 * src/main/java/org/glom/web/server/database/DBAccess.java:
810 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
811 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
812 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
813 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
814 * src/main/java/org/glom/web/shared/DataItem.java:
815 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
816 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
818 2011-09-23 Ben Konrath <ben@bagu.org>
820 Rename GlomDocument to DocumentInfo and update associated methods.
822 This is a rename-only refactor. No functionality has been added or
825 * src/main/java/org/glom/web/client/OnlineGlomService.java:
826 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
827 * src/main/java/org/glom/web/client/activity/ListActivity.java:
828 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
829 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
830 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
831 * src/main/java/org/glom/web/shared/DocumentInfo.java:
833 2011-09-20 Ben Konrath <ben@bagu.org>
835 Require java-libglom 1.17.3.
837 This picks up the fix for the seg fault problem with the Scenes table
838 in the Openismus Film Manager example.
842 2011-09-20 Ben Konrath <ben@bagu.org>
844 Change the way sort clause is added for primary key when no sort clause is requested.
846 The primary key is now added to the LayoutFieldVector (fieldsToGet)
847 before the sort clause is created. When a sort clause is not requested, the
848 sort clause is created by finding the primary key in the LayoutFieldVector
851 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
853 2011-09-20 Ben Konrath <ben@bagu.org>
855 Log error message if no documents are found in the configured directory.
857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
858 Extract the glom file extension string to a private static final class
859 variable (mostly as syntactic sugar). Accept a minor formatting change.
860 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
861 the example glom.document.directory configuration property to make it
862 more clear that it can any directory, not just the home directory.
864 2011-09-18 Ben Konrath <ben@bagu.org>
866 Add related lists to details view.
868 The related list table has support for paging and sorting just like the
869 table in the list view.
871 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
872 SQL queries for the related list tables.
873 * src/main/java/org/glom/web/client/OnlineGlomService.java:
874 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
875 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
876 Rename getList methods to getListView and add comments. Remove
877 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
878 it being unused. Add methods: getDetailsLayoutAndData(),
879 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
880 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
881 Create the layout and set the data for the fields in one async call
882 instead of two. Create related lists where appropriate.
883 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
884 for method name changes in OnlineGlomService.
885 * src/main/java/org/glom/web/client/ui/DetailsView.java:
886 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
887 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
889 * src/main/java/org/glom/web/client/ui/ListView.java:
890 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
891 tableName from setCellTable(). Create a ListViewTable instead of
893 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
894 represent a data field in the details view.
895 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
896 from addDetailsCell() to Field class. Keep track of the Fields and
897 Portals in the details view.
898 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
899 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
900 and add a method to get it. Add method to set the contents of the
902 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
903 New class for related list tables. This class has the data provider
904 for the related list table.
905 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
906 abstract class which is the base class for the ListViewTable and the
908 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
909 New class for list view tables. This class has the data provider for
911 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
912 methods for related list tables. Add more information to the
913 LayoutItemField and LayoutItemPortal DTOs.
914 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
915 Remove debugging print statement.
916 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
917 Remove debugging print statements. Add primary key field to SQL count
919 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
920 Remove unnecessary LayoutFieldVector parameter from
921 getResultSizeOfSQLQuery() method.
922 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
923 New class for related list table database access.
924 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
925 class that is a wrapper DTO for details view layout and data.
926 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
927 new 'fromField' string to this DTO.
928 * src/main/webapp/style.css: Remove bottom margin and override top
931 2011-09-15 Ben Konrath <ben@bagu.org>
933 Breakup the OnlineGlomServiceImpl class to make it more manageable.
935 This sets things up to make it easier to add the data retrieval for
936 related lists (portals). No user noticeable changes were made with
939 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
940 class has the code to retrieve the layouts and access the
941 database using the new database helper classes.
942 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
943 Most of the functionality has been removed from this class. This
944 class now represents the public interface for the client side
945 code. It also deals with configuring the servlet and cleaning
946 things up when the servlet is stopped.
947 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
948 of static methods into this utility class.
949 * src/main/java/org/glom/web/server/database/DBAccess.java:
950 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
951 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
952 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
953 These classes have the database retrieval code. The class hierarchy
954 has been setup to make it easy to reuse code for similar
957 2011-09-06 Ben Konrath <ben@bagu.org>
959 Create separate classes for list table code and the data provider.
961 As part of this refactor, I also split up the code a bit to make it
964 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
965 table code to two new classes (below).
966 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
967 with code from ListViewImpl.
968 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
969 New file with code from ListViewImpl.
971 2011-09-06 Ben Konrath <ben@bagu.org>
973 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
975 This fixes the LayoutItemPortal DTO to match the libglom layout object
978 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
980 2011-09-01 Ben Konrath <ben@bagu.org>
982 Set title of Portals in the Details View.
984 * pom.xml: Bump required version of java-libglom to 1.17.1.
985 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
986 widget creation to its own class. Add comments to constructor.
987 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
988 The code is mostly from the Group class with the title now set.
989 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
990 title of Portal. Update some comments. Fix some code formatting.
992 2011-09-01 Ben Konrath <ben@bagu.org>
994 Remove TODO comment for the flow table column width.
996 The flow table column width is working correctly and doesn't need to be
997 changed. See this mailing list post for more info:
999 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1001 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1003 2011-08-27 Ben Konrath <ben@bagu.org>
1005 Add document title (database name) to top of the browser page.
1007 I added the document title to the TableSelecitonView but that will
1008 change if / when we add a view that doesn't require table selection.
1010 * mockups/details-contacts.html:
1011 * mockups/details-projects.html:
1012 * mockups/listview-contacts.html:
1013 * mockups/listview-projects.html:
1014 * mockups/style.css: Add document title to mockups to keep things
1016 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1017 sizes to account for the document title.
1018 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1019 Set the document title when it has been retrieved from the server.
1020 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1021 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1022 and implement setDocumentTitle(String) method.
1023 * src/main/webapp/style.css: Add ID for document title style.
1025 2011-08-25 Ben Konrath <ben@bagu.org>
1027 Add NavigationType enum to LayoutItemPortal DTO.
1029 This is the start of adding support for Portals to the Details View.
1031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1032 LayoutItem_Portal.navigation_type enum from libglom to
1033 LayoutItemPortal.NavigationType enum.
1034 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1035 NavigationType enum, field for storing the NavigationType and getter
1038 2011-08-25 Ben Konrath <ben@bagu.org>
1040 Implement the flow table layout in the Details View.
1042 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1043 FlowTable to Group to account for the renamed class.
1044 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1045 File. This is a container widget that implements the Glom details view
1046 flow table behaviour.
1047 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1048 org/glom/web/client/ui/FlowTable.java.
1049 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1050 so that the size of the subgroups are a closer match to the size of
1051 the Glom subgroups. This makes the flowtable layout match the layout
1052 in Glom for the Music Collection example file.
1054 2011-08-16 Ben Konrath <ben@bagu.org>
1056 Create container element for LayoutItemPortal in Details View.
1058 This will help me develop the layout for the FlowTable.
1060 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1061 fieldPanel variable to detailsCell.
1063 2011-08-15 Ben Konrath <ben@bagu.org>
1065 Set the height of the data element in the Details View.
1067 I changed the InlineLabels (text in a span element) to Labels (text in
1068 a div element) so that I could set the height of the details-data
1069 elements instead of the details-cell parent elements. This allows the
1070 the details-data element to display the correct height if style is
1071 applied that shows the height.
1073 This change has the added benefit of allowing the order of the labels
1074 and data elements to be changed for right-to-left languages.
1076 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1077 InlineLabels to Labels.
1078 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1079 InlineLabels to Labels. Set the height of the data element.
1080 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1081 multiline text height in the Formatting DTO.
1082 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1083 for multiline height along with getter and setter methods.
1084 * src/main/webapp/style.css: Adjust style to account for the change
1085 from span elements to div elements in the details cell.
1087 2011-08-15 Ben Konrath <ben@bagu.org>
1089 Make the List View appearance match the mockups.
1091 It doesn't match exactly but it's much better than it was.
1093 * mockups/listview-contacts.html: Remove unused css classes.
1094 * mockups/listview-projects.html: Remove unused css classes.
1095 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1096 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1097 for mainPanel instead of VerticalPanel (table). Set style name on
1098 CellTable. Set style name on Details column. Right-align Details
1100 * src/main/webapp/style.css: Adjust properties to match the mockups.
1102 2011-08-12 Ben Konrath <ben@bagu.org>
1104 Add better support for subgroups in the details view.
1106 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1107 changed FlowTable constructor.
1108 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1109 support for subgroups and subgroup-titles.
1110 * src/main/webapp/style.css: Add CSS class for subgroups and
1113 2011-08-12 Ben Konrath <ben@bagu.org>
1115 Return the top level LayoutGroup title.
1117 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1119 2011-08-11 Ben Konrath <ben@bagu.org>
1121 Make the TableSelector header match the mockup.
1123 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1124 the layout panel. Properly lineup the table selection header with
1125 the list and details view.
1126 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1127 margin around the details view.
1128 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1129 Rename listBox variable to tableSelector. Set id for the style sheet.
1130 Use a FlowPanel instead of a HorizontalPanel.
1131 * src/main/webapp/style.css: Add properties to make the TableSelector
1132 box match the mockups.
1134 2011-07-13 Ben Konrath <ben@bagu.org>
1136 Update install script for java-libglom version change.
1138 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1141 2011-07-13 Ben Konrath <ben@bagu.org>
1143 Add support sub-group in the details view.
1145 I also removed the code that special-cased the default details view
1148 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1150 I still have to make a proper flowtable.
1152 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1153 Don't special-case default details view layout.
1154 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1155 addLayoutField() as I'm going to use it.
1156 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1157 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1159 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1160 extracted from DetailsViewImpl.GroupPanel. Add support for
1162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1163 column count when getting the details layout.
1165 2011-07-12 Ben Konrath <ben@bagu.org>
1167 Set browser title with database and table titles.
1169 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1170 Set the browser title when the table changes and when the activity
1172 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1173 title when retrieving document info (the GlomDocument object).
1174 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1175 with getter and setter methods. Remove unused convenience constructor.
1176 Use default code formatting.
1178 2011-07-12 Ben Konrath <ben@bagu.org>
1180 Ignore LayoutItemPortals in the details view.
1182 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1185 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1186 LayoutItemPortal layout objects.
1187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1188 LayoutItemPortal objects when retrieving the details layout.
1189 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1190 file. This is an empty class and just used to get type information for
1193 2011-07-12 Ben Konrath <ben@bagu.org>
1195 Use java-libglom 1.17.0.
1199 2011-07-11 Ben Konrath <ben@bagu.org>
1201 Remove "Table:" label from table selector.
1203 This matches a recent change in the Glom UI.
1205 * mockups/details-contacts.html:
1206 * mockups/details-projects.html:
1207 * mockups/listview-contacts.html:
1208 * mockups/listview-projects.html: Remove the "Table:" label from the
1210 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1212 2011-07-11 Ben Konrath <ben@bagu.org>
1214 Add main groups to the details view.
1216 This makes things look a little nicer in the details view. The next step
1217 is to implement the flowtable.
1219 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1220 resources from the standard gwt css theme. Standard.css is now
1221 included in OnlineGlom.html so that the online glom css rules have
1222 precedence over the gwt theme.
1223 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1224 the whole LayoutGroup to the DetailsView instead of just the titles.
1225 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1226 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1227 details layout with a helper class (GroupPanel). I might extract this
1228 class when I make the full flowtable.
1229 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1230 string as default so I don't have to worry about NPEs when processing
1232 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1233 note beside OnlineGlom.gwt.xml above).
1234 * src/main/webapp/style.css: Add default font-size to body to override
1235 the font-size set by the standard theme. Don't use h2 tags for
1236 group-title. Create new details-cell class.
1238 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1240 ConfiguredDocument: Set the port number too.
1242 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1243 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1244 Glom document. Presumably this worked sometimes so far because there is a
1245 default port number.
1247 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1249 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1251 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1252 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1253 correct, though we should throw an exception too.
1255 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1257 Fix a addDocuemnt typo.
1259 * src/main/java/org/glom/web/shared/Documents.java
1260 (Documents.addDocuemnt): Rename to addDocument().
1261 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1262 (OnlineGlomServiceImpl.getDocuments): Adapt.
1264 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1266 Slightly improved log output when connection fails.
1268 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1269 (ConfiguredDocument.setUsernameAndPassword):
1270 We don't know for sure if it' the username/password that's wrong, so
1271 rephrase the message.
1272 Also ouput the exception message, though it's generic in this case.
1274 2011-07-08 Ben Konrath <ben@bagu.org>
1278 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1279 added braces to a one line if statement because the Eclipse formatter
1280 was getting confused.
1282 2011-07-07 Ben Konrath <ben@bagu.org>
1284 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1286 These should really be two separate tasks but I counldn't get things to
1287 work with GWT 2.2.0 and Eclipse 3.7.
1291 * .settings/org.eclipse.jdt.core.prefs:
1292 * .settings/org.eclipse.jdt.ui.prefs:
1293 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1294 * .settings/org.eclipse.m2e.core.prefs:
1295 Add new config files. Update current files. Remove references to the
1296 webtools plugins as we're not using any of the webtools features.
1297 * .gitignore: Add logs directory which is created when running with
1299 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1300 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1301 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1303 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1305 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1307 onlineglom.properties: Add explanatory comments.
1309 * src/main/resources/onlineglom.properties: Also change the default user
1310 from ben to someuser, to avoid the risk of people thinking we just
1311 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1313 2011-06-28 Ben Konrath <ben@bagu.org>
1315 Use filename in Log for incorrect passwords.
1317 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1318 getFileName(String) method to get the filename from the URI.
1320 2011-06-28 Ben Konrath <ben@bagu.org>
1322 Add the table name to the URL token for the ListPlace.
1324 This makes things consistent between the DetailsPlace and the
1325 ListPlace. It also allows the the ListPlace to be bookmarked.
1327 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1328 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1330 Remove getDefaultListLayout(). The default layout is now returned
1331 by the getListLayout() method when the table name is an empty string.
1332 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1333 Add table name field. Change to a new ListPlace when the table
1334 has been changed. Use getListLayout() for getting the default
1336 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1337 Add table name field. Set the correct table name in the list box
1338 when loading from bookmark. This corrects a problem for the
1340 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1341 Move table name to super-class (HasSelectableTable). Move document
1342 and table URL keys to super-class in HasSelectableTable.
1343 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1344 Add table name field. Add Tokenizer class with URL key common to
1345 the subclasses (DetailsPlace and ListPlace).
1346 * src/main/java/org/glom/web/client/place/ListPlace.java:
1347 Add table name. Add code to parse the URL token.
1348 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1349 Update ListPlace construction with empty table name string.
1350 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1351 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1352 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1353 Update ListPlace construction with table name string.
1354 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1355 Change defaultTableName field to tableName to reflect how it's now
1356 used. Update the getter and setter methods.
1358 2011-06-28 Ben Konrath <ben@bagu.org>
1360 Enable the table selector in the DetailsView.
1362 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1363 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1365 Remove getDefaultDetailsLayout(). The default layout is now returned
1366 by the getDetailsLayout() method when the table name is an empty
1368 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1369 event handler for table change event. Change to using
1370 getDetailsLayout() for the default details layout.
1371 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1373 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1374 when navigating to the details place.
1376 2011-06-27 Ben Konrath <ben@bagu.org>
1378 Use filename based unique document ID in URL and for RPC.
1380 The document ID is the glom document name with spaces (' ') replaced
1381 with pluses ('+') and without the .glom extension.
1383 This change is mostly a string substitution of 'documentTitle' for
1384 'documentID'. The only code change is the addition of a Documents DTO to get the
1385 filename to document title mappings as indicated below.
1387 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1388 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1389 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1390 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1391 Use Documents DTO to create the document links in the document
1393 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1394 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1395 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1396 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1397 * src/main/java/org/glom/web/client/place/ListPlace.java:
1398 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1399 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1400 * src/main/java/org/glom/web/client/ui/ListView.java:
1401 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1402 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1403 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1404 * src/main/java/org/glom/web/server/Log.java:
1405 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1406 getDocumentTitles() to getDocuments() and return the Documents DTO.
1407 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1408 transferring the filename to document title mappings.
1410 2011-06-25 Ben Konrath <ben@bagu.org>
1412 Make the authentication popup work again.
1414 This bug was introduced when I extracted ConfiguredDocument to its own class.
1416 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1417 correct success / fail status in setUsernameAndPassword().
1419 2011-06-25 Ben Konrath <ben@bagu.org>
1421 Use filename as unique key for configuring database usernames and passwords.
1423 This replaces the use of the Glom document title which could change
1424 depending on the locale. Thanks to Murray Cumming for pointing out this
1427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1428 * src/main/resources/onlineglom.properties:
1430 2011-06-24 Ben Konrath <ben@bagu.org>
1432 Pass primary key value to DetailsView.
1434 This enables the DetailsView to load the correct data.
1436 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1437 primary key value field and set in constructor. Pass primary key
1438 value to getDetailsData().
1439 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1440 variables for document title and primary key value.
1441 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1442 key value to the DetailsPlace.
1444 2011-06-24 Ben Konrath <ben@bagu.org>
1446 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1448 This allows the primary key to be retrieved by the Details button. This
1449 functionality has not been implemented yet but it's in the works.
1451 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1452 the LayoutGroup result to ListView.setCellTable instead of all of its
1453 fields individually.
1454 * src/main/java/org/glom/web/client/ui/ListView.java:
1455 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1456 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1457 get the primary key for the table.
1458 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1459 index of the primary key in the LayoutGroup accounting for hidden
1460 primary keys. Rename getJavaNumberFormat() to
1461 convertToJavaNumberFormat() for consistency. Cleanup / add some
1463 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1464 field for primary key index and a field to indicate whether the
1465 primary key is hidden or not.
1467 2011-06-23 Ben Konrath <ben@bagu.org>
1469 Rename getTableData methods to getListData.
1471 This is a rename refactor for consistency with other methods.
1473 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1474 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1475 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1476 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1478 2011-06-23 Ben Konrath <ben@bagu.org>
1480 Extract the ConfiguredDocument innerclass into its own class.
1482 This makes the servlet code more object oriented.
1484 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1485 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1487 new ConfiguredDocument class.
1489 2011-06-21 Ben Konrath <ben@bagu.org>
1491 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1493 This makes things more inline with how libglom works and reduces code
1494 duplication. This refactor lays the groundwork for adding the primary key to
1495 the LayoutGroup object.
1497 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1498 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1499 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1500 Change method names to getListLayout and getDefaultListLayout for
1501 consistency. Use LayoutGroup as the DTO for the list layout instead of
1502 ColumnInfo and LayoutListTable.
1503 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1504 new method names along with the LayoutGroup object for transferring the
1506 * src/main/java/org/glom/web/client/ui/ListView.java:
1507 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1508 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1509 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1511 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1512 Replaced with LayoutGroup.
1513 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1514 expectedResultSize and defaultTableName fields which are needed for
1516 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1517 type field which is needed for the list layout but will also be
1518 useful for the details layout as things progress.
1519 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1520 Make class abstract. Remove the unnecessary
1521 getFormattingHorizontalAlignment method. Add setFormatting method.
1523 2011-06-16 Ben Konrath <ben@bagu.org>
1525 Add scripts for building and installing war.
1527 These will help when updating OnlineGlom but they're also good
1528 supplemental documentation of the build and deployment proceeding.
1530 * utils/build-onlineglom-war.sh: New file.
1531 * utils/install-onlineglom-war.sh: New file.
1533 2011-06-16 Ben Konrath <ben@bagu.org>
1535 Create wrapper class to create consistent log messages.
1537 I wrapped methods in the Log class of gwt-log to add the method names
1538 from the servlet and create consistent formatting of the document title
1539 and table names in the log messages.
1541 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1542 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1543 log methods to use methods from wrapped Log class.
1545 2011-06-16 Ben Konrath <ben@bagu.org>
1547 Remove superfluous conditional return.
1549 Thanks to Murray Cumming for pointing this out!
1551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1553 2011-06-15 Ben Konrath <ben@bagu.org>
1555 Return an ArrayList of LayoutGroups for the Details layout.
1557 This corrects a problem with the details layout as it can have more
1558 than one top level LayoutGroup.
1560 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1561 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1562 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1563 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1564 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1565 with ArrayList of LayoutGroups for the details view layout.
1566 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1567 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1568 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1569 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1570 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1571 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1573 2011-06-14 Ben Konrath <ben@bagu.org>
1575 Use cast_dynamic method to determine the libglom LayoutItem type.
1577 This is better than finding the LayoutItem type by using the string
1578 returned from the get_part_type_name() method.
1580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1582 2011-06-14 Ben Konrath <ben@bagu.org>
1584 Add method names to log entries in the servlet.
1586 This helps when tracking down deployment problems.
1588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1590 2011-06-14 Ben Konrath <ben@bagu.org>
1592 Add data to the DetailsView using a hard-coded primary key value.
1594 The layout and functionality of the DetailsView is not complete. This
1595 is just a checkpoint so the patch doesn't get too big.
1597 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1598 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1599 Add getDetailsData() servlet method.
1600 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1601 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1602 LayoutFields are added to the DetailsView.
1603 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1604 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1605 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1606 take the string for the title instead of the object.
1607 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1608 Add implementation getDetailsData() along with some private helper
1610 * src/main/webapp/style.css: Add padding to details-data class. Add a
1611 details-label class with the same padding as the details-data class.
1613 2011-06-03 Ben Konrath <ben@bagu.org>
1615 Use presenter.goTo() to change to the DetailsPlace.
1617 This will make things easier when we need to open the DetailsView with
1618 data specific to the row that was clicked.
1620 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1622 2011-06-02 Ben Konrath <ben@bagu.org>
1624 Add CSS file from mockups.
1626 I'm adding this now because it's going to be useful to have when
1627 developing the DetailsView. The TableSelectionView and ListView aren't
1630 * src/main/webapp/OnlineGlom.html:
1631 * src/main/webapp/style.css:
1633 2011-06-02 Ben Konrath <ben@bagu.org>
1635 Use String.isEmpty() to check for empty string.
1637 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1639 2011-06-02 Ben Konrath <ben@bagu.org>
1641 Display main layout group titles in the DetailsView.
1643 This is the start of the DetailsActivity/DetailsView implementation.
1645 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1646 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1647 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1648 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1649 Get the layout information for the details view from the server and set
1650 the main layout group titles.
1651 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1652 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1653 Add addLayoutGroup() and addLayoutField() methods. This are just
1654 temporary methods for creating the the details view that will change
1656 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1657 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1659 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1660 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1661 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1662 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1663 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1664 Data Transfer Objects that mimic the libglom object structure. These are
1665 used for transferring the details layout but could also be used for
1666 transferring the list layout.
1668 2011-05-27 Ben Konrath <ben@bagu.org>
1670 Reset the AuthenticationPopup when clearing the ListView.
1672 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1674 2011-05-27 Ben Konrath <ben@bagu.org>
1676 Fix problem with onlineglom.properties file loading.
1678 The old way worked in Eclipse but not on the server. Loading the
1679 onlineglom.properties file now works in Eclipse and on the server.
1681 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1683 2011-05-24 Ben Konrath <ben@bagu.org>
1685 Update gwt-log from 3.1.0 to 3.1.2.
1687 Gwt-log 3.1.0 has been marked as depreciated.
1691 2011-05-24 Ben Konrath <ben@bagu.org>
1693 Add comment to ListActivity.goTo() method.
1695 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1697 2011-05-24 Ben Konrath <ben@bagu.org>
1699 Remove FIXME in convertGdkColorToHtmlColour()
1701 The Gdk::Color value returned by libglom is 16-bits per channel on both
1702 64 and 32-bit platforms.
1704 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1706 2011-05-19 Ben Konrath <ben@bagu.org>
1708 Improve performance of initial ListView load.
1710 I removed a round trip to the server for getting the default table name
1711 and then requesting information about that table. This also removes a potential
1712 problem with the table change handler not being setup in time to receive the
1713 table change event from the ListActivity.
1715 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1716 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1717 getDefaultLayoutListTable() method. Improve comments.
1718 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1719 getDefaultLayoutListTable() method instead of firing a table change
1720 event to get the table to load.
1721 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1722 implementation of getDefaultLayoutListTable() method.
1723 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1726 2011-05-19 Ben Konrath <ben@bagu.org>
1728 Override toDebugString() in TableChangeEvent.
1730 This is useful to have for debugging.
1732 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1734 2011-05-19 Ben Konrath <ben@bagu.org>
1736 Add a "Back to List" link when at the DetailsPlace.
1738 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1739 Populate the CellTable based on the selected table of the ListBox if
1740 it's set otherwise use the default table. This allows the "Back to
1742 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1743 Remove Place from constructors. Add a setPlace() method. Add
1744 goToPlace() method. Set class as presenter for TableSelectionView.
1745 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1746 Use the same TableSelectionActivity when switching between the List and
1748 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1749 Subclass the new HasSelectableTablePlace. This removes some duplicate
1751 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1752 New class to represent Places that display the TableSelectionView.
1753 * src/main/java/org/glom/web/client/place/ListPlace.java:
1754 Subclass the new HasSelectableTablePlace. This removes some duplicate
1756 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1757 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1758 Add Presenter interface. Add setBackLinkVisible() method. Add
1759 setBackLink() method.
1761 2011-05-18 Ben Konrath <ben@bagu.org>
1763 Enable the "Details" buttons.
1765 Right now only an empty details view is displayed.
1767 * src/main/java/org/glom/web/client/ClientFactory.java:
1768 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1769 Add DetailsView to ClientFactory.
1770 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1771 A basic activity for the details view.
1772 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1773 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1775 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1776 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1778 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1779 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1780 unnecessary super() in constructor.
1781 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1782 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1783 really shouldn't create a new TableSelectionActivity for both the ListPlace
1784 and the DetailsPlace so this should be considered a temporary solution.
1785 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1786 New file. Represents a URL for the details view.
1787 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1788 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1789 A basic details view interface and implementation.
1790 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1791 Enable the "Details" buttons.
1793 2011-05-12 Ben Konrath <ben@bagu.org>
1795 Use a LayoutPanel with multiple display areas for main layout.
1797 This is mostly a refactor in that there are no changes from the user
1798 point of view. These changes are required so that we can swap out the list view
1799 with the details view when the user clicks the "Details" button.
1801 * src/main/java/org/glom/web/client/ClientFactory.java:
1802 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1803 OnlineGlomView. Add TableSelectionView, ListView and
1804 AuthenticationPopup.
1805 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1806 for main layout. Add display regions for main activities. Add
1807 activity manager for for main activities.
1808 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1809 file from parts of the deleted OnlineGlomActivity.
1810 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1811 New file from parts of the deleted OnlineGlomActivity.
1812 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1813 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1814 New files for app wide table change event.
1815 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1816 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1817 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1818 Activity mappers for the main activities replace the deleted app-wide
1820 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1821 Fix a spelling error in he comment.
1822 * src/main/java/org/glom/web/client/ui/ListView.java:
1823 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1824 Renamed from LayoutListView and modified for MVP. This still not a
1825 proper dumb view as prescribed by the MVP pattern but it works for now.
1826 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1827 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1828 New widget stripped out of the deleted OnlineGlomView.
1829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1830 Remove hack that is fixed by this patch.
1832 2011-05-06 Ben Konrath <ben@bagu.org>
1834 Rename OnlineGlomPlace to ListPlace.
1836 The only change besides the rename is that url will now display #list
1837 instead of #Document.
1839 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1840 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1841 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1842 * src/main/java/org/glom/web/client/place/ListPlace.java:
1843 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1845 2011-05-06 Ben Konrath <ben@bagu.org>
1847 Use Presenter for app navigation.
1849 This is the proper way to deal with Place (URL) changes with the MVP
1852 * src/main/java/org/glom/web/client/ClientFactory.java:
1853 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1854 PlaceHistoryMapper and PlaceHistoryHandler.
1855 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1856 PlaceHistoryMapper and PlaceHistoryHandler.
1857 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1858 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1859 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1860 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1861 Add Presenter interface and setPresenter methods. Rename addHyperLink
1862 to addDocumentLink taking only the document title as a parameter.
1864 2011-04-14 Ben Konrath <ben@bagu.org>
1866 Prompt for db username/password if they haven't been set.
1868 This is implemented with a popup widget that is contained within the
1869 OnlineGlomView and managed by the OnlineGlomActivity.
1871 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1872 methods for checking and setting the database username and password.
1873 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1874 new methods for checking and setting the database username and
1876 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1877 Display authentication popup if the JDBC connection to the database
1878 has not been authenticated.
1879 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1881 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1882 for dealing with the authentication popup.
1883 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1884 Implement the methods for dealing with the authentication popup.
1885 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1886 try to executed queries if the database connection hasn't been
1887 authenticated. Implement methods for checking and setting the
1888 database username and password.
1890 2011-04-12 Ben Konrath <ben@bagu.org>
1892 Make log messages a little clearer.
1894 Add a dash betweeen the document title and the table name.
1896 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1898 2011-04-12 Ben Konrath <ben@bagu.org>
1900 Protect against NPEs when cleaning up database resources.
1902 While this isn't strictly necessary because the exception is caught,
1903 not protecting against the NPEs makes it harder to find the real error
1906 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1908 2011-04-12 Ben Konrath <ben@bagu.org>
1910 Move configuration of the servlet to the constructor.
1912 The servlet will be initialized even if the database authentication
1913 information is not set or correct. I still need to add the UI for prompting
1914 the user for the authentication information when it's required.
1916 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1917 javadocs for getDocumentTitles() method.
1918 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1919 Set error message when RPC fails.
1920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1921 glom files directory from the configuration file. Try to set the
1922 database authentication information for the specific document if it's
1923 set and works otherwise try to use the global authentication
1924 information set for the directory.
1925 * src/main/resources/onlineglom.properties: Moved from
1926 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1927 Added detailed comments for the new keys.
1929 2011-04-11 Ben Konrath <ben@bagu.org>
1931 Remove unnecessary @Override in DocumentSelectionViewImpl.
1933 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1935 2011-04-11 Ben Konrath <ben@bagu.org>
1937 Remove center alignment in DocumentSelectionView.
1939 The title element is still centred but the document titles and bottom
1940 sentence are both left-aligned.
1942 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1944 2011-04-11 Ben Konrath <ben@bagu.org>
1946 Change 'Demo' naming convention to 'Document'.
1948 This is just a rename refactor with no functional changes to the code.
1950 * src/main/java/org/glom/web/client/ClientFactory.java:
1951 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1952 * src/main/java/org/glom/web/client/OnlineGlom.java:
1953 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1954 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1955 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1956 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1957 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1958 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1959 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1960 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1961 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1964 2011-04-08 Ben Konrath <ben@bagu.org>
1966 Remove FIXME from safeLongToInt() method.
1968 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1971 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1973 2011-04-08 Ben Konrath <ben@bagu.org>
1975 Display an error if no glom documents are found in the specified directory.
1977 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1978 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1979 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1980 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1982 2011-04-08 Ben Konrath <ben@bagu.org>
1984 Add copyright header to one more file ... oops.
1986 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1988 2011-04-08 Ben Konrath <ben@bagu.org>
1990 Add copyright header to files without it.
1992 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1993 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1994 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1995 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1996 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1997 * src/main/java/org/glom/web/shared/GlomField.java:
1999 2011-04-08 Ben Konrath <ben@bagu.org>
2001 Add support for accessing multiple glom documents in the servlet.
2003 This completes the demo selection functionality.
2005 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2006 document title to methods.
2007 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2008 document title to methods.
2009 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2010 Set browser window title when the activity starts. Correct name of
2011 document title variable.
2012 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2013 Set browser window title when the activity starts. Set the table
2014 selector change handler after table selector has been set. Clear the
2015 OnlineGlomView when the activity has been stopped.
2016 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2017 document title as the place token. Use "#Document:" instead of
2018 "#OnlineGlomPlace:" in the URL.
2019 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2020 Change heading to "Online Glom"
2021 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2022 document title in RPC methods.
2023 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2024 setDocumentTitle() method. Add clear() method.
2025 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2026 setDocumentTitle() method. Implement clear() method which removes the
2027 change handler on the ListBox, clears the ListBox and clears the
2029 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2030 Implement methods with document title. Keep track for the configured
2031 glom documents and their corresponding JDBC configurations in a hash
2032 table. This information is retrieved using the document title as the
2033 key in the hash table.
2034 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2035 document title field as it's no longer needed.
2037 2011-04-08 Ben Konrath <ben@bagu.org>
2039 Update the Eclipse JDT configuration.
2041 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2042 methods. Automatically add the copyright header to new files.
2044 2011-04-05 Ben Konrath <ben@bagu.org>
2046 Add new page for demo selection.
2048 This patch adds all the components required to view and start an
2049 OnlineGlom demo by clicking on the desired hyperlink. The user is
2050 able to return to the demo selection page with the browser's back
2051 button. I still need to modify the servlet to work with multiple
2052 documents so all demo links will load the file defined in the
2053 OnlineGlom.properties.
2055 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2056 This is only useful during development so we don't need to save it.
2057 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2058 get a reference to the DemoSelectionView.
2059 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2060 method to get a reference to the DemoSelectionView.
2061 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2062 default view to DemoSelectionView.
2063 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2064 to get glom document titles for glom files in a hard-coded directory.
2065 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2066 method to get glom document titles for glom files in a hard-coded
2068 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2069 Presenter for DemoSelectionView.
2070 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2071 for DemoSelectionView.
2072 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2073 Update for DemoSelectionView.
2074 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2075 Basic 'Place' implementation for the DemoSelectionView.
2076 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2077 The interface for the DemoSelectionView.
2078 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2079 The implementation of the DemoSelectionView.
2080 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2081 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2082 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2083 implementation of method to get glom document titles for glom files
2084 in a hard-coded directory.
2085 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2086 on longer being used.
2087 * src/main/webapp/glom.png: Glom logo.
2089 2011-04-05 Ben Konrath <ben@bagu.org>
2091 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2093 This is the forth and final commit of a refactor that will allow
2094 OnlineGlom to be used with multiple documents.
2096 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2097 Move RPC code from OnlineGlomViewImpl to this class.
2098 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2100 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2101 RPC code to the presenter class (the P in MVP).
2103 2011-04-04 Ben Konrath <ben@bagu.org>
2105 Start moving the existing OnlineGlom code to MVP.
2107 This work is based on the GWT MVP framework that is documented here:
2109 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2111 This is the third commit of a refactor that will allow OnlineGlom to
2112 be used with multiple documents.
2114 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2115 Interface for client factory which is used to get instances of various
2116 classes throughout the app.
2117 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2118 Implementation of client factory.
2119 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2120 initialize the MVP framework.
2121 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2122 New file. Activity manager for the main container widget. This is the
2124 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2125 Maps place (URL) to its corresponding activity.
2126 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2127 New file. This is just a place holder for a generated file.
2128 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2129 New file. Represents the URL for the main Online Glom app.
2130 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2131 for changes in LayoutListViewImpl.
2132 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2133 interface for View. Move code to OnlineGlomViewImpl class.
2134 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2135 file. Implementation of OnlineGlomView.
2136 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2137 Place resources. Use ClientFactoryImpl by default.
2139 2011-04-04 Ben Konrath <ben@bagu.org>
2141 Move View classes to their own package.
2143 This is the second commit of a refactor that will allow OnlineGlom to
2144 be used with multiple documents.
2146 * src/main/java/org/glom/web/client/OnlineGlom.java:
2147 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2148 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2150 2011-04-02 Ben Konrath <ben@bagu.org>
2152 Move UI code from the main module to its own class.
2154 This is the first commit of a refactor that will allow OnlineGlom to be
2155 used with multiple documents.
2157 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2158 references to OnlineGlom to OnlineGlomView.
2159 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2160 OnlineGlomView and instantiate it here.
2161 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2162 represents the main OnlineGlomView with one document.
2164 2011-04-01 Ben Konrath <ben@bagu.org>
2166 Fix formatting of gwt.xml and add DTD.
2168 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2170 2011-03-30 Ben Konrath <ben@bagu.org>
2172 Propperly convert gdkColor string to html colour string.
2174 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2176 2011-03-28 Ben Konrath <ben@bagu.org>
2178 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2180 This implementation matches
2181 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2182 readable and is not tied to Swig.
2184 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2186 2011-03-28 Ben Konrath <ben@bagu.org>
2188 Use read-only checkboxes for boolean field types.
2190 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2191 in the CellTable based on the field type. It currently only
2192 distinguishes between boolean and text columns but I'll need to add
2193 support for more types.
2194 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2195 column type in the ColumnInfo object. Add method to convert between the
2196 glom field type enum in ColumnInfo and the glom field type in libglom.
2197 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2199 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2200 getting and setting booleans.
2202 2011-03-25 Ben Konrath <ben@bagu.org>
2204 Don't get the Date twice from the ResultSet.
2206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2208 2011-03-25 Ben Konrath <ben@bagu.org>
2210 Cleanup code in the servlet.
2212 * TODO: Remove item about row count. Add item about testing row count
2213 query with large number of rows.
2214 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2215 spelling mistakes, change method parameter to be consistent with
2218 2011-03-25 Ben Konrath <ben@bagu.org>
2220 Add server side logging with the gwt-log library.
2222 * .gitignore: Ignore the log file we're now producing.
2223 * TODO: Add a couple TODO item for logging.
2224 * pom.xml: Add gwt-log and log4j as a dependency.
2225 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2226 logging of errors, warnings and some important info.
2227 * src/main/resources/log4j.properties: New file to configure log4j.
2229 2011-03-24 Ben Konrath <ben@bagu.org>
2231 Add a disable button for the Details view.
2233 * src/main/java/org/glom/web/client/LayoutListView.java:
2235 2011-03-22 Ben Konrath <ben@bagu.org>
2237 Use a count query to get the number of rows for the list view pager.
2239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2241 2011-03-22 Ben Konrath <ben@bagu.org>
2243 Add more TODO information about CellTable pager positioning.
2247 2011-03-19 Ben Konrath <ben@bagu.org>
2249 Add TODO item about CellTable pager positioning.
2253 2011-03-18 Ben Konrath <ben@bagu.org>
2255 Remove unneeded GlomFieldColumn class.
2257 This is just a small code cleanup.
2259 * src/main/java/org/glom/web/client/LayoutListView.java:
2261 2011-03-18 Ben Konrath <ben@bagu.org>
2263 Use cursor mode in the query that gets data for the list view.
2265 I still need to fix the potential memory problem when getting the row
2266 count for the list view.
2268 * TODO: Add note about testing memory usage with large data sets. Add
2269 item about fixing row counting with large data sets.
2270 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2271 PostgreSQL JDBC driver into cursor mode when getting data for the
2274 2011-03-15 Ben Konrath <ben@bagu.org>
2276 Remove the GWT Container from the Eclipse build classpath.
2278 The GWT dependencies are set by Maven so this isn't needed.
2282 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2284 Added some earlier mockups to git, but not to the tarball dist.
2286 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2287 Openismus. These hopefully show how we might structure the HTML so that
2288 it can be styled easily with CSS. However, we probably need to adapt them
2289 for the CSS structure that GWT dictates for common widgets.
2291 2011-03-14 Ben Konrath <ben@bagu.org>
2293 Locate OnlineGlom.properties using the ServletContext.
2295 This is required to be able to locate the file in the deployed servlet.
2297 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2298 Configure the database and glom document in in a helper method so
2299 that the ServletContext can be used to locate OnlineGlom.properties.
2300 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2301 src/main/webapp. This is the proper location for .properites files.
2303 2011-03-12 Ben Konrath <ben@bagu.org>
2305 Add note to README about why we're compiling down to obfuscated JavaScript.
2309 2011-03-11 Ben Konrath <ben@bagu.org>
2311 Use properties file to configure servlet.
2313 This allows people to change the glom file path, db username and db
2314 password without recompiling the code.
2316 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2317 * src/main/webapp/OnlineGlom.properties:
2319 2011-03-11 Ben Konrath <ben@bagu.org>
2321 Use table fields in layout list view if the layout list is not defined.
2323 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2324 Manually create a LayoutFieldVector for the query builder using the
2325 table fields when a layout list is not defined in the glom file.
2327 2011-03-11 Ben Konrath <ben@bagu.org>
2329 Only show FIXME string for images when there's an image.
2331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2332 in this change are some small code cleanups.
2334 2011-03-11 Ben Konrath <ben@bagu.org>
2336 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2338 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2340 2011-03-11 Ben Konrath <ben@bagu.org>
2342 Correctly set the index of the default table.
2344 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2345 Correctly set the index of the default table. Add commented out example
2348 2011-03-10 Ben Konrath <ben@bagu.org>
2350 Add comment to pom.xml about the previous change.
2352 * pom.xml: Add comment about the deployment issue so that it's obvious
2353 why java-libglom is set to the provided scope.
2355 2011-03-10 Ben Konrath <ben@bagu.org>
2357 Change java-libglom dependency from compile to provided in pom.xml.
2359 Since java-libglom uses jni it can only be loaded once and therefore
2360 must be placed in $CATALINA_HOME/lib and not included in each war.
2361 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2362 More information about this issue can be found in the Tomcat 6 release
2363 notes in the "JNI Based Applications" section:
2365 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2367 * README: Remove note about this issue. Deployment info should really
2368 be on the wiki anyway so I'll add it right now.
2369 * pom.xml: Change java-libglom dependency from compile to provided so
2370 that it's copied in to the packaged war.
2372 2011-03-09 Ben Konrath <ben@bagu.org>
2374 Change to using a neutral locale for currency, date and time formatting.
2376 This solves the problem of currency values being represented without a
2377 space between the currency code and the number (e.g. "EUR5.89" is now
2378 represented as "EUR 5.89"). More work is required when we implement
2379 a locale preference setting.
2381 * TODO: Add note about currency formatting issues with different
2383 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2384 to using the neutral ROOT locale.
2386 2011-03-09 Ben Konrath <ben@bagu.org>
2388 Add support for currency codes that are not ISO 4217 codes.
2390 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2391 the currency code defined in the glom file when it's not 3 characters
2392 long or when Java doesn't recognize the string as an ISO 4217 code.
2394 2011-03-08 Ben Konrath <ben@bagu.org>
2396 Remove test classes, launch configurations and configuration.
2398 The test stuff was getting in the way when creating the war. To make
2399 the war file you can now do 'mvn clean package'. The packaged war file
2400 will be in the target directory.
2402 * .classpath: Remove unused classpathentry for tests and i18n.
2403 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2404 property. Don't run test or i18n goals when packaging the war.
2405 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2410 * OnlineGlomTest-dev.launch:
2411 * OnlineGlomTest-prod.launch:
2412 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2413 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2415 2011-03-07 Ben Konrath <ben@bagu.org>
2417 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2419 These fixes allow me to use 'mvn deploy' to create the war file.
2421 * .classpath: This generated config has been updated by Eclipse. This
2422 change was probably triggered by me updating from Eclipse 3.6.1 to
2424 * .gitignore: Add entry to ignore the directory
2425 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2426 * .project: The generated config has been updated by Eclipse. This
2427 change was probably triggered by me updating from Eclipse 3.6.1 to
2429 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2430 so that Eclipse doesn't complain
2431 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2432 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2433 'tests' directory to 'client' directory. This is the new
2434 gwt-maven-plugin convension.
2435 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2436 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2438 2011-03-07 Ben Konrath <ben@bagu.org>
2440 Add support for horizontal alignment in the LayoutList columns.
2442 * TODO: Remove item about horizontal alignment. Add item about
2443 improvements to ColumnInfo.
2444 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2445 alignment on the columns. Use ColumnInfo RPC object get the column
2446 title and horizontal alignment.
2447 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2448 LayoutListView creation with ColumnInfo RPC object.
2449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2450 a ColumnInfo object for every LayoutList columnn. Convert the
2451 FieldFormatting.HorizontalAlignment to the correct
2452 ColumnnInfo.HorizontatlAlignment with the new
2453 getColumnInfoHorizontalAlignment helper method.
2454 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2455 to encapsulate column information like alignment and title. This
2456 could be used to set the colour instead of on a per cell field basis.
2457 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2458 column title storage and retrieval with ColumnInfo.
2460 2011-03-04 Ben Konrath <ben@bagu.org>
2462 Add support for column sorting.
2464 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2465 AsynDataProvider to be an anonymous inner class. Use new
2466 getSortedTableData RPC method when column sort is requested. Set all
2467 columns sortable and add an AsyncHandler to activate sorting in the
2469 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2470 method getSortedTableData(). Cleanup other method signatures.
2471 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2472 new method getSortedTableData(). Cleanup other method signatures.
2473 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2474 Implement getSortedTableData() and getTableData() methods by using a
2475 private helper method with the appropriate parameters filled in. Use
2476 user supplied sort clause when supplied, otherwise fall back to
2477 sorting by the primary key. Move destroy() method to be underneath
2478 constructor for readability. Cleanup comments.
2480 2011-03-03 Ben Konrath <ben@bagu.org>
2482 Add support for colour text and colour backgrounds to the layout list cells.
2484 Only the cell backgrounds are coloured which leaves a gap between the
2485 cells that isn't coloured. I need to figure out a way to set
2486 'style=background-colour:' on the whole column rather than just the
2489 * TODO: Add a note about colouring the background of the whole column.
2490 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2491 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2492 render the coloured text and backgrounds. Use GlomField[] for the row type.
2493 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2495 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2496 GlomField[] for the row type.
2497 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2498 GlomField[] for the row type. Set the text, text colour and background
2499 colour in the GlomField objects as specified in the glom document. Add
2500 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2501 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2502 the glom field text, foreground colour and background colour.
2504 2011-03-02 Ben Konrath <ben@bagu.org>
2506 Don't display hidden tables in the combo box.
2508 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2511 code to ignore hidden tables using ArrayLists for the table names and
2513 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2514 tableNames to use ArrayLists instead of String[]. Update getter and setter
2517 2011-03-01 Ben Konrath <ben@bagu.org>
2519 Add support for Date and Time number types.
2521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2522 Implement formatting for Date and Time values. Change the default glom
2523 file to small business example.
2525 2011-03-01 Ben Konrath <ben@bagu.org>
2527 Add support for formatting glom types as specified in the glom file.
2529 Formatting isn't finished yet - I still need to add support for Date
2532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2533 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2534 checks for null values in JDBC cleanup code and catch all exceptions
2535 instead of just SQLExceptions.
2536 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2539 2011-03-01 Ben Konrath <ben@bagu.org>
2541 Use GWT 2.2.0 instead of 2.1.1.
2543 * pom.xml: Change GWT version numbers.
2545 2011-03-01 Ben Konrath <ben@bagu.org>
2547 A few small code cleanups.
2549 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2551 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2552 unnecessary object creation in constructor.
2553 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2554 unnecessary object creation in constructor.
2556 2011-02-28 Ben Konrath <ben@bagu.org>
2558 Add file for TODO list.
2562 2011-02-18 Ben Konrath <ben@bagu.org>
2564 Enable the CellTable Pager when more than 20 rows need to be viewed.
2566 The Pager will automatically become active when the results are larger
2567 than the CellTable size which is currently set to 20 lines.
2569 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2570 name on debug statment in RPC call in LayoutListDataProvider, add
2571 numRows parameter to LayoutListView constructor, propperly set rowCount
2573 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2574 name on debug statment in RPC call, use LayoutListTable object in RPC
2575 calls, pass rowCount to LayoutListView.
2576 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2577 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2579 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2580 interface for changes in OnlineGlomService.
2581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2582 getLayoutListHeaders() to getLayoutListTable() and return
2583 LayoutListTable. Using this object allows me to pass other information
2584 about the LayoutList like the expected number of rows in the result set.
2585 The Connection object from the connection pool is now propperly closed.
2586 Only the requested number of lines are returned to the client in
2588 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2589 GlomTable and add columnTitles and numRows.
2591 2011-02-18 Ben Konrath <ben@bagu.org>
2593 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2595 This is a small performance boost. I'll use GlomTable to get the required
2596 layoutlist information.
2598 * src/main/java/org/glom/web/client/OnlineGlom.java:
2599 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2600 * src/main/java/org/glom/web/shared/GlomDocument.java:
2602 2011-02-18 Ben Konrath <ben@bagu.org>
2604 Add option to turn off formatting in JDT formatter preferences.
2606 * .settings/org.eclipse.jdt.core.prefs:
2608 2011-02-18 Ben Konrath <ben@bagu.org>
2610 Rename LayoutList to LayoutListView.
2612 I'm working towards setting things up to easily use MVP when the time
2615 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2617 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2620 2011-02-17 Ben Konrath <ben@bagu.org>
2622 Move LayoutListDataProvider class into LayoutList.java.
2624 * src/main/java/org/glom/web/client/LayoutList.java:
2626 2011-02-17 Ben Konrath <ben@bagu.org>
2628 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2630 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2632 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2633 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2634 from LibGlomServer.java.
2635 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2636 Rename from LibGlomServiceAsync.java.
2637 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2638 Rename from LibGlomServiceImpl.java.
2639 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2641 2011-02-17 Ben Konrath <ben@bagu.org>
2643 Update JDT settings.
2645 * .settings/org.eclipse.jdt.core.prefs:
2647 2011-02-17 Ben Konrath <ben@bagu.org>
2649 Move GWT-RPC objects to shared package (where they should be).
2651 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2652 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2653 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2654 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2655 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2656 org.glom.web.shared package.
2657 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2658 org.glom.web.shared package.
2659 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2660 directory in compilation to javascript.
2662 2011-02-16 Ben Konrath <ben@bagu.org>
2664 Add sort clause to the sql query that grabs table information.
2666 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2667 if one of the columns is a primary key.
2669 2011-02-16 Ben Konrath <ben@bagu.org>
2671 Disable generateAsync feature of gwt-maven.
2673 The generated interface does not correctly match the methods in LibGlomService
2674 and the generated singleton Util inner-class doesn't respect the servlet
2677 * pom.xml: Turn off generateAsync feature.
2678 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2679 with singleton Util inner-class.
2681 2011-02-14 Ben Konrath <ben@bagu.org>
2683 Add LGPL v3 licence notices.
2685 Followed directions listed here:
2686 http://www.gnu.org/licenses/gpl-howto.html
2688 * COPYING: This file is a copy of the GPL v3.
2689 * COPYING.LESSER: This file is a copy of the LGPL v3.
2690 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2692 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2694 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2696 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2698 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2700 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2702 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2705 2011-02-14 Ben Konrath <ben@bagu.org>
2707 Use ArrayList instead of Array in GWT-RPC calls.
2709 Apparently this gives a slight performance boost to the compiled
2712 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2714 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2717 2011-02-14 Ben Konrath <ben@bagu.org>
2719 Access data from a postgres db rather than the example glom file.
2721 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2722 compile down to obfuscated javascript.
2723 * pom.xml: Add c3p0 and postgres JDBC libraries.
2724 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2725 using a postgres db accessed through the c3p0 connection pooling library.
2727 2011-02-14 Ben Konrath <ben@bagu.org>
2729 Update Java formatter settings.
2731 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2733 2011-02-02 Ben Konrath <ben@bagu.org>
2735 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2737 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2739 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2740 the compiled webapp directory that Eclipse uses as we're using Maven now.
2741 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2742 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2744 * pom.xml: Format file, change target Java version to 1.6.
2746 2011-02-02 Ben Konrath <ben@bagu.org>
2748 Add information about a deployment related issue.
2750 * README: Add Notes section with the problem outlined.
2752 2011-02-02 Ben Konrath <ben@bagu.org>
2754 Call Glom.libglom_deinit() when the servlet is shutdown.
2756 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2757 Glom.libglom_deinit() to destroy() method.
2759 2011-01-28 Ben Konrath <ben@bagu.org>
2761 Use generated Util class to get the RPC Async interface.
2763 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2765 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2766 getInstance() method to get a reference to the RPC Async interface.
2767 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2768 getInstance() method to get a reference to the RPC Async interface, remove
2769 the now unused getLibGlomServiceProxy() method.
2771 2011-01-27 Ben Konrath <ben@bagu.org>
2773 Cleanup ChangeLog entry from previous commit.
2775 * ChangeLog: Group logical changes together and add comments.
2777 2011-01-25 Ben Konrath <ben@bagu.org>
2779 Convert to gwt-maven project.
2781 * .gitignore: Update for new project structure.
2782 * README: New file with a link to the online documentation.
2783 * pom.xml: The generated maven configuration file with some tweaks.
2785 Add / update Eclipse settings. These files are a merge of the files that
2786 were generated with the gwt-maven plugin and the files we were previously
2790 * .settings/.jsdtscope:
2791 * .settings/com.google.gdt.eclipse.core.prefs:
2792 * .settings/com.google.gwt.eclipse.core.prefs:
2793 * .settings/org.eclipse.jdt.core.prefs:
2794 * .settings/org.eclipse.wst.common.component:
2795 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2796 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2797 * .settings/org.maven.ide.eclipse.prefs:
2798 * OnlineGlomTest-dev.launch:
2799 * OnlineGlomTest-prod.launch:
2801 Java source files moved from the 'src' directory to the directory structure
2803 * src/main/java/org/glom/web/client/GlomDocument.java:
2804 * src/main/java/org/glom/web/client/GlomTable.java:
2805 * src/main/java/org/glom/web/client/LayoutList.java:
2806 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2807 * src/main/java/org/glom/web/client/LibGlomService.java:
2808 * src/main/java/org/glom/web/client/OnlineGlom.java:
2809 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2811 Non-functional property file used for translations. I included this as
2812 reminder that it's something I need to sort out.
2813 * src/main/resources/org/glom/web/client/Messages.properties:
2815 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2816 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2818 The servlet configuration files moved from the 'war' directory.
2819 * src/main/webapp/OnlineGlom.css:
2820 * src/main/webapp/OnlineGlom.html:
2821 * src/main/webapp/WEB-INF/web.xml:
2823 Generated test files with most of the code commented out. I included these
2824 so that it's easy to add tests when we're ready for them.
2825 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2826 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2828 2011-01-25 Ben Konrath <ben@bagu.org>
2830 Remove unused println.
2832 * src/org/glom/web/server/LibGlomServiceImpl.java:
2834 2011-01-25 Ben Konrath <ben@bagu.org>
2836 Add project specific JDT settings.
2838 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2839 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2841 2011-01-25 Ben Konrath <ben@bagu.org>
2843 Populate celltable with example data.
2845 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2846 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2847 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2848 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2849 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2850 asynchronously gets the example data.
2851 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2852 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2853 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2854 curently selected table to be retrieved by other widgets.
2855 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2856 implement getTableData() in a hacky way. This method needs to be updated
2857 to grab information from the database when database creating is
2860 2011-01-20 Ben Konrath <ben@bagu.org>
2862 Set table headers when table dropBox changes.
2864 * src/org/glom/web/client/GlomDocument.java: Correct some method
2866 * src/org/glom/web/client/LibGlomService.java: Add method
2867 to get list layout field names.
2868 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2869 to get list layout field names.
2870 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2871 widget for list layout table.
2872 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2873 the table drop box and add new updateTable() method to asynchronously
2874 get the layout list field names for the currently selected table.
2875 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2876 implementation of getLayoutListHeaders() method.
2877 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2879 2011-01-18 Ben Konrath <ben@bagu.org>
2881 Make a listBox with table titles instead of the flexTable demo.
2883 This is the start of something more useful.
2885 * .classpath: Exclude a bunch of packages from the JVM that are
2886 getting in the way of the Eclipse content assist.
2887 * src/org/glom/web/client/GlomDocument.java:
2888 * src/org/glom/web/client/GlomTable.java:
2889 * src/org/glom/web/client/LibGlomService.java:
2890 * src/org/glom/web/client/LibGlomServiceAsync.java:
2891 * src/org/glom/web/client/OnlineGlom.java:
2892 * src/org/glom/web/server/LibGlomServiceImpl.java:
2893 * war/OnlineGlom.html:
2894 * war/WEB-INF/web.xml:
2896 211-01-13 Ben Konrath <ben@bagu.org>
2898 Update to new java-libglom API.
2900 * .gitignore: Ignore OnlineGlom.war.
2901 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2903 2010-12-20 Ben Konrath <ben@bagu.org>
2905 Add some basic style to the table listing.
2907 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2908 header, print useful error message on async callback failure.
2909 * war/OnlineGlom.css: Add style for table header, remove defaults
2910 provided by the Eclipse project wizard.
2912 2010-12-20 Ben Konrath <ben@bagu.org>
2914 Load example file from installed glom dir.
2916 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2917 provided by java-libglom to find the example file.
2919 2010-12-20 Ben Konrath <ben@bagu.org>
2921 Update Eclipse settings.
2924 * .settings/com.google.gdt.eclipse.core.prefs:
2925 * .settings/com.google.gwt.eclipse.core.prefs:
2927 2010-12-17 Ben Konrath <ben@bagu.org>
2931 * .classpath: New file.
2932 * .gitignore: New file.
2933 * .project: New file.
2934 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2935 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2936 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2937 * src/org/glom/web/client/GlomTable.java: New file.
2938 * src/org/glom/web/client/OnlineGlom.java: New file.
2939 * src/org/glom/web/client/TableNameService.java: New file.
2940 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2941 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2942 * war/OnlineGlom.css: New file.
2943 * war/OnlineGlom.html: New file.
2944 * war/WEB-INF/web.xml: New file.
2945 * war/images/glom.png: New file.