1 2011-11-16 Ben Konrath <ben@bagu.org>
3 Rework the fix for empty notebook tab labels.
5 Setting the empty group titles with its name caused problems for the
6 details layout. Instead of using libglom's
7 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
8 to the client when the title is empty. This allows the Notebook to use
9 the name when the title is empty without affecting anything else.
11 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
12 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
14 2011-11-16 Ben Konrath <ben@bagu.org>
16 Set group titles with name when title is empty.
18 This fixes a problem with an empty notebook tab label in the Lesson
19 Planner document. The forth tab in the notebook should be "Internet":
21 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
23 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
24 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
27 2011-11-16 Ben Konrath <ben@bagu.org>
29 Remove whitespace from the configured username properties.
31 This assumes that usernames won't have whitespace at the beginning
32 or end. But I think this is a reasonable assumption.
34 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
35 String.trim() to remove the whitespace from the username properties.
37 2011-11-15 Ben Konrath <ben@bagu.org>
39 Add details view mockup with HTML tables and text entries.
41 This is from the attachment on this bug:
43 https://bugzilla.gnome.org/show_bug.cgi?id=663109
45 * mockups/details-view-html-tables-text-entries.html:
47 2011-11-15 Ben Konrath <ben@bagu.org>
49 Add space between the columns of the flow table.
53 https://bugzilla.gnome.org/show_bug.cgi?id=662918
55 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
56 space between columns in the flow table.
58 2011-11-15 Ben Konrath <ben@bagu.org>
60 Add backup files to the .gitignore.
62 * .gitignore: Ignore files that end with ~.
64 2011-11-09 Ben Konrath <ben@bagu.org>
66 Use latest release of gwt-log.
68 Gwt-log releases are now being submitted to the maven central
69 repository so manual installation of the jar is no longer required.
71 * pom.xml: Update version and groupId of gwt-log dependency.
73 2011-10-31 Ben Konrath <ben@bagu.org>
75 Don't use GWT numeric formatting to override the glom currency formatting.
77 Currencies are now displayed like they are in Glom. See this bug:
79 https://bugzilla.gnome.org/show_bug.cgi?id=646216
81 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
83 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
84 currency code to constructor and set it when the cell is rendered.
85 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
86 currency code to the constructor of the NumericCell.
88 2011-10-27 Ben Konrath <ben@bagu.org>
90 Require the latest release of java-libglom (1.17.4).
94 2011-10-26 Ben Konrath <ben@bagu.org>
96 Add style to Notebook that matches current theme.
98 It's not the best style in the world but it's better than the default.
100 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
101 padding at the bottom of the child widgets.
102 * src/main/webapp/style.css: Add style for the Notebook.
104 2011-10-26 Ben Konrath <ben@bagu.org>
106 Move servlet initialization code to overridden init method.
108 This is half of the solution to getting proper error messages
109 displayed when configuration errors occur. Here's the relevant bug:
111 https://bugzilla.gnome.org/show_bug.cgi?id=662792
113 The rest of the solution involves surrounding the init method with a
114 try/catch block and setting a global variable with the error /
115 exception. A new async method should be created to retrieve and display
116 the error message / exception.
118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
119 code from constructor to init method adding exceptions as needed.
121 2011-10-26 Ben Konrath <ben@bagu.org>
123 Add script to monitor and restart tomcat if required.
125 * utils/check-and-recover-tomcat.py: New file.
127 2011-10-26 Ben Konrath <ben@bagu.org>
129 Display the correct number of data items in the pager.
133 https://bugzilla.gnome.org/show_bug.cgi?id=661441
135 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
136 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
137 The implementation is the same for both tables: Keep track of the
138 number of non-empty rows and fire and RowCountChangeEvent after the data has
140 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
141 custom Pager class that subclasses SimplePager to handle displaying
142 the correct number when empty rows have been added.
144 2011-10-26 Ben Konrath <ben@bagu.org>
146 Correct error in previous commit.
148 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
149 eventBus parameter from listView.setCellTable().
151 2011-10-26 Ben Konrath <ben@bagu.org>
153 Fix error in TODO comment.
155 * src/main/java/org/glom/web/client/activity/ListActivity.java:
157 2011-10-24 Ben Konrath <ben@bagu.org>
159 Create Notebook widgets to the details view.
161 This isn't finished just yet - I still need to create a reasonable
162 style to match the current theme.
164 * src/main/java/org/glom/web/client/Utils.java: Add method for
165 calculating the height of a widget. This is used in the Notebook class.
166 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
167 new constructor method in Group.
168 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
169 method for creating child widget that can be used by subclasses
170 like Notebook. New constructor that allows disabling the group
171 titles - Notebooks don't set a group title for their child groups.
172 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
173 to make Notebooks using GWT's TabLayoutPanel.
174 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
175 constructor that allows disabling the group titles.
176 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
177 LayoutItemNotebook DTO.
178 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
179 DTO for Notebooks. It's just an empty class for now but we might need
180 it to transfer some specific information in the future.
182 2011-10-21 Ben Konrath <ben@bagu.org>
184 Add navigation buttons to related list tables.
186 * src/main/java/org/glom/web/client/OnlineGlomService.java:
187 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
188 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
189 method getSuitableRecordToViewDetails() for getting the table name
190 and primary key value for related list navigation buttons.
191 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
192 private cell renderer class to get the navigation information for
193 related list tables from the server. Extract the navigation
194 processing code from the details cell navigation and use it for the
195 related list navigation as well.
196 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
197 cell renderer class for the details open buttons. This was needed
198 because the related list navigation buttons and the list view
199 navigation buttons need to react differently when clicked.
200 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
201 the onEnterKeyDown() method because it's now overriden in the
202 subclasses that are specific to the related list tables and the list
204 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
205 the vertical size a little because the buttons add a bit of vertical
206 space to table. This is not a perfect solution because the vertical
207 size of with table fewer than 5 rows will be a little smaller.
208 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
209 changes in how navigation buttons are handled.
210 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
211 getSuitableRecordToViewDetails() using the new RelatedListNavigation
212 database access object.
213 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
214 to find the portal for a given relationship name from
215 RelatedListDBAccess. Add method to find a primary key field for a
217 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
218 Move code to find the portal for a given relationship name to
220 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
221 New file: database access object for getting the related list
222 navigation information (the table name and the primary key value).
223 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
224 DTO for transferring a table name to navigate to and a primary key
226 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
227 boolean and getter/setter to specifies if the related list should add
230 2011-10-24 Murray Cumming <murrayc@murrayc.com>
232 Use the master branch of java-libglom
234 * pom.xml: Depend on java-libglom 1.19 instead.
236 This is the master branch. See also the libglom-1-18 branch.
238 2011-10-11 Ben Konrath <ben@bagu.org>
240 Enable the open navigation button when the data has been set.
242 This avoids having active buttons that don't do anything when the data
245 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
247 2011-10-11 Ben Konrath <ben@bagu.org>
249 Use IsWidget interface for FlowTableItem.
251 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
252 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
254 2011-10-11 Ben Konrath <ben@bagu.org>
256 Remove GWT styling from open button in details view.
258 There are still some issues with how the details cell is arranged but
259 this should be made to match Glom 1.20. I'm going to leave fixing this
260 until I have Glom 1.20 up and running.
262 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
263 style name on open button.
264 * src/main/webapp/style.css: Move and edit details-navigation class.
265 Re-arrange some classes to make them appear in the same order as the
268 2011-10-07 Ben Konrath <ben@bagu.org>
272 * .gitignore: Ignore new cache directory.
273 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
274 * pom.xml: Change GWT and maven plugin to 2.4.0.
275 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
277 * src/main/java/org/glom/web/client/ClientFactory.java:
278 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
279 * src/main/java/org/glom/web/client/OnlineGlom.java:
280 Update source for API changes.
281 * utils/build-onlineglom-war.sh: Remove cache directory before the
284 2011-10-07 Ben Konrath <ben@bagu.org>
286 Add navigation buttons in the details view.
288 This isn't finished but I thought I'd commit what I have as it's a
289 pretty good start. I still need to:
291 1. Change the style so that it fits better into the current theme
292 2. Adjust the details cell to expand as much as possible.
294 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
295 click handlers to navigation buttons in the DetailsCells. Create a
296 refreshData() method to get just the data from the server without the
298 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
299 Update the tableSelector and browser title when the table name
300 changes without using the tableSelector.
301 * src/main/java/org/glom/web/client/ui/DetailsView.java:
302 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
303 getDetailsCells() to getCells(). Update variable names.
304 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
305 method to set click handler on navigation button. Rename a few
306 variables. Add navigation buttons where needed.
307 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
308 variables and methods.
309 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
310 navigation boolean and navigation table as required in the
312 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
313 variables for navigation along with getter/setter methods.
315 2011-10-07 Ben Konrath <ben@bagu.org>
317 Rename Field to DetailsCell.
319 This is a refactor-only commit. No functionality has been added or
322 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
323 Update variable and method names.
324 * src/main/java/org/glom/web/client/ui/DetailsView.java:
325 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
326 variable and method names.
327 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
329 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
330 variable and method names.
332 2011-10-07 Ben Konrath <ben@bagu.org>
334 Create separate methods for layout and data the details view.
336 This is a refactor-only commit. No functionality has been added or
339 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
340 private methods: setData(), createLayout().
342 2011-10-07 Ben Konrath <ben@bagu.org>
344 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
346 This is part of a change to get navigation buttons in the details view
347 but it should have been done this way from the start.
349 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
350 for method name change in TableSelectionView.
351 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
352 Create TableChangeEvent and set the browser title using the
353 TableSelectionView API.
354 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
355 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
356 Change getSelectedTable() to getSelectedTableName(). Add
357 getSelectedTableTitle().
359 2011-10-07 Ben Konrath <ben@bagu.org>
361 Use primaryKeyValue naming convention in constructor of DetailsPlace.
363 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
365 2011-10-07 Ben Konrath <ben@bagu.org>
367 Update TableChangeEvent to use newTableName naming convention.
369 This makes the class more consistent with GWT naming conventions.
371 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
372 Update for method name change in TableChangeEvent.
373 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
374 for method name change in TableChangeEvent.
375 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
376 newTableName variable and getter method. Make toDebugString()
379 2011-09-30 Ben Konrath <ben@bagu.org>
381 Disable the pager in the list tables when the data row count is less than the minimum.
383 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
384 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
386 2011-09-30 Ben Konrath <ben@bagu.org>
388 Add empty rows to the end of related list and list view tables.
390 I also extracted the cell rendering classes from the ListTable because
391 the code was becoming a little crazy with all the anonymous inner
392 classes. My plan is to use these cell rendering classes in the details
393 view as well so this refactor will be needed for that change.
395 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
396 set the row count in related list tables if the data has more rows
397 than the minimum number of rows visible.
398 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
399 row count in list view tables if the data has more rows than the
400 minimum number of rows visible.
401 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
402 for rendering TYPE_BOOLEAN cells. The code was extracted from the
404 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
405 for rendering TYPE_NUMERIC cells. The code was extracted from the
407 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
408 class for rendering cells with buttons in list views. The code was
409 extracted from the ListTable class.
410 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
411 for rendering TYPE_TEXT cells. The code was extracted from the
413 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
414 Add empty rows to the end of the data if required. Implement
415 ListTable.getMinNumVisibleRows().
416 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
417 cell renderer code to public classes. Return null in
418 Column.getValue() for empty rows. Add new abstract method:
419 getMinNumVisibleRows(). Move code to set the row count of the list view
420 table to ListViewImpl.
421 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
422 empty rows to the end of the data if required. Implement
423 ListTable.getMinNumVisibleRows().
426 2011-09-27 Ben Konrath <ben@bagu.org>
428 Use GWT.log for client-side debugging statements.
430 These are optimized out when deployed so I should have used this method
431 in the first place. These statements will eventually be replaced with some sort
432 of notification in the browser.
434 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
435 * src/main/java/org/glom/web/client/activity/ListActivity.java:
436 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
437 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
438 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
440 2011-09-27 Ben Konrath <ben@bagu.org>
442 Put tableselector on the right, back to list link on right.
444 The idea is that the table selector is acting like a label for the
445 currently displayed table so it should be placed below the document title. This
446 puts the table title in a similar position to where it is in Glom.
448 * mockups/details-contacts.html:
449 * mockups/details-projects.html:
450 * mockups/listview-contacts.html:
451 * mockups/listview-projects.html:
453 Update mockups to match how the interfaces currently look.
454 * src/main/webapp/style.css: Swap positions of backlink with the table
455 selector. Add some space on the left side of the table selector to
456 line things up with the document title.
458 2011-09-27 Ben Konrath <ben@bagu.org>
460 Add field colouring to details view.
462 This change re-works how field colouring works. The colour formatting
463 information is now set to the client with the layout information instead of
464 with the data. This eliminates the need to send the same colour strings for
465 data in list view column when colour information is set.
467 In order to set an alternate colour for negative numeric values, the
468 number is now sent to client and formatted with the GWT NumberFormat class.
470 This change also fixes:
472 https://bugzilla.gnome.org/show_bug.cgi?id=659752
474 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
475 internationalization framework which is needed for client side numeric
477 * src/main/java/org/glom/web/client/Utils.java: New file for some
478 client static utility methods.
479 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
480 the DataItem object to the Field class. Use a utility method to
481 create the foreignKeyValue string.
482 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
483 alignment and text colours in the constructor. Add setData(DataItem)
484 method. Remove setText(String) method.
485 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
486 colour information to GlomTextCell. Create and use GlomNumberCell for
487 rendering numbers. Use utility method to get the string for the
488 primary key of the key provider. Re-work how the horizontal alignment
490 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
491 formatting to layout information. Methods for converting the libglom
492 formatting information were moved from DBAccess.
493 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
494 numeric formatting (it's now done on the client side). Don't set text
495 colours in DataItem. Move libglom formatting conversion methods to
497 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
498 getters/setters for text colour information.
499 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
500 for transferring the libglom NumericFormat information to the client.
501 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
502 and getters/setters for: GlomNumericFormat, background colour and
503 foreground colour strings.
505 2011-09-26 Ben Konrath <ben@bagu.org>
507 Simplify code that iterates through the LayoutGroup.
509 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
511 2011-09-26 Ben Konrath <ben@bagu.org>
513 Accept Eclipse formatting for OnlineGlomServiceAsync.
515 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
517 2011-09-26 Ben Konrath <ben@bagu.org>
519 Don't use the ListDBAccess classes to get the primary key layout information.
521 This was causing a bug where the wrong index for the hidden primary key
522 was being sent to the client.
524 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
525 primary key while creating the LayoutGroup DTO. Create a
526 LayoutItemField DTO for hidden primary keys. Don't use the
527 RelatedListDBAccess because it was only used for getting the primary
529 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
530 access modifier from public to protected for getPrimaryKeyField() and
531 getPrimaryKeyLayoutItemField().
532 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
533 abstract method getExpectedResultSize() because RelatedListDBAccess
534 doesn't have enough info to implement it.
535 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
536 Remove @Override for getExpectedResultSize().
537 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
538 Remove method getExpectedResultSize().
540 2011-09-23 Ben Konrath <ben@bagu.org>
542 Log which layout (list or details) the ignored item is from.
544 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
546 2011-09-23 Ben Konrath <ben@bagu.org>
548 Remove annotations that turn off code formatting in DataItem.
550 * src/main/java/org/glom/web/shared/DataItem.java:
552 2011-09-23 Ben Konrath <ben@bagu.org>
554 Rename GlomField to DataItem and update associated methods.
556 This is a rename-only refactor. No functionality has been added or
559 * src/main/java/org/glom/web/client/OnlineGlomService.java:
560 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
561 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
562 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
563 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
564 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
565 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
566 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
567 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
568 * src/main/java/org/glom/web/server/database/DBAccess.java:
569 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
570 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
571 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
572 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
573 * src/main/java/org/glom/web/shared/DataItem.java:
574 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
575 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
577 2011-09-23 Ben Konrath <ben@bagu.org>
579 Rename GlomDocument to DocumentInfo and update associated methods.
581 This is a rename-only refactor. No functionality has been added or
584 * src/main/java/org/glom/web/client/OnlineGlomService.java:
585 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
586 * src/main/java/org/glom/web/client/activity/ListActivity.java:
587 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
588 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
589 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
590 * src/main/java/org/glom/web/shared/DocumentInfo.java:
592 2011-09-20 Ben Konrath <ben@bagu.org>
594 Require java-libglom 1.17.3.
596 This picks up the fix for the seg fault problem with the Scenes table
597 in the Openismus Film Manager example.
601 2011-09-20 Ben Konrath <ben@bagu.org>
603 Change the way sort clause is added for primary key when no sort clause is requested.
605 The primary key is now added to the LayoutFieldVector (fieldsToGet)
606 before the sort clause is created. When a sort clause is not requested, the
607 sort clause is created by finding the primary key in the LayoutFieldVector
610 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
612 2011-09-20 Ben Konrath <ben@bagu.org>
614 Log error message if no documents are found in the configured directory.
616 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
617 Extract the glom file extension string to a private static final class
618 variable (mostly as syntactic sugar). Accept a minor formatting change.
619 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
620 the example glom.document.directory configuration property to make it
621 more clear that it can any directory, not just the home directory.
623 2011-09-18 Ben Konrath <ben@bagu.org>
625 Add related lists to details view.
627 The related list table has support for paging and sorting just like the
628 table in the list view.
630 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
631 SQL queries for the related list tables.
632 * src/main/java/org/glom/web/client/OnlineGlomService.java:
633 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
634 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
635 Rename getList methods to getListView and add comments. Remove
636 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
637 it being unused. Add methods: getDetailsLayoutAndData(),
638 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
639 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
640 Create the layout and set the data for the fields in one async call
641 instead of two. Create related lists where appropriate.
642 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
643 for method name changes in OnlineGlomService.
644 * src/main/java/org/glom/web/client/ui/DetailsView.java:
645 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
646 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
648 * src/main/java/org/glom/web/client/ui/ListView.java:
649 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
650 tableName from setCellTable(). Create a ListViewTable instead of
652 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
653 represent a data field in the details view.
654 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
655 from addDetailsCell() to Field class. Keep track of the Fields and
656 Portals in the details view.
657 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
658 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
659 and add a method to get it. Add method to set the contents of the
661 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
662 New class for related list tables. This class has the data provider
663 for the related list table.
664 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
665 abstract class which is the base class for the ListViewTable and the
667 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
668 New class for list view tables. This class has the data provider for
670 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
671 methods for related list tables. Add more information to the
672 LayoutItemField and LayoutItemPortal DTOs.
673 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
674 Remove debugging print statement.
675 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
676 Remove debugging print statements. Add primary key field to SQL count
678 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
679 Remove unnecessary LayoutFieldVector parameter from
680 getResultSizeOfSQLQuery() method.
681 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
682 New class for related list table database access.
683 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
684 class that is a wrapper DTO for details view layout and data.
685 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
686 new 'fromField' string to this DTO.
687 * src/main/webapp/style.css: Remove bottom margin and override top
690 2011-09-15 Ben Konrath <ben@bagu.org>
692 Breakup the OnlineGlomServiceImpl class to make it more manageable.
694 This sets things up to make it easier to add the data retrieval for
695 related lists (portals). No user noticeable changes were made with
698 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
699 class has the code to retrieve the layouts and access the
700 database using the new database helper classes.
701 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
702 Most of the functionality has been removed from this class. This
703 class now represents the public interface for the client side
704 code. It also deals with configuring the servlet and cleaning
705 things up when the servlet is stopped.
706 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
707 of static methods into this utility class.
708 * src/main/java/org/glom/web/server/database/DBAccess.java:
709 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
710 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
711 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
712 These classes have the database retrieval code. The class hierarchy
713 has been setup to make it easy to reuse code for similar
716 2011-09-06 Ben Konrath <ben@bagu.org>
718 Create separate classes for list table code and the data provider.
720 As part of this refactor, I also split up the code a bit to make it
723 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
724 table code to two new classes (below).
725 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
726 with code from ListViewImpl.
727 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
728 New file with code from ListViewImpl.
730 2011-09-06 Ben Konrath <ben@bagu.org>
732 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
734 This fixes the LayoutItemPortal DTO to match the libglom layout object
737 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
739 2011-09-01 Ben Konrath <ben@bagu.org>
741 Set title of Portals in the Details View.
743 * pom.xml: Bump required version of java-libglom to 1.17.1.
744 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
745 widget creation to its own class. Add comments to constructor.
746 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
747 The code is mostly from the Group class with the title now set.
748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
749 title of Portal. Update some comments. Fix some code formatting.
751 2011-09-01 Ben Konrath <ben@bagu.org>
753 Remove TODO comment for the flow table column width.
755 The flow table column width is working correctly and doesn't need to be
756 changed. See this mailing list post for more info:
758 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
760 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
762 2011-08-27 Ben Konrath <ben@bagu.org>
764 Add document title (database name) to top of the browser page.
766 I added the document title to the TableSelecitonView but that will
767 change if / when we add a view that doesn't require table selection.
769 * mockups/details-contacts.html:
770 * mockups/details-projects.html:
771 * mockups/listview-contacts.html:
772 * mockups/listview-projects.html:
773 * mockups/style.css: Add document title to mockups to keep things
775 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
776 sizes to account for the document title.
777 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
778 Set the document title when it has been retrieved from the server.
779 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
780 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
781 and implement setDocumentTitle(String) method.
782 * src/main/webapp/style.css: Add ID for document title style.
784 2011-08-25 Ben Konrath <ben@bagu.org>
786 Add NavigationType enum to LayoutItemPortal DTO.
788 This is the start of adding support for Portals to the Details View.
790 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
791 LayoutItem_Portal.navigation_type enum from libglom to
792 LayoutItemPortal.NavigationType enum.
793 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
794 NavigationType enum, field for storing the NavigationType and getter
797 2011-08-25 Ben Konrath <ben@bagu.org>
799 Implement the flow table layout in the Details View.
801 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
802 FlowTable to Group to account for the renamed class.
803 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
804 File. This is a container widget that implements the Glom details view
805 flow table behaviour.
806 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
807 org/glom/web/client/ui/FlowTable.java.
808 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
809 so that the size of the subgroups are a closer match to the size of
810 the Glom subgroups. This makes the flowtable layout match the layout
811 in Glom for the Music Collection example file.
813 2011-08-16 Ben Konrath <ben@bagu.org>
815 Create container element for LayoutItemPortal in Details View.
817 This will help me develop the layout for the FlowTable.
819 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
820 fieldPanel variable to detailsCell.
822 2011-08-15 Ben Konrath <ben@bagu.org>
824 Set the height of the data element in the Details View.
826 I changed the InlineLabels (text in a span element) to Labels (text in
827 a div element) so that I could set the height of the details-data
828 elements instead of the details-cell parent elements. This allows the
829 the details-data element to display the correct height if style is
830 applied that shows the height.
832 This change has the added benefit of allowing the order of the labels
833 and data elements to be changed for right-to-left languages.
835 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
836 InlineLabels to Labels.
837 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
838 InlineLabels to Labels. Set the height of the data element.
839 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
840 multiline text height in the Formatting DTO.
841 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
842 for multiline height along with getter and setter methods.
843 * src/main/webapp/style.css: Adjust style to account for the change
844 from span elements to div elements in the details cell.
846 2011-08-15 Ben Konrath <ben@bagu.org>
848 Make the List View appearance match the mockups.
850 It doesn't match exactly but it's much better than it was.
852 * mockups/listview-contacts.html: Remove unused css classes.
853 * mockups/listview-projects.html: Remove unused css classes.
854 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
855 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
856 for mainPanel instead of VerticalPanel (table). Set style name on
857 CellTable. Set style name on Details column. Right-align Details
859 * src/main/webapp/style.css: Adjust properties to match the mockups.
861 2011-08-12 Ben Konrath <ben@bagu.org>
863 Add better support for subgroups in the details view.
865 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
866 changed FlowTable constructor.
867 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
868 support for subgroups and subgroup-titles.
869 * src/main/webapp/style.css: Add CSS class for subgroups and
872 2011-08-12 Ben Konrath <ben@bagu.org>
874 Return the top level LayoutGroup title.
876 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
878 2011-08-11 Ben Konrath <ben@bagu.org>
880 Make the TableSelector header match the mockup.
882 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
883 the layout panel. Properly lineup the table selection header with
884 the list and details view.
885 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
886 margin around the details view.
887 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
888 Rename listBox variable to tableSelector. Set id for the style sheet.
889 Use a FlowPanel instead of a HorizontalPanel.
890 * src/main/webapp/style.css: Add properties to make the TableSelector
891 box match the mockups.
893 2011-07-13 Ben Konrath <ben@bagu.org>
895 Update install script for java-libglom version change.
897 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
900 2011-07-13 Ben Konrath <ben@bagu.org>
902 Add support sub-group in the details view.
904 I also removed the code that special-cased the default details view
907 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
909 I still have to make a proper flowtable.
911 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
912 Don't special-case default details view layout.
913 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
914 addLayoutField() as I'm going to use it.
915 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
916 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
918 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
919 extracted from DetailsViewImpl.GroupPanel. Add support for
921 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
922 column count when getting the details layout.
924 2011-07-12 Ben Konrath <ben@bagu.org>
926 Set browser title with database and table titles.
928 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
929 Set the browser title when the table changes and when the activity
931 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
932 title when retrieving document info (the GlomDocument object).
933 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
934 with getter and setter methods. Remove unused convenience constructor.
935 Use default code formatting.
937 2011-07-12 Ben Konrath <ben@bagu.org>
939 Ignore LayoutItemPortals in the details view.
941 I added a new DTO for the LayoutItemPortal so that I can ignore it in
944 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
945 LayoutItemPortal layout objects.
946 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
947 LayoutItemPortal objects when retrieving the details layout.
948 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
949 file. This is an empty class and just used to get type information for
952 2011-07-12 Ben Konrath <ben@bagu.org>
954 Use java-libglom 1.17.0.
958 2011-07-11 Ben Konrath <ben@bagu.org>
960 Remove "Table:" label from table selector.
962 This matches a recent change in the Glom UI.
964 * mockups/details-contacts.html:
965 * mockups/details-projects.html:
966 * mockups/listview-contacts.html:
967 * mockups/listview-projects.html: Remove the "Table:" label from the
969 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
971 2011-07-11 Ben Konrath <ben@bagu.org>
973 Add main groups to the details view.
975 This makes things look a little nicer in the details view. The next step
976 is to implement the flowtable.
978 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
979 resources from the standard gwt css theme. Standard.css is now
980 included in OnlineGlom.html so that the online glom css rules have
981 precedence over the gwt theme.
982 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
983 the whole LayoutGroup to the DetailsView instead of just the titles.
984 * src/main/java/org/glom/web/client/ui/DetailsView.java:
985 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
986 details layout with a helper class (GroupPanel). I might extract this
987 class when I make the full flowtable.
988 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
989 string as default so I don't have to worry about NPEs when processing
991 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
992 note beside OnlineGlom.gwt.xml above).
993 * src/main/webapp/style.css: Add default font-size to body to override
994 the font-size set by the standard theme. Don't use h2 tags for
995 group-title. Create new details-cell class.
997 2011-07-08 Murray Cumming <murrayc@murrayc.com>
999 ConfiguredDocument: Set the port number too.
1001 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1002 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1003 Glom document. Presumably this worked sometimes so far because there is a
1004 default port number.
1006 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1008 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1010 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1011 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1012 correct, though we should throw an exception too.
1014 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1016 Fix a addDocuemnt typo.
1018 * src/main/java/org/glom/web/shared/Documents.java
1019 (Documents.addDocuemnt): Rename to addDocument().
1020 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1021 (OnlineGlomServiceImpl.getDocuments): Adapt.
1023 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1025 Slightly improved log output when connection fails.
1027 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1028 (ConfiguredDocument.setUsernameAndPassword):
1029 We don't know for sure if it' the username/password that's wrong, so
1030 rephrase the message.
1031 Also ouput the exception message, though it's generic in this case.
1033 2011-07-08 Ben Konrath <ben@bagu.org>
1037 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1038 added braces to a one line if statement because the Eclipse formatter
1039 was getting confused.
1041 2011-07-07 Ben Konrath <ben@bagu.org>
1043 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1045 These should really be two separate tasks but I counldn't get things to
1046 work with GWT 2.2.0 and Eclipse 3.7.
1050 * .settings/org.eclipse.jdt.core.prefs:
1051 * .settings/org.eclipse.jdt.ui.prefs:
1052 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1053 * .settings/org.eclipse.m2e.core.prefs:
1054 Add new config files. Update current files. Remove references to the
1055 webtools plugins as we're not using any of the webtools features.
1056 * .gitignore: Add logs directory which is created when running with
1058 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1059 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1060 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1062 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1064 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1066 onlineglom.properties: Add explanatory comments.
1068 * src/main/resources/onlineglom.properties: Also change the default user
1069 from ben to someuser, to avoid the risk of people thinking we just
1070 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1072 2011-06-28 Ben Konrath <ben@bagu.org>
1074 Use filename in Log for incorrect passwords.
1076 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1077 getFileName(String) method to get the filename from the URI.
1079 2011-06-28 Ben Konrath <ben@bagu.org>
1081 Add the table name to the URL token for the ListPlace.
1083 This makes things consistent between the DetailsPlace and the
1084 ListPlace. It also allows the the ListPlace to be bookmarked.
1086 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1087 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1088 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1089 Remove getDefaultListLayout(). The default layout is now returned
1090 by the getListLayout() method when the table name is an empty string.
1091 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1092 Add table name field. Change to a new ListPlace when the table
1093 has been changed. Use getListLayout() for getting the default
1095 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1096 Add table name field. Set the correct table name in the list box
1097 when loading from bookmark. This corrects a problem for the
1099 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1100 Move table name to super-class (HasSelectableTable). Move document
1101 and table URL keys to super-class in HasSelectableTable.
1102 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1103 Add table name field. Add Tokenizer class with URL key common to
1104 the subclasses (DetailsPlace and ListPlace).
1105 * src/main/java/org/glom/web/client/place/ListPlace.java:
1106 Add table name. Add code to parse the URL token.
1107 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1108 Update ListPlace construction with empty table name string.
1109 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1110 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1111 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1112 Update ListPlace construction with table name string.
1113 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1114 Change defaultTableName field to tableName to reflect how it's now
1115 used. Update the getter and setter methods.
1117 2011-06-28 Ben Konrath <ben@bagu.org>
1119 Enable the table selector in the DetailsView.
1121 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1122 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1124 Remove getDefaultDetailsLayout(). The default layout is now returned
1125 by the getDetailsLayout() method when the table name is an empty
1127 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1128 event handler for table change event. Change to using
1129 getDetailsLayout() for the default details layout.
1130 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1132 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1133 when navigating to the details place.
1135 2011-06-27 Ben Konrath <ben@bagu.org>
1137 Use filename based unique document ID in URL and for RPC.
1139 The document ID is the glom document name with spaces (' ') replaced
1140 with pluses ('+') and without the .glom extension.
1142 This change is mostly a string substitution of 'documentTitle' for
1143 'documentID'. The only code change is the addition of a Documents DTO to get the
1144 filename to document title mappings as indicated below.
1146 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1147 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1148 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1149 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1150 Use Documents DTO to create the document links in the document
1152 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1153 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1154 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1155 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1156 * src/main/java/org/glom/web/client/place/ListPlace.java:
1157 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1158 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1159 * src/main/java/org/glom/web/client/ui/ListView.java:
1160 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1161 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1162 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1163 * src/main/java/org/glom/web/server/Log.java:
1164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1165 getDocumentTitles() to getDocuments() and return the Documents DTO.
1166 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1167 transferring the filename to document title mappings.
1169 2011-06-25 Ben Konrath <ben@bagu.org>
1171 Make the authentication popup work again.
1173 This bug was introduced when I extracted ConfiguredDocument to its own class.
1175 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1176 correct success / fail status in setUsernameAndPassword().
1178 2011-06-25 Ben Konrath <ben@bagu.org>
1180 Use filename as unique key for configuring database usernames and passwords.
1182 This replaces the use of the Glom document title which could change
1183 depending on the locale. Thanks to Murray Cumming for pointing out this
1186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1187 * src/main/resources/onlineglom.properties:
1189 2011-06-24 Ben Konrath <ben@bagu.org>
1191 Pass primary key value to DetailsView.
1193 This enables the DetailsView to load the correct data.
1195 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1196 primary key value field and set in constructor. Pass primary key
1197 value to getDetailsData().
1198 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1199 variables for document title and primary key value.
1200 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1201 key value to the DetailsPlace.
1203 2011-06-24 Ben Konrath <ben@bagu.org>
1205 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1207 This allows the primary key to be retrieved by the Details button. This
1208 functionality has not been implemented yet but it's in the works.
1210 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1211 the LayoutGroup result to ListView.setCellTable instead of all of its
1212 fields individually.
1213 * src/main/java/org/glom/web/client/ui/ListView.java:
1214 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1215 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1216 get the primary key for the table.
1217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1218 index of the primary key in the LayoutGroup accounting for hidden
1219 primary keys. Rename getJavaNumberFormat() to
1220 convertToJavaNumberFormat() for consistency. Cleanup / add some
1222 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1223 field for primary key index and a field to indicate whether the
1224 primary key is hidden or not.
1226 2011-06-23 Ben Konrath <ben@bagu.org>
1228 Rename getTableData methods to getListData.
1230 This is a rename refactor for consistency with other methods.
1232 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1233 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1234 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1235 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1237 2011-06-23 Ben Konrath <ben@bagu.org>
1239 Extract the ConfiguredDocument innerclass into its own class.
1241 This makes the servlet code more object oriented.
1243 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1244 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1246 new ConfiguredDocument class.
1248 2011-06-21 Ben Konrath <ben@bagu.org>
1250 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1252 This makes things more inline with how libglom works and reduces code
1253 duplication. This refactor lays the groundwork for adding the primary key to
1254 the LayoutGroup object.
1256 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1257 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1258 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1259 Change method names to getListLayout and getDefaultListLayout for
1260 consistency. Use LayoutGroup as the DTO for the list layout instead of
1261 ColumnInfo and LayoutListTable.
1262 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1263 new method names along with the LayoutGroup object for transferring the
1265 * src/main/java/org/glom/web/client/ui/ListView.java:
1266 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1267 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1268 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1270 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1271 Replaced with LayoutGroup.
1272 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1273 expectedResultSize and defaultTableName fields which are needed for
1275 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1276 type field which is needed for the list layout but will also be
1277 useful for the details layout as things progress.
1278 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1279 Make class abstract. Remove the unnecessary
1280 getFormattingHorizontalAlignment method. Add setFormatting method.
1282 2011-06-16 Ben Konrath <ben@bagu.org>
1284 Add scripts for building and installing war.
1286 These will help when updating OnlineGlom but they're also good
1287 supplemental documentation of the build and deployment proceeding.
1289 * utils/build-onlineglom-war.sh: New file.
1290 * utils/install-onlineglom-war.sh: New file.
1292 2011-06-16 Ben Konrath <ben@bagu.org>
1294 Create wrapper class to create consistent log messages.
1296 I wrapped methods in the Log class of gwt-log to add the method names
1297 from the servlet and create consistent formatting of the document title
1298 and table names in the log messages.
1300 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1301 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1302 log methods to use methods from wrapped Log class.
1304 2011-06-16 Ben Konrath <ben@bagu.org>
1306 Remove superfluous conditional return.
1308 Thanks to Murray Cumming for pointing this out!
1310 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1312 2011-06-15 Ben Konrath <ben@bagu.org>
1314 Return an ArrayList of LayoutGroups for the Details layout.
1316 This corrects a problem with the details layout as it can have more
1317 than one top level LayoutGroup.
1319 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1320 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1321 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1322 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1323 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1324 with ArrayList of LayoutGroups for the details view layout.
1325 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1326 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1327 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1328 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1329 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1330 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1332 2011-06-14 Ben Konrath <ben@bagu.org>
1334 Use cast_dynamic method to determine the libglom LayoutItem type.
1336 This is better than finding the LayoutItem type by using the string
1337 returned from the get_part_type_name() method.
1339 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1341 2011-06-14 Ben Konrath <ben@bagu.org>
1343 Add method names to log entries in the servlet.
1345 This helps when tracking down deployment problems.
1347 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1349 2011-06-14 Ben Konrath <ben@bagu.org>
1351 Add data to the DetailsView using a hard-coded primary key value.
1353 The layout and functionality of the DetailsView is not complete. This
1354 is just a checkpoint so the patch doesn't get too big.
1356 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1357 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1358 Add getDetailsData() servlet method.
1359 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1360 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1361 LayoutFields are added to the DetailsView.
1362 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1363 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1364 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1365 take the string for the title instead of the object.
1366 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1367 Add implementation getDetailsData() along with some private helper
1369 * src/main/webapp/style.css: Add padding to details-data class. Add a
1370 details-label class with the same padding as the details-data class.
1372 2011-06-03 Ben Konrath <ben@bagu.org>
1374 Use presenter.goTo() to change to the DetailsPlace.
1376 This will make things easier when we need to open the DetailsView with
1377 data specific to the row that was clicked.
1379 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1381 2011-06-02 Ben Konrath <ben@bagu.org>
1383 Add CSS file from mockups.
1385 I'm adding this now because it's going to be useful to have when
1386 developing the DetailsView. The TableSelectionView and ListView aren't
1389 * src/main/webapp/OnlineGlom.html:
1390 * src/main/webapp/style.css:
1392 2011-06-02 Ben Konrath <ben@bagu.org>
1394 Use String.isEmpty() to check for empty string.
1396 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1398 2011-06-02 Ben Konrath <ben@bagu.org>
1400 Display main layout group titles in the DetailsView.
1402 This is the start of the DetailsActivity/DetailsView implementation.
1404 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1405 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1406 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1407 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1408 Get the layout information for the details view from the server and set
1409 the main layout group titles.
1410 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1411 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1412 Add addLayoutGroup() and addLayoutField() methods. This are just
1413 temporary methods for creating the the details view that will change
1415 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1416 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1418 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1419 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1420 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1421 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1422 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1423 Data Transfer Objects that mimic the libglom object structure. These are
1424 used for transferring the details layout but could also be used for
1425 transferring the list layout.
1427 2011-05-27 Ben Konrath <ben@bagu.org>
1429 Reset the AuthenticationPopup when clearing the ListView.
1431 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1433 2011-05-27 Ben Konrath <ben@bagu.org>
1435 Fix problem with onlineglom.properties file loading.
1437 The old way worked in Eclipse but not on the server. Loading the
1438 onlineglom.properties file now works in Eclipse and on the server.
1440 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1442 2011-05-24 Ben Konrath <ben@bagu.org>
1444 Update gwt-log from 3.1.0 to 3.1.2.
1446 Gwt-log 3.1.0 has been marked as depreciated.
1450 2011-05-24 Ben Konrath <ben@bagu.org>
1452 Add comment to ListActivity.goTo() method.
1454 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1456 2011-05-24 Ben Konrath <ben@bagu.org>
1458 Remove FIXME in convertGdkColorToHtmlColour()
1460 The Gdk::Color value returned by libglom is 16-bits per channel on both
1461 64 and 32-bit platforms.
1463 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1465 2011-05-19 Ben Konrath <ben@bagu.org>
1467 Improve performance of initial ListView load.
1469 I removed a round trip to the server for getting the default table name
1470 and then requesting information about that table. This also removes a potential
1471 problem with the table change handler not being setup in time to receive the
1472 table change event from the ListActivity.
1474 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1475 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1476 getDefaultLayoutListTable() method. Improve comments.
1477 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1478 getDefaultLayoutListTable() method instead of firing a table change
1479 event to get the table to load.
1480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1481 implementation of getDefaultLayoutListTable() method.
1482 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1485 2011-05-19 Ben Konrath <ben@bagu.org>
1487 Override toDebugString() in TableChangeEvent.
1489 This is useful to have for debugging.
1491 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1493 2011-05-19 Ben Konrath <ben@bagu.org>
1495 Add a "Back to List" link when at the DetailsPlace.
1497 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1498 Populate the CellTable based on the selected table of the ListBox if
1499 it's set otherwise use the default table. This allows the "Back to
1501 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1502 Remove Place from constructors. Add a setPlace() method. Add
1503 goToPlace() method. Set class as presenter for TableSelectionView.
1504 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1505 Use the same TableSelectionActivity when switching between the List and
1507 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1508 Subclass the new HasSelectableTablePlace. This removes some duplicate
1510 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1511 New class to represent Places that display the TableSelectionView.
1512 * src/main/java/org/glom/web/client/place/ListPlace.java:
1513 Subclass the new HasSelectableTablePlace. This removes some duplicate
1515 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1516 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1517 Add Presenter interface. Add setBackLinkVisible() method. Add
1518 setBackLink() method.
1520 2011-05-18 Ben Konrath <ben@bagu.org>
1522 Enable the "Details" buttons.
1524 Right now only an empty details view is displayed.
1526 * src/main/java/org/glom/web/client/ClientFactory.java:
1527 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1528 Add DetailsView to ClientFactory.
1529 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1530 A basic activity for the details view.
1531 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1532 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1534 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1535 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1537 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1538 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1539 unnecessary super() in constructor.
1540 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1541 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1542 really shouldn't create a new TableSelectionActivity for both the ListPlace
1543 and the DetailsPlace so this should be considered a temporary solution.
1544 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1545 New file. Represents a URL for the details view.
1546 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1547 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1548 A basic details view interface and implementation.
1549 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1550 Enable the "Details" buttons.
1552 2011-05-12 Ben Konrath <ben@bagu.org>
1554 Use a LayoutPanel with multiple display areas for main layout.
1556 This is mostly a refactor in that there are no changes from the user
1557 point of view. These changes are required so that we can swap out the list view
1558 with the details view when the user clicks the "Details" button.
1560 * src/main/java/org/glom/web/client/ClientFactory.java:
1561 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1562 OnlineGlomView. Add TableSelectionView, ListView and
1563 AuthenticationPopup.
1564 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1565 for main layout. Add display regions for main activities. Add
1566 activity manager for for main activities.
1567 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1568 file from parts of the deleted OnlineGlomActivity.
1569 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1570 New file from parts of the deleted OnlineGlomActivity.
1571 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1572 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1573 New files for app wide table change event.
1574 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1575 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1576 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1577 Activity mappers for the main activities replace the deleted app-wide
1579 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1580 Fix a spelling error in he comment.
1581 * src/main/java/org/glom/web/client/ui/ListView.java:
1582 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1583 Renamed from LayoutListView and modified for MVP. This still not a
1584 proper dumb view as prescribed by the MVP pattern but it works for now.
1585 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1586 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1587 New widget stripped out of the deleted OnlineGlomView.
1588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1589 Remove hack that is fixed by this patch.
1591 2011-05-06 Ben Konrath <ben@bagu.org>
1593 Rename OnlineGlomPlace to ListPlace.
1595 The only change besides the rename is that url will now display #list
1596 instead of #Document.
1598 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1599 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1600 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1601 * src/main/java/org/glom/web/client/place/ListPlace.java:
1602 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1604 2011-05-06 Ben Konrath <ben@bagu.org>
1606 Use Presenter for app navigation.
1608 This is the proper way to deal with Place (URL) changes with the MVP
1611 * src/main/java/org/glom/web/client/ClientFactory.java:
1612 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1613 PlaceHistoryMapper and PlaceHistoryHandler.
1614 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1615 PlaceHistoryMapper and PlaceHistoryHandler.
1616 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1617 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1618 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1619 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1620 Add Presenter interface and setPresenter methods. Rename addHyperLink
1621 to addDocumentLink taking only the document title as a parameter.
1623 2011-04-14 Ben Konrath <ben@bagu.org>
1625 Prompt for db username/password if they haven't been set.
1627 This is implemented with a popup widget that is contained within the
1628 OnlineGlomView and managed by the OnlineGlomActivity.
1630 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1631 methods for checking and setting the database username and password.
1632 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1633 new methods for checking and setting the database username and
1635 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1636 Display authentication popup if the JDBC connection to the database
1637 has not been authenticated.
1638 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1640 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1641 for dealing with the authentication popup.
1642 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1643 Implement the methods for dealing with the authentication popup.
1644 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1645 try to executed queries if the database connection hasn't been
1646 authenticated. Implement methods for checking and setting the
1647 database username and password.
1649 2011-04-12 Ben Konrath <ben@bagu.org>
1651 Make log messages a little clearer.
1653 Add a dash betweeen the document title and the table name.
1655 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1657 2011-04-12 Ben Konrath <ben@bagu.org>
1659 Protect against NPEs when cleaning up database resources.
1661 While this isn't strictly necessary because the exception is caught,
1662 not protecting against the NPEs makes it harder to find the real error
1665 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1667 2011-04-12 Ben Konrath <ben@bagu.org>
1669 Move configuration of the servlet to the constructor.
1671 The servlet will be initialized even if the database authentication
1672 information is not set or correct. I still need to add the UI for prompting
1673 the user for the authentication information when it's required.
1675 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1676 javadocs for getDocumentTitles() method.
1677 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1678 Set error message when RPC fails.
1679 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1680 glom files directory from the configuration file. Try to set the
1681 database authentication information for the specific document if it's
1682 set and works otherwise try to use the global authentication
1683 information set for the directory.
1684 * src/main/resources/onlineglom.properties: Moved from
1685 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1686 Added detailed comments for the new keys.
1688 2011-04-11 Ben Konrath <ben@bagu.org>
1690 Remove unnecessary @Override in DocumentSelectionViewImpl.
1692 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1694 2011-04-11 Ben Konrath <ben@bagu.org>
1696 Remove center alignment in DocumentSelectionView.
1698 The title element is still centred but the document titles and bottom
1699 sentence are both left-aligned.
1701 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1703 2011-04-11 Ben Konrath <ben@bagu.org>
1705 Change 'Demo' naming convention to 'Document'.
1707 This is just a rename refactor with no functional changes to the code.
1709 * src/main/java/org/glom/web/client/ClientFactory.java:
1710 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1711 * src/main/java/org/glom/web/client/OnlineGlom.java:
1712 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1713 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1714 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1715 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1716 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1717 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1718 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1719 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1720 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1721 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1723 2011-04-08 Ben Konrath <ben@bagu.org>
1725 Remove FIXME from safeLongToInt() method.
1727 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1730 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1732 2011-04-08 Ben Konrath <ben@bagu.org>
1734 Display an error if no glom documents are found in the specified directory.
1736 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1737 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1738 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1739 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1741 2011-04-08 Ben Konrath <ben@bagu.org>
1743 Add copyright header to one more file ... oops.
1745 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1747 2011-04-08 Ben Konrath <ben@bagu.org>
1749 Add copyright header to files without it.
1751 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1752 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1753 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1754 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1755 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1756 * src/main/java/org/glom/web/shared/GlomField.java:
1758 2011-04-08 Ben Konrath <ben@bagu.org>
1760 Add support for accessing multiple glom documents in the servlet.
1762 This completes the demo selection functionality.
1764 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1765 document title to methods.
1766 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1767 document title to methods.
1768 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1769 Set browser window title when the activity starts. Correct name of
1770 document title variable.
1771 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1772 Set browser window title when the activity starts. Set the table
1773 selector change handler after table selector has been set. Clear the
1774 OnlineGlomView when the activity has been stopped.
1775 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1776 document title as the place token. Use "#Document:" instead of
1777 "#OnlineGlomPlace:" in the URL.
1778 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1779 Change heading to "Online Glom"
1780 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1781 document title in RPC methods.
1782 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1783 setDocumentTitle() method. Add clear() method.
1784 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1785 setDocumentTitle() method. Implement clear() method which removes the
1786 change handler on the ListBox, clears the ListBox and clears the
1788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1789 Implement methods with document title. Keep track for the configured
1790 glom documents and their corresponding JDBC configurations in a hash
1791 table. This information is retrieved using the document title as the
1792 key in the hash table.
1793 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1794 document title field as it's no longer needed.
1796 2011-04-08 Ben Konrath <ben@bagu.org>
1798 Update the Eclipse JDT configuration.
1800 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1801 methods. Automatically add the copyright header to new files.
1803 2011-04-05 Ben Konrath <ben@bagu.org>
1805 Add new page for demo selection.
1807 This patch adds all the components required to view and start an
1808 OnlineGlom demo by clicking on the desired hyperlink. The user is
1809 able to return to the demo selection page with the browser's back
1810 button. I still need to modify the servlet to work with multiple
1811 documents so all demo links will load the file defined in the
1812 OnlineGlom.properties.
1814 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1815 This is only useful during development so we don't need to save it.
1816 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1817 get a reference to the DemoSelectionView.
1818 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1819 method to get a reference to the DemoSelectionView.
1820 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1821 default view to DemoSelectionView.
1822 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1823 to get glom document titles for glom files in a hard-coded directory.
1824 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1825 method to get glom document titles for glom files in a hard-coded
1827 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1828 Presenter for DemoSelectionView.
1829 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1830 for DemoSelectionView.
1831 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1832 Update for DemoSelectionView.
1833 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1834 Basic 'Place' implementation for the DemoSelectionView.
1835 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1836 The interface for the DemoSelectionView.
1837 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1838 The implementation of the DemoSelectionView.
1839 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1840 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1841 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1842 implementation of method to get glom document titles for glom files
1843 in a hard-coded directory.
1844 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1845 on longer being used.
1846 * src/main/webapp/glom.png: Glom logo.
1848 2011-04-05 Ben Konrath <ben@bagu.org>
1850 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1852 This is the forth and final commit of a refactor that will allow
1853 OnlineGlom to be used with multiple documents.
1855 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1856 Move RPC code from OnlineGlomViewImpl to this class.
1857 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1859 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1860 RPC code to the presenter class (the P in MVP).
1862 2011-04-04 Ben Konrath <ben@bagu.org>
1864 Start moving the existing OnlineGlom code to MVP.
1866 This work is based on the GWT MVP framework that is documented here:
1868 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1870 This is the third commit of a refactor that will allow OnlineGlom to
1871 be used with multiple documents.
1873 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1874 Interface for client factory which is used to get instances of various
1875 classes throughout the app.
1876 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1877 Implementation of client factory.
1878 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1879 initialize the MVP framework.
1880 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1881 New file. Activity manager for the main container widget. This is the
1883 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1884 Maps place (URL) to its corresponding activity.
1885 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1886 New file. This is just a place holder for a generated file.
1887 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1888 New file. Represents the URL for the main Online Glom app.
1889 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1890 for changes in LayoutListViewImpl.
1891 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1892 interface for View. Move code to OnlineGlomViewImpl class.
1893 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1894 file. Implementation of OnlineGlomView.
1895 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1896 Place resources. Use ClientFactoryImpl by default.
1898 2011-04-04 Ben Konrath <ben@bagu.org>
1900 Move View classes to their own package.
1902 This is the second commit of a refactor that will allow OnlineGlom to
1903 be used with multiple documents.
1905 * src/main/java/org/glom/web/client/OnlineGlom.java:
1906 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1907 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1909 2011-04-02 Ben Konrath <ben@bagu.org>
1911 Move UI code from the main module to its own class.
1913 This is the first commit of a refactor that will allow OnlineGlom to be
1914 used with multiple documents.
1916 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1917 references to OnlineGlom to OnlineGlomView.
1918 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1919 OnlineGlomView and instantiate it here.
1920 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1921 represents the main OnlineGlomView with one document.
1923 2011-04-01 Ben Konrath <ben@bagu.org>
1925 Fix formatting of gwt.xml and add DTD.
1927 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1929 2011-03-30 Ben Konrath <ben@bagu.org>
1931 Propperly convert gdkColor string to html colour string.
1933 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1935 2011-03-28 Ben Konrath <ben@bagu.org>
1937 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1939 This implementation matches
1940 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1941 readable and is not tied to Swig.
1943 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1945 2011-03-28 Ben Konrath <ben@bagu.org>
1947 Use read-only checkboxes for boolean field types.
1949 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1950 in the CellTable based on the field type. It currently only
1951 distinguishes between boolean and text columns but I'll need to add
1952 support for more types.
1953 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1954 column type in the ColumnInfo object. Add method to convert between the
1955 glom field type enum in ColumnInfo and the glom field type in libglom.
1956 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1958 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1959 getting and setting booleans.
1961 2011-03-25 Ben Konrath <ben@bagu.org>
1963 Don't get the Date twice from the ResultSet.
1965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1967 2011-03-25 Ben Konrath <ben@bagu.org>
1969 Cleanup code in the servlet.
1971 * TODO: Remove item about row count. Add item about testing row count
1972 query with large number of rows.
1973 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1974 spelling mistakes, change method parameter to be consistent with
1977 2011-03-25 Ben Konrath <ben@bagu.org>
1979 Add server side logging with the gwt-log library.
1981 * .gitignore: Ignore the log file we're now producing.
1982 * TODO: Add a couple TODO item for logging.
1983 * pom.xml: Add gwt-log and log4j as a dependency.
1984 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1985 logging of errors, warnings and some important info.
1986 * src/main/resources/log4j.properties: New file to configure log4j.
1988 2011-03-24 Ben Konrath <ben@bagu.org>
1990 Add a disable button for the Details view.
1992 * src/main/java/org/glom/web/client/LayoutListView.java:
1994 2011-03-22 Ben Konrath <ben@bagu.org>
1996 Use a count query to get the number of rows for the list view pager.
1998 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2000 2011-03-22 Ben Konrath <ben@bagu.org>
2002 Add more TODO information about CellTable pager positioning.
2006 2011-03-19 Ben Konrath <ben@bagu.org>
2008 Add TODO item about CellTable pager positioning.
2012 2011-03-18 Ben Konrath <ben@bagu.org>
2014 Remove unneeded GlomFieldColumn class.
2016 This is just a small code cleanup.
2018 * src/main/java/org/glom/web/client/LayoutListView.java:
2020 2011-03-18 Ben Konrath <ben@bagu.org>
2022 Use cursor mode in the query that gets data for the list view.
2024 I still need to fix the potential memory problem when getting the row
2025 count for the list view.
2027 * TODO: Add note about testing memory usage with large data sets. Add
2028 item about fixing row counting with large data sets.
2029 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2030 PostgreSQL JDBC driver into cursor mode when getting data for the
2033 2011-03-15 Ben Konrath <ben@bagu.org>
2035 Remove the GWT Container from the Eclipse build classpath.
2037 The GWT dependencies are set by Maven so this isn't needed.
2041 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2043 Added some earlier mockups to git, but not to the tarball dist.
2045 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2046 Openismus. These hopefully show how we might structure the HTML so that
2047 it can be styled easily with CSS. However, we probably need to adapt them
2048 for the CSS structure that GWT dictates for common widgets.
2050 2011-03-14 Ben Konrath <ben@bagu.org>
2052 Locate OnlineGlom.properties using the ServletContext.
2054 This is required to be able to locate the file in the deployed servlet.
2056 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2057 Configure the database and glom document in in a helper method so
2058 that the ServletContext can be used to locate OnlineGlom.properties.
2059 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2060 src/main/webapp. This is the proper location for .properites files.
2062 2011-03-12 Ben Konrath <ben@bagu.org>
2064 Add note to README about why we're compiling down to obfuscated JavaScript.
2068 2011-03-11 Ben Konrath <ben@bagu.org>
2070 Use properties file to configure servlet.
2072 This allows people to change the glom file path, db username and db
2073 password without recompiling the code.
2075 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2076 * src/main/webapp/OnlineGlom.properties:
2078 2011-03-11 Ben Konrath <ben@bagu.org>
2080 Use table fields in layout list view if the layout list is not defined.
2082 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2083 Manually create a LayoutFieldVector for the query builder using the
2084 table fields when a layout list is not defined in the glom file.
2086 2011-03-11 Ben Konrath <ben@bagu.org>
2088 Only show FIXME string for images when there's an image.
2090 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2091 in this change are some small code cleanups.
2093 2011-03-11 Ben Konrath <ben@bagu.org>
2095 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2097 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2099 2011-03-11 Ben Konrath <ben@bagu.org>
2101 Correctly set the index of the default table.
2103 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2104 Correctly set the index of the default table. Add commented out example
2107 2011-03-10 Ben Konrath <ben@bagu.org>
2109 Add comment to pom.xml about the previous change.
2111 * pom.xml: Add comment about the deployment issue so that it's obvious
2112 why java-libglom is set to the provided scope.
2114 2011-03-10 Ben Konrath <ben@bagu.org>
2116 Change java-libglom dependency from compile to provided in pom.xml.
2118 Since java-libglom uses jni it can only be loaded once and therefore
2119 must be placed in $CATALINA_HOME/lib and not included in each war.
2120 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2121 More information about this issue can be found in the Tomcat 6 release
2122 notes in the "JNI Based Applications" section:
2124 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2126 * README: Remove note about this issue. Deployment info should really
2127 be on the wiki anyway so I'll add it right now.
2128 * pom.xml: Change java-libglom dependency from compile to provided so
2129 that it's copied in to the packaged war.
2131 2011-03-09 Ben Konrath <ben@bagu.org>
2133 Change to using a neutral locale for currency, date and time formatting.
2135 This solves the problem of currency values being represented without a
2136 space between the currency code and the number (e.g. "EUR5.89" is now
2137 represented as "EUR 5.89"). More work is required when we implement
2138 a locale preference setting.
2140 * TODO: Add note about currency formatting issues with different
2142 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2143 to using the neutral ROOT locale.
2145 2011-03-09 Ben Konrath <ben@bagu.org>
2147 Add support for currency codes that are not ISO 4217 codes.
2149 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2150 the currency code defined in the glom file when it's not 3 characters
2151 long or when Java doesn't recognize the string as an ISO 4217 code.
2153 2011-03-08 Ben Konrath <ben@bagu.org>
2155 Remove test classes, launch configurations and configuration.
2157 The test stuff was getting in the way when creating the war. To make
2158 the war file you can now do 'mvn clean package'. The packaged war file
2159 will be in the target directory.
2161 * .classpath: Remove unused classpathentry for tests and i18n.
2162 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2163 property. Don't run test or i18n goals when packaging the war.
2164 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2169 * OnlineGlomTest-dev.launch:
2170 * OnlineGlomTest-prod.launch:
2171 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2172 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2174 2011-03-07 Ben Konrath <ben@bagu.org>
2176 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2178 These fixes allow me to use 'mvn deploy' to create the war file.
2180 * .classpath: This generated config has been updated by Eclipse. This
2181 change was probably triggered by me updating from Eclipse 3.6.1 to
2183 * .gitignore: Add entry to ignore the directory
2184 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2185 * .project: The generated config has been updated by Eclipse. This
2186 change was probably triggered by me updating from Eclipse 3.6.1 to
2188 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2189 so that Eclipse doesn't complain
2190 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2191 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2192 'tests' directory to 'client' directory. This is the new
2193 gwt-maven-plugin convension.
2194 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2195 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2197 2011-03-07 Ben Konrath <ben@bagu.org>
2199 Add support for horizontal alignment in the LayoutList columns.
2201 * TODO: Remove item about horizontal alignment. Add item about
2202 improvements to ColumnInfo.
2203 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2204 alignment on the columns. Use ColumnInfo RPC object get the column
2205 title and horizontal alignment.
2206 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2207 LayoutListView creation with ColumnInfo RPC object.
2208 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2209 a ColumnInfo object for every LayoutList columnn. Convert the
2210 FieldFormatting.HorizontalAlignment to the correct
2211 ColumnnInfo.HorizontatlAlignment with the new
2212 getColumnInfoHorizontalAlignment helper method.
2213 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2214 to encapsulate column information like alignment and title. This
2215 could be used to set the colour instead of on a per cell field basis.
2216 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2217 column title storage and retrieval with ColumnInfo.
2219 2011-03-04 Ben Konrath <ben@bagu.org>
2221 Add support for column sorting.
2223 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2224 AsynDataProvider to be an anonymous inner class. Use new
2225 getSortedTableData RPC method when column sort is requested. Set all
2226 columns sortable and add an AsyncHandler to activate sorting in the
2228 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2229 method getSortedTableData(). Cleanup other method signatures.
2230 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2231 new method getSortedTableData(). Cleanup other method signatures.
2232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2233 Implement getSortedTableData() and getTableData() methods by using a
2234 private helper method with the appropriate parameters filled in. Use
2235 user supplied sort clause when supplied, otherwise fall back to
2236 sorting by the primary key. Move destroy() method to be underneath
2237 constructor for readability. Cleanup comments.
2239 2011-03-03 Ben Konrath <ben@bagu.org>
2241 Add support for colour text and colour backgrounds to the layout list cells.
2243 Only the cell backgrounds are coloured which leaves a gap between the
2244 cells that isn't coloured. I need to figure out a way to set
2245 'style=background-colour:' on the whole column rather than just the
2248 * TODO: Add a note about colouring the background of the whole column.
2249 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2250 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2251 render the coloured text and backgrounds. Use GlomField[] for the row type.
2252 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2254 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2255 GlomField[] for the row type.
2256 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2257 GlomField[] for the row type. Set the text, text colour and background
2258 colour in the GlomField objects as specified in the glom document. Add
2259 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2260 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2261 the glom field text, foreground colour and background colour.
2263 2011-03-02 Ben Konrath <ben@bagu.org>
2265 Don't display hidden tables in the combo box.
2267 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2269 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2270 code to ignore hidden tables using ArrayLists for the table names and
2272 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2273 tableNames to use ArrayLists instead of String[]. Update getter and setter
2276 2011-03-01 Ben Konrath <ben@bagu.org>
2278 Add support for Date and Time number types.
2280 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2281 Implement formatting for Date and Time values. Change the default glom
2282 file to small business example.
2284 2011-03-01 Ben Konrath <ben@bagu.org>
2286 Add support for formatting glom types as specified in the glom file.
2288 Formatting isn't finished yet - I still need to add support for Date
2291 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2292 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2293 checks for null values in JDBC cleanup code and catch all exceptions
2294 instead of just SQLExceptions.
2295 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2298 2011-03-01 Ben Konrath <ben@bagu.org>
2300 Use GWT 2.2.0 instead of 2.1.1.
2302 * pom.xml: Change GWT version numbers.
2304 2011-03-01 Ben Konrath <ben@bagu.org>
2306 A few small code cleanups.
2308 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2310 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2311 unnecessary object creation in constructor.
2312 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2313 unnecessary object creation in constructor.
2315 2011-02-28 Ben Konrath <ben@bagu.org>
2317 Add file for TODO list.
2321 2011-02-18 Ben Konrath <ben@bagu.org>
2323 Enable the CellTable Pager when more than 20 rows need to be viewed.
2325 The Pager will automatically become active when the results are larger
2326 than the CellTable size which is currently set to 20 lines.
2328 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2329 name on debug statment in RPC call in LayoutListDataProvider, add
2330 numRows parameter to LayoutListView constructor, propperly set rowCount
2332 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2333 name on debug statment in RPC call, use LayoutListTable object in RPC
2334 calls, pass rowCount to LayoutListView.
2335 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2336 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2338 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2339 interface for changes in OnlineGlomService.
2340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2341 getLayoutListHeaders() to getLayoutListTable() and return
2342 LayoutListTable. Using this object allows me to pass other information
2343 about the LayoutList like the expected number of rows in the result set.
2344 The Connection object from the connection pool is now propperly closed.
2345 Only the requested number of lines are returned to the client in
2347 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2348 GlomTable and add columnTitles and numRows.
2350 2011-02-18 Ben Konrath <ben@bagu.org>
2352 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2354 This is a small performance boost. I'll use GlomTable to get the required
2355 layoutlist information.
2357 * src/main/java/org/glom/web/client/OnlineGlom.java:
2358 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2359 * src/main/java/org/glom/web/shared/GlomDocument.java:
2361 2011-02-18 Ben Konrath <ben@bagu.org>
2363 Add option to turn off formatting in JDT formatter preferences.
2365 * .settings/org.eclipse.jdt.core.prefs:
2367 2011-02-18 Ben Konrath <ben@bagu.org>
2369 Rename LayoutList to LayoutListView.
2371 I'm working towards setting things up to easily use MVP when the time
2374 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2376 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2379 2011-02-17 Ben Konrath <ben@bagu.org>
2381 Move LayoutListDataProvider class into LayoutList.java.
2383 * src/main/java/org/glom/web/client/LayoutList.java:
2385 2011-02-17 Ben Konrath <ben@bagu.org>
2387 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2389 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2391 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2392 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2393 from LibGlomServer.java.
2394 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2395 Rename from LibGlomServiceAsync.java.
2396 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2397 Rename from LibGlomServiceImpl.java.
2398 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2400 2011-02-17 Ben Konrath <ben@bagu.org>
2402 Update JDT settings.
2404 * .settings/org.eclipse.jdt.core.prefs:
2406 2011-02-17 Ben Konrath <ben@bagu.org>
2408 Move GWT-RPC objects to shared package (where they should be).
2410 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2411 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2412 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2413 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2414 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2415 org.glom.web.shared package.
2416 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2417 org.glom.web.shared package.
2418 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2419 directory in compilation to javascript.
2421 2011-02-16 Ben Konrath <ben@bagu.org>
2423 Add sort clause to the sql query that grabs table information.
2425 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2426 if one of the columns is a primary key.
2428 2011-02-16 Ben Konrath <ben@bagu.org>
2430 Disable generateAsync feature of gwt-maven.
2432 The generated interface does not correctly match the methods in LibGlomService
2433 and the generated singleton Util inner-class doesn't respect the servlet
2436 * pom.xml: Turn off generateAsync feature.
2437 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2438 with singleton Util inner-class.
2440 2011-02-14 Ben Konrath <ben@bagu.org>
2442 Add LGPL v3 licence notices.
2444 Followed directions listed here:
2445 http://www.gnu.org/licenses/gpl-howto.html
2447 * COPYING: This file is a copy of the GPL v3.
2448 * COPYING.LESSER: This file is a copy of the LGPL v3.
2449 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2451 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2453 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2455 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2457 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2459 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2461 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2464 2011-02-14 Ben Konrath <ben@bagu.org>
2466 Use ArrayList instead of Array in GWT-RPC calls.
2468 Apparently this gives a slight performance boost to the compiled
2471 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2473 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2476 2011-02-14 Ben Konrath <ben@bagu.org>
2478 Access data from a postgres db rather than the example glom file.
2480 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2481 compile down to obfuscated javascript.
2482 * pom.xml: Add c3p0 and postgres JDBC libraries.
2483 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2484 using a postgres db accessed through the c3p0 connection pooling library.
2486 2011-02-14 Ben Konrath <ben@bagu.org>
2488 Update Java formatter settings.
2490 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2492 2011-02-02 Ben Konrath <ben@bagu.org>
2494 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2496 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2498 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2499 the compiled webapp directory that Eclipse uses as we're using Maven now.
2500 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2501 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2503 * pom.xml: Format file, change target Java version to 1.6.
2505 2011-02-02 Ben Konrath <ben@bagu.org>
2507 Add information about a deployment related issue.
2509 * README: Add Notes section with the problem outlined.
2511 2011-02-02 Ben Konrath <ben@bagu.org>
2513 Call Glom.libglom_deinit() when the servlet is shutdown.
2515 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2516 Glom.libglom_deinit() to destroy() method.
2518 2011-01-28 Ben Konrath <ben@bagu.org>
2520 Use generated Util class to get the RPC Async interface.
2522 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2524 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2525 getInstance() method to get a reference to the RPC Async interface.
2526 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2527 getInstance() method to get a reference to the RPC Async interface, remove
2528 the now unused getLibGlomServiceProxy() method.
2530 2011-01-27 Ben Konrath <ben@bagu.org>
2532 Cleanup ChangeLog entry from previous commit.
2534 * ChangeLog: Group logical changes together and add comments.
2536 2011-01-25 Ben Konrath <ben@bagu.org>
2538 Convert to gwt-maven project.
2540 * .gitignore: Update for new project structure.
2541 * README: New file with a link to the online documentation.
2542 * pom.xml: The generated maven configuration file with some tweaks.
2544 Add / update Eclipse settings. These files are a merge of the files that
2545 were generated with the gwt-maven plugin and the files we were previously
2549 * .settings/.jsdtscope:
2550 * .settings/com.google.gdt.eclipse.core.prefs:
2551 * .settings/com.google.gwt.eclipse.core.prefs:
2552 * .settings/org.eclipse.jdt.core.prefs:
2553 * .settings/org.eclipse.wst.common.component:
2554 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2555 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2556 * .settings/org.maven.ide.eclipse.prefs:
2557 * OnlineGlomTest-dev.launch:
2558 * OnlineGlomTest-prod.launch:
2560 Java source files moved from the 'src' directory to the directory structure
2562 * src/main/java/org/glom/web/client/GlomDocument.java:
2563 * src/main/java/org/glom/web/client/GlomTable.java:
2564 * src/main/java/org/glom/web/client/LayoutList.java:
2565 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2566 * src/main/java/org/glom/web/client/LibGlomService.java:
2567 * src/main/java/org/glom/web/client/OnlineGlom.java:
2568 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2570 Non-functional property file used for translations. I included this as
2571 reminder that it's something I need to sort out.
2572 * src/main/resources/org/glom/web/client/Messages.properties:
2574 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2575 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2577 The servlet configuration files moved from the 'war' directory.
2578 * src/main/webapp/OnlineGlom.css:
2579 * src/main/webapp/OnlineGlom.html:
2580 * src/main/webapp/WEB-INF/web.xml:
2582 Generated test files with most of the code commented out. I included these
2583 so that it's easy to add tests when we're ready for them.
2584 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2585 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2587 2011-01-25 Ben Konrath <ben@bagu.org>
2589 Remove unused println.
2591 * src/org/glom/web/server/LibGlomServiceImpl.java:
2593 2011-01-25 Ben Konrath <ben@bagu.org>
2595 Add project specific JDT settings.
2597 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2598 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2600 2011-01-25 Ben Konrath <ben@bagu.org>
2602 Populate celltable with example data.
2604 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2605 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2606 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2607 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2608 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2609 asynchronously gets the example data.
2610 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2611 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2612 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2613 curently selected table to be retrieved by other widgets.
2614 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2615 implement getTableData() in a hacky way. This method needs to be updated
2616 to grab information from the database when database creating is
2619 2011-01-20 Ben Konrath <ben@bagu.org>
2621 Set table headers when table dropBox changes.
2623 * src/org/glom/web/client/GlomDocument.java: Correct some method
2625 * src/org/glom/web/client/LibGlomService.java: Add method
2626 to get list layout field names.
2627 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2628 to get list layout field names.
2629 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2630 widget for list layout table.
2631 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2632 the table drop box and add new updateTable() method to asynchronously
2633 get the layout list field names for the currently selected table.
2634 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2635 implementation of getLayoutListHeaders() method.
2636 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2638 2011-01-18 Ben Konrath <ben@bagu.org>
2640 Make a listBox with table titles instead of the flexTable demo.
2642 This is the start of something more useful.
2644 * .classpath: Exclude a bunch of packages from the JVM that are
2645 getting in the way of the Eclipse content assist.
2646 * src/org/glom/web/client/GlomDocument.java:
2647 * src/org/glom/web/client/GlomTable.java:
2648 * src/org/glom/web/client/LibGlomService.java:
2649 * src/org/glom/web/client/LibGlomServiceAsync.java:
2650 * src/org/glom/web/client/OnlineGlom.java:
2651 * src/org/glom/web/server/LibGlomServiceImpl.java:
2652 * war/OnlineGlom.html:
2653 * war/WEB-INF/web.xml:
2655 211-01-13 Ben Konrath <ben@bagu.org>
2657 Update to new java-libglom API.
2659 * .gitignore: Ignore OnlineGlom.war.
2660 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2662 2010-12-20 Ben Konrath <ben@bagu.org>
2664 Add some basic style to the table listing.
2666 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2667 header, print useful error message on async callback failure.
2668 * war/OnlineGlom.css: Add style for table header, remove defaults
2669 provided by the Eclipse project wizard.
2671 2010-12-20 Ben Konrath <ben@bagu.org>
2673 Load example file from installed glom dir.
2675 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2676 provided by java-libglom to find the example file.
2678 2010-12-20 Ben Konrath <ben@bagu.org>
2680 Update Eclipse settings.
2683 * .settings/com.google.gdt.eclipse.core.prefs:
2684 * .settings/com.google.gwt.eclipse.core.prefs:
2686 2010-12-17 Ben Konrath <ben@bagu.org>
2690 * .classpath: New file.
2691 * .gitignore: New file.
2692 * .project: New file.
2693 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2694 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2695 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2696 * src/org/glom/web/client/GlomTable.java: New file.
2697 * src/org/glom/web/client/OnlineGlom.java: New file.
2698 * src/org/glom/web/client/TableNameService.java: New file.
2699 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2700 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2701 * war/OnlineGlom.css: New file.
2702 * war/OnlineGlom.html: New file.
2703 * war/WEB-INF/web.xml: New file.
2704 * war/images/glom.png: New file.