1 2011-11-16 Ben Konrath <ben@bagu.org>
3 Remove whitespace from the configured username properties.
5 This assumes that usernames won't have whitespace at the beginning
6 or end. But I think this is a reasonable assumption.
8 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
9 String.trim() to remove the whitespace from the username properties.
11 2011-11-15 Ben Konrath <ben@bagu.org>
13 Add details view mockup with HTML tables and text entries.
15 This is from the attachment on this bug:
17 https://bugzilla.gnome.org/show_bug.cgi?id=663109
19 * mockups/details-view-html-tables-text-entries.html:
21 2011-11-15 Ben Konrath <ben@bagu.org>
23 Add space between the columns of the flow table.
27 https://bugzilla.gnome.org/show_bug.cgi?id=662918
29 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
30 space between columns in the flow table.
32 2011-11-15 Ben Konrath <ben@bagu.org>
34 Add backup files to the .gitignore.
36 * .gitignore: Ignore files that end with ~.
38 2011-11-09 Ben Konrath <ben@bagu.org>
40 Use latest release of gwt-log.
42 Gwt-log releases are now being submitted to the maven central
43 repository so manual installation of the jar is no longer required.
45 * pom.xml: Update version and groupId of gwt-log dependency.
47 2011-10-31 Ben Konrath <ben@bagu.org>
49 Don't use GWT numeric formatting to override the glom currency formatting.
51 Currencies are now displayed like they are in Glom. See this bug:
53 https://bugzilla.gnome.org/show_bug.cgi?id=646216
55 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
57 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
58 currency code to constructor and set it when the cell is rendered.
59 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
60 currency code to the constructor of the NumericCell.
62 2011-10-27 Ben Konrath <ben@bagu.org>
64 Require the latest release of java-libglom (1.17.4).
68 2011-10-26 Ben Konrath <ben@bagu.org>
70 Add style to Notebook that matches current theme.
72 It's not the best style in the world but it's better than the default.
74 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
75 padding at the bottom of the child widgets.
76 * src/main/webapp/style.css: Add style for the Notebook.
78 2011-10-26 Ben Konrath <ben@bagu.org>
80 Move servlet initialization code to overridden init method.
82 This is half of the solution to getting proper error messages
83 displayed when configuration errors occur. Here's the relevant bug:
85 https://bugzilla.gnome.org/show_bug.cgi?id=662792
87 The rest of the solution involves surrounding the init method with a
88 try/catch block and setting a global variable with the error /
89 exception. A new async method should be created to retrieve and display
90 the error message / exception.
92 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
93 code from constructor to init method adding exceptions as needed.
95 2011-10-26 Ben Konrath <ben@bagu.org>
97 Add script to monitor and restart tomcat if required.
99 * utils/check-and-recover-tomcat.py: New file.
101 2011-10-26 Ben Konrath <ben@bagu.org>
103 Display the correct number of data items in the pager.
107 https://bugzilla.gnome.org/show_bug.cgi?id=661441
109 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
110 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
111 The implementation is the same for both tables: Keep track of the
112 number of non-empty rows and fire and RowCountChangeEvent after the data has
114 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
115 custom Pager class that subclasses SimplePager to handle displaying
116 the correct number when empty rows have been added.
118 2011-10-26 Ben Konrath <ben@bagu.org>
120 Correct error in previous commit.
122 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
123 eventBus parameter from listView.setCellTable().
125 2011-10-26 Ben Konrath <ben@bagu.org>
127 Fix error in TODO comment.
129 * src/main/java/org/glom/web/client/activity/ListActivity.java:
131 2011-10-24 Ben Konrath <ben@bagu.org>
133 Create Notebook widgets to the details view.
135 This isn't finished just yet - I still need to create a reasonable
136 style to match the current theme.
138 * src/main/java/org/glom/web/client/Utils.java: Add method for
139 calculating the height of a widget. This is used in the Notebook class.
140 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
141 new constructor method in Group.
142 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
143 method for creating child widget that can be used by subclasses
144 like Notebook. New constructor that allows disabling the group
145 titles - Notebooks don't set a group title for their child groups.
146 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
147 to make Notebooks using GWT's TabLayoutPanel.
148 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
149 constructor that allows disabling the group titles.
150 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
151 LayoutItemNotebook DTO.
152 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
153 DTO for Notebooks. It's just an empty class for now but we might need
154 it to transfer some specific information in the future.
156 2011-10-21 Ben Konrath <ben@bagu.org>
158 Add navigation buttons to related list tables.
160 * src/main/java/org/glom/web/client/OnlineGlomService.java:
161 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
163 method getSuitableRecordToViewDetails() for getting the table name
164 and primary key value for related list navigation buttons.
165 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
166 private cell renderer class to get the navigation information for
167 related list tables from the server. Extract the navigation
168 processing code from the details cell navigation and use it for the
169 related list navigation as well.
170 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
171 cell renderer class for the details open buttons. This was needed
172 because the related list navigation buttons and the list view
173 navigation buttons need to react differently when clicked.
174 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
175 the onEnterKeyDown() method because it's now overriden in the
176 subclasses that are specific to the related list tables and the list
178 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
179 the vertical size a little because the buttons add a bit of vertical
180 space to table. This is not a perfect solution because the vertical
181 size of with table fewer than 5 rows will be a little smaller.
182 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
183 changes in how navigation buttons are handled.
184 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
185 getSuitableRecordToViewDetails() using the new RelatedListNavigation
186 database access object.
187 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
188 to find the portal for a given relationship name from
189 RelatedListDBAccess. Add method to find a primary key field for a
191 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
192 Move code to find the portal for a given relationship name to
194 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
195 New file: database access object for getting the related list
196 navigation information (the table name and the primary key value).
197 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
198 DTO for transferring a table name to navigate to and a primary key
200 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
201 boolean and getter/setter to specifies if the related list should add
204 2011-10-24 Murray Cumming <murrayc@murrayc.com>
206 Use the master branch of java-libglom
208 * pom.xml: Depend on java-libglom 1.19 instead.
210 This is the master branch. See also the libglom-1-18 branch.
212 2011-10-11 Ben Konrath <ben@bagu.org>
214 Enable the open navigation button when the data has been set.
216 This avoids having active buttons that don't do anything when the data
219 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
221 2011-10-11 Ben Konrath <ben@bagu.org>
223 Use IsWidget interface for FlowTableItem.
225 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
226 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
228 2011-10-11 Ben Konrath <ben@bagu.org>
230 Remove GWT styling from open button in details view.
232 There are still some issues with how the details cell is arranged but
233 this should be made to match Glom 1.20. I'm going to leave fixing this
234 until I have Glom 1.20 up and running.
236 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
237 style name on open button.
238 * src/main/webapp/style.css: Move and edit details-navigation class.
239 Re-arrange some classes to make them appear in the same order as the
242 2011-10-07 Ben Konrath <ben@bagu.org>
246 * .gitignore: Ignore new cache directory.
247 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
248 * pom.xml: Change GWT and maven plugin to 2.4.0.
249 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
251 * src/main/java/org/glom/web/client/ClientFactory.java:
252 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
253 * src/main/java/org/glom/web/client/OnlineGlom.java:
254 Update source for API changes.
255 * utils/build-onlineglom-war.sh: Remove cache directory before the
258 2011-10-07 Ben Konrath <ben@bagu.org>
260 Add navigation buttons in the details view.
262 This isn't finished but I thought I'd commit what I have as it's a
263 pretty good start. I still need to:
265 1. Change the style so that it fits better into the current theme
266 2. Adjust the details cell to expand as much as possible.
268 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
269 click handlers to navigation buttons in the DetailsCells. Create a
270 refreshData() method to get just the data from the server without the
272 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
273 Update the tableSelector and browser title when the table name
274 changes without using the tableSelector.
275 * src/main/java/org/glom/web/client/ui/DetailsView.java:
276 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
277 getDetailsCells() to getCells(). Update variable names.
278 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
279 method to set click handler on navigation button. Rename a few
280 variables. Add navigation buttons where needed.
281 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
282 variables and methods.
283 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
284 navigation boolean and navigation table as required in the
286 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
287 variables for navigation along with getter/setter methods.
289 2011-10-07 Ben Konrath <ben@bagu.org>
291 Rename Field to DetailsCell.
293 This is a refactor-only commit. No functionality has been added or
296 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
297 Update variable and method names.
298 * src/main/java/org/glom/web/client/ui/DetailsView.java:
299 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
300 variable and method names.
301 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
303 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
304 variable and method names.
306 2011-10-07 Ben Konrath <ben@bagu.org>
308 Create separate methods for layout and data the details view.
310 This is a refactor-only commit. No functionality has been added or
313 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
314 private methods: setData(), createLayout().
316 2011-10-07 Ben Konrath <ben@bagu.org>
318 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
320 This is part of a change to get navigation buttons in the details view
321 but it should have been done this way from the start.
323 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
324 for method name change in TableSelectionView.
325 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
326 Create TableChangeEvent and set the browser title using the
327 TableSelectionView API.
328 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
329 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
330 Change getSelectedTable() to getSelectedTableName(). Add
331 getSelectedTableTitle().
333 2011-10-07 Ben Konrath <ben@bagu.org>
335 Use primaryKeyValue naming convention in constructor of DetailsPlace.
337 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
339 2011-10-07 Ben Konrath <ben@bagu.org>
341 Update TableChangeEvent to use newTableName naming convention.
343 This makes the class more consistent with GWT naming conventions.
345 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
346 Update for method name change in TableChangeEvent.
347 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
348 for method name change in TableChangeEvent.
349 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
350 newTableName variable and getter method. Make toDebugString()
353 2011-09-30 Ben Konrath <ben@bagu.org>
355 Disable the pager in the list tables when the data row count is less than the minimum.
357 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
358 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
360 2011-09-30 Ben Konrath <ben@bagu.org>
362 Add empty rows to the end of related list and list view tables.
364 I also extracted the cell rendering classes from the ListTable because
365 the code was becoming a little crazy with all the anonymous inner
366 classes. My plan is to use these cell rendering classes in the details
367 view as well so this refactor will be needed for that change.
369 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
370 set the row count in related list tables if the data has more rows
371 than the minimum number of rows visible.
372 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
373 row count in list view tables if the data has more rows than the
374 minimum number of rows visible.
375 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
376 for rendering TYPE_BOOLEAN cells. The code was extracted from the
378 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
379 for rendering TYPE_NUMERIC cells. The code was extracted from the
381 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
382 class for rendering cells with buttons in list views. The code was
383 extracted from the ListTable class.
384 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
385 for rendering TYPE_TEXT cells. The code was extracted from the
387 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
388 Add empty rows to the end of the data if required. Implement
389 ListTable.getMinNumVisibleRows().
390 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
391 cell renderer code to public classes. Return null in
392 Column.getValue() for empty rows. Add new abstract method:
393 getMinNumVisibleRows(). Move code to set the row count of the list view
394 table to ListViewImpl.
395 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
396 empty rows to the end of the data if required. Implement
397 ListTable.getMinNumVisibleRows().
400 2011-09-27 Ben Konrath <ben@bagu.org>
402 Use GWT.log for client-side debugging statements.
404 These are optimized out when deployed so I should have used this method
405 in the first place. These statements will eventually be replaced with some sort
406 of notification in the browser.
408 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
409 * src/main/java/org/glom/web/client/activity/ListActivity.java:
410 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
411 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
412 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
414 2011-09-27 Ben Konrath <ben@bagu.org>
416 Put tableselector on the right, back to list link on right.
418 The idea is that the table selector is acting like a label for the
419 currently displayed table so it should be placed below the document title. This
420 puts the table title in a similar position to where it is in Glom.
422 * mockups/details-contacts.html:
423 * mockups/details-projects.html:
424 * mockups/listview-contacts.html:
425 * mockups/listview-projects.html:
427 Update mockups to match how the interfaces currently look.
428 * src/main/webapp/style.css: Swap positions of backlink with the table
429 selector. Add some space on the left side of the table selector to
430 line things up with the document title.
432 2011-09-27 Ben Konrath <ben@bagu.org>
434 Add field colouring to details view.
436 This change re-works how field colouring works. The colour formatting
437 information is now set to the client with the layout information instead of
438 with the data. This eliminates the need to send the same colour strings for
439 data in list view column when colour information is set.
441 In order to set an alternate colour for negative numeric values, the
442 number is now sent to client and formatted with the GWT NumberFormat class.
444 This change also fixes:
446 https://bugzilla.gnome.org/show_bug.cgi?id=659752
448 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
449 internationalization framework which is needed for client side numeric
451 * src/main/java/org/glom/web/client/Utils.java: New file for some
452 client static utility methods.
453 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
454 the DataItem object to the Field class. Use a utility method to
455 create the foreignKeyValue string.
456 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
457 alignment and text colours in the constructor. Add setData(DataItem)
458 method. Remove setText(String) method.
459 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
460 colour information to GlomTextCell. Create and use GlomNumberCell for
461 rendering numbers. Use utility method to get the string for the
462 primary key of the key provider. Re-work how the horizontal alignment
464 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
465 formatting to layout information. Methods for converting the libglom
466 formatting information were moved from DBAccess.
467 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
468 numeric formatting (it's now done on the client side). Don't set text
469 colours in DataItem. Move libglom formatting conversion methods to
471 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
472 getters/setters for text colour information.
473 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
474 for transferring the libglom NumericFormat information to the client.
475 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
476 and getters/setters for: GlomNumericFormat, background colour and
477 foreground colour strings.
479 2011-09-26 Ben Konrath <ben@bagu.org>
481 Simplify code that iterates through the LayoutGroup.
483 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
485 2011-09-26 Ben Konrath <ben@bagu.org>
487 Accept Eclipse formatting for OnlineGlomServiceAsync.
489 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
491 2011-09-26 Ben Konrath <ben@bagu.org>
493 Don't use the ListDBAccess classes to get the primary key layout information.
495 This was causing a bug where the wrong index for the hidden primary key
496 was being sent to the client.
498 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
499 primary key while creating the LayoutGroup DTO. Create a
500 LayoutItemField DTO for hidden primary keys. Don't use the
501 RelatedListDBAccess because it was only used for getting the primary
503 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
504 access modifier from public to protected for getPrimaryKeyField() and
505 getPrimaryKeyLayoutItemField().
506 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
507 abstract method getExpectedResultSize() because RelatedListDBAccess
508 doesn't have enough info to implement it.
509 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
510 Remove @Override for getExpectedResultSize().
511 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
512 Remove method getExpectedResultSize().
514 2011-09-23 Ben Konrath <ben@bagu.org>
516 Log which layout (list or details) the ignored item is from.
518 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
520 2011-09-23 Ben Konrath <ben@bagu.org>
522 Remove annotations that turn off code formatting in DataItem.
524 * src/main/java/org/glom/web/shared/DataItem.java:
526 2011-09-23 Ben Konrath <ben@bagu.org>
528 Rename GlomField to DataItem and update associated methods.
530 This is a rename-only refactor. No functionality has been added or
533 * src/main/java/org/glom/web/client/OnlineGlomService.java:
534 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
535 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
536 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
537 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
538 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
539 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
540 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
542 * src/main/java/org/glom/web/server/database/DBAccess.java:
543 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
544 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
545 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
546 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
547 * src/main/java/org/glom/web/shared/DataItem.java:
548 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
549 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
551 2011-09-23 Ben Konrath <ben@bagu.org>
553 Rename GlomDocument to DocumentInfo and update associated methods.
555 This is a rename-only refactor. No functionality has been added or
558 * src/main/java/org/glom/web/client/OnlineGlomService.java:
559 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
560 * src/main/java/org/glom/web/client/activity/ListActivity.java:
561 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
562 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
564 * src/main/java/org/glom/web/shared/DocumentInfo.java:
566 2011-09-20 Ben Konrath <ben@bagu.org>
568 Require java-libglom 1.17.3.
570 This picks up the fix for the seg fault problem with the Scenes table
571 in the Openismus Film Manager example.
575 2011-09-20 Ben Konrath <ben@bagu.org>
577 Change the way sort clause is added for primary key when no sort clause is requested.
579 The primary key is now added to the LayoutFieldVector (fieldsToGet)
580 before the sort clause is created. When a sort clause is not requested, the
581 sort clause is created by finding the primary key in the LayoutFieldVector
584 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
586 2011-09-20 Ben Konrath <ben@bagu.org>
588 Log error message if no documents are found in the configured directory.
590 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
591 Extract the glom file extension string to a private static final class
592 variable (mostly as syntactic sugar). Accept a minor formatting change.
593 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
594 the example glom.document.directory configuration property to make it
595 more clear that it can any directory, not just the home directory.
597 2011-09-18 Ben Konrath <ben@bagu.org>
599 Add related lists to details view.
601 The related list table has support for paging and sorting just like the
602 table in the list view.
604 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
605 SQL queries for the related list tables.
606 * src/main/java/org/glom/web/client/OnlineGlomService.java:
607 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
609 Rename getList methods to getListView and add comments. Remove
610 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
611 it being unused. Add methods: getDetailsLayoutAndData(),
612 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
613 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
614 Create the layout and set the data for the fields in one async call
615 instead of two. Create related lists where appropriate.
616 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
617 for method name changes in OnlineGlomService.
618 * src/main/java/org/glom/web/client/ui/DetailsView.java:
619 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
620 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
622 * src/main/java/org/glom/web/client/ui/ListView.java:
623 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
624 tableName from setCellTable(). Create a ListViewTable instead of
626 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
627 represent a data field in the details view.
628 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
629 from addDetailsCell() to Field class. Keep track of the Fields and
630 Portals in the details view.
631 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
632 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
633 and add a method to get it. Add method to set the contents of the
635 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
636 New class for related list tables. This class has the data provider
637 for the related list table.
638 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
639 abstract class which is the base class for the ListViewTable and the
641 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
642 New class for list view tables. This class has the data provider for
644 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
645 methods for related list tables. Add more information to the
646 LayoutItemField and LayoutItemPortal DTOs.
647 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
648 Remove debugging print statement.
649 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
650 Remove debugging print statements. Add primary key field to SQL count
652 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
653 Remove unnecessary LayoutFieldVector parameter from
654 getResultSizeOfSQLQuery() method.
655 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
656 New class for related list table database access.
657 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
658 class that is a wrapper DTO for details view layout and data.
659 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
660 new 'fromField' string to this DTO.
661 * src/main/webapp/style.css: Remove bottom margin and override top
664 2011-09-15 Ben Konrath <ben@bagu.org>
666 Breakup the OnlineGlomServiceImpl class to make it more manageable.
668 This sets things up to make it easier to add the data retrieval for
669 related lists (portals). No user noticeable changes were made with
672 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
673 class has the code to retrieve the layouts and access the
674 database using the new database helper classes.
675 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
676 Most of the functionality has been removed from this class. This
677 class now represents the public interface for the client side
678 code. It also deals with configuring the servlet and cleaning
679 things up when the servlet is stopped.
680 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
681 of static methods into this utility class.
682 * src/main/java/org/glom/web/server/database/DBAccess.java:
683 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
684 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
685 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
686 These classes have the database retrieval code. The class hierarchy
687 has been setup to make it easy to reuse code for similar
690 2011-09-06 Ben Konrath <ben@bagu.org>
692 Create separate classes for list table code and the data provider.
694 As part of this refactor, I also split up the code a bit to make it
697 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
698 table code to two new classes (below).
699 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
700 with code from ListViewImpl.
701 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
702 New file with code from ListViewImpl.
704 2011-09-06 Ben Konrath <ben@bagu.org>
706 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
708 This fixes the LayoutItemPortal DTO to match the libglom layout object
711 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
713 2011-09-01 Ben Konrath <ben@bagu.org>
715 Set title of Portals in the Details View.
717 * pom.xml: Bump required version of java-libglom to 1.17.1.
718 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
719 widget creation to its own class. Add comments to constructor.
720 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
721 The code is mostly from the Group class with the title now set.
722 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
723 title of Portal. Update some comments. Fix some code formatting.
725 2011-09-01 Ben Konrath <ben@bagu.org>
727 Remove TODO comment for the flow table column width.
729 The flow table column width is working correctly and doesn't need to be
730 changed. See this mailing list post for more info:
732 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
734 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
736 2011-08-27 Ben Konrath <ben@bagu.org>
738 Add document title (database name) to top of the browser page.
740 I added the document title to the TableSelecitonView but that will
741 change if / when we add a view that doesn't require table selection.
743 * mockups/details-contacts.html:
744 * mockups/details-projects.html:
745 * mockups/listview-contacts.html:
746 * mockups/listview-projects.html:
747 * mockups/style.css: Add document title to mockups to keep things
749 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
750 sizes to account for the document title.
751 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
752 Set the document title when it has been retrieved from the server.
753 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
754 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
755 and implement setDocumentTitle(String) method.
756 * src/main/webapp/style.css: Add ID for document title style.
758 2011-08-25 Ben Konrath <ben@bagu.org>
760 Add NavigationType enum to LayoutItemPortal DTO.
762 This is the start of adding support for Portals to the Details View.
764 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
765 LayoutItem_Portal.navigation_type enum from libglom to
766 LayoutItemPortal.NavigationType enum.
767 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
768 NavigationType enum, field for storing the NavigationType and getter
771 2011-08-25 Ben Konrath <ben@bagu.org>
773 Implement the flow table layout in the Details View.
775 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
776 FlowTable to Group to account for the renamed class.
777 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
778 File. This is a container widget that implements the Glom details view
779 flow table behaviour.
780 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
781 org/glom/web/client/ui/FlowTable.java.
782 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
783 so that the size of the subgroups are a closer match to the size of
784 the Glom subgroups. This makes the flowtable layout match the layout
785 in Glom for the Music Collection example file.
787 2011-08-16 Ben Konrath <ben@bagu.org>
789 Create container element for LayoutItemPortal in Details View.
791 This will help me develop the layout for the FlowTable.
793 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
794 fieldPanel variable to detailsCell.
796 2011-08-15 Ben Konrath <ben@bagu.org>
798 Set the height of the data element in the Details View.
800 I changed the InlineLabels (text in a span element) to Labels (text in
801 a div element) so that I could set the height of the details-data
802 elements instead of the details-cell parent elements. This allows the
803 the details-data element to display the correct height if style is
804 applied that shows the height.
806 This change has the added benefit of allowing the order of the labels
807 and data elements to be changed for right-to-left languages.
809 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
810 InlineLabels to Labels.
811 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
812 InlineLabels to Labels. Set the height of the data element.
813 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
814 multiline text height in the Formatting DTO.
815 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
816 for multiline height along with getter and setter methods.
817 * src/main/webapp/style.css: Adjust style to account for the change
818 from span elements to div elements in the details cell.
820 2011-08-15 Ben Konrath <ben@bagu.org>
822 Make the List View appearance match the mockups.
824 It doesn't match exactly but it's much better than it was.
826 * mockups/listview-contacts.html: Remove unused css classes.
827 * mockups/listview-projects.html: Remove unused css classes.
828 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
829 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
830 for mainPanel instead of VerticalPanel (table). Set style name on
831 CellTable. Set style name on Details column. Right-align Details
833 * src/main/webapp/style.css: Adjust properties to match the mockups.
835 2011-08-12 Ben Konrath <ben@bagu.org>
837 Add better support for subgroups in the details view.
839 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
840 changed FlowTable constructor.
841 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
842 support for subgroups and subgroup-titles.
843 * src/main/webapp/style.css: Add CSS class for subgroups and
846 2011-08-12 Ben Konrath <ben@bagu.org>
848 Return the top level LayoutGroup title.
850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
852 2011-08-11 Ben Konrath <ben@bagu.org>
854 Make the TableSelector header match the mockup.
856 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
857 the layout panel. Properly lineup the table selection header with
858 the list and details view.
859 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
860 margin around the details view.
861 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
862 Rename listBox variable to tableSelector. Set id for the style sheet.
863 Use a FlowPanel instead of a HorizontalPanel.
864 * src/main/webapp/style.css: Add properties to make the TableSelector
865 box match the mockups.
867 2011-07-13 Ben Konrath <ben@bagu.org>
869 Update install script for java-libglom version change.
871 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
874 2011-07-13 Ben Konrath <ben@bagu.org>
876 Add support sub-group in the details view.
878 I also removed the code that special-cased the default details view
881 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
883 I still have to make a proper flowtable.
885 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
886 Don't special-case default details view layout.
887 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
888 addLayoutField() as I'm going to use it.
889 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
890 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
892 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
893 extracted from DetailsViewImpl.GroupPanel. Add support for
895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
896 column count when getting the details layout.
898 2011-07-12 Ben Konrath <ben@bagu.org>
900 Set browser title with database and table titles.
902 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
903 Set the browser title when the table changes and when the activity
905 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
906 title when retrieving document info (the GlomDocument object).
907 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
908 with getter and setter methods. Remove unused convenience constructor.
909 Use default code formatting.
911 2011-07-12 Ben Konrath <ben@bagu.org>
913 Ignore LayoutItemPortals in the details view.
915 I added a new DTO for the LayoutItemPortal so that I can ignore it in
918 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
919 LayoutItemPortal layout objects.
920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
921 LayoutItemPortal objects when retrieving the details layout.
922 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
923 file. This is an empty class and just used to get type information for
926 2011-07-12 Ben Konrath <ben@bagu.org>
928 Use java-libglom 1.17.0.
932 2011-07-11 Ben Konrath <ben@bagu.org>
934 Remove "Table:" label from table selector.
936 This matches a recent change in the Glom UI.
938 * mockups/details-contacts.html:
939 * mockups/details-projects.html:
940 * mockups/listview-contacts.html:
941 * mockups/listview-projects.html: Remove the "Table:" label from the
943 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
945 2011-07-11 Ben Konrath <ben@bagu.org>
947 Add main groups to the details view.
949 This makes things look a little nicer in the details view. The next step
950 is to implement the flowtable.
952 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
953 resources from the standard gwt css theme. Standard.css is now
954 included in OnlineGlom.html so that the online glom css rules have
955 precedence over the gwt theme.
956 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
957 the whole LayoutGroup to the DetailsView instead of just the titles.
958 * src/main/java/org/glom/web/client/ui/DetailsView.java:
959 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
960 details layout with a helper class (GroupPanel). I might extract this
961 class when I make the full flowtable.
962 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
963 string as default so I don't have to worry about NPEs when processing
965 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
966 note beside OnlineGlom.gwt.xml above).
967 * src/main/webapp/style.css: Add default font-size to body to override
968 the font-size set by the standard theme. Don't use h2 tags for
969 group-title. Create new details-cell class.
971 2011-07-08 Murray Cumming <murrayc@murrayc.com>
973 ConfiguredDocument: Set the port number too.
975 * src/main/java/org/glom/web/server/ConfiguredDocument.java
976 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
977 Glom document. Presumably this worked sometimes so far because there is a
980 2011-07-08 Murray Cumming <murrayc@murrayc.com>
982 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
984 * src/main/java/org/glom/web/server/ConfiguredDocument.java
985 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
986 correct, though we should throw an exception too.
988 2011-07-08 Murray Cumming <murrayc@murrayc.com>
990 Fix a addDocuemnt typo.
992 * src/main/java/org/glom/web/shared/Documents.java
993 (Documents.addDocuemnt): Rename to addDocument().
994 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
995 (OnlineGlomServiceImpl.getDocuments): Adapt.
997 2011-07-08 Murray Cumming <murrayc@murrayc.com>
999 Slightly improved log output when connection fails.
1001 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1002 (ConfiguredDocument.setUsernameAndPassword):
1003 We don't know for sure if it' the username/password that's wrong, so
1004 rephrase the message.
1005 Also ouput the exception message, though it's generic in this case.
1007 2011-07-08 Ben Konrath <ben@bagu.org>
1011 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1012 added braces to a one line if statement because the Eclipse formatter
1013 was getting confused.
1015 2011-07-07 Ben Konrath <ben@bagu.org>
1017 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1019 These should really be two separate tasks but I counldn't get things to
1020 work with GWT 2.2.0 and Eclipse 3.7.
1024 * .settings/org.eclipse.jdt.core.prefs:
1025 * .settings/org.eclipse.jdt.ui.prefs:
1026 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1027 * .settings/org.eclipse.m2e.core.prefs:
1028 Add new config files. Update current files. Remove references to the
1029 webtools plugins as we're not using any of the webtools features.
1030 * .gitignore: Add logs directory which is created when running with
1032 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1033 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1034 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1036 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1038 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1040 onlineglom.properties: Add explanatory comments.
1042 * src/main/resources/onlineglom.properties: Also change the default user
1043 from ben to someuser, to avoid the risk of people thinking we just
1044 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1046 2011-06-28 Ben Konrath <ben@bagu.org>
1048 Use filename in Log for incorrect passwords.
1050 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1051 getFileName(String) method to get the filename from the URI.
1053 2011-06-28 Ben Konrath <ben@bagu.org>
1055 Add the table name to the URL token for the ListPlace.
1057 This makes things consistent between the DetailsPlace and the
1058 ListPlace. It also allows the the ListPlace to be bookmarked.
1060 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1061 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1062 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1063 Remove getDefaultListLayout(). The default layout is now returned
1064 by the getListLayout() method when the table name is an empty string.
1065 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1066 Add table name field. Change to a new ListPlace when the table
1067 has been changed. Use getListLayout() for getting the default
1069 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1070 Add table name field. Set the correct table name in the list box
1071 when loading from bookmark. This corrects a problem for the
1073 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1074 Move table name to super-class (HasSelectableTable). Move document
1075 and table URL keys to super-class in HasSelectableTable.
1076 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1077 Add table name field. Add Tokenizer class with URL key common to
1078 the subclasses (DetailsPlace and ListPlace).
1079 * src/main/java/org/glom/web/client/place/ListPlace.java:
1080 Add table name. Add code to parse the URL token.
1081 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1082 Update ListPlace construction with empty table name string.
1083 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1084 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1085 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1086 Update ListPlace construction with table name string.
1087 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1088 Change defaultTableName field to tableName to reflect how it's now
1089 used. Update the getter and setter methods.
1091 2011-06-28 Ben Konrath <ben@bagu.org>
1093 Enable the table selector in the DetailsView.
1095 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1096 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1097 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1098 Remove getDefaultDetailsLayout(). The default layout is now returned
1099 by the getDetailsLayout() method when the table name is an empty
1101 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1102 event handler for table change event. Change to using
1103 getDetailsLayout() for the default details layout.
1104 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1106 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1107 when navigating to the details place.
1109 2011-06-27 Ben Konrath <ben@bagu.org>
1111 Use filename based unique document ID in URL and for RPC.
1113 The document ID is the glom document name with spaces (' ') replaced
1114 with pluses ('+') and without the .glom extension.
1116 This change is mostly a string substitution of 'documentTitle' for
1117 'documentID'. The only code change is the addition of a Documents DTO to get the
1118 filename to document title mappings as indicated below.
1120 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1121 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1122 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1123 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1124 Use Documents DTO to create the document links in the document
1126 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1127 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1128 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1129 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1130 * src/main/java/org/glom/web/client/place/ListPlace.java:
1131 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1132 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1133 * src/main/java/org/glom/web/client/ui/ListView.java:
1134 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1135 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1136 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1137 * src/main/java/org/glom/web/server/Log.java:
1138 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1139 getDocumentTitles() to getDocuments() and return the Documents DTO.
1140 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1141 transferring the filename to document title mappings.
1143 2011-06-25 Ben Konrath <ben@bagu.org>
1145 Make the authentication popup work again.
1147 This bug was introduced when I extracted ConfiguredDocument to its own class.
1149 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1150 correct success / fail status in setUsernameAndPassword().
1152 2011-06-25 Ben Konrath <ben@bagu.org>
1154 Use filename as unique key for configuring database usernames and passwords.
1156 This replaces the use of the Glom document title which could change
1157 depending on the locale. Thanks to Murray Cumming for pointing out this
1160 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1161 * src/main/resources/onlineglom.properties:
1163 2011-06-24 Ben Konrath <ben@bagu.org>
1165 Pass primary key value to DetailsView.
1167 This enables the DetailsView to load the correct data.
1169 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1170 primary key value field and set in constructor. Pass primary key
1171 value to getDetailsData().
1172 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1173 variables for document title and primary key value.
1174 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1175 key value to the DetailsPlace.
1177 2011-06-24 Ben Konrath <ben@bagu.org>
1179 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1181 This allows the primary key to be retrieved by the Details button. This
1182 functionality has not been implemented yet but it's in the works.
1184 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1185 the LayoutGroup result to ListView.setCellTable instead of all of its
1186 fields individually.
1187 * src/main/java/org/glom/web/client/ui/ListView.java:
1188 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1189 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1190 get the primary key for the table.
1191 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1192 index of the primary key in the LayoutGroup accounting for hidden
1193 primary keys. Rename getJavaNumberFormat() to
1194 convertToJavaNumberFormat() for consistency. Cleanup / add some
1196 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1197 field for primary key index and a field to indicate whether the
1198 primary key is hidden or not.
1200 2011-06-23 Ben Konrath <ben@bagu.org>
1202 Rename getTableData methods to getListData.
1204 This is a rename refactor for consistency with other methods.
1206 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1207 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1208 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1211 2011-06-23 Ben Konrath <ben@bagu.org>
1213 Extract the ConfiguredDocument innerclass into its own class.
1215 This makes the servlet code more object oriented.
1217 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1218 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1219 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1220 new ConfiguredDocument class.
1222 2011-06-21 Ben Konrath <ben@bagu.org>
1224 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1226 This makes things more inline with how libglom works and reduces code
1227 duplication. This refactor lays the groundwork for adding the primary key to
1228 the LayoutGroup object.
1230 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1231 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1233 Change method names to getListLayout and getDefaultListLayout for
1234 consistency. Use LayoutGroup as the DTO for the list layout instead of
1235 ColumnInfo and LayoutListTable.
1236 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1237 new method names along with the LayoutGroup object for transferring the
1239 * src/main/java/org/glom/web/client/ui/ListView.java:
1240 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1241 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1242 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1244 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1245 Replaced with LayoutGroup.
1246 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1247 expectedResultSize and defaultTableName fields which are needed for
1249 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1250 type field which is needed for the list layout but will also be
1251 useful for the details layout as things progress.
1252 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1253 Make class abstract. Remove the unnecessary
1254 getFormattingHorizontalAlignment method. Add setFormatting method.
1256 2011-06-16 Ben Konrath <ben@bagu.org>
1258 Add scripts for building and installing war.
1260 These will help when updating OnlineGlom but they're also good
1261 supplemental documentation of the build and deployment proceeding.
1263 * utils/build-onlineglom-war.sh: New file.
1264 * utils/install-onlineglom-war.sh: New file.
1266 2011-06-16 Ben Konrath <ben@bagu.org>
1268 Create wrapper class to create consistent log messages.
1270 I wrapped methods in the Log class of gwt-log to add the method names
1271 from the servlet and create consistent formatting of the document title
1272 and table names in the log messages.
1274 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1275 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1276 log methods to use methods from wrapped Log class.
1278 2011-06-16 Ben Konrath <ben@bagu.org>
1280 Remove superfluous conditional return.
1282 Thanks to Murray Cumming for pointing this out!
1284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1286 2011-06-15 Ben Konrath <ben@bagu.org>
1288 Return an ArrayList of LayoutGroups for the Details layout.
1290 This corrects a problem with the details layout as it can have more
1291 than one top level LayoutGroup.
1293 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1294 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1295 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1296 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1297 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1298 with ArrayList of LayoutGroups for the details view layout.
1299 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1300 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1301 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1302 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1303 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1304 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1306 2011-06-14 Ben Konrath <ben@bagu.org>
1308 Use cast_dynamic method to determine the libglom LayoutItem type.
1310 This is better than finding the LayoutItem type by using the string
1311 returned from the get_part_type_name() method.
1313 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1315 2011-06-14 Ben Konrath <ben@bagu.org>
1317 Add method names to log entries in the servlet.
1319 This helps when tracking down deployment problems.
1321 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1323 2011-06-14 Ben Konrath <ben@bagu.org>
1325 Add data to the DetailsView using a hard-coded primary key value.
1327 The layout and functionality of the DetailsView is not complete. This
1328 is just a checkpoint so the patch doesn't get too big.
1330 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1331 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1332 Add getDetailsData() servlet method.
1333 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1334 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1335 LayoutFields are added to the DetailsView.
1336 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1337 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1338 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1339 take the string for the title instead of the object.
1340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1341 Add implementation getDetailsData() along with some private helper
1343 * src/main/webapp/style.css: Add padding to details-data class. Add a
1344 details-label class with the same padding as the details-data class.
1346 2011-06-03 Ben Konrath <ben@bagu.org>
1348 Use presenter.goTo() to change to the DetailsPlace.
1350 This will make things easier when we need to open the DetailsView with
1351 data specific to the row that was clicked.
1353 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1355 2011-06-02 Ben Konrath <ben@bagu.org>
1357 Add CSS file from mockups.
1359 I'm adding this now because it's going to be useful to have when
1360 developing the DetailsView. The TableSelectionView and ListView aren't
1363 * src/main/webapp/OnlineGlom.html:
1364 * src/main/webapp/style.css:
1366 2011-06-02 Ben Konrath <ben@bagu.org>
1368 Use String.isEmpty() to check for empty string.
1370 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1372 2011-06-02 Ben Konrath <ben@bagu.org>
1374 Display main layout group titles in the DetailsView.
1376 This is the start of the DetailsActivity/DetailsView implementation.
1378 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1379 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1380 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1381 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1382 Get the layout information for the details view from the server and set
1383 the main layout group titles.
1384 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1385 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1386 Add addLayoutGroup() and addLayoutField() methods. This are just
1387 temporary methods for creating the the details view that will change
1389 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1390 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1392 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1393 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1394 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1395 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1396 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1397 Data Transfer Objects that mimic the libglom object structure. These are
1398 used for transferring the details layout but could also be used for
1399 transferring the list layout.
1401 2011-05-27 Ben Konrath <ben@bagu.org>
1403 Reset the AuthenticationPopup when clearing the ListView.
1405 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1407 2011-05-27 Ben Konrath <ben@bagu.org>
1409 Fix problem with onlineglom.properties file loading.
1411 The old way worked in Eclipse but not on the server. Loading the
1412 onlineglom.properties file now works in Eclipse and on the server.
1414 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1416 2011-05-24 Ben Konrath <ben@bagu.org>
1418 Update gwt-log from 3.1.0 to 3.1.2.
1420 Gwt-log 3.1.0 has been marked as depreciated.
1424 2011-05-24 Ben Konrath <ben@bagu.org>
1426 Add comment to ListActivity.goTo() method.
1428 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1430 2011-05-24 Ben Konrath <ben@bagu.org>
1432 Remove FIXME in convertGdkColorToHtmlColour()
1434 The Gdk::Color value returned by libglom is 16-bits per channel on both
1435 64 and 32-bit platforms.
1437 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1439 2011-05-19 Ben Konrath <ben@bagu.org>
1441 Improve performance of initial ListView load.
1443 I removed a round trip to the server for getting the default table name
1444 and then requesting information about that table. This also removes a potential
1445 problem with the table change handler not being setup in time to receive the
1446 table change event from the ListActivity.
1448 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1449 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1450 getDefaultLayoutListTable() method. Improve comments.
1451 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1452 getDefaultLayoutListTable() method instead of firing a table change
1453 event to get the table to load.
1454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1455 implementation of getDefaultLayoutListTable() method.
1456 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1459 2011-05-19 Ben Konrath <ben@bagu.org>
1461 Override toDebugString() in TableChangeEvent.
1463 This is useful to have for debugging.
1465 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1467 2011-05-19 Ben Konrath <ben@bagu.org>
1469 Add a "Back to List" link when at the DetailsPlace.
1471 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1472 Populate the CellTable based on the selected table of the ListBox if
1473 it's set otherwise use the default table. This allows the "Back to
1475 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1476 Remove Place from constructors. Add a setPlace() method. Add
1477 goToPlace() method. Set class as presenter for TableSelectionView.
1478 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1479 Use the same TableSelectionActivity when switching between the List and
1481 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1482 Subclass the new HasSelectableTablePlace. This removes some duplicate
1484 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1485 New class to represent Places that display the TableSelectionView.
1486 * src/main/java/org/glom/web/client/place/ListPlace.java:
1487 Subclass the new HasSelectableTablePlace. This removes some duplicate
1489 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1490 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1491 Add Presenter interface. Add setBackLinkVisible() method. Add
1492 setBackLink() method.
1494 2011-05-18 Ben Konrath <ben@bagu.org>
1496 Enable the "Details" buttons.
1498 Right now only an empty details view is displayed.
1500 * src/main/java/org/glom/web/client/ClientFactory.java:
1501 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1502 Add DetailsView to ClientFactory.
1503 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1504 A basic activity for the details view.
1505 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1506 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1508 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1509 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1511 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1512 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1513 unnecessary super() in constructor.
1514 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1515 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1516 really shouldn't create a new TableSelectionActivity for both the ListPlace
1517 and the DetailsPlace so this should be considered a temporary solution.
1518 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1519 New file. Represents a URL for the details view.
1520 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1521 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1522 A basic details view interface and implementation.
1523 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1524 Enable the "Details" buttons.
1526 2011-05-12 Ben Konrath <ben@bagu.org>
1528 Use a LayoutPanel with multiple display areas for main layout.
1530 This is mostly a refactor in that there are no changes from the user
1531 point of view. These changes are required so that we can swap out the list view
1532 with the details view when the user clicks the "Details" button.
1534 * src/main/java/org/glom/web/client/ClientFactory.java:
1535 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1536 OnlineGlomView. Add TableSelectionView, ListView and
1537 AuthenticationPopup.
1538 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1539 for main layout. Add display regions for main activities. Add
1540 activity manager for for main activities.
1541 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1542 file from parts of the deleted OnlineGlomActivity.
1543 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1544 New file from parts of the deleted OnlineGlomActivity.
1545 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1546 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1547 New files for app wide table change event.
1548 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1549 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1550 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1551 Activity mappers for the main activities replace the deleted app-wide
1553 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1554 Fix a spelling error in he comment.
1555 * src/main/java/org/glom/web/client/ui/ListView.java:
1556 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1557 Renamed from LayoutListView and modified for MVP. This still not a
1558 proper dumb view as prescribed by the MVP pattern but it works for now.
1559 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1560 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1561 New widget stripped out of the deleted OnlineGlomView.
1562 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1563 Remove hack that is fixed by this patch.
1565 2011-05-06 Ben Konrath <ben@bagu.org>
1567 Rename OnlineGlomPlace to ListPlace.
1569 The only change besides the rename is that url will now display #list
1570 instead of #Document.
1572 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1573 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1574 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1575 * src/main/java/org/glom/web/client/place/ListPlace.java:
1576 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1578 2011-05-06 Ben Konrath <ben@bagu.org>
1580 Use Presenter for app navigation.
1582 This is the proper way to deal with Place (URL) changes with the MVP
1585 * src/main/java/org/glom/web/client/ClientFactory.java:
1586 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1587 PlaceHistoryMapper and PlaceHistoryHandler.
1588 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1589 PlaceHistoryMapper and PlaceHistoryHandler.
1590 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1591 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1592 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1593 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1594 Add Presenter interface and setPresenter methods. Rename addHyperLink
1595 to addDocumentLink taking only the document title as a parameter.
1597 2011-04-14 Ben Konrath <ben@bagu.org>
1599 Prompt for db username/password if they haven't been set.
1601 This is implemented with a popup widget that is contained within the
1602 OnlineGlomView and managed by the OnlineGlomActivity.
1604 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1605 methods for checking and setting the database username and password.
1606 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1607 new methods for checking and setting the database username and
1609 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1610 Display authentication popup if the JDBC connection to the database
1611 has not been authenticated.
1612 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1614 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1615 for dealing with the authentication popup.
1616 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1617 Implement the methods for dealing with the authentication popup.
1618 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1619 try to executed queries if the database connection hasn't been
1620 authenticated. Implement methods for checking and setting the
1621 database username and password.
1623 2011-04-12 Ben Konrath <ben@bagu.org>
1625 Make log messages a little clearer.
1627 Add a dash betweeen the document title and the table name.
1629 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1631 2011-04-12 Ben Konrath <ben@bagu.org>
1633 Protect against NPEs when cleaning up database resources.
1635 While this isn't strictly necessary because the exception is caught,
1636 not protecting against the NPEs makes it harder to find the real error
1639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1641 2011-04-12 Ben Konrath <ben@bagu.org>
1643 Move configuration of the servlet to the constructor.
1645 The servlet will be initialized even if the database authentication
1646 information is not set or correct. I still need to add the UI for prompting
1647 the user for the authentication information when it's required.
1649 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1650 javadocs for getDocumentTitles() method.
1651 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1652 Set error message when RPC fails.
1653 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1654 glom files directory from the configuration file. Try to set the
1655 database authentication information for the specific document if it's
1656 set and works otherwise try to use the global authentication
1657 information set for the directory.
1658 * src/main/resources/onlineglom.properties: Moved from
1659 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1660 Added detailed comments for the new keys.
1662 2011-04-11 Ben Konrath <ben@bagu.org>
1664 Remove unnecessary @Override in DocumentSelectionViewImpl.
1666 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1668 2011-04-11 Ben Konrath <ben@bagu.org>
1670 Remove center alignment in DocumentSelectionView.
1672 The title element is still centred but the document titles and bottom
1673 sentence are both left-aligned.
1675 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1677 2011-04-11 Ben Konrath <ben@bagu.org>
1679 Change 'Demo' naming convention to 'Document'.
1681 This is just a rename refactor with no functional changes to the code.
1683 * src/main/java/org/glom/web/client/ClientFactory.java:
1684 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1685 * src/main/java/org/glom/web/client/OnlineGlom.java:
1686 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1687 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1688 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1689 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1690 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1691 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1692 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1693 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1694 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1695 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1697 2011-04-08 Ben Konrath <ben@bagu.org>
1699 Remove FIXME from safeLongToInt() method.
1701 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1704 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1706 2011-04-08 Ben Konrath <ben@bagu.org>
1708 Display an error if no glom documents are found in the specified directory.
1710 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1711 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1712 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1713 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1715 2011-04-08 Ben Konrath <ben@bagu.org>
1717 Add copyright header to one more file ... oops.
1719 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1721 2011-04-08 Ben Konrath <ben@bagu.org>
1723 Add copyright header to files without it.
1725 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1726 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1727 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1728 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1729 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1730 * src/main/java/org/glom/web/shared/GlomField.java:
1732 2011-04-08 Ben Konrath <ben@bagu.org>
1734 Add support for accessing multiple glom documents in the servlet.
1736 This completes the demo selection functionality.
1738 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1739 document title to methods.
1740 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1741 document title to methods.
1742 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1743 Set browser window title when the activity starts. Correct name of
1744 document title variable.
1745 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1746 Set browser window title when the activity starts. Set the table
1747 selector change handler after table selector has been set. Clear the
1748 OnlineGlomView when the activity has been stopped.
1749 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1750 document title as the place token. Use "#Document:" instead of
1751 "#OnlineGlomPlace:" in the URL.
1752 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1753 Change heading to "Online Glom"
1754 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1755 document title in RPC methods.
1756 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1757 setDocumentTitle() method. Add clear() method.
1758 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1759 setDocumentTitle() method. Implement clear() method which removes the
1760 change handler on the ListBox, clears the ListBox and clears the
1762 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1763 Implement methods with document title. Keep track for the configured
1764 glom documents and their corresponding JDBC configurations in a hash
1765 table. This information is retrieved using the document title as the
1766 key in the hash table.
1767 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1768 document title field as it's no longer needed.
1770 2011-04-08 Ben Konrath <ben@bagu.org>
1772 Update the Eclipse JDT configuration.
1774 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1775 methods. Automatically add the copyright header to new files.
1777 2011-04-05 Ben Konrath <ben@bagu.org>
1779 Add new page for demo selection.
1781 This patch adds all the components required to view and start an
1782 OnlineGlom demo by clicking on the desired hyperlink. The user is
1783 able to return to the demo selection page with the browser's back
1784 button. I still need to modify the servlet to work with multiple
1785 documents so all demo links will load the file defined in the
1786 OnlineGlom.properties.
1788 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1789 This is only useful during development so we don't need to save it.
1790 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1791 get a reference to the DemoSelectionView.
1792 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1793 method to get a reference to the DemoSelectionView.
1794 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1795 default view to DemoSelectionView.
1796 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1797 to get glom document titles for glom files in a hard-coded directory.
1798 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1799 method to get glom document titles for glom files in a hard-coded
1801 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1802 Presenter for DemoSelectionView.
1803 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1804 for DemoSelectionView.
1805 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1806 Update for DemoSelectionView.
1807 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1808 Basic 'Place' implementation for the DemoSelectionView.
1809 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1810 The interface for the DemoSelectionView.
1811 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1812 The implementation of the DemoSelectionView.
1813 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1814 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1816 implementation of method to get glom document titles for glom files
1817 in a hard-coded directory.
1818 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1819 on longer being used.
1820 * src/main/webapp/glom.png: Glom logo.
1822 2011-04-05 Ben Konrath <ben@bagu.org>
1824 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1826 This is the forth and final commit of a refactor that will allow
1827 OnlineGlom to be used with multiple documents.
1829 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1830 Move RPC code from OnlineGlomViewImpl to this class.
1831 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1833 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1834 RPC code to the presenter class (the P in MVP).
1836 2011-04-04 Ben Konrath <ben@bagu.org>
1838 Start moving the existing OnlineGlom code to MVP.
1840 This work is based on the GWT MVP framework that is documented here:
1842 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1844 This is the third commit of a refactor that will allow OnlineGlom to
1845 be used with multiple documents.
1847 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1848 Interface for client factory which is used to get instances of various
1849 classes throughout the app.
1850 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1851 Implementation of client factory.
1852 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1853 initialize the MVP framework.
1854 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1855 New file. Activity manager for the main container widget. This is the
1857 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1858 Maps place (URL) to its corresponding activity.
1859 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1860 New file. This is just a place holder for a generated file.
1861 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1862 New file. Represents the URL for the main Online Glom app.
1863 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1864 for changes in LayoutListViewImpl.
1865 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1866 interface for View. Move code to OnlineGlomViewImpl class.
1867 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1868 file. Implementation of OnlineGlomView.
1869 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1870 Place resources. Use ClientFactoryImpl by default.
1872 2011-04-04 Ben Konrath <ben@bagu.org>
1874 Move View classes to their own package.
1876 This is the second commit of a refactor that will allow OnlineGlom to
1877 be used with multiple documents.
1879 * src/main/java/org/glom/web/client/OnlineGlom.java:
1880 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1881 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1883 2011-04-02 Ben Konrath <ben@bagu.org>
1885 Move UI code from the main module to its own class.
1887 This is the first commit of a refactor that will allow OnlineGlom to be
1888 used with multiple documents.
1890 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1891 references to OnlineGlom to OnlineGlomView.
1892 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1893 OnlineGlomView and instantiate it here.
1894 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1895 represents the main OnlineGlomView with one document.
1897 2011-04-01 Ben Konrath <ben@bagu.org>
1899 Fix formatting of gwt.xml and add DTD.
1901 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1903 2011-03-30 Ben Konrath <ben@bagu.org>
1905 Propperly convert gdkColor string to html colour string.
1907 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1909 2011-03-28 Ben Konrath <ben@bagu.org>
1911 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1913 This implementation matches
1914 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1915 readable and is not tied to Swig.
1917 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1919 2011-03-28 Ben Konrath <ben@bagu.org>
1921 Use read-only checkboxes for boolean field types.
1923 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1924 in the CellTable based on the field type. It currently only
1925 distinguishes between boolean and text columns but I'll need to add
1926 support for more types.
1927 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1928 column type in the ColumnInfo object. Add method to convert between the
1929 glom field type enum in ColumnInfo and the glom field type in libglom.
1930 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1932 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1933 getting and setting booleans.
1935 2011-03-25 Ben Konrath <ben@bagu.org>
1937 Don't get the Date twice from the ResultSet.
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1941 2011-03-25 Ben Konrath <ben@bagu.org>
1943 Cleanup code in the servlet.
1945 * TODO: Remove item about row count. Add item about testing row count
1946 query with large number of rows.
1947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1948 spelling mistakes, change method parameter to be consistent with
1951 2011-03-25 Ben Konrath <ben@bagu.org>
1953 Add server side logging with the gwt-log library.
1955 * .gitignore: Ignore the log file we're now producing.
1956 * TODO: Add a couple TODO item for logging.
1957 * pom.xml: Add gwt-log and log4j as a dependency.
1958 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1959 logging of errors, warnings and some important info.
1960 * src/main/resources/log4j.properties: New file to configure log4j.
1962 2011-03-24 Ben Konrath <ben@bagu.org>
1964 Add a disable button for the Details view.
1966 * src/main/java/org/glom/web/client/LayoutListView.java:
1968 2011-03-22 Ben Konrath <ben@bagu.org>
1970 Use a count query to get the number of rows for the list view pager.
1972 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1974 2011-03-22 Ben Konrath <ben@bagu.org>
1976 Add more TODO information about CellTable pager positioning.
1980 2011-03-19 Ben Konrath <ben@bagu.org>
1982 Add TODO item about CellTable pager positioning.
1986 2011-03-18 Ben Konrath <ben@bagu.org>
1988 Remove unneeded GlomFieldColumn class.
1990 This is just a small code cleanup.
1992 * src/main/java/org/glom/web/client/LayoutListView.java:
1994 2011-03-18 Ben Konrath <ben@bagu.org>
1996 Use cursor mode in the query that gets data for the list view.
1998 I still need to fix the potential memory problem when getting the row
1999 count for the list view.
2001 * TODO: Add note about testing memory usage with large data sets. Add
2002 item about fixing row counting with large data sets.
2003 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2004 PostgreSQL JDBC driver into cursor mode when getting data for the
2007 2011-03-15 Ben Konrath <ben@bagu.org>
2009 Remove the GWT Container from the Eclipse build classpath.
2011 The GWT dependencies are set by Maven so this isn't needed.
2015 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2017 Added some earlier mockups to git, but not to the tarball dist.
2019 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2020 Openismus. These hopefully show how we might structure the HTML so that
2021 it can be styled easily with CSS. However, we probably need to adapt them
2022 for the CSS structure that GWT dictates for common widgets.
2024 2011-03-14 Ben Konrath <ben@bagu.org>
2026 Locate OnlineGlom.properties using the ServletContext.
2028 This is required to be able to locate the file in the deployed servlet.
2030 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2031 Configure the database and glom document in in a helper method so
2032 that the ServletContext can be used to locate OnlineGlom.properties.
2033 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2034 src/main/webapp. This is the proper location for .properites files.
2036 2011-03-12 Ben Konrath <ben@bagu.org>
2038 Add note to README about why we're compiling down to obfuscated JavaScript.
2042 2011-03-11 Ben Konrath <ben@bagu.org>
2044 Use properties file to configure servlet.
2046 This allows people to change the glom file path, db username and db
2047 password without recompiling the code.
2049 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2050 * src/main/webapp/OnlineGlom.properties:
2052 2011-03-11 Ben Konrath <ben@bagu.org>
2054 Use table fields in layout list view if the layout list is not defined.
2056 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2057 Manually create a LayoutFieldVector for the query builder using the
2058 table fields when a layout list is not defined in the glom file.
2060 2011-03-11 Ben Konrath <ben@bagu.org>
2062 Only show FIXME string for images when there's an image.
2064 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2065 in this change are some small code cleanups.
2067 2011-03-11 Ben Konrath <ben@bagu.org>
2069 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2071 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2073 2011-03-11 Ben Konrath <ben@bagu.org>
2075 Correctly set the index of the default table.
2077 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2078 Correctly set the index of the default table. Add commented out example
2081 2011-03-10 Ben Konrath <ben@bagu.org>
2083 Add comment to pom.xml about the previous change.
2085 * pom.xml: Add comment about the deployment issue so that it's obvious
2086 why java-libglom is set to the provided scope.
2088 2011-03-10 Ben Konrath <ben@bagu.org>
2090 Change java-libglom dependency from compile to provided in pom.xml.
2092 Since java-libglom uses jni it can only be loaded once and therefore
2093 must be placed in $CATALINA_HOME/lib and not included in each war.
2094 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2095 More information about this issue can be found in the Tomcat 6 release
2096 notes in the "JNI Based Applications" section:
2098 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2100 * README: Remove note about this issue. Deployment info should really
2101 be on the wiki anyway so I'll add it right now.
2102 * pom.xml: Change java-libglom dependency from compile to provided so
2103 that it's copied in to the packaged war.
2105 2011-03-09 Ben Konrath <ben@bagu.org>
2107 Change to using a neutral locale for currency, date and time formatting.
2109 This solves the problem of currency values being represented without a
2110 space between the currency code and the number (e.g. "EUR5.89" is now
2111 represented as "EUR 5.89"). More work is required when we implement
2112 a locale preference setting.
2114 * TODO: Add note about currency formatting issues with different
2116 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2117 to using the neutral ROOT locale.
2119 2011-03-09 Ben Konrath <ben@bagu.org>
2121 Add support for currency codes that are not ISO 4217 codes.
2123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2124 the currency code defined in the glom file when it's not 3 characters
2125 long or when Java doesn't recognize the string as an ISO 4217 code.
2127 2011-03-08 Ben Konrath <ben@bagu.org>
2129 Remove test classes, launch configurations and configuration.
2131 The test stuff was getting in the way when creating the war. To make
2132 the war file you can now do 'mvn clean package'. The packaged war file
2133 will be in the target directory.
2135 * .classpath: Remove unused classpathentry for tests and i18n.
2136 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2137 property. Don't run test or i18n goals when packaging the war.
2138 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2143 * OnlineGlomTest-dev.launch:
2144 * OnlineGlomTest-prod.launch:
2145 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2146 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2148 2011-03-07 Ben Konrath <ben@bagu.org>
2150 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2152 These fixes allow me to use 'mvn deploy' to create the war file.
2154 * .classpath: This generated config has been updated by Eclipse. This
2155 change was probably triggered by me updating from Eclipse 3.6.1 to
2157 * .gitignore: Add entry to ignore the directory
2158 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2159 * .project: The generated config has been updated by Eclipse. This
2160 change was probably triggered by me updating from Eclipse 3.6.1 to
2162 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2163 so that Eclipse doesn't complain
2164 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2165 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2166 'tests' directory to 'client' directory. This is the new
2167 gwt-maven-plugin convension.
2168 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2169 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2171 2011-03-07 Ben Konrath <ben@bagu.org>
2173 Add support for horizontal alignment in the LayoutList columns.
2175 * TODO: Remove item about horizontal alignment. Add item about
2176 improvements to ColumnInfo.
2177 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2178 alignment on the columns. Use ColumnInfo RPC object get the column
2179 title and horizontal alignment.
2180 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2181 LayoutListView creation with ColumnInfo RPC object.
2182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2183 a ColumnInfo object for every LayoutList columnn. Convert the
2184 FieldFormatting.HorizontalAlignment to the correct
2185 ColumnnInfo.HorizontatlAlignment with the new
2186 getColumnInfoHorizontalAlignment helper method.
2187 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2188 to encapsulate column information like alignment and title. This
2189 could be used to set the colour instead of on a per cell field basis.
2190 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2191 column title storage and retrieval with ColumnInfo.
2193 2011-03-04 Ben Konrath <ben@bagu.org>
2195 Add support for column sorting.
2197 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2198 AsynDataProvider to be an anonymous inner class. Use new
2199 getSortedTableData RPC method when column sort is requested. Set all
2200 columns sortable and add an AsyncHandler to activate sorting in the
2202 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2203 method getSortedTableData(). Cleanup other method signatures.
2204 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2205 new method getSortedTableData(). Cleanup other method signatures.
2206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2207 Implement getSortedTableData() and getTableData() methods by using a
2208 private helper method with the appropriate parameters filled in. Use
2209 user supplied sort clause when supplied, otherwise fall back to
2210 sorting by the primary key. Move destroy() method to be underneath
2211 constructor for readability. Cleanup comments.
2213 2011-03-03 Ben Konrath <ben@bagu.org>
2215 Add support for colour text and colour backgrounds to the layout list cells.
2217 Only the cell backgrounds are coloured which leaves a gap between the
2218 cells that isn't coloured. I need to figure out a way to set
2219 'style=background-colour:' on the whole column rather than just the
2222 * TODO: Add a note about colouring the background of the whole column.
2223 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2224 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2225 render the coloured text and backgrounds. Use GlomField[] for the row type.
2226 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2228 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2229 GlomField[] for the row type.
2230 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2231 GlomField[] for the row type. Set the text, text colour and background
2232 colour in the GlomField objects as specified in the glom document. Add
2233 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2234 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2235 the glom field text, foreground colour and background colour.
2237 2011-03-02 Ben Konrath <ben@bagu.org>
2239 Don't display hidden tables in the combo box.
2241 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2243 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2244 code to ignore hidden tables using ArrayLists for the table names and
2246 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2247 tableNames to use ArrayLists instead of String[]. Update getter and setter
2250 2011-03-01 Ben Konrath <ben@bagu.org>
2252 Add support for Date and Time number types.
2254 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2255 Implement formatting for Date and Time values. Change the default glom
2256 file to small business example.
2258 2011-03-01 Ben Konrath <ben@bagu.org>
2260 Add support for formatting glom types as specified in the glom file.
2262 Formatting isn't finished yet - I still need to add support for Date
2265 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2266 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2267 checks for null values in JDBC cleanup code and catch all exceptions
2268 instead of just SQLExceptions.
2269 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2272 2011-03-01 Ben Konrath <ben@bagu.org>
2274 Use GWT 2.2.0 instead of 2.1.1.
2276 * pom.xml: Change GWT version numbers.
2278 2011-03-01 Ben Konrath <ben@bagu.org>
2280 A few small code cleanups.
2282 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2284 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2285 unnecessary object creation in constructor.
2286 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2287 unnecessary object creation in constructor.
2289 2011-02-28 Ben Konrath <ben@bagu.org>
2291 Add file for TODO list.
2295 2011-02-18 Ben Konrath <ben@bagu.org>
2297 Enable the CellTable Pager when more than 20 rows need to be viewed.
2299 The Pager will automatically become active when the results are larger
2300 than the CellTable size which is currently set to 20 lines.
2302 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2303 name on debug statment in RPC call in LayoutListDataProvider, add
2304 numRows parameter to LayoutListView constructor, propperly set rowCount
2306 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2307 name on debug statment in RPC call, use LayoutListTable object in RPC
2308 calls, pass rowCount to LayoutListView.
2309 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2310 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2312 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2313 interface for changes in OnlineGlomService.
2314 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2315 getLayoutListHeaders() to getLayoutListTable() and return
2316 LayoutListTable. Using this object allows me to pass other information
2317 about the LayoutList like the expected number of rows in the result set.
2318 The Connection object from the connection pool is now propperly closed.
2319 Only the requested number of lines are returned to the client in
2321 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2322 GlomTable and add columnTitles and numRows.
2324 2011-02-18 Ben Konrath <ben@bagu.org>
2326 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2328 This is a small performance boost. I'll use GlomTable to get the required
2329 layoutlist information.
2331 * src/main/java/org/glom/web/client/OnlineGlom.java:
2332 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2333 * src/main/java/org/glom/web/shared/GlomDocument.java:
2335 2011-02-18 Ben Konrath <ben@bagu.org>
2337 Add option to turn off formatting in JDT formatter preferences.
2339 * .settings/org.eclipse.jdt.core.prefs:
2341 2011-02-18 Ben Konrath <ben@bagu.org>
2343 Rename LayoutList to LayoutListView.
2345 I'm working towards setting things up to easily use MVP when the time
2348 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2350 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2353 2011-02-17 Ben Konrath <ben@bagu.org>
2355 Move LayoutListDataProvider class into LayoutList.java.
2357 * src/main/java/org/glom/web/client/LayoutList.java:
2359 2011-02-17 Ben Konrath <ben@bagu.org>
2361 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2363 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2365 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2366 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2367 from LibGlomServer.java.
2368 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2369 Rename from LibGlomServiceAsync.java.
2370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2371 Rename from LibGlomServiceImpl.java.
2372 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2374 2011-02-17 Ben Konrath <ben@bagu.org>
2376 Update JDT settings.
2378 * .settings/org.eclipse.jdt.core.prefs:
2380 2011-02-17 Ben Konrath <ben@bagu.org>
2382 Move GWT-RPC objects to shared package (where they should be).
2384 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2385 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2386 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2387 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2388 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2389 org.glom.web.shared package.
2390 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2391 org.glom.web.shared package.
2392 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2393 directory in compilation to javascript.
2395 2011-02-16 Ben Konrath <ben@bagu.org>
2397 Add sort clause to the sql query that grabs table information.
2399 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2400 if one of the columns is a primary key.
2402 2011-02-16 Ben Konrath <ben@bagu.org>
2404 Disable generateAsync feature of gwt-maven.
2406 The generated interface does not correctly match the methods in LibGlomService
2407 and the generated singleton Util inner-class doesn't respect the servlet
2410 * pom.xml: Turn off generateAsync feature.
2411 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2412 with singleton Util inner-class.
2414 2011-02-14 Ben Konrath <ben@bagu.org>
2416 Add LGPL v3 licence notices.
2418 Followed directions listed here:
2419 http://www.gnu.org/licenses/gpl-howto.html
2421 * COPYING: This file is a copy of the GPL v3.
2422 * COPYING.LESSER: This file is a copy of the LGPL v3.
2423 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2425 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2427 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2429 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2431 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2433 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2435 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2438 2011-02-14 Ben Konrath <ben@bagu.org>
2440 Use ArrayList instead of Array in GWT-RPC calls.
2442 Apparently this gives a slight performance boost to the compiled
2445 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2447 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2450 2011-02-14 Ben Konrath <ben@bagu.org>
2452 Access data from a postgres db rather than the example glom file.
2454 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2455 compile down to obfuscated javascript.
2456 * pom.xml: Add c3p0 and postgres JDBC libraries.
2457 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2458 using a postgres db accessed through the c3p0 connection pooling library.
2460 2011-02-14 Ben Konrath <ben@bagu.org>
2462 Update Java formatter settings.
2464 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2466 2011-02-02 Ben Konrath <ben@bagu.org>
2468 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2470 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2472 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2473 the compiled webapp directory that Eclipse uses as we're using Maven now.
2474 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2475 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2477 * pom.xml: Format file, change target Java version to 1.6.
2479 2011-02-02 Ben Konrath <ben@bagu.org>
2481 Add information about a deployment related issue.
2483 * README: Add Notes section with the problem outlined.
2485 2011-02-02 Ben Konrath <ben@bagu.org>
2487 Call Glom.libglom_deinit() when the servlet is shutdown.
2489 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2490 Glom.libglom_deinit() to destroy() method.
2492 2011-01-28 Ben Konrath <ben@bagu.org>
2494 Use generated Util class to get the RPC Async interface.
2496 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2498 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2499 getInstance() method to get a reference to the RPC Async interface.
2500 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2501 getInstance() method to get a reference to the RPC Async interface, remove
2502 the now unused getLibGlomServiceProxy() method.
2504 2011-01-27 Ben Konrath <ben@bagu.org>
2506 Cleanup ChangeLog entry from previous commit.
2508 * ChangeLog: Group logical changes together and add comments.
2510 2011-01-25 Ben Konrath <ben@bagu.org>
2512 Convert to gwt-maven project.
2514 * .gitignore: Update for new project structure.
2515 * README: New file with a link to the online documentation.
2516 * pom.xml: The generated maven configuration file with some tweaks.
2518 Add / update Eclipse settings. These files are a merge of the files that
2519 were generated with the gwt-maven plugin and the files we were previously
2523 * .settings/.jsdtscope:
2524 * .settings/com.google.gdt.eclipse.core.prefs:
2525 * .settings/com.google.gwt.eclipse.core.prefs:
2526 * .settings/org.eclipse.jdt.core.prefs:
2527 * .settings/org.eclipse.wst.common.component:
2528 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2529 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2530 * .settings/org.maven.ide.eclipse.prefs:
2531 * OnlineGlomTest-dev.launch:
2532 * OnlineGlomTest-prod.launch:
2534 Java source files moved from the 'src' directory to the directory structure
2536 * src/main/java/org/glom/web/client/GlomDocument.java:
2537 * src/main/java/org/glom/web/client/GlomTable.java:
2538 * src/main/java/org/glom/web/client/LayoutList.java:
2539 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2540 * src/main/java/org/glom/web/client/LibGlomService.java:
2541 * src/main/java/org/glom/web/client/OnlineGlom.java:
2542 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2544 Non-functional property file used for translations. I included this as
2545 reminder that it's something I need to sort out.
2546 * src/main/resources/org/glom/web/client/Messages.properties:
2548 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2549 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2551 The servlet configuration files moved from the 'war' directory.
2552 * src/main/webapp/OnlineGlom.css:
2553 * src/main/webapp/OnlineGlom.html:
2554 * src/main/webapp/WEB-INF/web.xml:
2556 Generated test files with most of the code commented out. I included these
2557 so that it's easy to add tests when we're ready for them.
2558 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2559 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2561 2011-01-25 Ben Konrath <ben@bagu.org>
2563 Remove unused println.
2565 * src/org/glom/web/server/LibGlomServiceImpl.java:
2567 2011-01-25 Ben Konrath <ben@bagu.org>
2569 Add project specific JDT settings.
2571 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2572 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2574 2011-01-25 Ben Konrath <ben@bagu.org>
2576 Populate celltable with example data.
2578 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2579 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2580 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2581 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2582 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2583 asynchronously gets the example data.
2584 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2585 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2586 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2587 curently selected table to be retrieved by other widgets.
2588 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2589 implement getTableData() in a hacky way. This method needs to be updated
2590 to grab information from the database when database creating is
2593 2011-01-20 Ben Konrath <ben@bagu.org>
2595 Set table headers when table dropBox changes.
2597 * src/org/glom/web/client/GlomDocument.java: Correct some method
2599 * src/org/glom/web/client/LibGlomService.java: Add method
2600 to get list layout field names.
2601 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2602 to get list layout field names.
2603 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2604 widget for list layout table.
2605 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2606 the table drop box and add new updateTable() method to asynchronously
2607 get the layout list field names for the currently selected table.
2608 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2609 implementation of getLayoutListHeaders() method.
2610 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2612 2011-01-18 Ben Konrath <ben@bagu.org>
2614 Make a listBox with table titles instead of the flexTable demo.
2616 This is the start of something more useful.
2618 * .classpath: Exclude a bunch of packages from the JVM that are
2619 getting in the way of the Eclipse content assist.
2620 * src/org/glom/web/client/GlomDocument.java:
2621 * src/org/glom/web/client/GlomTable.java:
2622 * src/org/glom/web/client/LibGlomService.java:
2623 * src/org/glom/web/client/LibGlomServiceAsync.java:
2624 * src/org/glom/web/client/OnlineGlom.java:
2625 * src/org/glom/web/server/LibGlomServiceImpl.java:
2626 * war/OnlineGlom.html:
2627 * war/WEB-INF/web.xml:
2629 211-01-13 Ben Konrath <ben@bagu.org>
2631 Update to new java-libglom API.
2633 * .gitignore: Ignore OnlineGlom.war.
2634 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2636 2010-12-20 Ben Konrath <ben@bagu.org>
2638 Add some basic style to the table listing.
2640 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2641 header, print useful error message on async callback failure.
2642 * war/OnlineGlom.css: Add style for table header, remove defaults
2643 provided by the Eclipse project wizard.
2645 2010-12-20 Ben Konrath <ben@bagu.org>
2647 Load example file from installed glom dir.
2649 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2650 provided by java-libglom to find the example file.
2652 2010-12-20 Ben Konrath <ben@bagu.org>
2654 Update Eclipse settings.
2657 * .settings/com.google.gdt.eclipse.core.prefs:
2658 * .settings/com.google.gwt.eclipse.core.prefs:
2660 2010-12-17 Ben Konrath <ben@bagu.org>
2664 * .classpath: New file.
2665 * .gitignore: New file.
2666 * .project: New file.
2667 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2668 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2669 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2670 * src/org/glom/web/client/GlomTable.java: New file.
2671 * src/org/glom/web/client/OnlineGlom.java: New file.
2672 * src/org/glom/web/client/TableNameService.java: New file.
2673 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2674 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2675 * war/OnlineGlom.css: New file.
2676 * war/OnlineGlom.html: New file.
2677 * war/WEB-INF/web.xml: New file.
2678 * war/images/glom.png: New file.