1 2011-09-06 Ben Konrath <ben@bagu.org>
3 Create separate classes for list table code and the data provider.
5 As part of this refactor, I also split up the code a bit to make it
8 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
9 table code to two new classes (below).
10 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
11 with code from ListViewImpl.
12 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
13 New file with code from ListViewImpl.
15 2011-09-06 Ben Konrath <ben@bagu.org>
17 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
19 This fixes the LayoutItemPortal DTO to match the libglom layout object
22 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
24 2011-09-01 Ben Konrath <ben@bagu.org>
26 Set title of Portals in the Details View.
28 * pom.xml: Bump required version of java-libglom to 1.17.1.
29 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
30 widget creation to its own class. Add comments to constructor.
31 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
32 The code is mostly from the Group class with the title now set.
33 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
34 title of Portal. Update some comments. Fix some code formatting.
36 2011-09-01 Ben Konrath <ben@bagu.org>
38 Remove TODO comment for the flow table column width.
40 The flow table column width is working correctly and doesn't need to be
41 changed. See this mailing list post for more info:
43 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
45 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
47 2011-08-27 Ben Konrath <ben@bagu.org>
49 Add document title (database name) to top of the browser page.
51 I added the document title to the TableSelecitonView but that will
52 change if / when we add a view that doesn't require table selection.
54 * mockups/details-contacts.html:
55 * mockups/details-projects.html:
56 * mockups/listview-contacts.html:
57 * mockups/listview-projects.html:
58 * mockups/style.css: Add document title to mockups to keep things
60 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
61 sizes to account for the document title.
62 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
63 Set the document title when it has been retrieved from the server.
64 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
65 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
66 and implement setDocumentTitle(String) method.
67 * src/main/webapp/style.css: Add ID for document title style.
69 2011-08-25 Ben Konrath <ben@bagu.org>
71 Add NavigationType enum to LayoutItemPortal DTO.
73 This is the start of adding support for Portals to the Details View.
75 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
76 LayoutItem_Portal.navigation_type enum from libglom to
77 LayoutItemPortal.NavigationType enum.
78 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
79 NavigationType enum, field for storing the NavigationType and getter
82 2011-08-25 Ben Konrath <ben@bagu.org>
84 Implement the flow table layout in the Details View.
86 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
87 FlowTable to Group to account for the renamed class.
88 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
89 File. This is a container widget that implements the Glom details view
91 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
92 org/glom/web/client/ui/FlowTable.java.
93 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
94 so that the size of the subgroups are a closer match to the size of
95 the Glom subgroups. This makes the flowtable layout match the layout
96 in Glom for the Music Collection example file.
98 2011-08-16 Ben Konrath <ben@bagu.org>
100 Create container element for LayoutItemPortal in Details View.
102 This will help me develop the layout for the FlowTable.
104 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
105 fieldPanel variable to detailsCell.
107 2011-08-15 Ben Konrath <ben@bagu.org>
109 Set the height of the data element in the Details View.
111 I changed the InlineLabels (text in a span element) to Labels (text in
112 a div element) so that I could set the height of the details-data
113 elements instead of the details-cell parent elements. This allows the
114 the details-data element to display the correct height if style is
115 applied that shows the height.
117 This change has the added benefit of allowing the order of the labels
118 and data elements to be changed for right-to-left languages.
120 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
121 InlineLabels to Labels.
122 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
123 InlineLabels to Labels. Set the height of the data element.
124 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
125 multiline text height in the Formatting DTO.
126 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
127 for multiline height along with getter and setter methods.
128 * src/main/webapp/style.css: Adjust style to account for the change
129 from span elements to div elements in the details cell.
131 2011-08-15 Ben Konrath <ben@bagu.org>
133 Make the List View appearance match the mockups.
135 It doesn't match exactly but it's much better than it was.
137 * mockups/listview-contacts.html: Remove unused css classes.
138 * mockups/listview-projects.html: Remove unused css classes.
139 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
140 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
141 for mainPanel instead of VerticalPanel (table). Set style name on
142 CellTable. Set style name on Details column. Right-align Details
144 * src/main/webapp/style.css: Adjust properties to match the mockups.
146 2011-08-12 Ben Konrath <ben@bagu.org>
148 Add better support for subgroups in the details view.
150 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
151 changed FlowTable constructor.
152 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
153 support for subgroups and subgroup-titles.
154 * src/main/webapp/style.css: Add CSS class for subgroups and
157 2011-08-12 Ben Konrath <ben@bagu.org>
159 Return the top level LayoutGroup title.
161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
163 2011-08-11 Ben Konrath <ben@bagu.org>
165 Make the TableSelector header match the mockup.
167 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
168 the layout panel. Properly lineup the table selection header with
169 the list and details view.
170 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
171 margin around the details view.
172 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
173 Rename listBox variable to tableSelector. Set id for the style sheet.
174 Use a FlowPanel instead of a HorizontalPanel.
175 * src/main/webapp/style.css: Add properties to make the TableSelector
176 box match the mockups.
178 2011-07-13 Ben Konrath <ben@bagu.org>
180 Update install script for java-libglom version change.
182 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
185 2011-07-13 Ben Konrath <ben@bagu.org>
187 Add support sub-group in the details view.
189 I also removed the code that special-cased the default details view
192 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
194 I still have to make a proper flowtable.
196 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
197 Don't special-case default details view layout.
198 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
199 addLayoutField() as I'm going to use it.
200 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
201 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
203 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
204 extracted from DetailsViewImpl.GroupPanel. Add support for
206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
207 column count when getting the details layout.
209 2011-07-12 Ben Konrath <ben@bagu.org>
211 Set browser title with database and table titles.
213 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
214 Set the browser title when the table changes and when the activity
216 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
217 title when retrieving document info (the GlomDocument object).
218 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
219 with getter and setter methods. Remove unused convenience constructor.
220 Use default code formatting.
222 2011-07-12 Ben Konrath <ben@bagu.org>
224 Ignore LayoutItemPortals in the details view.
226 I added a new DTO for the LayoutItemPortal so that I can ignore it in
229 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
230 LayoutItemPortal layout objects.
231 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
232 LayoutItemPortal objects when retrieving the details layout.
233 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
234 file. This is an empty class and just used to get type information for
237 2011-07-12 Ben Konrath <ben@bagu.org>
239 Use java-libglom 1.17.0.
243 2011-07-11 Ben Konrath <ben@bagu.org>
245 Remove "Table:" label from table selector.
247 This matches a recent change in the Glom UI.
249 * mockups/details-contacts.html:
250 * mockups/details-projects.html:
251 * mockups/listview-contacts.html:
252 * mockups/listview-projects.html: Remove the "Table:" label from the
254 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
256 2011-07-11 Ben Konrath <ben@bagu.org>
258 Add main groups to the details view.
260 This makes things look a little nicer in the details view. The next step
261 is to implement the flowtable.
263 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
264 resources from the standard gwt css theme. Standard.css is now
265 included in OnlineGlom.html so that the online glom css rules have
266 precedence over the gwt theme.
267 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
268 the whole LayoutGroup to the DetailsView instead of just the titles.
269 * src/main/java/org/glom/web/client/ui/DetailsView.java:
270 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
271 details layout with a helper class (GroupPanel). I might extract this
272 class when I make the full flowtable.
273 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
274 string as default so I don't have to worry about NPEs when processing
276 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
277 note beside OnlineGlom.gwt.xml above).
278 * src/main/webapp/style.css: Add default font-size to body to override
279 the font-size set by the standard theme. Don't use h2 tags for
280 group-title. Create new details-cell class.
282 2011-07-08 Murray Cumming <murrayc@murrayc.com>
284 ConfiguredDocument: Set the port number too.
286 * src/main/java/org/glom/web/server/ConfiguredDocument.java
287 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
288 Glom document. Presumably this worked sometimes so far because there is a
291 2011-07-08 Murray Cumming <murrayc@murrayc.com>
293 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
295 * src/main/java/org/glom/web/server/ConfiguredDocument.java
296 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
297 correct, though we should throw an exception too.
299 2011-07-08 Murray Cumming <murrayc@murrayc.com>
301 Fix a addDocuemnt typo.
303 * src/main/java/org/glom/web/shared/Documents.java
304 (Documents.addDocuemnt): Rename to addDocument().
305 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
306 (OnlineGlomServiceImpl.getDocuments): Adapt.
308 2011-07-08 Murray Cumming <murrayc@murrayc.com>
310 Slightly improved log output when connection fails.
312 * src/main/java/org/glom/web/server/ConfiguredDocument.java
313 (ConfiguredDocument.setUsernameAndPassword):
314 We don't know for sure if it' the username/password that's wrong, so
315 rephrase the message.
316 Also ouput the exception message, though it's generic in this case.
318 2011-07-08 Ben Konrath <ben@bagu.org>
322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
323 added braces to a one line if statement because the Eclipse formatter
324 was getting confused.
326 2011-07-07 Ben Konrath <ben@bagu.org>
328 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
330 These should really be two separate tasks but I counldn't get things to
331 work with GWT 2.2.0 and Eclipse 3.7.
335 * .settings/org.eclipse.jdt.core.prefs:
336 * .settings/org.eclipse.jdt.ui.prefs:
337 * .settings/org.eclipse.ltk.core.refactoring.prefs:
338 * .settings/org.eclipse.m2e.core.prefs:
339 Add new config files. Update current files. Remove references to the
340 webtools plugins as we're not using any of the webtools features.
341 * .gitignore: Add logs directory which is created when running with
343 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
344 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
345 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
347 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
349 2011-07-07 Murray Cumming <murrayc@murrayc.com>
351 onlineglom.properties: Add explanatory comments.
353 * src/main/resources/onlineglom.properties: Also change the default user
354 from ben to someuser, to avoid the risk of people thinking we just
355 stupidly hard-coded a locale path, when they see that on stderr or in a log.
357 2011-06-28 Ben Konrath <ben@bagu.org>
359 Use filename in Log for incorrect passwords.
361 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
362 getFileName(String) method to get the filename from the URI.
364 2011-06-28 Ben Konrath <ben@bagu.org>
366 Add the table name to the URL token for the ListPlace.
368 This makes things consistent between the DetailsPlace and the
369 ListPlace. It also allows the the ListPlace to be bookmarked.
371 * src/main/java/org/glom/web/client/OnlineGlomService.java:
372 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
373 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
374 Remove getDefaultListLayout(). The default layout is now returned
375 by the getListLayout() method when the table name is an empty string.
376 * src/main/java/org/glom/web/client/activity/ListActivity.java:
377 Add table name field. Change to a new ListPlace when the table
378 has been changed. Use getListLayout() for getting the default
380 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
381 Add table name field. Set the correct table name in the list box
382 when loading from bookmark. This corrects a problem for the
384 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
385 Move table name to super-class (HasSelectableTable). Move document
386 and table URL keys to super-class in HasSelectableTable.
387 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
388 Add table name field. Add Tokenizer class with URL key common to
389 the subclasses (DetailsPlace and ListPlace).
390 * src/main/java/org/glom/web/client/place/ListPlace.java:
391 Add table name. Add code to parse the URL token.
392 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
393 Update ListPlace construction with empty table name string.
394 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
395 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
396 Change setTableSelectedIndex(int) to setSelectedTableName(String).
397 Update ListPlace construction with table name string.
398 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
399 Change defaultTableName field to tableName to reflect how it's now
400 used. Update the getter and setter methods.
402 2011-06-28 Ben Konrath <ben@bagu.org>
404 Enable the table selector in the DetailsView.
406 * src/main/java/org/glom/web/client/OnlineGlomService.java:
407 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
408 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
409 Remove getDefaultDetailsLayout(). The default layout is now returned
410 by the getDetailsLayout() method when the table name is an empty
412 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
413 event handler for table change event. Change to using
414 getDetailsLayout() for the default details layout.
415 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
417 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
418 when navigating to the details place.
420 2011-06-27 Ben Konrath <ben@bagu.org>
422 Use filename based unique document ID in URL and for RPC.
424 The document ID is the glom document name with spaces (' ') replaced
425 with pluses ('+') and without the .glom extension.
427 This change is mostly a string substitution of 'documentTitle' for
428 'documentID'. The only code change is the addition of a Documents DTO to get the
429 filename to document title mappings as indicated below.
431 * src/main/java/org/glom/web/client/OnlineGlomService.java:
432 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
433 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
434 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
435 Use Documents DTO to create the document links in the document
437 * src/main/java/org/glom/web/client/activity/ListActivity.java:
438 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
439 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
440 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
441 * src/main/java/org/glom/web/client/place/ListPlace.java:
442 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
443 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
444 * src/main/java/org/glom/web/client/ui/ListView.java:
445 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
446 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
447 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
448 * src/main/java/org/glom/web/server/Log.java:
449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
450 getDocumentTitles() to getDocuments() and return the Documents DTO.
451 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
452 transferring the filename to document title mappings.
454 2011-06-25 Ben Konrath <ben@bagu.org>
456 Make the authentication popup work again.
458 This bug was introduced when I extracted ConfiguredDocument to its own class.
460 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
461 correct success / fail status in setUsernameAndPassword().
463 2011-06-25 Ben Konrath <ben@bagu.org>
465 Use filename as unique key for configuring database usernames and passwords.
467 This replaces the use of the Glom document title which could change
468 depending on the locale. Thanks to Murray Cumming for pointing out this
471 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
472 * src/main/resources/onlineglom.properties:
474 2011-06-24 Ben Konrath <ben@bagu.org>
476 Pass primary key value to DetailsView.
478 This enables the DetailsView to load the correct data.
480 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
481 primary key value field and set in constructor. Pass primary key
482 value to getDetailsData().
483 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
484 variables for document title and primary key value.
485 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
486 key value to the DetailsPlace.
488 2011-06-24 Ben Konrath <ben@bagu.org>
490 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
492 This allows the primary key to be retrieved by the Details button. This
493 functionality has not been implemented yet but it's in the works.
495 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
496 the LayoutGroup result to ListView.setCellTable instead of all of its
498 * src/main/java/org/glom/web/client/ui/ListView.java:
499 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
500 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
501 get the primary key for the table.
502 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
503 index of the primary key in the LayoutGroup accounting for hidden
504 primary keys. Rename getJavaNumberFormat() to
505 convertToJavaNumberFormat() for consistency. Cleanup / add some
507 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
508 field for primary key index and a field to indicate whether the
509 primary key is hidden or not.
511 2011-06-23 Ben Konrath <ben@bagu.org>
513 Rename getTableData methods to getListData.
515 This is a rename refactor for consistency with other methods.
517 * src/main/java/org/glom/web/client/OnlineGlomService.java:
518 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
519 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
520 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
522 2011-06-23 Ben Konrath <ben@bagu.org>
524 Extract the ConfiguredDocument innerclass into its own class.
526 This makes the servlet code more object oriented.
528 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
529 from private ConfiguredDocument class in OnlineGlomServiceImpl.
530 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
531 new ConfiguredDocument class.
533 2011-06-21 Ben Konrath <ben@bagu.org>
535 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
537 This makes things more inline with how libglom works and reduces code
538 duplication. This refactor lays the groundwork for adding the primary key to
539 the LayoutGroup object.
541 * src/main/java/org/glom/web/client/OnlineGlomService.java:
542 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
544 Change method names to getListLayout and getDefaultListLayout for
545 consistency. Use LayoutGroup as the DTO for the list layout instead of
546 ColumnInfo and LayoutListTable.
547 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
548 new method names along with the LayoutGroup object for transferring the
550 * src/main/java/org/glom/web/client/ui/ListView.java:
551 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
552 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
553 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
555 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
556 Replaced with LayoutGroup.
557 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
558 expectedResultSize and defaultTableName fields which are needed for
560 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
561 type field which is needed for the list layout but will also be
562 useful for the details layout as things progress.
563 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
564 Make class abstract. Remove the unnecessary
565 getFormattingHorizontalAlignment method. Add setFormatting method.
567 2011-06-16 Ben Konrath <ben@bagu.org>
569 Add scripts for building and installing war.
571 These will help when updating OnlineGlom but they're also good
572 supplemental documentation of the build and deployment proceeding.
574 * utils/build-onlineglom-war.sh: New file.
575 * utils/install-onlineglom-war.sh: New file.
577 2011-06-16 Ben Konrath <ben@bagu.org>
579 Create wrapper class to create consistent log messages.
581 I wrapped methods in the Log class of gwt-log to add the method names
582 from the servlet and create consistent formatting of the document title
583 and table names in the log messages.
585 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
587 log methods to use methods from wrapped Log class.
589 2011-06-16 Ben Konrath <ben@bagu.org>
591 Remove superfluous conditional return.
593 Thanks to Murray Cumming for pointing this out!
595 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
597 2011-06-15 Ben Konrath <ben@bagu.org>
599 Return an ArrayList of LayoutGroups for the Details layout.
601 This corrects a problem with the details layout as it can have more
602 than one top level LayoutGroup.
604 * src/main/java/org/glom/web/client/OnlineGlomService.java:
605 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
606 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
607 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
608 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
609 with ArrayList of LayoutGroups for the details view layout.
610 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
611 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
612 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
613 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
614 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
615 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
617 2011-06-14 Ben Konrath <ben@bagu.org>
619 Use cast_dynamic method to determine the libglom LayoutItem type.
621 This is better than finding the LayoutItem type by using the string
622 returned from the get_part_type_name() method.
624 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
626 2011-06-14 Ben Konrath <ben@bagu.org>
628 Add method names to log entries in the servlet.
630 This helps when tracking down deployment problems.
632 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
634 2011-06-14 Ben Konrath <ben@bagu.org>
636 Add data to the DetailsView using a hard-coded primary key value.
638 The layout and functionality of the DetailsView is not complete. This
639 is just a checkpoint so the patch doesn't get too big.
641 * src/main/java/org/glom/web/client/OnlineGlomService.java:
642 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
643 Add getDetailsData() servlet method.
644 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
645 Add RPC to getDetailsData(). Change the way the LayoutGroups and
646 LayoutFields are added to the DetailsView.
647 * src/main/java/org/glom/web/client/ui/DetailsView.java:
648 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
649 Add setData() method. Change addLayoutGroup() and addLayoutField() to
650 take the string for the title instead of the object.
651 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
652 Add implementation getDetailsData() along with some private helper
654 * src/main/webapp/style.css: Add padding to details-data class. Add a
655 details-label class with the same padding as the details-data class.
657 2011-06-03 Ben Konrath <ben@bagu.org>
659 Use presenter.goTo() to change to the DetailsPlace.
661 This will make things easier when we need to open the DetailsView with
662 data specific to the row that was clicked.
664 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
666 2011-06-02 Ben Konrath <ben@bagu.org>
668 Add CSS file from mockups.
670 I'm adding this now because it's going to be useful to have when
671 developing the DetailsView. The TableSelectionView and ListView aren't
674 * src/main/webapp/OnlineGlom.html:
675 * src/main/webapp/style.css:
677 2011-06-02 Ben Konrath <ben@bagu.org>
679 Use String.isEmpty() to check for empty string.
681 * src/main/java/org/glom/web/client/activity/ListActivity.java:
683 2011-06-02 Ben Konrath <ben@bagu.org>
685 Display main layout group titles in the DetailsView.
687 This is the start of the DetailsActivity/DetailsView implementation.
689 * src/main/java/org/glom/web/client/OnlineGlomService.java:
690 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
691 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
692 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
693 Get the layout information for the details view from the server and set
694 the main layout group titles.
695 * src/main/java/org/glom/web/client/ui/DetailsView.java:
696 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
697 Add addLayoutGroup() and addLayoutField() methods. This are just
698 temporary methods for creating the the details view that will change
700 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
701 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
703 * src/main/java/org/glom/web/shared/layout/Formatting.java:
704 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
705 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
706 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
707 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
708 Data Transfer Objects that mimic the libglom object structure. These are
709 used for transferring the details layout but could also be used for
710 transferring the list layout.
712 2011-05-27 Ben Konrath <ben@bagu.org>
714 Reset the AuthenticationPopup when clearing the ListView.
716 * src/main/java/org/glom/web/client/activity/ListActivity.java:
718 2011-05-27 Ben Konrath <ben@bagu.org>
720 Fix problem with onlineglom.properties file loading.
722 The old way worked in Eclipse but not on the server. Loading the
723 onlineglom.properties file now works in Eclipse and on the server.
725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
727 2011-05-24 Ben Konrath <ben@bagu.org>
729 Update gwt-log from 3.1.0 to 3.1.2.
731 Gwt-log 3.1.0 has been marked as depreciated.
735 2011-05-24 Ben Konrath <ben@bagu.org>
737 Add comment to ListActivity.goTo() method.
739 * src/main/java/org/glom/web/client/activity/ListActivity.java:
741 2011-05-24 Ben Konrath <ben@bagu.org>
743 Remove FIXME in convertGdkColorToHtmlColour()
745 The Gdk::Color value returned by libglom is 16-bits per channel on both
746 64 and 32-bit platforms.
748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
750 2011-05-19 Ben Konrath <ben@bagu.org>
752 Improve performance of initial ListView load.
754 I removed a round trip to the server for getting the default table name
755 and then requesting information about that table. This also removes a potential
756 problem with the table change handler not being setup in time to receive the
757 table change event from the ListActivity.
759 * src/main/java/org/glom/web/client/OnlineGlomService.java:
760 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
761 getDefaultLayoutListTable() method. Improve comments.
762 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
763 getDefaultLayoutListTable() method instead of firing a table change
764 event to get the table to load.
765 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
766 implementation of getDefaultLayoutListTable() method.
767 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
770 2011-05-19 Ben Konrath <ben@bagu.org>
772 Override toDebugString() in TableChangeEvent.
774 This is useful to have for debugging.
776 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
778 2011-05-19 Ben Konrath <ben@bagu.org>
780 Add a "Back to List" link when at the DetailsPlace.
782 * src/main/java/org/glom/web/client/activity/ListActivity.java:
783 Populate the CellTable based on the selected table of the ListBox if
784 it's set otherwise use the default table. This allows the "Back to
786 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
787 Remove Place from constructors. Add a setPlace() method. Add
788 goToPlace() method. Set class as presenter for TableSelectionView.
789 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
790 Use the same TableSelectionActivity when switching between the List and
792 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
793 Subclass the new HasSelectableTablePlace. This removes some duplicate
795 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
796 New class to represent Places that display the TableSelectionView.
797 * src/main/java/org/glom/web/client/place/ListPlace.java:
798 Subclass the new HasSelectableTablePlace. This removes some duplicate
800 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
801 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
802 Add Presenter interface. Add setBackLinkVisible() method. Add
803 setBackLink() method.
805 2011-05-18 Ben Konrath <ben@bagu.org>
807 Enable the "Details" buttons.
809 Right now only an empty details view is displayed.
811 * src/main/java/org/glom/web/client/ClientFactory.java:
812 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
813 Add DetailsView to ClientFactory.
814 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
815 A basic activity for the details view.
816 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
817 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
819 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
820 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
822 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
823 Create a new DetailsActivity when a DetailsPlace is requested. Remove
824 unnecessary super() in constructor.
825 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
826 Create a new TableSelectionActivity when a DetailsPlace is requested. We
827 really shouldn't create a new TableSelectionActivity for both the ListPlace
828 and the DetailsPlace so this should be considered a temporary solution.
829 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
830 New file. Represents a URL for the details view.
831 * src/main/java/org/glom/web/client/ui/DetailsView.java:
832 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
833 A basic details view interface and implementation.
834 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
835 Enable the "Details" buttons.
837 2011-05-12 Ben Konrath <ben@bagu.org>
839 Use a LayoutPanel with multiple display areas for main layout.
841 This is mostly a refactor in that there are no changes from the user
842 point of view. These changes are required so that we can swap out the list view
843 with the details view when the user clicks the "Details" button.
845 * src/main/java/org/glom/web/client/ClientFactory.java:
846 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
847 OnlineGlomView. Add TableSelectionView, ListView and
849 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
850 for main layout. Add display regions for main activities. Add
851 activity manager for for main activities.
852 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
853 file from parts of the deleted OnlineGlomActivity.
854 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
855 New file from parts of the deleted OnlineGlomActivity.
856 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
857 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
858 New files for app wide table change event.
859 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
860 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
861 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
862 Activity mappers for the main activities replace the deleted app-wide
864 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
865 Fix a spelling error in he comment.
866 * src/main/java/org/glom/web/client/ui/ListView.java:
867 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
868 Renamed from LayoutListView and modified for MVP. This still not a
869 proper dumb view as prescribed by the MVP pattern but it works for now.
870 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
871 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
872 New widget stripped out of the deleted OnlineGlomView.
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 Remove hack that is fixed by this patch.
876 2011-05-06 Ben Konrath <ben@bagu.org>
878 Rename OnlineGlomPlace to ListPlace.
880 The only change besides the rename is that url will now display #list
881 instead of #Document.
883 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
884 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
885 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
886 * src/main/java/org/glom/web/client/place/ListPlace.java:
887 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
889 2011-05-06 Ben Konrath <ben@bagu.org>
891 Use Presenter for app navigation.
893 This is the proper way to deal with Place (URL) changes with the MVP
896 * src/main/java/org/glom/web/client/ClientFactory.java:
897 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
898 PlaceHistoryMapper and PlaceHistoryHandler.
899 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
900 PlaceHistoryMapper and PlaceHistoryHandler.
901 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
902 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
903 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
904 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
905 Add Presenter interface and setPresenter methods. Rename addHyperLink
906 to addDocumentLink taking only the document title as a parameter.
908 2011-04-14 Ben Konrath <ben@bagu.org>
910 Prompt for db username/password if they haven't been set.
912 This is implemented with a popup widget that is contained within the
913 OnlineGlomView and managed by the OnlineGlomActivity.
915 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
916 methods for checking and setting the database username and password.
917 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
918 new methods for checking and setting the database username and
920 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
921 Display authentication popup if the JDBC connection to the database
922 has not been authenticated.
923 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
925 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
926 for dealing with the authentication popup.
927 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
928 Implement the methods for dealing with the authentication popup.
929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
930 try to executed queries if the database connection hasn't been
931 authenticated. Implement methods for checking and setting the
932 database username and password.
934 2011-04-12 Ben Konrath <ben@bagu.org>
936 Make log messages a little clearer.
938 Add a dash betweeen the document title and the table name.
940 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
942 2011-04-12 Ben Konrath <ben@bagu.org>
944 Protect against NPEs when cleaning up database resources.
946 While this isn't strictly necessary because the exception is caught,
947 not protecting against the NPEs makes it harder to find the real error
950 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
952 2011-04-12 Ben Konrath <ben@bagu.org>
954 Move configuration of the servlet to the constructor.
956 The servlet will be initialized even if the database authentication
957 information is not set or correct. I still need to add the UI for prompting
958 the user for the authentication information when it's required.
960 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
961 javadocs for getDocumentTitles() method.
962 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
963 Set error message when RPC fails.
964 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
965 glom files directory from the configuration file. Try to set the
966 database authentication information for the specific document if it's
967 set and works otherwise try to use the global authentication
968 information set for the directory.
969 * src/main/resources/onlineglom.properties: Moved from
970 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
971 Added detailed comments for the new keys.
973 2011-04-11 Ben Konrath <ben@bagu.org>
975 Remove unnecessary @Override in DocumentSelectionViewImpl.
977 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
979 2011-04-11 Ben Konrath <ben@bagu.org>
981 Remove center alignment in DocumentSelectionView.
983 The title element is still centred but the document titles and bottom
984 sentence are both left-aligned.
986 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
988 2011-04-11 Ben Konrath <ben@bagu.org>
990 Change 'Demo' naming convention to 'Document'.
992 This is just a rename refactor with no functional changes to the code.
994 * src/main/java/org/glom/web/client/ClientFactory.java:
995 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
996 * src/main/java/org/glom/web/client/OnlineGlom.java:
997 * src/main/java/org/glom/web/client/OnlineGlomService.java:
998 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
999 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1000 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1001 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1002 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1003 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1004 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1005 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1008 2011-04-08 Ben Konrath <ben@bagu.org>
1010 Remove FIXME from safeLongToInt() method.
1012 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1015 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1017 2011-04-08 Ben Konrath <ben@bagu.org>
1019 Display an error if no glom documents are found in the specified directory.
1021 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1022 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1023 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1024 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1026 2011-04-08 Ben Konrath <ben@bagu.org>
1028 Add copyright header to one more file ... oops.
1030 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1032 2011-04-08 Ben Konrath <ben@bagu.org>
1034 Add copyright header to files without it.
1036 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1037 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1038 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1039 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1040 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1041 * src/main/java/org/glom/web/shared/GlomField.java:
1043 2011-04-08 Ben Konrath <ben@bagu.org>
1045 Add support for accessing multiple glom documents in the servlet.
1047 This completes the demo selection functionality.
1049 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1050 document title to methods.
1051 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1052 document title to methods.
1053 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1054 Set browser window title when the activity starts. Correct name of
1055 document title variable.
1056 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1057 Set browser window title when the activity starts. Set the table
1058 selector change handler after table selector has been set. Clear the
1059 OnlineGlomView when the activity has been stopped.
1060 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1061 document title as the place token. Use "#Document:" instead of
1062 "#OnlineGlomPlace:" in the URL.
1063 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1064 Change heading to "Online Glom"
1065 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1066 document title in RPC methods.
1067 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1068 setDocumentTitle() method. Add clear() method.
1069 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1070 setDocumentTitle() method. Implement clear() method which removes the
1071 change handler on the ListBox, clears the ListBox and clears the
1073 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1074 Implement methods with document title. Keep track for the configured
1075 glom documents and their corresponding JDBC configurations in a hash
1076 table. This information is retrieved using the document title as the
1077 key in the hash table.
1078 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1079 document title field as it's no longer needed.
1081 2011-04-08 Ben Konrath <ben@bagu.org>
1083 Update the Eclipse JDT configuration.
1085 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1086 methods. Automatically add the copyright header to new files.
1088 2011-04-05 Ben Konrath <ben@bagu.org>
1090 Add new page for demo selection.
1092 This patch adds all the components required to view and start an
1093 OnlineGlom demo by clicking on the desired hyperlink. The user is
1094 able to return to the demo selection page with the browser's back
1095 button. I still need to modify the servlet to work with multiple
1096 documents so all demo links will load the file defined in the
1097 OnlineGlom.properties.
1099 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1100 This is only useful during development so we don't need to save it.
1101 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1102 get a reference to the DemoSelectionView.
1103 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1104 method to get a reference to the DemoSelectionView.
1105 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1106 default view to DemoSelectionView.
1107 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1108 to get glom document titles for glom files in a hard-coded directory.
1109 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1110 method to get glom document titles for glom files in a hard-coded
1112 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1113 Presenter for DemoSelectionView.
1114 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1115 for DemoSelectionView.
1116 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1117 Update for DemoSelectionView.
1118 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1119 Basic 'Place' implementation for the DemoSelectionView.
1120 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1121 The interface for the DemoSelectionView.
1122 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1123 The implementation of the DemoSelectionView.
1124 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1125 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1126 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1127 implementation of method to get glom document titles for glom files
1128 in a hard-coded directory.
1129 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1130 on longer being used.
1131 * src/main/webapp/glom.png: Glom logo.
1133 2011-04-05 Ben Konrath <ben@bagu.org>
1135 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1137 This is the forth and final commit of a refactor that will allow
1138 OnlineGlom to be used with multiple documents.
1140 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1141 Move RPC code from OnlineGlomViewImpl to this class.
1142 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1144 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1145 RPC code to the presenter class (the P in MVP).
1147 2011-04-04 Ben Konrath <ben@bagu.org>
1149 Start moving the existing OnlineGlom code to MVP.
1151 This work is based on the GWT MVP framework that is documented here:
1153 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1155 This is the third commit of a refactor that will allow OnlineGlom to
1156 be used with multiple documents.
1158 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1159 Interface for client factory which is used to get instances of various
1160 classes throughout the app.
1161 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1162 Implementation of client factory.
1163 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1164 initialize the MVP framework.
1165 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1166 New file. Activity manager for the main container widget. This is the
1168 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1169 Maps place (URL) to its corresponding activity.
1170 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1171 New file. This is just a place holder for a generated file.
1172 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1173 New file. Represents the URL for the main Online Glom app.
1174 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1175 for changes in LayoutListViewImpl.
1176 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1177 interface for View. Move code to OnlineGlomViewImpl class.
1178 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1179 file. Implementation of OnlineGlomView.
1180 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1181 Place resources. Use ClientFactoryImpl by default.
1183 2011-04-04 Ben Konrath <ben@bagu.org>
1185 Move View classes to their own package.
1187 This is the second commit of a refactor that will allow OnlineGlom to
1188 be used with multiple documents.
1190 * src/main/java/org/glom/web/client/OnlineGlom.java:
1191 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1192 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1194 2011-04-02 Ben Konrath <ben@bagu.org>
1196 Move UI code from the main module to its own class.
1198 This is the first commit of a refactor that will allow OnlineGlom to be
1199 used with multiple documents.
1201 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1202 references to OnlineGlom to OnlineGlomView.
1203 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1204 OnlineGlomView and instantiate it here.
1205 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1206 represents the main OnlineGlomView with one document.
1208 2011-04-01 Ben Konrath <ben@bagu.org>
1210 Fix formatting of gwt.xml and add DTD.
1212 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1214 2011-03-30 Ben Konrath <ben@bagu.org>
1216 Propperly convert gdkColor string to html colour string.
1218 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1220 2011-03-28 Ben Konrath <ben@bagu.org>
1222 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1224 This implementation matches
1225 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1226 readable and is not tied to Swig.
1228 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1230 2011-03-28 Ben Konrath <ben@bagu.org>
1232 Use read-only checkboxes for boolean field types.
1234 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1235 in the CellTable based on the field type. It currently only
1236 distinguishes between boolean and text columns but I'll need to add
1237 support for more types.
1238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1239 column type in the ColumnInfo object. Add method to convert between the
1240 glom field type enum in ColumnInfo and the glom field type in libglom.
1241 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1243 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1244 getting and setting booleans.
1246 2011-03-25 Ben Konrath <ben@bagu.org>
1248 Don't get the Date twice from the ResultSet.
1250 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1252 2011-03-25 Ben Konrath <ben@bagu.org>
1254 Cleanup code in the servlet.
1256 * TODO: Remove item about row count. Add item about testing row count
1257 query with large number of rows.
1258 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1259 spelling mistakes, change method parameter to be consistent with
1262 2011-03-25 Ben Konrath <ben@bagu.org>
1264 Add server side logging with the gwt-log library.
1266 * .gitignore: Ignore the log file we're now producing.
1267 * TODO: Add a couple TODO item for logging.
1268 * pom.xml: Add gwt-log and log4j as a dependency.
1269 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1270 logging of errors, warnings and some important info.
1271 * src/main/resources/log4j.properties: New file to configure log4j.
1273 2011-03-24 Ben Konrath <ben@bagu.org>
1275 Add a disable button for the Details view.
1277 * src/main/java/org/glom/web/client/LayoutListView.java:
1279 2011-03-22 Ben Konrath <ben@bagu.org>
1281 Use a count query to get the number of rows for the list view pager.
1283 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1285 2011-03-22 Ben Konrath <ben@bagu.org>
1287 Add more TODO information about CellTable pager positioning.
1291 2011-03-19 Ben Konrath <ben@bagu.org>
1293 Add TODO item about CellTable pager positioning.
1297 2011-03-18 Ben Konrath <ben@bagu.org>
1299 Remove unneeded GlomFieldColumn class.
1301 This is just a small code cleanup.
1303 * src/main/java/org/glom/web/client/LayoutListView.java:
1305 2011-03-18 Ben Konrath <ben@bagu.org>
1307 Use cursor mode in the query that gets data for the list view.
1309 I still need to fix the potential memory problem when getting the row
1310 count for the list view.
1312 * TODO: Add note about testing memory usage with large data sets. Add
1313 item about fixing row counting with large data sets.
1314 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1315 PostgreSQL JDBC driver into cursor mode when getting data for the
1318 2011-03-15 Ben Konrath <ben@bagu.org>
1320 Remove the GWT Container from the Eclipse build classpath.
1322 The GWT dependencies are set by Maven so this isn't needed.
1326 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1328 Added some earlier mockups to git, but not to the tarball dist.
1330 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1331 Openismus. These hopefully show how we might structure the HTML so that
1332 it can be styled easily with CSS. However, we probably need to adapt them
1333 for the CSS structure that GWT dictates for common widgets.
1335 2011-03-14 Ben Konrath <ben@bagu.org>
1337 Locate OnlineGlom.properties using the ServletContext.
1339 This is required to be able to locate the file in the deployed servlet.
1341 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1342 Configure the database and glom document in in a helper method so
1343 that the ServletContext can be used to locate OnlineGlom.properties.
1344 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1345 src/main/webapp. This is the proper location for .properites files.
1347 2011-03-12 Ben Konrath <ben@bagu.org>
1349 Add note to README about why we're compiling down to obfuscated JavaScript.
1353 2011-03-11 Ben Konrath <ben@bagu.org>
1355 Use properties file to configure servlet.
1357 This allows people to change the glom file path, db username and db
1358 password without recompiling the code.
1360 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1361 * src/main/webapp/OnlineGlom.properties:
1363 2011-03-11 Ben Konrath <ben@bagu.org>
1365 Use table fields in layout list view if the layout list is not defined.
1367 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1368 Manually create a LayoutFieldVector for the query builder using the
1369 table fields when a layout list is not defined in the glom file.
1371 2011-03-11 Ben Konrath <ben@bagu.org>
1373 Only show FIXME string for images when there's an image.
1375 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1376 in this change are some small code cleanups.
1378 2011-03-11 Ben Konrath <ben@bagu.org>
1380 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1384 2011-03-11 Ben Konrath <ben@bagu.org>
1386 Correctly set the index of the default table.
1388 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1389 Correctly set the index of the default table. Add commented out example
1392 2011-03-10 Ben Konrath <ben@bagu.org>
1394 Add comment to pom.xml about the previous change.
1396 * pom.xml: Add comment about the deployment issue so that it's obvious
1397 why java-libglom is set to the provided scope.
1399 2011-03-10 Ben Konrath <ben@bagu.org>
1401 Change java-libglom dependency from compile to provided in pom.xml.
1403 Since java-libglom uses jni it can only be loaded once and therefore
1404 must be placed in $CATALINA_HOME/lib and not included in each war.
1405 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1406 More information about this issue can be found in the Tomcat 6 release
1407 notes in the "JNI Based Applications" section:
1409 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1411 * README: Remove note about this issue. Deployment info should really
1412 be on the wiki anyway so I'll add it right now.
1413 * pom.xml: Change java-libglom dependency from compile to provided so
1414 that it's copied in to the packaged war.
1416 2011-03-09 Ben Konrath <ben@bagu.org>
1418 Change to using a neutral locale for currency, date and time formatting.
1420 This solves the problem of currency values being represented without a
1421 space between the currency code and the number (e.g. "EUR5.89" is now
1422 represented as "EUR 5.89"). More work is required when we implement
1423 a locale preference setting.
1425 * TODO: Add note about currency formatting issues with different
1427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1428 to using the neutral ROOT locale.
1430 2011-03-09 Ben Konrath <ben@bagu.org>
1432 Add support for currency codes that are not ISO 4217 codes.
1434 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1435 the currency code defined in the glom file when it's not 3 characters
1436 long or when Java doesn't recognize the string as an ISO 4217 code.
1438 2011-03-08 Ben Konrath <ben@bagu.org>
1440 Remove test classes, launch configurations and configuration.
1442 The test stuff was getting in the way when creating the war. To make
1443 the war file you can now do 'mvn clean package'. The packaged war file
1444 will be in the target directory.
1446 * .classpath: Remove unused classpathentry for tests and i18n.
1447 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1448 property. Don't run test or i18n goals when packaging the war.
1449 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1454 * OnlineGlomTest-dev.launch:
1455 * OnlineGlomTest-prod.launch:
1456 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1457 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1459 2011-03-07 Ben Konrath <ben@bagu.org>
1461 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1463 These fixes allow me to use 'mvn deploy' to create the war file.
1465 * .classpath: This generated config has been updated by Eclipse. This
1466 change was probably triggered by me updating from Eclipse 3.6.1 to
1468 * .gitignore: Add entry to ignore the directory
1469 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1470 * .project: The generated config has been updated by Eclipse. This
1471 change was probably triggered by me updating from Eclipse 3.6.1 to
1473 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1474 so that Eclipse doesn't complain
1475 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1476 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1477 'tests' directory to 'client' directory. This is the new
1478 gwt-maven-plugin convension.
1479 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1480 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1482 2011-03-07 Ben Konrath <ben@bagu.org>
1484 Add support for horizontal alignment in the LayoutList columns.
1486 * TODO: Remove item about horizontal alignment. Add item about
1487 improvements to ColumnInfo.
1488 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1489 alignment on the columns. Use ColumnInfo RPC object get the column
1490 title and horizontal alignment.
1491 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1492 LayoutListView creation with ColumnInfo RPC object.
1493 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1494 a ColumnInfo object for every LayoutList columnn. Convert the
1495 FieldFormatting.HorizontalAlignment to the correct
1496 ColumnnInfo.HorizontatlAlignment with the new
1497 getColumnInfoHorizontalAlignment helper method.
1498 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1499 to encapsulate column information like alignment and title. This
1500 could be used to set the colour instead of on a per cell field basis.
1501 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1502 column title storage and retrieval with ColumnInfo.
1504 2011-03-04 Ben Konrath <ben@bagu.org>
1506 Add support for column sorting.
1508 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1509 AsynDataProvider to be an anonymous inner class. Use new
1510 getSortedTableData RPC method when column sort is requested. Set all
1511 columns sortable and add an AsyncHandler to activate sorting in the
1513 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1514 method getSortedTableData(). Cleanup other method signatures.
1515 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1516 new method getSortedTableData(). Cleanup other method signatures.
1517 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1518 Implement getSortedTableData() and getTableData() methods by using a
1519 private helper method with the appropriate parameters filled in. Use
1520 user supplied sort clause when supplied, otherwise fall back to
1521 sorting by the primary key. Move destroy() method to be underneath
1522 constructor for readability. Cleanup comments.
1524 2011-03-03 Ben Konrath <ben@bagu.org>
1526 Add support for colour text and colour backgrounds to the layout list cells.
1528 Only the cell backgrounds are coloured which leaves a gap between the
1529 cells that isn't coloured. I need to figure out a way to set
1530 'style=background-colour:' on the whole column rather than just the
1533 * TODO: Add a note about colouring the background of the whole column.
1534 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1535 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1536 render the coloured text and backgrounds. Use GlomField[] for the row type.
1537 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1539 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1540 GlomField[] for the row type.
1541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1542 GlomField[] for the row type. Set the text, text colour and background
1543 colour in the GlomField objects as specified in the glom document. Add
1544 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1545 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1546 the glom field text, foreground colour and background colour.
1548 2011-03-02 Ben Konrath <ben@bagu.org>
1550 Don't display hidden tables in the combo box.
1552 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1555 code to ignore hidden tables using ArrayLists for the table names and
1557 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1558 tableNames to use ArrayLists instead of String[]. Update getter and setter
1561 2011-03-01 Ben Konrath <ben@bagu.org>
1563 Add support for Date and Time number types.
1565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1566 Implement formatting for Date and Time values. Change the default glom
1567 file to small business example.
1569 2011-03-01 Ben Konrath <ben@bagu.org>
1571 Add support for formatting glom types as specified in the glom file.
1573 Formatting isn't finished yet - I still need to add support for Date
1576 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1577 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1578 checks for null values in JDBC cleanup code and catch all exceptions
1579 instead of just SQLExceptions.
1580 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1583 2011-03-01 Ben Konrath <ben@bagu.org>
1585 Use GWT 2.2.0 instead of 2.1.1.
1587 * pom.xml: Change GWT version numbers.
1589 2011-03-01 Ben Konrath <ben@bagu.org>
1591 A few small code cleanups.
1593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1595 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1596 unnecessary object creation in constructor.
1597 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1598 unnecessary object creation in constructor.
1600 2011-02-28 Ben Konrath <ben@bagu.org>
1602 Add file for TODO list.
1606 2011-02-18 Ben Konrath <ben@bagu.org>
1608 Enable the CellTable Pager when more than 20 rows need to be viewed.
1610 The Pager will automatically become active when the results are larger
1611 than the CellTable size which is currently set to 20 lines.
1613 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1614 name on debug statment in RPC call in LayoutListDataProvider, add
1615 numRows parameter to LayoutListView constructor, propperly set rowCount
1617 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1618 name on debug statment in RPC call, use LayoutListTable object in RPC
1619 calls, pass rowCount to LayoutListView.
1620 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1621 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1623 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1624 interface for changes in OnlineGlomService.
1625 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1626 getLayoutListHeaders() to getLayoutListTable() and return
1627 LayoutListTable. Using this object allows me to pass other information
1628 about the LayoutList like the expected number of rows in the result set.
1629 The Connection object from the connection pool is now propperly closed.
1630 Only the requested number of lines are returned to the client in
1632 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1633 GlomTable and add columnTitles and numRows.
1635 2011-02-18 Ben Konrath <ben@bagu.org>
1637 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1639 This is a small performance boost. I'll use GlomTable to get the required
1640 layoutlist information.
1642 * src/main/java/org/glom/web/client/OnlineGlom.java:
1643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1644 * src/main/java/org/glom/web/shared/GlomDocument.java:
1646 2011-02-18 Ben Konrath <ben@bagu.org>
1648 Add option to turn off formatting in JDT formatter preferences.
1650 * .settings/org.eclipse.jdt.core.prefs:
1652 2011-02-18 Ben Konrath <ben@bagu.org>
1654 Rename LayoutList to LayoutListView.
1656 I'm working towards setting things up to easily use MVP when the time
1659 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1661 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1664 2011-02-17 Ben Konrath <ben@bagu.org>
1666 Move LayoutListDataProvider class into LayoutList.java.
1668 * src/main/java/org/glom/web/client/LayoutList.java:
1670 2011-02-17 Ben Konrath <ben@bagu.org>
1672 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1674 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1676 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1677 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1678 from LibGlomServer.java.
1679 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1680 Rename from LibGlomServiceAsync.java.
1681 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1682 Rename from LibGlomServiceImpl.java.
1683 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1685 2011-02-17 Ben Konrath <ben@bagu.org>
1687 Update JDT settings.
1689 * .settings/org.eclipse.jdt.core.prefs:
1691 2011-02-17 Ben Konrath <ben@bagu.org>
1693 Move GWT-RPC objects to shared package (where they should be).
1695 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1696 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1697 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1698 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1699 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1700 org.glom.web.shared package.
1701 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1702 org.glom.web.shared package.
1703 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1704 directory in compilation to javascript.
1706 2011-02-16 Ben Konrath <ben@bagu.org>
1708 Add sort clause to the sql query that grabs table information.
1710 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1711 if one of the columns is a primary key.
1713 2011-02-16 Ben Konrath <ben@bagu.org>
1715 Disable generateAsync feature of gwt-maven.
1717 The generated interface does not correctly match the methods in LibGlomService
1718 and the generated singleton Util inner-class doesn't respect the servlet
1721 * pom.xml: Turn off generateAsync feature.
1722 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1723 with singleton Util inner-class.
1725 2011-02-14 Ben Konrath <ben@bagu.org>
1727 Add LGPL v3 licence notices.
1729 Followed directions listed here:
1730 http://www.gnu.org/licenses/gpl-howto.html
1732 * COPYING: This file is a copy of the GPL v3.
1733 * COPYING.LESSER: This file is a copy of the LGPL v3.
1734 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1736 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1738 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1740 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1742 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1744 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1746 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1749 2011-02-14 Ben Konrath <ben@bagu.org>
1751 Use ArrayList instead of Array in GWT-RPC calls.
1753 Apparently this gives a slight performance boost to the compiled
1756 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1758 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1761 2011-02-14 Ben Konrath <ben@bagu.org>
1763 Access data from a postgres db rather than the example glom file.
1765 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1766 compile down to obfuscated javascript.
1767 * pom.xml: Add c3p0 and postgres JDBC libraries.
1768 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1769 using a postgres db accessed through the c3p0 connection pooling library.
1771 2011-02-14 Ben Konrath <ben@bagu.org>
1773 Update Java formatter settings.
1775 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1777 2011-02-02 Ben Konrath <ben@bagu.org>
1779 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1781 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1783 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1784 the compiled webapp directory that Eclipse uses as we're using Maven now.
1785 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1786 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1788 * pom.xml: Format file, change target Java version to 1.6.
1790 2011-02-02 Ben Konrath <ben@bagu.org>
1792 Add information about a deployment related issue.
1794 * README: Add Notes section with the problem outlined.
1796 2011-02-02 Ben Konrath <ben@bagu.org>
1798 Call Glom.libglom_deinit() when the servlet is shutdown.
1800 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1801 Glom.libglom_deinit() to destroy() method.
1803 2011-01-28 Ben Konrath <ben@bagu.org>
1805 Use generated Util class to get the RPC Async interface.
1807 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1809 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1810 getInstance() method to get a reference to the RPC Async interface.
1811 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1812 getInstance() method to get a reference to the RPC Async interface, remove
1813 the now unused getLibGlomServiceProxy() method.
1815 2011-01-27 Ben Konrath <ben@bagu.org>
1817 Cleanup ChangeLog entry from previous commit.
1819 * ChangeLog: Group logical changes together and add comments.
1821 2011-01-25 Ben Konrath <ben@bagu.org>
1823 Convert to gwt-maven project.
1825 * .gitignore: Update for new project structure.
1826 * README: New file with a link to the online documentation.
1827 * pom.xml: The generated maven configuration file with some tweaks.
1829 Add / update Eclipse settings. These files are a merge of the files that
1830 were generated with the gwt-maven plugin and the files we were previously
1834 * .settings/.jsdtscope:
1835 * .settings/com.google.gdt.eclipse.core.prefs:
1836 * .settings/com.google.gwt.eclipse.core.prefs:
1837 * .settings/org.eclipse.jdt.core.prefs:
1838 * .settings/org.eclipse.wst.common.component:
1839 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1840 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1841 * .settings/org.maven.ide.eclipse.prefs:
1842 * OnlineGlomTest-dev.launch:
1843 * OnlineGlomTest-prod.launch:
1845 Java source files moved from the 'src' directory to the directory structure
1847 * src/main/java/org/glom/web/client/GlomDocument.java:
1848 * src/main/java/org/glom/web/client/GlomTable.java:
1849 * src/main/java/org/glom/web/client/LayoutList.java:
1850 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1851 * src/main/java/org/glom/web/client/LibGlomService.java:
1852 * src/main/java/org/glom/web/client/OnlineGlom.java:
1853 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1855 Non-functional property file used for translations. I included this as
1856 reminder that it's something I need to sort out.
1857 * src/main/resources/org/glom/web/client/Messages.properties:
1859 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1860 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1862 The servlet configuration files moved from the 'war' directory.
1863 * src/main/webapp/OnlineGlom.css:
1864 * src/main/webapp/OnlineGlom.html:
1865 * src/main/webapp/WEB-INF/web.xml:
1867 Generated test files with most of the code commented out. I included these
1868 so that it's easy to add tests when we're ready for them.
1869 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1870 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1872 2011-01-25 Ben Konrath <ben@bagu.org>
1874 Remove unused println.
1876 * src/org/glom/web/server/LibGlomServiceImpl.java:
1878 2011-01-25 Ben Konrath <ben@bagu.org>
1880 Add project specific JDT settings.
1882 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1883 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1885 2011-01-25 Ben Konrath <ben@bagu.org>
1887 Populate celltable with example data.
1889 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1890 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1891 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1892 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1893 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1894 asynchronously gets the example data.
1895 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1896 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1897 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1898 curently selected table to be retrieved by other widgets.
1899 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1900 implement getTableData() in a hacky way. This method needs to be updated
1901 to grab information from the database when database creating is
1904 2011-01-20 Ben Konrath <ben@bagu.org>
1906 Set table headers when table dropBox changes.
1908 * src/org/glom/web/client/GlomDocument.java: Correct some method
1910 * src/org/glom/web/client/LibGlomService.java: Add method
1911 to get list layout field names.
1912 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1913 to get list layout field names.
1914 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1915 widget for list layout table.
1916 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1917 the table drop box and add new updateTable() method to asynchronously
1918 get the layout list field names for the currently selected table.
1919 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1920 implementation of getLayoutListHeaders() method.
1921 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1923 2011-01-18 Ben Konrath <ben@bagu.org>
1925 Make a listBox with table titles instead of the flexTable demo.
1927 This is the start of something more useful.
1929 * .classpath: Exclude a bunch of packages from the JVM that are
1930 getting in the way of the Eclipse content assist.
1931 * src/org/glom/web/client/GlomDocument.java:
1932 * src/org/glom/web/client/GlomTable.java:
1933 * src/org/glom/web/client/LibGlomService.java:
1934 * src/org/glom/web/client/LibGlomServiceAsync.java:
1935 * src/org/glom/web/client/OnlineGlom.java:
1936 * src/org/glom/web/server/LibGlomServiceImpl.java:
1937 * war/OnlineGlom.html:
1938 * war/WEB-INF/web.xml:
1940 211-01-13 Ben Konrath <ben@bagu.org>
1942 Update to new java-libglom API.
1944 * .gitignore: Ignore OnlineGlom.war.
1945 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1947 2010-12-20 Ben Konrath <ben@bagu.org>
1949 Add some basic style to the table listing.
1951 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1952 header, print useful error message on async callback failure.
1953 * war/OnlineGlom.css: Add style for table header, remove defaults
1954 provided by the Eclipse project wizard.
1956 2010-12-20 Ben Konrath <ben@bagu.org>
1958 Load example file from installed glom dir.
1960 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1961 provided by java-libglom to find the example file.
1963 2010-12-20 Ben Konrath <ben@bagu.org>
1965 Update Eclipse settings.
1968 * .settings/com.google.gdt.eclipse.core.prefs:
1969 * .settings/com.google.gwt.eclipse.core.prefs:
1971 2010-12-17 Ben Konrath <ben@bagu.org>
1975 * .classpath: New file.
1976 * .gitignore: New file.
1977 * .project: New file.
1978 * .settings/com.google.gdt.eclipse.core.prefs: New file.
1979 * .settings/com.google.gwt.eclipse.core.prefs: New file.
1980 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1981 * src/org/glom/web/client/GlomTable.java: New file.
1982 * src/org/glom/web/client/OnlineGlom.java: New file.
1983 * src/org/glom/web/client/TableNameService.java: New file.
1984 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1985 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1986 * war/OnlineGlom.css: New file.
1987 * war/OnlineGlom.html: New file.
1988 * war/WEB-INF/web.xml: New file.
1989 * war/images/glom.png: New file.