1 2011-11-28 Ben Konrath <ben@bagu.org>
3 Use Gda Value version of primary key to log result too large error.
5 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
7 2011-11-28 Ben Konrath <ben@bagu.org>
9 Don't use TypedDataItem.getText() for Unknown types from the URL.
11 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
12 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
14 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
15 String field and getUnknown() method.
17 2011-11-28 Ben Konrath <ben@bagu.org>
19 Log an error message when the java-libglom .so is not present.
21 The error message was being set in the exception but not logged.
23 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
25 2011-11-28 Ben Konrath <ben@bagu.org>
27 Ignore LayoutItem_CalendarPortals.
29 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
30 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
32 2011-11-28 Ben Konrath <ben@bagu.org>
34 Extract method for creating the LayoutItemPortal DTO.
36 Just breaking the code up into smaller chunks.
38 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
40 2011-11-28 Ben Konrath <ben@bagu.org>
44 This should have been added with the refactor. Oops!
46 * src/main/java/org/glom/web/shared/TypedDataItem.java:
48 2011-11-28 Ben Konrath <ben@bagu.org>
50 Create primary key value from URL string using type from Glom document.
52 See this bug, comments 19 - 25:
54 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
56 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
57 create a TypeDataItem for the primary key here when loading from a
58 URL. Show the same string for the primary key value as was received
59 from the URL string (when loading from a URL).
60 * src/main/java/org/glom/web/server/Utils.java: Update method for
61 creating the Gda Value from the TypeDataItem to properly deal with
62 creating a Gda Value based on the Glom document type for the primary
63 key value string when loading from a URL.
64 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
65 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
66 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
67 Update for changed method name.
69 2011-11-27 Ben Konrath <ben@bagu.org>
71 Rename PrimaryKeyItem to TypedDataItem.
73 The name PrimaryKeyItem suggests what the class should be used for.
74 TypedDataItem is a neutral name that describes the class better.
76 This is a rename-only refactor.
78 * src/main/java/org/glom/web/client/OnlineGlomService.java:
79 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
80 * src/main/java/org/glom/web/client/Utils.java:
81 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
82 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
83 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
84 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
85 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
86 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
87 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
88 * src/main/java/org/glom/web/server/Utils.java:
89 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
90 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
91 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
92 * src/main/java/org/glom/web/shared/NavigationRecord.java:
94 2011-11-25 Ben Konrath <ben@bagu.org>
96 Improve Gda Value conversion from PrimaryKeyItem.
98 The value from the PrimaryKeyItem is only used if its type match the
99 type from the glom document.
101 * src/main/java/org/glom/web/server/Utils.java:
103 2011-11-25 Ben Konrath <ben@bagu.org>
105 Manually check if the java-liblgom .so is visible to the JVM.
107 It seems that Tomcat has problems when a static initializer throws an
108 exception. This check is done before the first method call into
109 java-libglom so that execution doesn't continue if the .so is not
112 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
114 2011-11-25 Ben Konrath <ben@bagu.org>
116 Improve browser configuration error messages.
120 https://bugzilla.gnome.org/show_bug.cgi?id=662792
122 * src/main/java/org/glom/web/client/OnlineGlomService.java:
123 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
124 getConfigurationErrorMessage() method.
125 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
126 Get and display a specific configuration error message when no Glom
128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
129 Implement getConfigurationErrorMessage() method. Surround configuration
130 code in the init() method with a try/catch block. This allows the
131 errors to be caught while keeping the servlet available to retrieve the
132 configuration error message.
134 2011-11-25 Ben Konrath <ben@bagu.org>
136 Don't use Strings to hold primary key values.
138 The primary key values are now held in a new data object
139 (PrimaryKeyItem) that holds type information and the primary key value
140 using the correct type.
142 * src/main/java/org/glom/web/client/OnlineGlomService.java:
143 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
144 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
145 PrimaryKeyItem instead of String to hold the primary key value.
146 * src/main/java/org/glom/web/client/Utils.java: Remove
147 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
148 PrimaryKeyItem based on the GlomFieldType and the DataItem.
149 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
150 PrimaryKeyItem instead of String to hold the primary key value. Load
151 document selection page when the documentID has not been set correctly.
152 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
153 DetailsPlace -> URL and URL -> DetailsPlace conversion with
155 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
156 Return empty string for URL instead of "null".
157 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
158 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
159 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
160 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
161 PrimaryKeyItem instead of String to hold primary key values.
162 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
163 PrimaryKeyValue to a Gda Value.
164 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
165 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
166 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
167 Replace temporary database access code that uses the PrimaryKeyValue to
168 Gda Value conversion.
169 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
170 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
171 PrimaryKeyItem instead of String.
172 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
173 hold primary key values.
175 2011-11-24 Ben Konrath <ben@bagu.org>
177 Use newly added java-libglom API to create queries.
179 This isn't finished. I still need to stop using Strings for primary key
180 values in the client code.
182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
183 libglom to use fake connections so that retrieving the query string will
185 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
186 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
187 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
188 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
189 Use the newly added libglom sql methods and classes to create the
190 query. Add temporary hack to convert primary value strings to Gda
193 2011-11-23 Ben Konrath <ben@bagu.org>
195 Don't explicitly set the height of Portals.
197 See comments 6 - 10 of this bug for details:
199 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
201 * src/main/java/org/glom/web/client/ui/details/Portal.java:
203 2011-11-23 Ben Konrath <ben@bagu.org>
205 Use an HTML table instead of CSS for the FlowTable layout.
207 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
208 GWT's FlexTable to implement the FlowTable.
209 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
211 2011-11-18 Ben Konrath <ben@bagu.org>
213 Add boolean example to HTML table mockup.
215 * mockups/details-view-html-tables-text-entries.html:
217 2011-11-17 Ben Konrath <ben@bagu.org>
219 Ensure the pager buttons are always visible for related lists.
221 To accomplish this, I've turned off text wrapping in the list view and
222 related list tables for both the header and data text. The related list
223 table now has a fixed layout so the it doesn't overflow its container.
224 This is required to ensure that the cell text is clipped when it
225 overflows the cell and an ellipsis is added to the right side of the
226 cell when text is clipped.
228 A fixed table layout for the related list table in the details view
229 seems what we want for the details view anyway, so the side-effect is
232 The ellipsis will only be displayed in Firefox >= 7.
236 https://bugzilla.gnome.org/show_bug.cgi?id=662930
238 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
239 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
240 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
242 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
243 Set the 'table-layout: fixed' CSS property to the related list table.
244 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
245 'white-space: nowrap;' CSS property on both the list view and the
248 2011-11-16 Ben Konrath <ben@bagu.org>
250 Rework the fix for empty notebook tab labels.
252 Setting the empty group titles with its name caused problems for the
253 details layout. Instead of using libglom's
254 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
255 to the client when the title is empty. This allows the Notebook to use
256 the name when the title is empty without affecting anything else.
258 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
259 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
261 2011-11-16 Ben Konrath <ben@bagu.org>
263 Set group titles with name when title is empty.
265 This fixes a problem with an empty notebook tab label in the Lesson
266 Planner document. The forth tab in the notebook should be "Internet":
268 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
270 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
271 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
274 2011-11-16 Ben Konrath <ben@bagu.org>
276 Remove whitespace from the configured username properties.
278 This assumes that usernames won't have whitespace at the beginning
279 or end. But I think this is a reasonable assumption.
281 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
282 String.trim() to remove the whitespace from the username properties.
284 2011-11-15 Ben Konrath <ben@bagu.org>
286 Add details view mockup with HTML tables and text entries.
288 This is from the attachment on this bug:
290 https://bugzilla.gnome.org/show_bug.cgi?id=663109
292 * mockups/details-view-html-tables-text-entries.html:
294 2011-11-15 Ben Konrath <ben@bagu.org>
296 Add space between the columns of the flow table.
300 https://bugzilla.gnome.org/show_bug.cgi?id=662918
302 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
303 space between columns in the flow table.
305 2011-11-15 Ben Konrath <ben@bagu.org>
307 Add backup files to the .gitignore.
309 * .gitignore: Ignore files that end with ~.
311 2011-11-09 Ben Konrath <ben@bagu.org>
313 Use latest release of gwt-log.
315 Gwt-log releases are now being submitted to the maven central
316 repository so manual installation of the jar is no longer required.
318 * pom.xml: Update version and groupId of gwt-log dependency.
320 2011-10-31 Ben Konrath <ben@bagu.org>
322 Don't use GWT numeric formatting to override the glom currency formatting.
324 Currencies are now displayed like they are in Glom. See this bug:
326 https://bugzilla.gnome.org/show_bug.cgi?id=646216
328 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
330 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
331 currency code to constructor and set it when the cell is rendered.
332 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
333 currency code to the constructor of the NumericCell.
335 2011-10-27 Ben Konrath <ben@bagu.org>
337 Require the latest release of java-libglom (1.17.4).
341 2011-10-26 Ben Konrath <ben@bagu.org>
343 Add style to Notebook that matches current theme.
345 It's not the best style in the world but it's better than the default.
347 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
348 padding at the bottom of the child widgets.
349 * src/main/webapp/style.css: Add style for the Notebook.
351 2011-10-26 Ben Konrath <ben@bagu.org>
353 Move servlet initialization code to overridden init method.
355 This is half of the solution to getting proper error messages
356 displayed when configuration errors occur. Here's the relevant bug:
358 https://bugzilla.gnome.org/show_bug.cgi?id=662792
360 The rest of the solution involves surrounding the init method with a
361 try/catch block and setting a global variable with the error /
362 exception. A new async method should be created to retrieve and display
363 the error message / exception.
365 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
366 code from constructor to init method adding exceptions as needed.
368 2011-10-26 Ben Konrath <ben@bagu.org>
370 Add script to monitor and restart tomcat if required.
372 * utils/check-and-recover-tomcat.py: New file.
374 2011-10-26 Ben Konrath <ben@bagu.org>
376 Display the correct number of data items in the pager.
380 https://bugzilla.gnome.org/show_bug.cgi?id=661441
382 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
383 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
384 The implementation is the same for both tables: Keep track of the
385 number of non-empty rows and fire and RowCountChangeEvent after the data has
387 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
388 custom Pager class that subclasses SimplePager to handle displaying
389 the correct number when empty rows have been added.
391 2011-10-26 Ben Konrath <ben@bagu.org>
393 Correct error in previous commit.
395 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
396 eventBus parameter from listView.setCellTable().
398 2011-10-26 Ben Konrath <ben@bagu.org>
400 Fix error in TODO comment.
402 * src/main/java/org/glom/web/client/activity/ListActivity.java:
404 2011-10-24 Ben Konrath <ben@bagu.org>
406 Create Notebook widgets to the details view.
408 This isn't finished just yet - I still need to create a reasonable
409 style to match the current theme.
411 * src/main/java/org/glom/web/client/Utils.java: Add method for
412 calculating the height of a widget. This is used in the Notebook class.
413 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
414 new constructor method in Group.
415 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
416 method for creating child widget that can be used by subclasses
417 like Notebook. New constructor that allows disabling the group
418 titles - Notebooks don't set a group title for their child groups.
419 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
420 to make Notebooks using GWT's TabLayoutPanel.
421 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
422 constructor that allows disabling the group titles.
423 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
424 LayoutItemNotebook DTO.
425 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
426 DTO for Notebooks. It's just an empty class for now but we might need
427 it to transfer some specific information in the future.
429 2011-10-21 Ben Konrath <ben@bagu.org>
431 Add navigation buttons to related list tables.
433 * src/main/java/org/glom/web/client/OnlineGlomService.java:
434 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
435 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
436 method getSuitableRecordToViewDetails() for getting the table name
437 and primary key value for related list navigation buttons.
438 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
439 private cell renderer class to get the navigation information for
440 related list tables from the server. Extract the navigation
441 processing code from the details cell navigation and use it for the
442 related list navigation as well.
443 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
444 cell renderer class for the details open buttons. This was needed
445 because the related list navigation buttons and the list view
446 navigation buttons need to react differently when clicked.
447 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
448 the onEnterKeyDown() method because it's now overriden in the
449 subclasses that are specific to the related list tables and the list
451 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
452 the vertical size a little because the buttons add a bit of vertical
453 space to table. This is not a perfect solution because the vertical
454 size of with table fewer than 5 rows will be a little smaller.
455 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
456 changes in how navigation buttons are handled.
457 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
458 getSuitableRecordToViewDetails() using the new RelatedListNavigation
459 database access object.
460 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
461 to find the portal for a given relationship name from
462 RelatedListDBAccess. Add method to find a primary key field for a
464 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
465 Move code to find the portal for a given relationship name to
467 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
468 New file: database access object for getting the related list
469 navigation information (the table name and the primary key value).
470 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
471 DTO for transferring a table name to navigate to and a primary key
473 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
474 boolean and getter/setter to specifies if the related list should add
477 2011-10-24 Murray Cumming <murrayc@murrayc.com>
479 Use the master branch of java-libglom
481 * pom.xml: Depend on java-libglom 1.19 instead.
483 This is the master branch. See also the libglom-1-18 branch.
485 2011-10-11 Ben Konrath <ben@bagu.org>
487 Enable the open navigation button when the data has been set.
489 This avoids having active buttons that don't do anything when the data
492 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
494 2011-10-11 Ben Konrath <ben@bagu.org>
496 Use IsWidget interface for FlowTableItem.
498 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
499 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
501 2011-10-11 Ben Konrath <ben@bagu.org>
503 Remove GWT styling from open button in details view.
505 There are still some issues with how the details cell is arranged but
506 this should be made to match Glom 1.20. I'm going to leave fixing this
507 until I have Glom 1.20 up and running.
509 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
510 style name on open button.
511 * src/main/webapp/style.css: Move and edit details-navigation class.
512 Re-arrange some classes to make them appear in the same order as the
515 2011-10-07 Ben Konrath <ben@bagu.org>
519 * .gitignore: Ignore new cache directory.
520 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
521 * pom.xml: Change GWT and maven plugin to 2.4.0.
522 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
524 * src/main/java/org/glom/web/client/ClientFactory.java:
525 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
526 * src/main/java/org/glom/web/client/OnlineGlom.java:
527 Update source for API changes.
528 * utils/build-onlineglom-war.sh: Remove cache directory before the
531 2011-10-07 Ben Konrath <ben@bagu.org>
533 Add navigation buttons in the details view.
535 This isn't finished but I thought I'd commit what I have as it's a
536 pretty good start. I still need to:
538 1. Change the style so that it fits better into the current theme
539 2. Adjust the details cell to expand as much as possible.
541 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
542 click handlers to navigation buttons in the DetailsCells. Create a
543 refreshData() method to get just the data from the server without the
545 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
546 Update the tableSelector and browser title when the table name
547 changes without using the tableSelector.
548 * src/main/java/org/glom/web/client/ui/DetailsView.java:
549 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
550 getDetailsCells() to getCells(). Update variable names.
551 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
552 method to set click handler on navigation button. Rename a few
553 variables. Add navigation buttons where needed.
554 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
555 variables and methods.
556 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
557 navigation boolean and navigation table as required in the
559 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
560 variables for navigation along with getter/setter methods.
562 2011-10-07 Ben Konrath <ben@bagu.org>
564 Rename Field to DetailsCell.
566 This is a refactor-only commit. No functionality has been added or
569 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
570 Update variable and method names.
571 * src/main/java/org/glom/web/client/ui/DetailsView.java:
572 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
573 variable and method names.
574 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
576 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
577 variable and method names.
579 2011-10-07 Ben Konrath <ben@bagu.org>
581 Create separate methods for layout and data the details view.
583 This is a refactor-only commit. No functionality has been added or
586 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
587 private methods: setData(), createLayout().
589 2011-10-07 Ben Konrath <ben@bagu.org>
591 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
593 This is part of a change to get navigation buttons in the details view
594 but it should have been done this way from the start.
596 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
597 for method name change in TableSelectionView.
598 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
599 Create TableChangeEvent and set the browser title using the
600 TableSelectionView API.
601 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
602 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
603 Change getSelectedTable() to getSelectedTableName(). Add
604 getSelectedTableTitle().
606 2011-10-07 Ben Konrath <ben@bagu.org>
608 Use primaryKeyValue naming convention in constructor of DetailsPlace.
610 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
612 2011-10-07 Ben Konrath <ben@bagu.org>
614 Update TableChangeEvent to use newTableName naming convention.
616 This makes the class more consistent with GWT naming conventions.
618 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
619 Update for method name change in TableChangeEvent.
620 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
621 for method name change in TableChangeEvent.
622 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
623 newTableName variable and getter method. Make toDebugString()
626 2011-09-30 Ben Konrath <ben@bagu.org>
628 Disable the pager in the list tables when the data row count is less than the minimum.
630 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
631 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
633 2011-09-30 Ben Konrath <ben@bagu.org>
635 Add empty rows to the end of related list and list view tables.
637 I also extracted the cell rendering classes from the ListTable because
638 the code was becoming a little crazy with all the anonymous inner
639 classes. My plan is to use these cell rendering classes in the details
640 view as well so this refactor will be needed for that change.
642 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
643 set the row count in related list tables if the data has more rows
644 than the minimum number of rows visible.
645 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
646 row count in list view tables if the data has more rows than the
647 minimum number of rows visible.
648 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
649 for rendering TYPE_BOOLEAN cells. The code was extracted from the
651 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
652 for rendering TYPE_NUMERIC cells. The code was extracted from the
654 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
655 class for rendering cells with buttons in list views. The code was
656 extracted from the ListTable class.
657 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
658 for rendering TYPE_TEXT cells. The code was extracted from the
660 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
661 Add empty rows to the end of the data if required. Implement
662 ListTable.getMinNumVisibleRows().
663 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
664 cell renderer code to public classes. Return null in
665 Column.getValue() for empty rows. Add new abstract method:
666 getMinNumVisibleRows(). Move code to set the row count of the list view
667 table to ListViewImpl.
668 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
669 empty rows to the end of the data if required. Implement
670 ListTable.getMinNumVisibleRows().
673 2011-09-27 Ben Konrath <ben@bagu.org>
675 Use GWT.log for client-side debugging statements.
677 These are optimized out when deployed so I should have used this method
678 in the first place. These statements will eventually be replaced with some sort
679 of notification in the browser.
681 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
682 * src/main/java/org/glom/web/client/activity/ListActivity.java:
683 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
684 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
685 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
687 2011-09-27 Ben Konrath <ben@bagu.org>
689 Put tableselector on the right, back to list link on right.
691 The idea is that the table selector is acting like a label for the
692 currently displayed table so it should be placed below the document title. This
693 puts the table title in a similar position to where it is in Glom.
695 * mockups/details-contacts.html:
696 * mockups/details-projects.html:
697 * mockups/listview-contacts.html:
698 * mockups/listview-projects.html:
700 Update mockups to match how the interfaces currently look.
701 * src/main/webapp/style.css: Swap positions of backlink with the table
702 selector. Add some space on the left side of the table selector to
703 line things up with the document title.
705 2011-09-27 Ben Konrath <ben@bagu.org>
707 Add field colouring to details view.
709 This change re-works how field colouring works. The colour formatting
710 information is now set to the client with the layout information instead of
711 with the data. This eliminates the need to send the same colour strings for
712 data in list view column when colour information is set.
714 In order to set an alternate colour for negative numeric values, the
715 number is now sent to client and formatted with the GWT NumberFormat class.
717 This change also fixes:
719 https://bugzilla.gnome.org/show_bug.cgi?id=659752
721 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
722 internationalization framework which is needed for client side numeric
724 * src/main/java/org/glom/web/client/Utils.java: New file for some
725 client static utility methods.
726 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
727 the DataItem object to the Field class. Use a utility method to
728 create the foreignKeyValue string.
729 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
730 alignment and text colours in the constructor. Add setData(DataItem)
731 method. Remove setText(String) method.
732 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
733 colour information to GlomTextCell. Create and use GlomNumberCell for
734 rendering numbers. Use utility method to get the string for the
735 primary key of the key provider. Re-work how the horizontal alignment
737 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
738 formatting to layout information. Methods for converting the libglom
739 formatting information were moved from DBAccess.
740 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
741 numeric formatting (it's now done on the client side). Don't set text
742 colours in DataItem. Move libglom formatting conversion methods to
744 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
745 getters/setters for text colour information.
746 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
747 for transferring the libglom NumericFormat information to the client.
748 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
749 and getters/setters for: GlomNumericFormat, background colour and
750 foreground colour strings.
752 2011-09-26 Ben Konrath <ben@bagu.org>
754 Simplify code that iterates through the LayoutGroup.
756 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
758 2011-09-26 Ben Konrath <ben@bagu.org>
760 Accept Eclipse formatting for OnlineGlomServiceAsync.
762 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
764 2011-09-26 Ben Konrath <ben@bagu.org>
766 Don't use the ListDBAccess classes to get the primary key layout information.
768 This was causing a bug where the wrong index for the hidden primary key
769 was being sent to the client.
771 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
772 primary key while creating the LayoutGroup DTO. Create a
773 LayoutItemField DTO for hidden primary keys. Don't use the
774 RelatedListDBAccess because it was only used for getting the primary
776 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
777 access modifier from public to protected for getPrimaryKeyField() and
778 getPrimaryKeyLayoutItemField().
779 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
780 abstract method getExpectedResultSize() because RelatedListDBAccess
781 doesn't have enough info to implement it.
782 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
783 Remove @Override for getExpectedResultSize().
784 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
785 Remove method getExpectedResultSize().
787 2011-09-23 Ben Konrath <ben@bagu.org>
789 Log which layout (list or details) the ignored item is from.
791 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
793 2011-09-23 Ben Konrath <ben@bagu.org>
795 Remove annotations that turn off code formatting in DataItem.
797 * src/main/java/org/glom/web/shared/DataItem.java:
799 2011-09-23 Ben Konrath <ben@bagu.org>
801 Rename GlomField to DataItem and update associated methods.
803 This is a rename-only refactor. No functionality has been added or
806 * src/main/java/org/glom/web/client/OnlineGlomService.java:
807 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
808 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
809 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
810 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
811 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
812 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
813 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
814 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
815 * src/main/java/org/glom/web/server/database/DBAccess.java:
816 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
817 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
818 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
819 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
820 * src/main/java/org/glom/web/shared/DataItem.java:
821 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
822 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
824 2011-09-23 Ben Konrath <ben@bagu.org>
826 Rename GlomDocument to DocumentInfo and update associated methods.
828 This is a rename-only refactor. No functionality has been added or
831 * src/main/java/org/glom/web/client/OnlineGlomService.java:
832 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
833 * src/main/java/org/glom/web/client/activity/ListActivity.java:
834 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
835 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
836 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
837 * src/main/java/org/glom/web/shared/DocumentInfo.java:
839 2011-09-20 Ben Konrath <ben@bagu.org>
841 Require java-libglom 1.17.3.
843 This picks up the fix for the seg fault problem with the Scenes table
844 in the Openismus Film Manager example.
848 2011-09-20 Ben Konrath <ben@bagu.org>
850 Change the way sort clause is added for primary key when no sort clause is requested.
852 The primary key is now added to the LayoutFieldVector (fieldsToGet)
853 before the sort clause is created. When a sort clause is not requested, the
854 sort clause is created by finding the primary key in the LayoutFieldVector
857 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
859 2011-09-20 Ben Konrath <ben@bagu.org>
861 Log error message if no documents are found in the configured directory.
863 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
864 Extract the glom file extension string to a private static final class
865 variable (mostly as syntactic sugar). Accept a minor formatting change.
866 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
867 the example glom.document.directory configuration property to make it
868 more clear that it can any directory, not just the home directory.
870 2011-09-18 Ben Konrath <ben@bagu.org>
872 Add related lists to details view.
874 The related list table has support for paging and sorting just like the
875 table in the list view.
877 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
878 SQL queries for the related list tables.
879 * src/main/java/org/glom/web/client/OnlineGlomService.java:
880 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
881 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
882 Rename getList methods to getListView and add comments. Remove
883 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
884 it being unused. Add methods: getDetailsLayoutAndData(),
885 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
886 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
887 Create the layout and set the data for the fields in one async call
888 instead of two. Create related lists where appropriate.
889 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
890 for method name changes in OnlineGlomService.
891 * src/main/java/org/glom/web/client/ui/DetailsView.java:
892 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
893 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
895 * src/main/java/org/glom/web/client/ui/ListView.java:
896 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
897 tableName from setCellTable(). Create a ListViewTable instead of
899 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
900 represent a data field in the details view.
901 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
902 from addDetailsCell() to Field class. Keep track of the Fields and
903 Portals in the details view.
904 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
905 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
906 and add a method to get it. Add method to set the contents of the
908 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
909 New class for related list tables. This class has the data provider
910 for the related list table.
911 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
912 abstract class which is the base class for the ListViewTable and the
914 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
915 New class for list view tables. This class has the data provider for
917 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
918 methods for related list tables. Add more information to the
919 LayoutItemField and LayoutItemPortal DTOs.
920 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
921 Remove debugging print statement.
922 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
923 Remove debugging print statements. Add primary key field to SQL count
925 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
926 Remove unnecessary LayoutFieldVector parameter from
927 getResultSizeOfSQLQuery() method.
928 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
929 New class for related list table database access.
930 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
931 class that is a wrapper DTO for details view layout and data.
932 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
933 new 'fromField' string to this DTO.
934 * src/main/webapp/style.css: Remove bottom margin and override top
937 2011-09-15 Ben Konrath <ben@bagu.org>
939 Breakup the OnlineGlomServiceImpl class to make it more manageable.
941 This sets things up to make it easier to add the data retrieval for
942 related lists (portals). No user noticeable changes were made with
945 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
946 class has the code to retrieve the layouts and access the
947 database using the new database helper classes.
948 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
949 Most of the functionality has been removed from this class. This
950 class now represents the public interface for the client side
951 code. It also deals with configuring the servlet and cleaning
952 things up when the servlet is stopped.
953 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
954 of static methods into this utility class.
955 * src/main/java/org/glom/web/server/database/DBAccess.java:
956 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
957 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
958 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
959 These classes have the database retrieval code. The class hierarchy
960 has been setup to make it easy to reuse code for similar
963 2011-09-06 Ben Konrath <ben@bagu.org>
965 Create separate classes for list table code and the data provider.
967 As part of this refactor, I also split up the code a bit to make it
970 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
971 table code to two new classes (below).
972 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
973 with code from ListViewImpl.
974 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
975 New file with code from ListViewImpl.
977 2011-09-06 Ben Konrath <ben@bagu.org>
979 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
981 This fixes the LayoutItemPortal DTO to match the libglom layout object
984 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
986 2011-09-01 Ben Konrath <ben@bagu.org>
988 Set title of Portals in the Details View.
990 * pom.xml: Bump required version of java-libglom to 1.17.1.
991 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
992 widget creation to its own class. Add comments to constructor.
993 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
994 The code is mostly from the Group class with the title now set.
995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
996 title of Portal. Update some comments. Fix some code formatting.
998 2011-09-01 Ben Konrath <ben@bagu.org>
1000 Remove TODO comment for the flow table column width.
1002 The flow table column width is working correctly and doesn't need to be
1003 changed. See this mailing list post for more info:
1005 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1007 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1009 2011-08-27 Ben Konrath <ben@bagu.org>
1011 Add document title (database name) to top of the browser page.
1013 I added the document title to the TableSelecitonView but that will
1014 change if / when we add a view that doesn't require table selection.
1016 * mockups/details-contacts.html:
1017 * mockups/details-projects.html:
1018 * mockups/listview-contacts.html:
1019 * mockups/listview-projects.html:
1020 * mockups/style.css: Add document title to mockups to keep things
1022 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1023 sizes to account for the document title.
1024 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1025 Set the document title when it has been retrieved from the server.
1026 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1027 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1028 and implement setDocumentTitle(String) method.
1029 * src/main/webapp/style.css: Add ID for document title style.
1031 2011-08-25 Ben Konrath <ben@bagu.org>
1033 Add NavigationType enum to LayoutItemPortal DTO.
1035 This is the start of adding support for Portals to the Details View.
1037 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1038 LayoutItem_Portal.navigation_type enum from libglom to
1039 LayoutItemPortal.NavigationType enum.
1040 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1041 NavigationType enum, field for storing the NavigationType and getter
1044 2011-08-25 Ben Konrath <ben@bagu.org>
1046 Implement the flow table layout in the Details View.
1048 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1049 FlowTable to Group to account for the renamed class.
1050 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1051 File. This is a container widget that implements the Glom details view
1052 flow table behaviour.
1053 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1054 org/glom/web/client/ui/FlowTable.java.
1055 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1056 so that the size of the subgroups are a closer match to the size of
1057 the Glom subgroups. This makes the flowtable layout match the layout
1058 in Glom for the Music Collection example file.
1060 2011-08-16 Ben Konrath <ben@bagu.org>
1062 Create container element for LayoutItemPortal in Details View.
1064 This will help me develop the layout for the FlowTable.
1066 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1067 fieldPanel variable to detailsCell.
1069 2011-08-15 Ben Konrath <ben@bagu.org>
1071 Set the height of the data element in the Details View.
1073 I changed the InlineLabels (text in a span element) to Labels (text in
1074 a div element) so that I could set the height of the details-data
1075 elements instead of the details-cell parent elements. This allows the
1076 the details-data element to display the correct height if style is
1077 applied that shows the height.
1079 This change has the added benefit of allowing the order of the labels
1080 and data elements to be changed for right-to-left languages.
1082 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1083 InlineLabels to Labels.
1084 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1085 InlineLabels to Labels. Set the height of the data element.
1086 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1087 multiline text height in the Formatting DTO.
1088 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1089 for multiline height along with getter and setter methods.
1090 * src/main/webapp/style.css: Adjust style to account for the change
1091 from span elements to div elements in the details cell.
1093 2011-08-15 Ben Konrath <ben@bagu.org>
1095 Make the List View appearance match the mockups.
1097 It doesn't match exactly but it's much better than it was.
1099 * mockups/listview-contacts.html: Remove unused css classes.
1100 * mockups/listview-projects.html: Remove unused css classes.
1101 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1102 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1103 for mainPanel instead of VerticalPanel (table). Set style name on
1104 CellTable. Set style name on Details column. Right-align Details
1106 * src/main/webapp/style.css: Adjust properties to match the mockups.
1108 2011-08-12 Ben Konrath <ben@bagu.org>
1110 Add better support for subgroups in the details view.
1112 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1113 changed FlowTable constructor.
1114 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1115 support for subgroups and subgroup-titles.
1116 * src/main/webapp/style.css: Add CSS class for subgroups and
1119 2011-08-12 Ben Konrath <ben@bagu.org>
1121 Return the top level LayoutGroup title.
1123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1125 2011-08-11 Ben Konrath <ben@bagu.org>
1127 Make the TableSelector header match the mockup.
1129 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1130 the layout panel. Properly lineup the table selection header with
1131 the list and details view.
1132 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1133 margin around the details view.
1134 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1135 Rename listBox variable to tableSelector. Set id for the style sheet.
1136 Use a FlowPanel instead of a HorizontalPanel.
1137 * src/main/webapp/style.css: Add properties to make the TableSelector
1138 box match the mockups.
1140 2011-07-13 Ben Konrath <ben@bagu.org>
1142 Update install script for java-libglom version change.
1144 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1147 2011-07-13 Ben Konrath <ben@bagu.org>
1149 Add support sub-group in the details view.
1151 I also removed the code that special-cased the default details view
1154 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1156 I still have to make a proper flowtable.
1158 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1159 Don't special-case default details view layout.
1160 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1161 addLayoutField() as I'm going to use it.
1162 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1163 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1165 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1166 extracted from DetailsViewImpl.GroupPanel. Add support for
1168 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1169 column count when getting the details layout.
1171 2011-07-12 Ben Konrath <ben@bagu.org>
1173 Set browser title with database and table titles.
1175 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1176 Set the browser title when the table changes and when the activity
1178 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1179 title when retrieving document info (the GlomDocument object).
1180 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1181 with getter and setter methods. Remove unused convenience constructor.
1182 Use default code formatting.
1184 2011-07-12 Ben Konrath <ben@bagu.org>
1186 Ignore LayoutItemPortals in the details view.
1188 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1191 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1192 LayoutItemPortal layout objects.
1193 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1194 LayoutItemPortal objects when retrieving the details layout.
1195 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1196 file. This is an empty class and just used to get type information for
1199 2011-07-12 Ben Konrath <ben@bagu.org>
1201 Use java-libglom 1.17.0.
1205 2011-07-11 Ben Konrath <ben@bagu.org>
1207 Remove "Table:" label from table selector.
1209 This matches a recent change in the Glom UI.
1211 * mockups/details-contacts.html:
1212 * mockups/details-projects.html:
1213 * mockups/listview-contacts.html:
1214 * mockups/listview-projects.html: Remove the "Table:" label from the
1216 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1218 2011-07-11 Ben Konrath <ben@bagu.org>
1220 Add main groups to the details view.
1222 This makes things look a little nicer in the details view. The next step
1223 is to implement the flowtable.
1225 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1226 resources from the standard gwt css theme. Standard.css is now
1227 included in OnlineGlom.html so that the online glom css rules have
1228 precedence over the gwt theme.
1229 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1230 the whole LayoutGroup to the DetailsView instead of just the titles.
1231 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1232 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1233 details layout with a helper class (GroupPanel). I might extract this
1234 class when I make the full flowtable.
1235 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1236 string as default so I don't have to worry about NPEs when processing
1238 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1239 note beside OnlineGlom.gwt.xml above).
1240 * src/main/webapp/style.css: Add default font-size to body to override
1241 the font-size set by the standard theme. Don't use h2 tags for
1242 group-title. Create new details-cell class.
1244 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1246 ConfiguredDocument: Set the port number too.
1248 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1249 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1250 Glom document. Presumably this worked sometimes so far because there is a
1251 default port number.
1253 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1255 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1257 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1258 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1259 correct, though we should throw an exception too.
1261 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1263 Fix a addDocuemnt typo.
1265 * src/main/java/org/glom/web/shared/Documents.java
1266 (Documents.addDocuemnt): Rename to addDocument().
1267 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1268 (OnlineGlomServiceImpl.getDocuments): Adapt.
1270 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1272 Slightly improved log output when connection fails.
1274 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1275 (ConfiguredDocument.setUsernameAndPassword):
1276 We don't know for sure if it' the username/password that's wrong, so
1277 rephrase the message.
1278 Also ouput the exception message, though it's generic in this case.
1280 2011-07-08 Ben Konrath <ben@bagu.org>
1284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1285 added braces to a one line if statement because the Eclipse formatter
1286 was getting confused.
1288 2011-07-07 Ben Konrath <ben@bagu.org>
1290 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1292 These should really be two separate tasks but I counldn't get things to
1293 work with GWT 2.2.0 and Eclipse 3.7.
1297 * .settings/org.eclipse.jdt.core.prefs:
1298 * .settings/org.eclipse.jdt.ui.prefs:
1299 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1300 * .settings/org.eclipse.m2e.core.prefs:
1301 Add new config files. Update current files. Remove references to the
1302 webtools plugins as we're not using any of the webtools features.
1303 * .gitignore: Add logs directory which is created when running with
1305 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1306 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1307 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1309 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1311 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1313 onlineglom.properties: Add explanatory comments.
1315 * src/main/resources/onlineglom.properties: Also change the default user
1316 from ben to someuser, to avoid the risk of people thinking we just
1317 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1319 2011-06-28 Ben Konrath <ben@bagu.org>
1321 Use filename in Log for incorrect passwords.
1323 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1324 getFileName(String) method to get the filename from the URI.
1326 2011-06-28 Ben Konrath <ben@bagu.org>
1328 Add the table name to the URL token for the ListPlace.
1330 This makes things consistent between the DetailsPlace and the
1331 ListPlace. It also allows the the ListPlace to be bookmarked.
1333 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1334 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1336 Remove getDefaultListLayout(). The default layout is now returned
1337 by the getListLayout() method when the table name is an empty string.
1338 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1339 Add table name field. Change to a new ListPlace when the table
1340 has been changed. Use getListLayout() for getting the default
1342 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1343 Add table name field. Set the correct table name in the list box
1344 when loading from bookmark. This corrects a problem for the
1346 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1347 Move table name to super-class (HasSelectableTable). Move document
1348 and table URL keys to super-class in HasSelectableTable.
1349 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1350 Add table name field. Add Tokenizer class with URL key common to
1351 the subclasses (DetailsPlace and ListPlace).
1352 * src/main/java/org/glom/web/client/place/ListPlace.java:
1353 Add table name. Add code to parse the URL token.
1354 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1355 Update ListPlace construction with empty table name string.
1356 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1357 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1358 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1359 Update ListPlace construction with table name string.
1360 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1361 Change defaultTableName field to tableName to reflect how it's now
1362 used. Update the getter and setter methods.
1364 2011-06-28 Ben Konrath <ben@bagu.org>
1366 Enable the table selector in the DetailsView.
1368 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1369 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1371 Remove getDefaultDetailsLayout(). The default layout is now returned
1372 by the getDetailsLayout() method when the table name is an empty
1374 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1375 event handler for table change event. Change to using
1376 getDetailsLayout() for the default details layout.
1377 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1379 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1380 when navigating to the details place.
1382 2011-06-27 Ben Konrath <ben@bagu.org>
1384 Use filename based unique document ID in URL and for RPC.
1386 The document ID is the glom document name with spaces (' ') replaced
1387 with pluses ('+') and without the .glom extension.
1389 This change is mostly a string substitution of 'documentTitle' for
1390 'documentID'. The only code change is the addition of a Documents DTO to get the
1391 filename to document title mappings as indicated below.
1393 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1394 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1395 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1396 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1397 Use Documents DTO to create the document links in the document
1399 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1400 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1401 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1402 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1403 * src/main/java/org/glom/web/client/place/ListPlace.java:
1404 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1405 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1406 * src/main/java/org/glom/web/client/ui/ListView.java:
1407 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1408 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1409 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1410 * src/main/java/org/glom/web/server/Log.java:
1411 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1412 getDocumentTitles() to getDocuments() and return the Documents DTO.
1413 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1414 transferring the filename to document title mappings.
1416 2011-06-25 Ben Konrath <ben@bagu.org>
1418 Make the authentication popup work again.
1420 This bug was introduced when I extracted ConfiguredDocument to its own class.
1422 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1423 correct success / fail status in setUsernameAndPassword().
1425 2011-06-25 Ben Konrath <ben@bagu.org>
1427 Use filename as unique key for configuring database usernames and passwords.
1429 This replaces the use of the Glom document title which could change
1430 depending on the locale. Thanks to Murray Cumming for pointing out this
1433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1434 * src/main/resources/onlineglom.properties:
1436 2011-06-24 Ben Konrath <ben@bagu.org>
1438 Pass primary key value to DetailsView.
1440 This enables the DetailsView to load the correct data.
1442 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1443 primary key value field and set in constructor. Pass primary key
1444 value to getDetailsData().
1445 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1446 variables for document title and primary key value.
1447 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1448 key value to the DetailsPlace.
1450 2011-06-24 Ben Konrath <ben@bagu.org>
1452 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1454 This allows the primary key to be retrieved by the Details button. This
1455 functionality has not been implemented yet but it's in the works.
1457 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1458 the LayoutGroup result to ListView.setCellTable instead of all of its
1459 fields individually.
1460 * src/main/java/org/glom/web/client/ui/ListView.java:
1461 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1462 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1463 get the primary key for the table.
1464 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1465 index of the primary key in the LayoutGroup accounting for hidden
1466 primary keys. Rename getJavaNumberFormat() to
1467 convertToJavaNumberFormat() for consistency. Cleanup / add some
1469 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1470 field for primary key index and a field to indicate whether the
1471 primary key is hidden or not.
1473 2011-06-23 Ben Konrath <ben@bagu.org>
1475 Rename getTableData methods to getListData.
1477 This is a rename refactor for consistency with other methods.
1479 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1480 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1481 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1484 2011-06-23 Ben Konrath <ben@bagu.org>
1486 Extract the ConfiguredDocument innerclass into its own class.
1488 This makes the servlet code more object oriented.
1490 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1491 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1493 new ConfiguredDocument class.
1495 2011-06-21 Ben Konrath <ben@bagu.org>
1497 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1499 This makes things more inline with how libglom works and reduces code
1500 duplication. This refactor lays the groundwork for adding the primary key to
1501 the LayoutGroup object.
1503 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1504 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1505 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1506 Change method names to getListLayout and getDefaultListLayout for
1507 consistency. Use LayoutGroup as the DTO for the list layout instead of
1508 ColumnInfo and LayoutListTable.
1509 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1510 new method names along with the LayoutGroup object for transferring the
1512 * src/main/java/org/glom/web/client/ui/ListView.java:
1513 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1514 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1515 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1517 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1518 Replaced with LayoutGroup.
1519 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1520 expectedResultSize and defaultTableName fields which are needed for
1522 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1523 type field which is needed for the list layout but will also be
1524 useful for the details layout as things progress.
1525 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1526 Make class abstract. Remove the unnecessary
1527 getFormattingHorizontalAlignment method. Add setFormatting method.
1529 2011-06-16 Ben Konrath <ben@bagu.org>
1531 Add scripts for building and installing war.
1533 These will help when updating OnlineGlom but they're also good
1534 supplemental documentation of the build and deployment proceeding.
1536 * utils/build-onlineglom-war.sh: New file.
1537 * utils/install-onlineglom-war.sh: New file.
1539 2011-06-16 Ben Konrath <ben@bagu.org>
1541 Create wrapper class to create consistent log messages.
1543 I wrapped methods in the Log class of gwt-log to add the method names
1544 from the servlet and create consistent formatting of the document title
1545 and table names in the log messages.
1547 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1548 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1549 log methods to use methods from wrapped Log class.
1551 2011-06-16 Ben Konrath <ben@bagu.org>
1553 Remove superfluous conditional return.
1555 Thanks to Murray Cumming for pointing this out!
1557 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1559 2011-06-15 Ben Konrath <ben@bagu.org>
1561 Return an ArrayList of LayoutGroups for the Details layout.
1563 This corrects a problem with the details layout as it can have more
1564 than one top level LayoutGroup.
1566 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1567 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1568 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1569 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1570 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1571 with ArrayList of LayoutGroups for the details view layout.
1572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1573 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1574 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1575 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1576 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1577 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1579 2011-06-14 Ben Konrath <ben@bagu.org>
1581 Use cast_dynamic method to determine the libglom LayoutItem type.
1583 This is better than finding the LayoutItem type by using the string
1584 returned from the get_part_type_name() method.
1586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1588 2011-06-14 Ben Konrath <ben@bagu.org>
1590 Add method names to log entries in the servlet.
1592 This helps when tracking down deployment problems.
1594 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1596 2011-06-14 Ben Konrath <ben@bagu.org>
1598 Add data to the DetailsView using a hard-coded primary key value.
1600 The layout and functionality of the DetailsView is not complete. This
1601 is just a checkpoint so the patch doesn't get too big.
1603 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1604 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1605 Add getDetailsData() servlet method.
1606 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1607 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1608 LayoutFields are added to the DetailsView.
1609 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1610 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1611 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1612 take the string for the title instead of the object.
1613 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1614 Add implementation getDetailsData() along with some private helper
1616 * src/main/webapp/style.css: Add padding to details-data class. Add a
1617 details-label class with the same padding as the details-data class.
1619 2011-06-03 Ben Konrath <ben@bagu.org>
1621 Use presenter.goTo() to change to the DetailsPlace.
1623 This will make things easier when we need to open the DetailsView with
1624 data specific to the row that was clicked.
1626 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1628 2011-06-02 Ben Konrath <ben@bagu.org>
1630 Add CSS file from mockups.
1632 I'm adding this now because it's going to be useful to have when
1633 developing the DetailsView. The TableSelectionView and ListView aren't
1636 * src/main/webapp/OnlineGlom.html:
1637 * src/main/webapp/style.css:
1639 2011-06-02 Ben Konrath <ben@bagu.org>
1641 Use String.isEmpty() to check for empty string.
1643 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1645 2011-06-02 Ben Konrath <ben@bagu.org>
1647 Display main layout group titles in the DetailsView.
1649 This is the start of the DetailsActivity/DetailsView implementation.
1651 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1652 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1653 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1654 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1655 Get the layout information for the details view from the server and set
1656 the main layout group titles.
1657 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1658 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1659 Add addLayoutGroup() and addLayoutField() methods. This are just
1660 temporary methods for creating the the details view that will change
1662 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1663 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1665 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1666 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1667 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1668 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1669 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1670 Data Transfer Objects that mimic the libglom object structure. These are
1671 used for transferring the details layout but could also be used for
1672 transferring the list layout.
1674 2011-05-27 Ben Konrath <ben@bagu.org>
1676 Reset the AuthenticationPopup when clearing the ListView.
1678 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1680 2011-05-27 Ben Konrath <ben@bagu.org>
1682 Fix problem with onlineglom.properties file loading.
1684 The old way worked in Eclipse but not on the server. Loading the
1685 onlineglom.properties file now works in Eclipse and on the server.
1687 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1689 2011-05-24 Ben Konrath <ben@bagu.org>
1691 Update gwt-log from 3.1.0 to 3.1.2.
1693 Gwt-log 3.1.0 has been marked as depreciated.
1697 2011-05-24 Ben Konrath <ben@bagu.org>
1699 Add comment to ListActivity.goTo() method.
1701 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1703 2011-05-24 Ben Konrath <ben@bagu.org>
1705 Remove FIXME in convertGdkColorToHtmlColour()
1707 The Gdk::Color value returned by libglom is 16-bits per channel on both
1708 64 and 32-bit platforms.
1710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1712 2011-05-19 Ben Konrath <ben@bagu.org>
1714 Improve performance of initial ListView load.
1716 I removed a round trip to the server for getting the default table name
1717 and then requesting information about that table. This also removes a potential
1718 problem with the table change handler not being setup in time to receive the
1719 table change event from the ListActivity.
1721 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1722 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1723 getDefaultLayoutListTable() method. Improve comments.
1724 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1725 getDefaultLayoutListTable() method instead of firing a table change
1726 event to get the table to load.
1727 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1728 implementation of getDefaultLayoutListTable() method.
1729 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1732 2011-05-19 Ben Konrath <ben@bagu.org>
1734 Override toDebugString() in TableChangeEvent.
1736 This is useful to have for debugging.
1738 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1740 2011-05-19 Ben Konrath <ben@bagu.org>
1742 Add a "Back to List" link when at the DetailsPlace.
1744 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1745 Populate the CellTable based on the selected table of the ListBox if
1746 it's set otherwise use the default table. This allows the "Back to
1748 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1749 Remove Place from constructors. Add a setPlace() method. Add
1750 goToPlace() method. Set class as presenter for TableSelectionView.
1751 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1752 Use the same TableSelectionActivity when switching between the List and
1754 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1755 Subclass the new HasSelectableTablePlace. This removes some duplicate
1757 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1758 New class to represent Places that display the TableSelectionView.
1759 * src/main/java/org/glom/web/client/place/ListPlace.java:
1760 Subclass the new HasSelectableTablePlace. This removes some duplicate
1762 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1763 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1764 Add Presenter interface. Add setBackLinkVisible() method. Add
1765 setBackLink() method.
1767 2011-05-18 Ben Konrath <ben@bagu.org>
1769 Enable the "Details" buttons.
1771 Right now only an empty details view is displayed.
1773 * src/main/java/org/glom/web/client/ClientFactory.java:
1774 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1775 Add DetailsView to ClientFactory.
1776 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1777 A basic activity for the details view.
1778 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1779 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1781 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1782 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1784 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1785 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1786 unnecessary super() in constructor.
1787 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1788 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1789 really shouldn't create a new TableSelectionActivity for both the ListPlace
1790 and the DetailsPlace so this should be considered a temporary solution.
1791 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1792 New file. Represents a URL for the details view.
1793 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1794 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1795 A basic details view interface and implementation.
1796 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1797 Enable the "Details" buttons.
1799 2011-05-12 Ben Konrath <ben@bagu.org>
1801 Use a LayoutPanel with multiple display areas for main layout.
1803 This is mostly a refactor in that there are no changes from the user
1804 point of view. These changes are required so that we can swap out the list view
1805 with the details view when the user clicks the "Details" button.
1807 * src/main/java/org/glom/web/client/ClientFactory.java:
1808 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1809 OnlineGlomView. Add TableSelectionView, ListView and
1810 AuthenticationPopup.
1811 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1812 for main layout. Add display regions for main activities. Add
1813 activity manager for for main activities.
1814 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1815 file from parts of the deleted OnlineGlomActivity.
1816 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1817 New file from parts of the deleted OnlineGlomActivity.
1818 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1819 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1820 New files for app wide table change event.
1821 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1822 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1823 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1824 Activity mappers for the main activities replace the deleted app-wide
1826 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1827 Fix a spelling error in he comment.
1828 * src/main/java/org/glom/web/client/ui/ListView.java:
1829 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1830 Renamed from LayoutListView and modified for MVP. This still not a
1831 proper dumb view as prescribed by the MVP pattern but it works for now.
1832 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1833 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1834 New widget stripped out of the deleted OnlineGlomView.
1835 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1836 Remove hack that is fixed by this patch.
1838 2011-05-06 Ben Konrath <ben@bagu.org>
1840 Rename OnlineGlomPlace to ListPlace.
1842 The only change besides the rename is that url will now display #list
1843 instead of #Document.
1845 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1846 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1847 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1848 * src/main/java/org/glom/web/client/place/ListPlace.java:
1849 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1851 2011-05-06 Ben Konrath <ben@bagu.org>
1853 Use Presenter for app navigation.
1855 This is the proper way to deal with Place (URL) changes with the MVP
1858 * src/main/java/org/glom/web/client/ClientFactory.java:
1859 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1860 PlaceHistoryMapper and PlaceHistoryHandler.
1861 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1862 PlaceHistoryMapper and PlaceHistoryHandler.
1863 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1864 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1865 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1866 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1867 Add Presenter interface and setPresenter methods. Rename addHyperLink
1868 to addDocumentLink taking only the document title as a parameter.
1870 2011-04-14 Ben Konrath <ben@bagu.org>
1872 Prompt for db username/password if they haven't been set.
1874 This is implemented with a popup widget that is contained within the
1875 OnlineGlomView and managed by the OnlineGlomActivity.
1877 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1878 methods for checking and setting the database username and password.
1879 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1880 new methods for checking and setting the database username and
1882 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1883 Display authentication popup if the JDBC connection to the database
1884 has not been authenticated.
1885 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1887 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1888 for dealing with the authentication popup.
1889 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1890 Implement the methods for dealing with the authentication popup.
1891 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1892 try to executed queries if the database connection hasn't been
1893 authenticated. Implement methods for checking and setting the
1894 database username and password.
1896 2011-04-12 Ben Konrath <ben@bagu.org>
1898 Make log messages a little clearer.
1900 Add a dash betweeen the document title and the table name.
1902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1904 2011-04-12 Ben Konrath <ben@bagu.org>
1906 Protect against NPEs when cleaning up database resources.
1908 While this isn't strictly necessary because the exception is caught,
1909 not protecting against the NPEs makes it harder to find the real error
1912 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1914 2011-04-12 Ben Konrath <ben@bagu.org>
1916 Move configuration of the servlet to the constructor.
1918 The servlet will be initialized even if the database authentication
1919 information is not set or correct. I still need to add the UI for prompting
1920 the user for the authentication information when it's required.
1922 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1923 javadocs for getDocumentTitles() method.
1924 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1925 Set error message when RPC fails.
1926 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1927 glom files directory from the configuration file. Try to set the
1928 database authentication information for the specific document if it's
1929 set and works otherwise try to use the global authentication
1930 information set for the directory.
1931 * src/main/resources/onlineglom.properties: Moved from
1932 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1933 Added detailed comments for the new keys.
1935 2011-04-11 Ben Konrath <ben@bagu.org>
1937 Remove unnecessary @Override in DocumentSelectionViewImpl.
1939 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1941 2011-04-11 Ben Konrath <ben@bagu.org>
1943 Remove center alignment in DocumentSelectionView.
1945 The title element is still centred but the document titles and bottom
1946 sentence are both left-aligned.
1948 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1950 2011-04-11 Ben Konrath <ben@bagu.org>
1952 Change 'Demo' naming convention to 'Document'.
1954 This is just a rename refactor with no functional changes to the code.
1956 * src/main/java/org/glom/web/client/ClientFactory.java:
1957 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1958 * src/main/java/org/glom/web/client/OnlineGlom.java:
1959 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1960 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1961 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1962 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1963 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1964 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1965 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1966 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1967 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1968 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1970 2011-04-08 Ben Konrath <ben@bagu.org>
1972 Remove FIXME from safeLongToInt() method.
1974 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1977 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1979 2011-04-08 Ben Konrath <ben@bagu.org>
1981 Display an error if no glom documents are found in the specified directory.
1983 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1984 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1985 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1986 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1988 2011-04-08 Ben Konrath <ben@bagu.org>
1990 Add copyright header to one more file ... oops.
1992 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1994 2011-04-08 Ben Konrath <ben@bagu.org>
1996 Add copyright header to files without it.
1998 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1999 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2000 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2001 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2002 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2003 * src/main/java/org/glom/web/shared/GlomField.java:
2005 2011-04-08 Ben Konrath <ben@bagu.org>
2007 Add support for accessing multiple glom documents in the servlet.
2009 This completes the demo selection functionality.
2011 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2012 document title to methods.
2013 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2014 document title to methods.
2015 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2016 Set browser window title when the activity starts. Correct name of
2017 document title variable.
2018 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2019 Set browser window title when the activity starts. Set the table
2020 selector change handler after table selector has been set. Clear the
2021 OnlineGlomView when the activity has been stopped.
2022 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2023 document title as the place token. Use "#Document:" instead of
2024 "#OnlineGlomPlace:" in the URL.
2025 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2026 Change heading to "Online Glom"
2027 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2028 document title in RPC methods.
2029 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2030 setDocumentTitle() method. Add clear() method.
2031 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2032 setDocumentTitle() method. Implement clear() method which removes the
2033 change handler on the ListBox, clears the ListBox and clears the
2035 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2036 Implement methods with document title. Keep track for the configured
2037 glom documents and their corresponding JDBC configurations in a hash
2038 table. This information is retrieved using the document title as the
2039 key in the hash table.
2040 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2041 document title field as it's no longer needed.
2043 2011-04-08 Ben Konrath <ben@bagu.org>
2045 Update the Eclipse JDT configuration.
2047 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2048 methods. Automatically add the copyright header to new files.
2050 2011-04-05 Ben Konrath <ben@bagu.org>
2052 Add new page for demo selection.
2054 This patch adds all the components required to view and start an
2055 OnlineGlom demo by clicking on the desired hyperlink. The user is
2056 able to return to the demo selection page with the browser's back
2057 button. I still need to modify the servlet to work with multiple
2058 documents so all demo links will load the file defined in the
2059 OnlineGlom.properties.
2061 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2062 This is only useful during development so we don't need to save it.
2063 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2064 get a reference to the DemoSelectionView.
2065 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2066 method to get a reference to the DemoSelectionView.
2067 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2068 default view to DemoSelectionView.
2069 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2070 to get glom document titles for glom files in a hard-coded directory.
2071 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2072 method to get glom document titles for glom files in a hard-coded
2074 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2075 Presenter for DemoSelectionView.
2076 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2077 for DemoSelectionView.
2078 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2079 Update for DemoSelectionView.
2080 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2081 Basic 'Place' implementation for the DemoSelectionView.
2082 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2083 The interface for the DemoSelectionView.
2084 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2085 The implementation of the DemoSelectionView.
2086 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2087 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2088 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2089 implementation of method to get glom document titles for glom files
2090 in a hard-coded directory.
2091 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2092 on longer being used.
2093 * src/main/webapp/glom.png: Glom logo.
2095 2011-04-05 Ben Konrath <ben@bagu.org>
2097 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2099 This is the forth and final commit of a refactor that will allow
2100 OnlineGlom to be used with multiple documents.
2102 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2103 Move RPC code from OnlineGlomViewImpl to this class.
2104 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2106 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2107 RPC code to the presenter class (the P in MVP).
2109 2011-04-04 Ben Konrath <ben@bagu.org>
2111 Start moving the existing OnlineGlom code to MVP.
2113 This work is based on the GWT MVP framework that is documented here:
2115 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2117 This is the third commit of a refactor that will allow OnlineGlom to
2118 be used with multiple documents.
2120 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2121 Interface for client factory which is used to get instances of various
2122 classes throughout the app.
2123 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2124 Implementation of client factory.
2125 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2126 initialize the MVP framework.
2127 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2128 New file. Activity manager for the main container widget. This is the
2130 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2131 Maps place (URL) to its corresponding activity.
2132 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2133 New file. This is just a place holder for a generated file.
2134 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2135 New file. Represents the URL for the main Online Glom app.
2136 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2137 for changes in LayoutListViewImpl.
2138 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2139 interface for View. Move code to OnlineGlomViewImpl class.
2140 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2141 file. Implementation of OnlineGlomView.
2142 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2143 Place resources. Use ClientFactoryImpl by default.
2145 2011-04-04 Ben Konrath <ben@bagu.org>
2147 Move View classes to their own package.
2149 This is the second commit of a refactor that will allow OnlineGlom to
2150 be used with multiple documents.
2152 * src/main/java/org/glom/web/client/OnlineGlom.java:
2153 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2154 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2156 2011-04-02 Ben Konrath <ben@bagu.org>
2158 Move UI code from the main module to its own class.
2160 This is the first commit of a refactor that will allow OnlineGlom to be
2161 used with multiple documents.
2163 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2164 references to OnlineGlom to OnlineGlomView.
2165 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2166 OnlineGlomView and instantiate it here.
2167 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2168 represents the main OnlineGlomView with one document.
2170 2011-04-01 Ben Konrath <ben@bagu.org>
2172 Fix formatting of gwt.xml and add DTD.
2174 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2176 2011-03-30 Ben Konrath <ben@bagu.org>
2178 Propperly convert gdkColor string to html colour string.
2180 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2182 2011-03-28 Ben Konrath <ben@bagu.org>
2184 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2186 This implementation matches
2187 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2188 readable and is not tied to Swig.
2190 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2192 2011-03-28 Ben Konrath <ben@bagu.org>
2194 Use read-only checkboxes for boolean field types.
2196 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2197 in the CellTable based on the field type. It currently only
2198 distinguishes between boolean and text columns but I'll need to add
2199 support for more types.
2200 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2201 column type in the ColumnInfo object. Add method to convert between the
2202 glom field type enum in ColumnInfo and the glom field type in libglom.
2203 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2205 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2206 getting and setting booleans.
2208 2011-03-25 Ben Konrath <ben@bagu.org>
2210 Don't get the Date twice from the ResultSet.
2212 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2214 2011-03-25 Ben Konrath <ben@bagu.org>
2216 Cleanup code in the servlet.
2218 * TODO: Remove item about row count. Add item about testing row count
2219 query with large number of rows.
2220 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2221 spelling mistakes, change method parameter to be consistent with
2224 2011-03-25 Ben Konrath <ben@bagu.org>
2226 Add server side logging with the gwt-log library.
2228 * .gitignore: Ignore the log file we're now producing.
2229 * TODO: Add a couple TODO item for logging.
2230 * pom.xml: Add gwt-log and log4j as a dependency.
2231 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2232 logging of errors, warnings and some important info.
2233 * src/main/resources/log4j.properties: New file to configure log4j.
2235 2011-03-24 Ben Konrath <ben@bagu.org>
2237 Add a disable button for the Details view.
2239 * src/main/java/org/glom/web/client/LayoutListView.java:
2241 2011-03-22 Ben Konrath <ben@bagu.org>
2243 Use a count query to get the number of rows for the list view pager.
2245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2247 2011-03-22 Ben Konrath <ben@bagu.org>
2249 Add more TODO information about CellTable pager positioning.
2253 2011-03-19 Ben Konrath <ben@bagu.org>
2255 Add TODO item about CellTable pager positioning.
2259 2011-03-18 Ben Konrath <ben@bagu.org>
2261 Remove unneeded GlomFieldColumn class.
2263 This is just a small code cleanup.
2265 * src/main/java/org/glom/web/client/LayoutListView.java:
2267 2011-03-18 Ben Konrath <ben@bagu.org>
2269 Use cursor mode in the query that gets data for the list view.
2271 I still need to fix the potential memory problem when getting the row
2272 count for the list view.
2274 * TODO: Add note about testing memory usage with large data sets. Add
2275 item about fixing row counting with large data sets.
2276 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2277 PostgreSQL JDBC driver into cursor mode when getting data for the
2280 2011-03-15 Ben Konrath <ben@bagu.org>
2282 Remove the GWT Container from the Eclipse build classpath.
2284 The GWT dependencies are set by Maven so this isn't needed.
2288 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2290 Added some earlier mockups to git, but not to the tarball dist.
2292 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2293 Openismus. These hopefully show how we might structure the HTML so that
2294 it can be styled easily with CSS. However, we probably need to adapt them
2295 for the CSS structure that GWT dictates for common widgets.
2297 2011-03-14 Ben Konrath <ben@bagu.org>
2299 Locate OnlineGlom.properties using the ServletContext.
2301 This is required to be able to locate the file in the deployed servlet.
2303 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2304 Configure the database and glom document in in a helper method so
2305 that the ServletContext can be used to locate OnlineGlom.properties.
2306 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2307 src/main/webapp. This is the proper location for .properites files.
2309 2011-03-12 Ben Konrath <ben@bagu.org>
2311 Add note to README about why we're compiling down to obfuscated JavaScript.
2315 2011-03-11 Ben Konrath <ben@bagu.org>
2317 Use properties file to configure servlet.
2319 This allows people to change the glom file path, db username and db
2320 password without recompiling the code.
2322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2323 * src/main/webapp/OnlineGlom.properties:
2325 2011-03-11 Ben Konrath <ben@bagu.org>
2327 Use table fields in layout list view if the layout list is not defined.
2329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2330 Manually create a LayoutFieldVector for the query builder using the
2331 table fields when a layout list is not defined in the glom file.
2333 2011-03-11 Ben Konrath <ben@bagu.org>
2335 Only show FIXME string for images when there's an image.
2337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2338 in this change are some small code cleanups.
2340 2011-03-11 Ben Konrath <ben@bagu.org>
2342 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2344 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2346 2011-03-11 Ben Konrath <ben@bagu.org>
2348 Correctly set the index of the default table.
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2351 Correctly set the index of the default table. Add commented out example
2354 2011-03-10 Ben Konrath <ben@bagu.org>
2356 Add comment to pom.xml about the previous change.
2358 * pom.xml: Add comment about the deployment issue so that it's obvious
2359 why java-libglom is set to the provided scope.
2361 2011-03-10 Ben Konrath <ben@bagu.org>
2363 Change java-libglom dependency from compile to provided in pom.xml.
2365 Since java-libglom uses jni it can only be loaded once and therefore
2366 must be placed in $CATALINA_HOME/lib and not included in each war.
2367 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2368 More information about this issue can be found in the Tomcat 6 release
2369 notes in the "JNI Based Applications" section:
2371 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2373 * README: Remove note about this issue. Deployment info should really
2374 be on the wiki anyway so I'll add it right now.
2375 * pom.xml: Change java-libglom dependency from compile to provided so
2376 that it's copied in to the packaged war.
2378 2011-03-09 Ben Konrath <ben@bagu.org>
2380 Change to using a neutral locale for currency, date and time formatting.
2382 This solves the problem of currency values being represented without a
2383 space between the currency code and the number (e.g. "EUR5.89" is now
2384 represented as "EUR 5.89"). More work is required when we implement
2385 a locale preference setting.
2387 * TODO: Add note about currency formatting issues with different
2389 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2390 to using the neutral ROOT locale.
2392 2011-03-09 Ben Konrath <ben@bagu.org>
2394 Add support for currency codes that are not ISO 4217 codes.
2396 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2397 the currency code defined in the glom file when it's not 3 characters
2398 long or when Java doesn't recognize the string as an ISO 4217 code.
2400 2011-03-08 Ben Konrath <ben@bagu.org>
2402 Remove test classes, launch configurations and configuration.
2404 The test stuff was getting in the way when creating the war. To make
2405 the war file you can now do 'mvn clean package'. The packaged war file
2406 will be in the target directory.
2408 * .classpath: Remove unused classpathentry for tests and i18n.
2409 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2410 property. Don't run test or i18n goals when packaging the war.
2411 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2416 * OnlineGlomTest-dev.launch:
2417 * OnlineGlomTest-prod.launch:
2418 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2419 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2421 2011-03-07 Ben Konrath <ben@bagu.org>
2423 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2425 These fixes allow me to use 'mvn deploy' to create the war file.
2427 * .classpath: This generated config has been updated by Eclipse. This
2428 change was probably triggered by me updating from Eclipse 3.6.1 to
2430 * .gitignore: Add entry to ignore the directory
2431 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2432 * .project: The generated config has been updated by Eclipse. This
2433 change was probably triggered by me updating from Eclipse 3.6.1 to
2435 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2436 so that Eclipse doesn't complain
2437 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2438 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2439 'tests' directory to 'client' directory. This is the new
2440 gwt-maven-plugin convension.
2441 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2442 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2444 2011-03-07 Ben Konrath <ben@bagu.org>
2446 Add support for horizontal alignment in the LayoutList columns.
2448 * TODO: Remove item about horizontal alignment. Add item about
2449 improvements to ColumnInfo.
2450 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2451 alignment on the columns. Use ColumnInfo RPC object get the column
2452 title and horizontal alignment.
2453 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2454 LayoutListView creation with ColumnInfo RPC object.
2455 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2456 a ColumnInfo object for every LayoutList columnn. Convert the
2457 FieldFormatting.HorizontalAlignment to the correct
2458 ColumnnInfo.HorizontatlAlignment with the new
2459 getColumnInfoHorizontalAlignment helper method.
2460 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2461 to encapsulate column information like alignment and title. This
2462 could be used to set the colour instead of on a per cell field basis.
2463 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2464 column title storage and retrieval with ColumnInfo.
2466 2011-03-04 Ben Konrath <ben@bagu.org>
2468 Add support for column sorting.
2470 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2471 AsynDataProvider to be an anonymous inner class. Use new
2472 getSortedTableData RPC method when column sort is requested. Set all
2473 columns sortable and add an AsyncHandler to activate sorting in the
2475 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2476 method getSortedTableData(). Cleanup other method signatures.
2477 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2478 new method getSortedTableData(). Cleanup other method signatures.
2479 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2480 Implement getSortedTableData() and getTableData() methods by using a
2481 private helper method with the appropriate parameters filled in. Use
2482 user supplied sort clause when supplied, otherwise fall back to
2483 sorting by the primary key. Move destroy() method to be underneath
2484 constructor for readability. Cleanup comments.
2486 2011-03-03 Ben Konrath <ben@bagu.org>
2488 Add support for colour text and colour backgrounds to the layout list cells.
2490 Only the cell backgrounds are coloured which leaves a gap between the
2491 cells that isn't coloured. I need to figure out a way to set
2492 'style=background-colour:' on the whole column rather than just the
2495 * TODO: Add a note about colouring the background of the whole column.
2496 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2497 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2498 render the coloured text and backgrounds. Use GlomField[] for the row type.
2499 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2501 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2502 GlomField[] for the row type.
2503 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2504 GlomField[] for the row type. Set the text, text colour and background
2505 colour in the GlomField objects as specified in the glom document. Add
2506 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2507 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2508 the glom field text, foreground colour and background colour.
2510 2011-03-02 Ben Konrath <ben@bagu.org>
2512 Don't display hidden tables in the combo box.
2514 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2517 code to ignore hidden tables using ArrayLists for the table names and
2519 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2520 tableNames to use ArrayLists instead of String[]. Update getter and setter
2523 2011-03-01 Ben Konrath <ben@bagu.org>
2525 Add support for Date and Time number types.
2527 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2528 Implement formatting for Date and Time values. Change the default glom
2529 file to small business example.
2531 2011-03-01 Ben Konrath <ben@bagu.org>
2533 Add support for formatting glom types as specified in the glom file.
2535 Formatting isn't finished yet - I still need to add support for Date
2538 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2539 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2540 checks for null values in JDBC cleanup code and catch all exceptions
2541 instead of just SQLExceptions.
2542 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2545 2011-03-01 Ben Konrath <ben@bagu.org>
2547 Use GWT 2.2.0 instead of 2.1.1.
2549 * pom.xml: Change GWT version numbers.
2551 2011-03-01 Ben Konrath <ben@bagu.org>
2553 A few small code cleanups.
2555 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2557 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2558 unnecessary object creation in constructor.
2559 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2560 unnecessary object creation in constructor.
2562 2011-02-28 Ben Konrath <ben@bagu.org>
2564 Add file for TODO list.
2568 2011-02-18 Ben Konrath <ben@bagu.org>
2570 Enable the CellTable Pager when more than 20 rows need to be viewed.
2572 The Pager will automatically become active when the results are larger
2573 than the CellTable size which is currently set to 20 lines.
2575 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2576 name on debug statment in RPC call in LayoutListDataProvider, add
2577 numRows parameter to LayoutListView constructor, propperly set rowCount
2579 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2580 name on debug statment in RPC call, use LayoutListTable object in RPC
2581 calls, pass rowCount to LayoutListView.
2582 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2583 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2585 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2586 interface for changes in OnlineGlomService.
2587 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2588 getLayoutListHeaders() to getLayoutListTable() and return
2589 LayoutListTable. Using this object allows me to pass other information
2590 about the LayoutList like the expected number of rows in the result set.
2591 The Connection object from the connection pool is now propperly closed.
2592 Only the requested number of lines are returned to the client in
2594 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2595 GlomTable and add columnTitles and numRows.
2597 2011-02-18 Ben Konrath <ben@bagu.org>
2599 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2601 This is a small performance boost. I'll use GlomTable to get the required
2602 layoutlist information.
2604 * src/main/java/org/glom/web/client/OnlineGlom.java:
2605 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2606 * src/main/java/org/glom/web/shared/GlomDocument.java:
2608 2011-02-18 Ben Konrath <ben@bagu.org>
2610 Add option to turn off formatting in JDT formatter preferences.
2612 * .settings/org.eclipse.jdt.core.prefs:
2614 2011-02-18 Ben Konrath <ben@bagu.org>
2616 Rename LayoutList to LayoutListView.
2618 I'm working towards setting things up to easily use MVP when the time
2621 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2623 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2626 2011-02-17 Ben Konrath <ben@bagu.org>
2628 Move LayoutListDataProvider class into LayoutList.java.
2630 * src/main/java/org/glom/web/client/LayoutList.java:
2632 2011-02-17 Ben Konrath <ben@bagu.org>
2634 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2636 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2638 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2639 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2640 from LibGlomServer.java.
2641 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2642 Rename from LibGlomServiceAsync.java.
2643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2644 Rename from LibGlomServiceImpl.java.
2645 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2647 2011-02-17 Ben Konrath <ben@bagu.org>
2649 Update JDT settings.
2651 * .settings/org.eclipse.jdt.core.prefs:
2653 2011-02-17 Ben Konrath <ben@bagu.org>
2655 Move GWT-RPC objects to shared package (where they should be).
2657 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2658 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2659 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2660 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2661 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2662 org.glom.web.shared package.
2663 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2664 org.glom.web.shared package.
2665 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2666 directory in compilation to javascript.
2668 2011-02-16 Ben Konrath <ben@bagu.org>
2670 Add sort clause to the sql query that grabs table information.
2672 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2673 if one of the columns is a primary key.
2675 2011-02-16 Ben Konrath <ben@bagu.org>
2677 Disable generateAsync feature of gwt-maven.
2679 The generated interface does not correctly match the methods in LibGlomService
2680 and the generated singleton Util inner-class doesn't respect the servlet
2683 * pom.xml: Turn off generateAsync feature.
2684 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2685 with singleton Util inner-class.
2687 2011-02-14 Ben Konrath <ben@bagu.org>
2689 Add LGPL v3 licence notices.
2691 Followed directions listed here:
2692 http://www.gnu.org/licenses/gpl-howto.html
2694 * COPYING: This file is a copy of the GPL v3.
2695 * COPYING.LESSER: This file is a copy of the LGPL v3.
2696 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2698 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2700 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2702 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2704 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2706 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2708 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2711 2011-02-14 Ben Konrath <ben@bagu.org>
2713 Use ArrayList instead of Array in GWT-RPC calls.
2715 Apparently this gives a slight performance boost to the compiled
2718 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2720 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2723 2011-02-14 Ben Konrath <ben@bagu.org>
2725 Access data from a postgres db rather than the example glom file.
2727 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2728 compile down to obfuscated javascript.
2729 * pom.xml: Add c3p0 and postgres JDBC libraries.
2730 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2731 using a postgres db accessed through the c3p0 connection pooling library.
2733 2011-02-14 Ben Konrath <ben@bagu.org>
2735 Update Java formatter settings.
2737 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2739 2011-02-02 Ben Konrath <ben@bagu.org>
2741 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2743 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2745 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2746 the compiled webapp directory that Eclipse uses as we're using Maven now.
2747 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2748 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2750 * pom.xml: Format file, change target Java version to 1.6.
2752 2011-02-02 Ben Konrath <ben@bagu.org>
2754 Add information about a deployment related issue.
2756 * README: Add Notes section with the problem outlined.
2758 2011-02-02 Ben Konrath <ben@bagu.org>
2760 Call Glom.libglom_deinit() when the servlet is shutdown.
2762 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2763 Glom.libglom_deinit() to destroy() method.
2765 2011-01-28 Ben Konrath <ben@bagu.org>
2767 Use generated Util class to get the RPC Async interface.
2769 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2771 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2772 getInstance() method to get a reference to the RPC Async interface.
2773 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2774 getInstance() method to get a reference to the RPC Async interface, remove
2775 the now unused getLibGlomServiceProxy() method.
2777 2011-01-27 Ben Konrath <ben@bagu.org>
2779 Cleanup ChangeLog entry from previous commit.
2781 * ChangeLog: Group logical changes together and add comments.
2783 2011-01-25 Ben Konrath <ben@bagu.org>
2785 Convert to gwt-maven project.
2787 * .gitignore: Update for new project structure.
2788 * README: New file with a link to the online documentation.
2789 * pom.xml: The generated maven configuration file with some tweaks.
2791 Add / update Eclipse settings. These files are a merge of the files that
2792 were generated with the gwt-maven plugin and the files we were previously
2796 * .settings/.jsdtscope:
2797 * .settings/com.google.gdt.eclipse.core.prefs:
2798 * .settings/com.google.gwt.eclipse.core.prefs:
2799 * .settings/org.eclipse.jdt.core.prefs:
2800 * .settings/org.eclipse.wst.common.component:
2801 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2802 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2803 * .settings/org.maven.ide.eclipse.prefs:
2804 * OnlineGlomTest-dev.launch:
2805 * OnlineGlomTest-prod.launch:
2807 Java source files moved from the 'src' directory to the directory structure
2809 * src/main/java/org/glom/web/client/GlomDocument.java:
2810 * src/main/java/org/glom/web/client/GlomTable.java:
2811 * src/main/java/org/glom/web/client/LayoutList.java:
2812 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2813 * src/main/java/org/glom/web/client/LibGlomService.java:
2814 * src/main/java/org/glom/web/client/OnlineGlom.java:
2815 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2817 Non-functional property file used for translations. I included this as
2818 reminder that it's something I need to sort out.
2819 * src/main/resources/org/glom/web/client/Messages.properties:
2821 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2822 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2824 The servlet configuration files moved from the 'war' directory.
2825 * src/main/webapp/OnlineGlom.css:
2826 * src/main/webapp/OnlineGlom.html:
2827 * src/main/webapp/WEB-INF/web.xml:
2829 Generated test files with most of the code commented out. I included these
2830 so that it's easy to add tests when we're ready for them.
2831 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2832 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2834 2011-01-25 Ben Konrath <ben@bagu.org>
2836 Remove unused println.
2838 * src/org/glom/web/server/LibGlomServiceImpl.java:
2840 2011-01-25 Ben Konrath <ben@bagu.org>
2842 Add project specific JDT settings.
2844 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2845 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2847 2011-01-25 Ben Konrath <ben@bagu.org>
2849 Populate celltable with example data.
2851 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2852 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2853 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2854 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2855 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2856 asynchronously gets the example data.
2857 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2858 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2859 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2860 curently selected table to be retrieved by other widgets.
2861 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2862 implement getTableData() in a hacky way. This method needs to be updated
2863 to grab information from the database when database creating is
2866 2011-01-20 Ben Konrath <ben@bagu.org>
2868 Set table headers when table dropBox changes.
2870 * src/org/glom/web/client/GlomDocument.java: Correct some method
2872 * src/org/glom/web/client/LibGlomService.java: Add method
2873 to get list layout field names.
2874 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2875 to get list layout field names.
2876 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2877 widget for list layout table.
2878 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2879 the table drop box and add new updateTable() method to asynchronously
2880 get the layout list field names for the currently selected table.
2881 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2882 implementation of getLayoutListHeaders() method.
2883 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2885 2011-01-18 Ben Konrath <ben@bagu.org>
2887 Make a listBox with table titles instead of the flexTable demo.
2889 This is the start of something more useful.
2891 * .classpath: Exclude a bunch of packages from the JVM that are
2892 getting in the way of the Eclipse content assist.
2893 * src/org/glom/web/client/GlomDocument.java:
2894 * src/org/glom/web/client/GlomTable.java:
2895 * src/org/glom/web/client/LibGlomService.java:
2896 * src/org/glom/web/client/LibGlomServiceAsync.java:
2897 * src/org/glom/web/client/OnlineGlom.java:
2898 * src/org/glom/web/server/LibGlomServiceImpl.java:
2899 * war/OnlineGlom.html:
2900 * war/WEB-INF/web.xml:
2902 211-01-13 Ben Konrath <ben@bagu.org>
2904 Update to new java-libglom API.
2906 * .gitignore: Ignore OnlineGlom.war.
2907 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2909 2010-12-20 Ben Konrath <ben@bagu.org>
2911 Add some basic style to the table listing.
2913 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2914 header, print useful error message on async callback failure.
2915 * war/OnlineGlom.css: Add style for table header, remove defaults
2916 provided by the Eclipse project wizard.
2918 2010-12-20 Ben Konrath <ben@bagu.org>
2920 Load example file from installed glom dir.
2922 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2923 provided by java-libglom to find the example file.
2925 2010-12-20 Ben Konrath <ben@bagu.org>
2927 Update Eclipse settings.
2930 * .settings/com.google.gdt.eclipse.core.prefs:
2931 * .settings/com.google.gwt.eclipse.core.prefs:
2933 2010-12-17 Ben Konrath <ben@bagu.org>
2937 * .classpath: New file.
2938 * .gitignore: New file.
2939 * .project: New file.
2940 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2941 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2942 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2943 * src/org/glom/web/client/GlomTable.java: New file.
2944 * src/org/glom/web/client/OnlineGlom.java: New file.
2945 * src/org/glom/web/client/TableNameService.java: New file.
2946 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2947 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2948 * war/OnlineGlom.css: New file.
2949 * war/OnlineGlom.html: New file.
2950 * war/WEB-INF/web.xml: New file.
2951 * war/images/glom.png: New file.