1 2011-09-20 Ben Konrath <ben@bagu.org>
3 Log error message if no documents are found in the configured directory.
5 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
6 Extract the glom file extension string to a private static final class
7 variable (mostly as syntactic sugar). Accept a minor formatting change.
8 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
9 the example glom.document.directory configuration property to make it
10 more clear that it can any directory, not just the home directory.
12 2011-09-18 Ben Konrath <ben@bagu.org>
14 Add related lists to details view.
16 The related list table has support for paging and sorting just like the
17 table in the list view.
19 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
20 SQL queries for the related list tables.
21 * src/main/java/org/glom/web/client/OnlineGlomService.java:
22 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
23 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
24 Rename getList methods to getListView and add comments. Remove
25 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
26 it being unused. Add methods: getDetailsLayoutAndData(),
27 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
28 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
29 Create the layout and set the data for the fields in one async call
30 instead of two. Create related lists where appropriate.
31 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
32 for method name changes in OnlineGlomService.
33 * src/main/java/org/glom/web/client/ui/DetailsView.java:
34 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
35 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
37 * src/main/java/org/glom/web/client/ui/ListView.java:
38 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
39 tableName from setCellTable(). Create a ListViewTable instead of
41 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
42 represent a data field in the details view.
43 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
44 from addDetailsCell() to Field class. Keep track of the Fields and
45 Portals in the details view.
46 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
47 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
48 and add a method to get it. Add method to set the contents of the
50 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
51 New class for related list tables. This class has the data provider
52 for the related list table.
53 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
54 abstract class which is the base class for the ListViewTable and the
56 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
57 New class for list view tables. This class has the data provider for
59 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
60 methods for related list tables. Add more information to the
61 LayoutItemField and LayoutItemPortal DTOs.
62 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
63 Remove debugging print statement.
64 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
65 Remove debugging print statements. Add primary key field to SQL count
67 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
68 Remove unnecessary LayoutFieldVector parameter from
69 getResultSizeOfSQLQuery() method.
70 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
71 New class for related list table database access.
72 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
73 class that is a wrapper DTO for details view layout and data.
74 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
75 new 'fromField' string to this DTO.
76 * src/main/webapp/style.css: Remove bottom margin and override top
79 2011-09-15 Ben Konrath <ben@bagu.org>
81 Breakup the OnlineGlomServiceImpl class to make it more manageable.
83 This sets things up to make it easier to add the data retrieval for
84 related lists (portals). No user noticeable changes were made with
87 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
88 class has the code to retrieve the layouts and access the
89 database using the new database helper classes.
90 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
91 Most of the functionality has been removed from this class. This
92 class now represents the public interface for the client side
93 code. It also deals with configuring the servlet and cleaning
94 things up when the servlet is stopped.
95 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
96 of static methods into this utility class.
97 * src/main/java/org/glom/web/server/database/DBAccess.java:
98 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
99 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
100 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
101 These classes have the database retrieval code. The class hierarchy
102 has been setup to make it easy to reuse code for similar
105 2011-09-06 Ben Konrath <ben@bagu.org>
107 Create separate classes for list table code and the data provider.
109 As part of this refactor, I also split up the code a bit to make it
112 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
113 table code to two new classes (below).
114 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
115 with code from ListViewImpl.
116 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
117 New file with code from ListViewImpl.
119 2011-09-06 Ben Konrath <ben@bagu.org>
121 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
123 This fixes the LayoutItemPortal DTO to match the libglom layout object
126 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
128 2011-09-01 Ben Konrath <ben@bagu.org>
130 Set title of Portals in the Details View.
132 * pom.xml: Bump required version of java-libglom to 1.17.1.
133 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
134 widget creation to its own class. Add comments to constructor.
135 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
136 The code is mostly from the Group class with the title now set.
137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
138 title of Portal. Update some comments. Fix some code formatting.
140 2011-09-01 Ben Konrath <ben@bagu.org>
142 Remove TODO comment for the flow table column width.
144 The flow table column width is working correctly and doesn't need to be
145 changed. See this mailing list post for more info:
147 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
149 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
151 2011-08-27 Ben Konrath <ben@bagu.org>
153 Add document title (database name) to top of the browser page.
155 I added the document title to the TableSelecitonView but that will
156 change if / when we add a view that doesn't require table selection.
158 * mockups/details-contacts.html:
159 * mockups/details-projects.html:
160 * mockups/listview-contacts.html:
161 * mockups/listview-projects.html:
162 * mockups/style.css: Add document title to mockups to keep things
164 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
165 sizes to account for the document title.
166 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
167 Set the document title when it has been retrieved from the server.
168 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
169 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
170 and implement setDocumentTitle(String) method.
171 * src/main/webapp/style.css: Add ID for document title style.
173 2011-08-25 Ben Konrath <ben@bagu.org>
175 Add NavigationType enum to LayoutItemPortal DTO.
177 This is the start of adding support for Portals to the Details View.
179 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
180 LayoutItem_Portal.navigation_type enum from libglom to
181 LayoutItemPortal.NavigationType enum.
182 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
183 NavigationType enum, field for storing the NavigationType and getter
186 2011-08-25 Ben Konrath <ben@bagu.org>
188 Implement the flow table layout in the Details View.
190 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
191 FlowTable to Group to account for the renamed class.
192 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
193 File. This is a container widget that implements the Glom details view
194 flow table behaviour.
195 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
196 org/glom/web/client/ui/FlowTable.java.
197 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
198 so that the size of the subgroups are a closer match to the size of
199 the Glom subgroups. This makes the flowtable layout match the layout
200 in Glom for the Music Collection example file.
202 2011-08-16 Ben Konrath <ben@bagu.org>
204 Create container element for LayoutItemPortal in Details View.
206 This will help me develop the layout for the FlowTable.
208 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
209 fieldPanel variable to detailsCell.
211 2011-08-15 Ben Konrath <ben@bagu.org>
213 Set the height of the data element in the Details View.
215 I changed the InlineLabels (text in a span element) to Labels (text in
216 a div element) so that I could set the height of the details-data
217 elements instead of the details-cell parent elements. This allows the
218 the details-data element to display the correct height if style is
219 applied that shows the height.
221 This change has the added benefit of allowing the order of the labels
222 and data elements to be changed for right-to-left languages.
224 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
225 InlineLabels to Labels.
226 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
227 InlineLabels to Labels. Set the height of the data element.
228 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
229 multiline text height in the Formatting DTO.
230 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
231 for multiline height along with getter and setter methods.
232 * src/main/webapp/style.css: Adjust style to account for the change
233 from span elements to div elements in the details cell.
235 2011-08-15 Ben Konrath <ben@bagu.org>
237 Make the List View appearance match the mockups.
239 It doesn't match exactly but it's much better than it was.
241 * mockups/listview-contacts.html: Remove unused css classes.
242 * mockups/listview-projects.html: Remove unused css classes.
243 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
244 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
245 for mainPanel instead of VerticalPanel (table). Set style name on
246 CellTable. Set style name on Details column. Right-align Details
248 * src/main/webapp/style.css: Adjust properties to match the mockups.
250 2011-08-12 Ben Konrath <ben@bagu.org>
252 Add better support for subgroups in the details view.
254 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
255 changed FlowTable constructor.
256 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
257 support for subgroups and subgroup-titles.
258 * src/main/webapp/style.css: Add CSS class for subgroups and
261 2011-08-12 Ben Konrath <ben@bagu.org>
263 Return the top level LayoutGroup title.
265 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
267 2011-08-11 Ben Konrath <ben@bagu.org>
269 Make the TableSelector header match the mockup.
271 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
272 the layout panel. Properly lineup the table selection header with
273 the list and details view.
274 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
275 margin around the details view.
276 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
277 Rename listBox variable to tableSelector. Set id for the style sheet.
278 Use a FlowPanel instead of a HorizontalPanel.
279 * src/main/webapp/style.css: Add properties to make the TableSelector
280 box match the mockups.
282 2011-07-13 Ben Konrath <ben@bagu.org>
284 Update install script for java-libglom version change.
286 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
289 2011-07-13 Ben Konrath <ben@bagu.org>
291 Add support sub-group in the details view.
293 I also removed the code that special-cased the default details view
296 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
298 I still have to make a proper flowtable.
300 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
301 Don't special-case default details view layout.
302 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
303 addLayoutField() as I'm going to use it.
304 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
305 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
307 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
308 extracted from DetailsViewImpl.GroupPanel. Add support for
310 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
311 column count when getting the details layout.
313 2011-07-12 Ben Konrath <ben@bagu.org>
315 Set browser title with database and table titles.
317 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
318 Set the browser title when the table changes and when the activity
320 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
321 title when retrieving document info (the GlomDocument object).
322 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
323 with getter and setter methods. Remove unused convenience constructor.
324 Use default code formatting.
326 2011-07-12 Ben Konrath <ben@bagu.org>
328 Ignore LayoutItemPortals in the details view.
330 I added a new DTO for the LayoutItemPortal so that I can ignore it in
333 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
334 LayoutItemPortal layout objects.
335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
336 LayoutItemPortal objects when retrieving the details layout.
337 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
338 file. This is an empty class and just used to get type information for
341 2011-07-12 Ben Konrath <ben@bagu.org>
343 Use java-libglom 1.17.0.
347 2011-07-11 Ben Konrath <ben@bagu.org>
349 Remove "Table:" label from table selector.
351 This matches a recent change in the Glom UI.
353 * mockups/details-contacts.html:
354 * mockups/details-projects.html:
355 * mockups/listview-contacts.html:
356 * mockups/listview-projects.html: Remove the "Table:" label from the
358 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
360 2011-07-11 Ben Konrath <ben@bagu.org>
362 Add main groups to the details view.
364 This makes things look a little nicer in the details view. The next step
365 is to implement the flowtable.
367 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
368 resources from the standard gwt css theme. Standard.css is now
369 included in OnlineGlom.html so that the online glom css rules have
370 precedence over the gwt theme.
371 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
372 the whole LayoutGroup to the DetailsView instead of just the titles.
373 * src/main/java/org/glom/web/client/ui/DetailsView.java:
374 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
375 details layout with a helper class (GroupPanel). I might extract this
376 class when I make the full flowtable.
377 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
378 string as default so I don't have to worry about NPEs when processing
380 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
381 note beside OnlineGlom.gwt.xml above).
382 * src/main/webapp/style.css: Add default font-size to body to override
383 the font-size set by the standard theme. Don't use h2 tags for
384 group-title. Create new details-cell class.
386 2011-07-08 Murray Cumming <murrayc@murrayc.com>
388 ConfiguredDocument: Set the port number too.
390 * src/main/java/org/glom/web/server/ConfiguredDocument.java
391 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
392 Glom document. Presumably this worked sometimes so far because there is a
395 2011-07-08 Murray Cumming <murrayc@murrayc.com>
397 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
399 * src/main/java/org/glom/web/server/ConfiguredDocument.java
400 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
401 correct, though we should throw an exception too.
403 2011-07-08 Murray Cumming <murrayc@murrayc.com>
405 Fix a addDocuemnt typo.
407 * src/main/java/org/glom/web/shared/Documents.java
408 (Documents.addDocuemnt): Rename to addDocument().
409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
410 (OnlineGlomServiceImpl.getDocuments): Adapt.
412 2011-07-08 Murray Cumming <murrayc@murrayc.com>
414 Slightly improved log output when connection fails.
416 * src/main/java/org/glom/web/server/ConfiguredDocument.java
417 (ConfiguredDocument.setUsernameAndPassword):
418 We don't know for sure if it' the username/password that's wrong, so
419 rephrase the message.
420 Also ouput the exception message, though it's generic in this case.
422 2011-07-08 Ben Konrath <ben@bagu.org>
426 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
427 added braces to a one line if statement because the Eclipse formatter
428 was getting confused.
430 2011-07-07 Ben Konrath <ben@bagu.org>
432 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
434 These should really be two separate tasks but I counldn't get things to
435 work with GWT 2.2.0 and Eclipse 3.7.
439 * .settings/org.eclipse.jdt.core.prefs:
440 * .settings/org.eclipse.jdt.ui.prefs:
441 * .settings/org.eclipse.ltk.core.refactoring.prefs:
442 * .settings/org.eclipse.m2e.core.prefs:
443 Add new config files. Update current files. Remove references to the
444 webtools plugins as we're not using any of the webtools features.
445 * .gitignore: Add logs directory which is created when running with
447 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
448 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
449 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
451 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
453 2011-07-07 Murray Cumming <murrayc@murrayc.com>
455 onlineglom.properties: Add explanatory comments.
457 * src/main/resources/onlineglom.properties: Also change the default user
458 from ben to someuser, to avoid the risk of people thinking we just
459 stupidly hard-coded a locale path, when they see that on stderr or in a log.
461 2011-06-28 Ben Konrath <ben@bagu.org>
463 Use filename in Log for incorrect passwords.
465 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
466 getFileName(String) method to get the filename from the URI.
468 2011-06-28 Ben Konrath <ben@bagu.org>
470 Add the table name to the URL token for the ListPlace.
472 This makes things consistent between the DetailsPlace and the
473 ListPlace. It also allows the the ListPlace to be bookmarked.
475 * src/main/java/org/glom/web/client/OnlineGlomService.java:
476 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
477 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
478 Remove getDefaultListLayout(). The default layout is now returned
479 by the getListLayout() method when the table name is an empty string.
480 * src/main/java/org/glom/web/client/activity/ListActivity.java:
481 Add table name field. Change to a new ListPlace when the table
482 has been changed. Use getListLayout() for getting the default
484 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
485 Add table name field. Set the correct table name in the list box
486 when loading from bookmark. This corrects a problem for the
488 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
489 Move table name to super-class (HasSelectableTable). Move document
490 and table URL keys to super-class in HasSelectableTable.
491 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
492 Add table name field. Add Tokenizer class with URL key common to
493 the subclasses (DetailsPlace and ListPlace).
494 * src/main/java/org/glom/web/client/place/ListPlace.java:
495 Add table name. Add code to parse the URL token.
496 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
497 Update ListPlace construction with empty table name string.
498 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
499 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
500 Change setTableSelectedIndex(int) to setSelectedTableName(String).
501 Update ListPlace construction with table name string.
502 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
503 Change defaultTableName field to tableName to reflect how it's now
504 used. Update the getter and setter methods.
506 2011-06-28 Ben Konrath <ben@bagu.org>
508 Enable the table selector in the DetailsView.
510 * src/main/java/org/glom/web/client/OnlineGlomService.java:
511 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
512 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
513 Remove getDefaultDetailsLayout(). The default layout is now returned
514 by the getDetailsLayout() method when the table name is an empty
516 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
517 event handler for table change event. Change to using
518 getDetailsLayout() for the default details layout.
519 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
521 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
522 when navigating to the details place.
524 2011-06-27 Ben Konrath <ben@bagu.org>
526 Use filename based unique document ID in URL and for RPC.
528 The document ID is the glom document name with spaces (' ') replaced
529 with pluses ('+') and without the .glom extension.
531 This change is mostly a string substitution of 'documentTitle' for
532 'documentID'. The only code change is the addition of a Documents DTO to get the
533 filename to document title mappings as indicated below.
535 * src/main/java/org/glom/web/client/OnlineGlomService.java:
536 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
537 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
538 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
539 Use Documents DTO to create the document links in the document
541 * src/main/java/org/glom/web/client/activity/ListActivity.java:
542 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
543 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
544 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
545 * src/main/java/org/glom/web/client/place/ListPlace.java:
546 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
547 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
548 * src/main/java/org/glom/web/client/ui/ListView.java:
549 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
550 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
551 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
552 * src/main/java/org/glom/web/server/Log.java:
553 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
554 getDocumentTitles() to getDocuments() and return the Documents DTO.
555 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
556 transferring the filename to document title mappings.
558 2011-06-25 Ben Konrath <ben@bagu.org>
560 Make the authentication popup work again.
562 This bug was introduced when I extracted ConfiguredDocument to its own class.
564 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
565 correct success / fail status in setUsernameAndPassword().
567 2011-06-25 Ben Konrath <ben@bagu.org>
569 Use filename as unique key for configuring database usernames and passwords.
571 This replaces the use of the Glom document title which could change
572 depending on the locale. Thanks to Murray Cumming for pointing out this
575 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
576 * src/main/resources/onlineglom.properties:
578 2011-06-24 Ben Konrath <ben@bagu.org>
580 Pass primary key value to DetailsView.
582 This enables the DetailsView to load the correct data.
584 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
585 primary key value field and set in constructor. Pass primary key
586 value to getDetailsData().
587 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
588 variables for document title and primary key value.
589 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
590 key value to the DetailsPlace.
592 2011-06-24 Ben Konrath <ben@bagu.org>
594 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
596 This allows the primary key to be retrieved by the Details button. This
597 functionality has not been implemented yet but it's in the works.
599 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
600 the LayoutGroup result to ListView.setCellTable instead of all of its
602 * src/main/java/org/glom/web/client/ui/ListView.java:
603 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
604 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
605 get the primary key for the table.
606 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
607 index of the primary key in the LayoutGroup accounting for hidden
608 primary keys. Rename getJavaNumberFormat() to
609 convertToJavaNumberFormat() for consistency. Cleanup / add some
611 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
612 field for primary key index and a field to indicate whether the
613 primary key is hidden or not.
615 2011-06-23 Ben Konrath <ben@bagu.org>
617 Rename getTableData methods to getListData.
619 This is a rename refactor for consistency with other methods.
621 * src/main/java/org/glom/web/client/OnlineGlomService.java:
622 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
623 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
624 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
626 2011-06-23 Ben Konrath <ben@bagu.org>
628 Extract the ConfiguredDocument innerclass into its own class.
630 This makes the servlet code more object oriented.
632 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
633 from private ConfiguredDocument class in OnlineGlomServiceImpl.
634 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
635 new ConfiguredDocument class.
637 2011-06-21 Ben Konrath <ben@bagu.org>
639 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
641 This makes things more inline with how libglom works and reduces code
642 duplication. This refactor lays the groundwork for adding the primary key to
643 the LayoutGroup object.
645 * src/main/java/org/glom/web/client/OnlineGlomService.java:
646 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
647 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
648 Change method names to getListLayout and getDefaultListLayout for
649 consistency. Use LayoutGroup as the DTO for the list layout instead of
650 ColumnInfo and LayoutListTable.
651 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
652 new method names along with the LayoutGroup object for transferring the
654 * src/main/java/org/glom/web/client/ui/ListView.java:
655 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
656 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
657 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
659 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
660 Replaced with LayoutGroup.
661 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
662 expectedResultSize and defaultTableName fields which are needed for
664 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
665 type field which is needed for the list layout but will also be
666 useful for the details layout as things progress.
667 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
668 Make class abstract. Remove the unnecessary
669 getFormattingHorizontalAlignment method. Add setFormatting method.
671 2011-06-16 Ben Konrath <ben@bagu.org>
673 Add scripts for building and installing war.
675 These will help when updating OnlineGlom but they're also good
676 supplemental documentation of the build and deployment proceeding.
678 * utils/build-onlineglom-war.sh: New file.
679 * utils/install-onlineglom-war.sh: New file.
681 2011-06-16 Ben Konrath <ben@bagu.org>
683 Create wrapper class to create consistent log messages.
685 I wrapped methods in the Log class of gwt-log to add the method names
686 from the servlet and create consistent formatting of the document title
687 and table names in the log messages.
689 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
690 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
691 log methods to use methods from wrapped Log class.
693 2011-06-16 Ben Konrath <ben@bagu.org>
695 Remove superfluous conditional return.
697 Thanks to Murray Cumming for pointing this out!
699 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
701 2011-06-15 Ben Konrath <ben@bagu.org>
703 Return an ArrayList of LayoutGroups for the Details layout.
705 This corrects a problem with the details layout as it can have more
706 than one top level LayoutGroup.
708 * src/main/java/org/glom/web/client/OnlineGlomService.java:
709 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
710 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
711 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
712 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
713 with ArrayList of LayoutGroups for the details view layout.
714 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
715 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
716 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
717 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
718 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
719 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
721 2011-06-14 Ben Konrath <ben@bagu.org>
723 Use cast_dynamic method to determine the libglom LayoutItem type.
725 This is better than finding the LayoutItem type by using the string
726 returned from the get_part_type_name() method.
728 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
730 2011-06-14 Ben Konrath <ben@bagu.org>
732 Add method names to log entries in the servlet.
734 This helps when tracking down deployment problems.
736 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
738 2011-06-14 Ben Konrath <ben@bagu.org>
740 Add data to the DetailsView using a hard-coded primary key value.
742 The layout and functionality of the DetailsView is not complete. This
743 is just a checkpoint so the patch doesn't get too big.
745 * src/main/java/org/glom/web/client/OnlineGlomService.java:
746 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
747 Add getDetailsData() servlet method.
748 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
749 Add RPC to getDetailsData(). Change the way the LayoutGroups and
750 LayoutFields are added to the DetailsView.
751 * src/main/java/org/glom/web/client/ui/DetailsView.java:
752 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
753 Add setData() method. Change addLayoutGroup() and addLayoutField() to
754 take the string for the title instead of the object.
755 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
756 Add implementation getDetailsData() along with some private helper
758 * src/main/webapp/style.css: Add padding to details-data class. Add a
759 details-label class with the same padding as the details-data class.
761 2011-06-03 Ben Konrath <ben@bagu.org>
763 Use presenter.goTo() to change to the DetailsPlace.
765 This will make things easier when we need to open the DetailsView with
766 data specific to the row that was clicked.
768 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
770 2011-06-02 Ben Konrath <ben@bagu.org>
772 Add CSS file from mockups.
774 I'm adding this now because it's going to be useful to have when
775 developing the DetailsView. The TableSelectionView and ListView aren't
778 * src/main/webapp/OnlineGlom.html:
779 * src/main/webapp/style.css:
781 2011-06-02 Ben Konrath <ben@bagu.org>
783 Use String.isEmpty() to check for empty string.
785 * src/main/java/org/glom/web/client/activity/ListActivity.java:
787 2011-06-02 Ben Konrath <ben@bagu.org>
789 Display main layout group titles in the DetailsView.
791 This is the start of the DetailsActivity/DetailsView implementation.
793 * src/main/java/org/glom/web/client/OnlineGlomService.java:
794 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
795 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
796 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
797 Get the layout information for the details view from the server and set
798 the main layout group titles.
799 * src/main/java/org/glom/web/client/ui/DetailsView.java:
800 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
801 Add addLayoutGroup() and addLayoutField() methods. This are just
802 temporary methods for creating the the details view that will change
804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
805 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
807 * src/main/java/org/glom/web/shared/layout/Formatting.java:
808 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
809 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
810 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
811 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
812 Data Transfer Objects that mimic the libglom object structure. These are
813 used for transferring the details layout but could also be used for
814 transferring the list layout.
816 2011-05-27 Ben Konrath <ben@bagu.org>
818 Reset the AuthenticationPopup when clearing the ListView.
820 * src/main/java/org/glom/web/client/activity/ListActivity.java:
822 2011-05-27 Ben Konrath <ben@bagu.org>
824 Fix problem with onlineglom.properties file loading.
826 The old way worked in Eclipse but not on the server. Loading the
827 onlineglom.properties file now works in Eclipse and on the server.
829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
831 2011-05-24 Ben Konrath <ben@bagu.org>
833 Update gwt-log from 3.1.0 to 3.1.2.
835 Gwt-log 3.1.0 has been marked as depreciated.
839 2011-05-24 Ben Konrath <ben@bagu.org>
841 Add comment to ListActivity.goTo() method.
843 * src/main/java/org/glom/web/client/activity/ListActivity.java:
845 2011-05-24 Ben Konrath <ben@bagu.org>
847 Remove FIXME in convertGdkColorToHtmlColour()
849 The Gdk::Color value returned by libglom is 16-bits per channel on both
850 64 and 32-bit platforms.
852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
854 2011-05-19 Ben Konrath <ben@bagu.org>
856 Improve performance of initial ListView load.
858 I removed a round trip to the server for getting the default table name
859 and then requesting information about that table. This also removes a potential
860 problem with the table change handler not being setup in time to receive the
861 table change event from the ListActivity.
863 * src/main/java/org/glom/web/client/OnlineGlomService.java:
864 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
865 getDefaultLayoutListTable() method. Improve comments.
866 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
867 getDefaultLayoutListTable() method instead of firing a table change
868 event to get the table to load.
869 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
870 implementation of getDefaultLayoutListTable() method.
871 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
874 2011-05-19 Ben Konrath <ben@bagu.org>
876 Override toDebugString() in TableChangeEvent.
878 This is useful to have for debugging.
880 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
882 2011-05-19 Ben Konrath <ben@bagu.org>
884 Add a "Back to List" link when at the DetailsPlace.
886 * src/main/java/org/glom/web/client/activity/ListActivity.java:
887 Populate the CellTable based on the selected table of the ListBox if
888 it's set otherwise use the default table. This allows the "Back to
890 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
891 Remove Place from constructors. Add a setPlace() method. Add
892 goToPlace() method. Set class as presenter for TableSelectionView.
893 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
894 Use the same TableSelectionActivity when switching between the List and
896 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
897 Subclass the new HasSelectableTablePlace. This removes some duplicate
899 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
900 New class to represent Places that display the TableSelectionView.
901 * src/main/java/org/glom/web/client/place/ListPlace.java:
902 Subclass the new HasSelectableTablePlace. This removes some duplicate
904 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
905 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
906 Add Presenter interface. Add setBackLinkVisible() method. Add
907 setBackLink() method.
909 2011-05-18 Ben Konrath <ben@bagu.org>
911 Enable the "Details" buttons.
913 Right now only an empty details view is displayed.
915 * src/main/java/org/glom/web/client/ClientFactory.java:
916 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
917 Add DetailsView to ClientFactory.
918 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
919 A basic activity for the details view.
920 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
921 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
923 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
924 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
926 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
927 Create a new DetailsActivity when a DetailsPlace is requested. Remove
928 unnecessary super() in constructor.
929 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
930 Create a new TableSelectionActivity when a DetailsPlace is requested. We
931 really shouldn't create a new TableSelectionActivity for both the ListPlace
932 and the DetailsPlace so this should be considered a temporary solution.
933 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
934 New file. Represents a URL for the details view.
935 * src/main/java/org/glom/web/client/ui/DetailsView.java:
936 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
937 A basic details view interface and implementation.
938 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
939 Enable the "Details" buttons.
941 2011-05-12 Ben Konrath <ben@bagu.org>
943 Use a LayoutPanel with multiple display areas for main layout.
945 This is mostly a refactor in that there are no changes from the user
946 point of view. These changes are required so that we can swap out the list view
947 with the details view when the user clicks the "Details" button.
949 * src/main/java/org/glom/web/client/ClientFactory.java:
950 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
951 OnlineGlomView. Add TableSelectionView, ListView and
953 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
954 for main layout. Add display regions for main activities. Add
955 activity manager for for main activities.
956 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
957 file from parts of the deleted OnlineGlomActivity.
958 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
959 New file from parts of the deleted OnlineGlomActivity.
960 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
961 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
962 New files for app wide table change event.
963 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
964 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
965 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
966 Activity mappers for the main activities replace the deleted app-wide
968 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
969 Fix a spelling error in he comment.
970 * src/main/java/org/glom/web/client/ui/ListView.java:
971 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
972 Renamed from LayoutListView and modified for MVP. This still not a
973 proper dumb view as prescribed by the MVP pattern but it works for now.
974 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
975 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
976 New widget stripped out of the deleted OnlineGlomView.
977 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
978 Remove hack that is fixed by this patch.
980 2011-05-06 Ben Konrath <ben@bagu.org>
982 Rename OnlineGlomPlace to ListPlace.
984 The only change besides the rename is that url will now display #list
985 instead of #Document.
987 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
988 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
989 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
990 * src/main/java/org/glom/web/client/place/ListPlace.java:
991 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
993 2011-05-06 Ben Konrath <ben@bagu.org>
995 Use Presenter for app navigation.
997 This is the proper way to deal with Place (URL) changes with the MVP
1000 * src/main/java/org/glom/web/client/ClientFactory.java:
1001 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1002 PlaceHistoryMapper and PlaceHistoryHandler.
1003 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1004 PlaceHistoryMapper and PlaceHistoryHandler.
1005 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1006 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1007 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1008 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1009 Add Presenter interface and setPresenter methods. Rename addHyperLink
1010 to addDocumentLink taking only the document title as a parameter.
1012 2011-04-14 Ben Konrath <ben@bagu.org>
1014 Prompt for db username/password if they haven't been set.
1016 This is implemented with a popup widget that is contained within the
1017 OnlineGlomView and managed by the OnlineGlomActivity.
1019 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1020 methods for checking and setting the database username and password.
1021 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1022 new methods for checking and setting the database username and
1024 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1025 Display authentication popup if the JDBC connection to the database
1026 has not been authenticated.
1027 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1029 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1030 for dealing with the authentication popup.
1031 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1032 Implement the methods for dealing with the authentication popup.
1033 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1034 try to executed queries if the database connection hasn't been
1035 authenticated. Implement methods for checking and setting the
1036 database username and password.
1038 2011-04-12 Ben Konrath <ben@bagu.org>
1040 Make log messages a little clearer.
1042 Add a dash betweeen the document title and the table name.
1044 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1046 2011-04-12 Ben Konrath <ben@bagu.org>
1048 Protect against NPEs when cleaning up database resources.
1050 While this isn't strictly necessary because the exception is caught,
1051 not protecting against the NPEs makes it harder to find the real error
1054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1056 2011-04-12 Ben Konrath <ben@bagu.org>
1058 Move configuration of the servlet to the constructor.
1060 The servlet will be initialized even if the database authentication
1061 information is not set or correct. I still need to add the UI for prompting
1062 the user for the authentication information when it's required.
1064 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1065 javadocs for getDocumentTitles() method.
1066 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1067 Set error message when RPC fails.
1068 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1069 glom files directory from the configuration file. Try to set the
1070 database authentication information for the specific document if it's
1071 set and works otherwise try to use the global authentication
1072 information set for the directory.
1073 * src/main/resources/onlineglom.properties: Moved from
1074 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1075 Added detailed comments for the new keys.
1077 2011-04-11 Ben Konrath <ben@bagu.org>
1079 Remove unnecessary @Override in DocumentSelectionViewImpl.
1081 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1083 2011-04-11 Ben Konrath <ben@bagu.org>
1085 Remove center alignment in DocumentSelectionView.
1087 The title element is still centred but the document titles and bottom
1088 sentence are both left-aligned.
1090 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1092 2011-04-11 Ben Konrath <ben@bagu.org>
1094 Change 'Demo' naming convention to 'Document'.
1096 This is just a rename refactor with no functional changes to the code.
1098 * src/main/java/org/glom/web/client/ClientFactory.java:
1099 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1100 * src/main/java/org/glom/web/client/OnlineGlom.java:
1101 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1102 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1103 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1104 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1105 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1106 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1107 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1108 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1109 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1110 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1112 2011-04-08 Ben Konrath <ben@bagu.org>
1114 Remove FIXME from safeLongToInt() method.
1116 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1119 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1121 2011-04-08 Ben Konrath <ben@bagu.org>
1123 Display an error if no glom documents are found in the specified directory.
1125 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1126 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1127 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1130 2011-04-08 Ben Konrath <ben@bagu.org>
1132 Add copyright header to one more file ... oops.
1134 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1136 2011-04-08 Ben Konrath <ben@bagu.org>
1138 Add copyright header to files without it.
1140 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1141 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1142 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1143 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1144 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1145 * src/main/java/org/glom/web/shared/GlomField.java:
1147 2011-04-08 Ben Konrath <ben@bagu.org>
1149 Add support for accessing multiple glom documents in the servlet.
1151 This completes the demo selection functionality.
1153 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1154 document title to methods.
1155 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1156 document title to methods.
1157 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1158 Set browser window title when the activity starts. Correct name of
1159 document title variable.
1160 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1161 Set browser window title when the activity starts. Set the table
1162 selector change handler after table selector has been set. Clear the
1163 OnlineGlomView when the activity has been stopped.
1164 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1165 document title as the place token. Use "#Document:" instead of
1166 "#OnlineGlomPlace:" in the URL.
1167 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1168 Change heading to "Online Glom"
1169 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1170 document title in RPC methods.
1171 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1172 setDocumentTitle() method. Add clear() method.
1173 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1174 setDocumentTitle() method. Implement clear() method which removes the
1175 change handler on the ListBox, clears the ListBox and clears the
1177 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1178 Implement methods with document title. Keep track for the configured
1179 glom documents and their corresponding JDBC configurations in a hash
1180 table. This information is retrieved using the document title as the
1181 key in the hash table.
1182 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1183 document title field as it's no longer needed.
1185 2011-04-08 Ben Konrath <ben@bagu.org>
1187 Update the Eclipse JDT configuration.
1189 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1190 methods. Automatically add the copyright header to new files.
1192 2011-04-05 Ben Konrath <ben@bagu.org>
1194 Add new page for demo selection.
1196 This patch adds all the components required to view and start an
1197 OnlineGlom demo by clicking on the desired hyperlink. The user is
1198 able to return to the demo selection page with the browser's back
1199 button. I still need to modify the servlet to work with multiple
1200 documents so all demo links will load the file defined in the
1201 OnlineGlom.properties.
1203 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1204 This is only useful during development so we don't need to save it.
1205 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1206 get a reference to the DemoSelectionView.
1207 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1208 method to get a reference to the DemoSelectionView.
1209 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1210 default view to DemoSelectionView.
1211 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1212 to get glom document titles for glom files in a hard-coded directory.
1213 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1214 method to get glom document titles for glom files in a hard-coded
1216 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1217 Presenter for DemoSelectionView.
1218 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1219 for DemoSelectionView.
1220 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1221 Update for DemoSelectionView.
1222 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1223 Basic 'Place' implementation for the DemoSelectionView.
1224 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1225 The interface for the DemoSelectionView.
1226 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1227 The implementation of the DemoSelectionView.
1228 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1229 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1230 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1231 implementation of method to get glom document titles for glom files
1232 in a hard-coded directory.
1233 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1234 on longer being used.
1235 * src/main/webapp/glom.png: Glom logo.
1237 2011-04-05 Ben Konrath <ben@bagu.org>
1239 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1241 This is the forth and final commit of a refactor that will allow
1242 OnlineGlom to be used with multiple documents.
1244 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1245 Move RPC code from OnlineGlomViewImpl to this class.
1246 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1248 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1249 RPC code to the presenter class (the P in MVP).
1251 2011-04-04 Ben Konrath <ben@bagu.org>
1253 Start moving the existing OnlineGlom code to MVP.
1255 This work is based on the GWT MVP framework that is documented here:
1257 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1259 This is the third commit of a refactor that will allow OnlineGlom to
1260 be used with multiple documents.
1262 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1263 Interface for client factory which is used to get instances of various
1264 classes throughout the app.
1265 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1266 Implementation of client factory.
1267 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1268 initialize the MVP framework.
1269 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1270 New file. Activity manager for the main container widget. This is the
1272 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1273 Maps place (URL) to its corresponding activity.
1274 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1275 New file. This is just a place holder for a generated file.
1276 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1277 New file. Represents the URL for the main Online Glom app.
1278 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1279 for changes in LayoutListViewImpl.
1280 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1281 interface for View. Move code to OnlineGlomViewImpl class.
1282 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1283 file. Implementation of OnlineGlomView.
1284 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1285 Place resources. Use ClientFactoryImpl by default.
1287 2011-04-04 Ben Konrath <ben@bagu.org>
1289 Move View classes to their own package.
1291 This is the second commit of a refactor that will allow OnlineGlom to
1292 be used with multiple documents.
1294 * src/main/java/org/glom/web/client/OnlineGlom.java:
1295 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1296 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1298 2011-04-02 Ben Konrath <ben@bagu.org>
1300 Move UI code from the main module to its own class.
1302 This is the first commit of a refactor that will allow OnlineGlom to be
1303 used with multiple documents.
1305 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1306 references to OnlineGlom to OnlineGlomView.
1307 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1308 OnlineGlomView and instantiate it here.
1309 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1310 represents the main OnlineGlomView with one document.
1312 2011-04-01 Ben Konrath <ben@bagu.org>
1314 Fix formatting of gwt.xml and add DTD.
1316 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1318 2011-03-30 Ben Konrath <ben@bagu.org>
1320 Propperly convert gdkColor string to html colour string.
1322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1324 2011-03-28 Ben Konrath <ben@bagu.org>
1326 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1328 This implementation matches
1329 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1330 readable and is not tied to Swig.
1332 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1334 2011-03-28 Ben Konrath <ben@bagu.org>
1336 Use read-only checkboxes for boolean field types.
1338 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1339 in the CellTable based on the field type. It currently only
1340 distinguishes between boolean and text columns but I'll need to add
1341 support for more types.
1342 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1343 column type in the ColumnInfo object. Add method to convert between the
1344 glom field type enum in ColumnInfo and the glom field type in libglom.
1345 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1347 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1348 getting and setting booleans.
1350 2011-03-25 Ben Konrath <ben@bagu.org>
1352 Don't get the Date twice from the ResultSet.
1354 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1356 2011-03-25 Ben Konrath <ben@bagu.org>
1358 Cleanup code in the servlet.
1360 * TODO: Remove item about row count. Add item about testing row count
1361 query with large number of rows.
1362 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1363 spelling mistakes, change method parameter to be consistent with
1366 2011-03-25 Ben Konrath <ben@bagu.org>
1368 Add server side logging with the gwt-log library.
1370 * .gitignore: Ignore the log file we're now producing.
1371 * TODO: Add a couple TODO item for logging.
1372 * pom.xml: Add gwt-log and log4j as a dependency.
1373 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1374 logging of errors, warnings and some important info.
1375 * src/main/resources/log4j.properties: New file to configure log4j.
1377 2011-03-24 Ben Konrath <ben@bagu.org>
1379 Add a disable button for the Details view.
1381 * src/main/java/org/glom/web/client/LayoutListView.java:
1383 2011-03-22 Ben Konrath <ben@bagu.org>
1385 Use a count query to get the number of rows for the list view pager.
1387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1389 2011-03-22 Ben Konrath <ben@bagu.org>
1391 Add more TODO information about CellTable pager positioning.
1395 2011-03-19 Ben Konrath <ben@bagu.org>
1397 Add TODO item about CellTable pager positioning.
1401 2011-03-18 Ben Konrath <ben@bagu.org>
1403 Remove unneeded GlomFieldColumn class.
1405 This is just a small code cleanup.
1407 * src/main/java/org/glom/web/client/LayoutListView.java:
1409 2011-03-18 Ben Konrath <ben@bagu.org>
1411 Use cursor mode in the query that gets data for the list view.
1413 I still need to fix the potential memory problem when getting the row
1414 count for the list view.
1416 * TODO: Add note about testing memory usage with large data sets. Add
1417 item about fixing row counting with large data sets.
1418 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1419 PostgreSQL JDBC driver into cursor mode when getting data for the
1422 2011-03-15 Ben Konrath <ben@bagu.org>
1424 Remove the GWT Container from the Eclipse build classpath.
1426 The GWT dependencies are set by Maven so this isn't needed.
1430 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1432 Added some earlier mockups to git, but not to the tarball dist.
1434 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1435 Openismus. These hopefully show how we might structure the HTML so that
1436 it can be styled easily with CSS. However, we probably need to adapt them
1437 for the CSS structure that GWT dictates for common widgets.
1439 2011-03-14 Ben Konrath <ben@bagu.org>
1441 Locate OnlineGlom.properties using the ServletContext.
1443 This is required to be able to locate the file in the deployed servlet.
1445 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1446 Configure the database and glom document in in a helper method so
1447 that the ServletContext can be used to locate OnlineGlom.properties.
1448 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1449 src/main/webapp. This is the proper location for .properites files.
1451 2011-03-12 Ben Konrath <ben@bagu.org>
1453 Add note to README about why we're compiling down to obfuscated JavaScript.
1457 2011-03-11 Ben Konrath <ben@bagu.org>
1459 Use properties file to configure servlet.
1461 This allows people to change the glom file path, db username and db
1462 password without recompiling the code.
1464 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1465 * src/main/webapp/OnlineGlom.properties:
1467 2011-03-11 Ben Konrath <ben@bagu.org>
1469 Use table fields in layout list view if the layout list is not defined.
1471 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1472 Manually create a LayoutFieldVector for the query builder using the
1473 table fields when a layout list is not defined in the glom file.
1475 2011-03-11 Ben Konrath <ben@bagu.org>
1477 Only show FIXME string for images when there's an image.
1479 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1480 in this change are some small code cleanups.
1482 2011-03-11 Ben Konrath <ben@bagu.org>
1484 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1488 2011-03-11 Ben Konrath <ben@bagu.org>
1490 Correctly set the index of the default table.
1492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1493 Correctly set the index of the default table. Add commented out example
1496 2011-03-10 Ben Konrath <ben@bagu.org>
1498 Add comment to pom.xml about the previous change.
1500 * pom.xml: Add comment about the deployment issue so that it's obvious
1501 why java-libglom is set to the provided scope.
1503 2011-03-10 Ben Konrath <ben@bagu.org>
1505 Change java-libglom dependency from compile to provided in pom.xml.
1507 Since java-libglom uses jni it can only be loaded once and therefore
1508 must be placed in $CATALINA_HOME/lib and not included in each war.
1509 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1510 More information about this issue can be found in the Tomcat 6 release
1511 notes in the "JNI Based Applications" section:
1513 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1515 * README: Remove note about this issue. Deployment info should really
1516 be on the wiki anyway so I'll add it right now.
1517 * pom.xml: Change java-libglom dependency from compile to provided so
1518 that it's copied in to the packaged war.
1520 2011-03-09 Ben Konrath <ben@bagu.org>
1522 Change to using a neutral locale for currency, date and time formatting.
1524 This solves the problem of currency values being represented without a
1525 space between the currency code and the number (e.g. "EUR5.89" is now
1526 represented as "EUR 5.89"). More work is required when we implement
1527 a locale preference setting.
1529 * TODO: Add note about currency formatting issues with different
1531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1532 to using the neutral ROOT locale.
1534 2011-03-09 Ben Konrath <ben@bagu.org>
1536 Add support for currency codes that are not ISO 4217 codes.
1538 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1539 the currency code defined in the glom file when it's not 3 characters
1540 long or when Java doesn't recognize the string as an ISO 4217 code.
1542 2011-03-08 Ben Konrath <ben@bagu.org>
1544 Remove test classes, launch configurations and configuration.
1546 The test stuff was getting in the way when creating the war. To make
1547 the war file you can now do 'mvn clean package'. The packaged war file
1548 will be in the target directory.
1550 * .classpath: Remove unused classpathentry for tests and i18n.
1551 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1552 property. Don't run test or i18n goals when packaging the war.
1553 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1558 * OnlineGlomTest-dev.launch:
1559 * OnlineGlomTest-prod.launch:
1560 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1561 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1563 2011-03-07 Ben Konrath <ben@bagu.org>
1565 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1567 These fixes allow me to use 'mvn deploy' to create the war file.
1569 * .classpath: This generated config has been updated by Eclipse. This
1570 change was probably triggered by me updating from Eclipse 3.6.1 to
1572 * .gitignore: Add entry to ignore the directory
1573 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1574 * .project: The generated config has been updated by Eclipse. This
1575 change was probably triggered by me updating from Eclipse 3.6.1 to
1577 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1578 so that Eclipse doesn't complain
1579 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1580 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1581 'tests' directory to 'client' directory. This is the new
1582 gwt-maven-plugin convension.
1583 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1584 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1586 2011-03-07 Ben Konrath <ben@bagu.org>
1588 Add support for horizontal alignment in the LayoutList columns.
1590 * TODO: Remove item about horizontal alignment. Add item about
1591 improvements to ColumnInfo.
1592 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1593 alignment on the columns. Use ColumnInfo RPC object get the column
1594 title and horizontal alignment.
1595 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1596 LayoutListView creation with ColumnInfo RPC object.
1597 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1598 a ColumnInfo object for every LayoutList columnn. Convert the
1599 FieldFormatting.HorizontalAlignment to the correct
1600 ColumnnInfo.HorizontatlAlignment with the new
1601 getColumnInfoHorizontalAlignment helper method.
1602 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1603 to encapsulate column information like alignment and title. This
1604 could be used to set the colour instead of on a per cell field basis.
1605 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1606 column title storage and retrieval with ColumnInfo.
1608 2011-03-04 Ben Konrath <ben@bagu.org>
1610 Add support for column sorting.
1612 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1613 AsynDataProvider to be an anonymous inner class. Use new
1614 getSortedTableData RPC method when column sort is requested. Set all
1615 columns sortable and add an AsyncHandler to activate sorting in the
1617 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1618 method getSortedTableData(). Cleanup other method signatures.
1619 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1620 new method getSortedTableData(). Cleanup other method signatures.
1621 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1622 Implement getSortedTableData() and getTableData() methods by using a
1623 private helper method with the appropriate parameters filled in. Use
1624 user supplied sort clause when supplied, otherwise fall back to
1625 sorting by the primary key. Move destroy() method to be underneath
1626 constructor for readability. Cleanup comments.
1628 2011-03-03 Ben Konrath <ben@bagu.org>
1630 Add support for colour text and colour backgrounds to the layout list cells.
1632 Only the cell backgrounds are coloured which leaves a gap between the
1633 cells that isn't coloured. I need to figure out a way to set
1634 'style=background-colour:' on the whole column rather than just the
1637 * TODO: Add a note about colouring the background of the whole column.
1638 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1639 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1640 render the coloured text and backgrounds. Use GlomField[] for the row type.
1641 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1643 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1644 GlomField[] for the row type.
1645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1646 GlomField[] for the row type. Set the text, text colour and background
1647 colour in the GlomField objects as specified in the glom document. Add
1648 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1649 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1650 the glom field text, foreground colour and background colour.
1652 2011-03-02 Ben Konrath <ben@bagu.org>
1654 Don't display hidden tables in the combo box.
1656 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1659 code to ignore hidden tables using ArrayLists for the table names and
1661 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1662 tableNames to use ArrayLists instead of String[]. Update getter and setter
1665 2011-03-01 Ben Konrath <ben@bagu.org>
1667 Add support for Date and Time number types.
1669 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1670 Implement formatting for Date and Time values. Change the default glom
1671 file to small business example.
1673 2011-03-01 Ben Konrath <ben@bagu.org>
1675 Add support for formatting glom types as specified in the glom file.
1677 Formatting isn't finished yet - I still need to add support for Date
1680 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1681 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1682 checks for null values in JDBC cleanup code and catch all exceptions
1683 instead of just SQLExceptions.
1684 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1687 2011-03-01 Ben Konrath <ben@bagu.org>
1689 Use GWT 2.2.0 instead of 2.1.1.
1691 * pom.xml: Change GWT version numbers.
1693 2011-03-01 Ben Konrath <ben@bagu.org>
1695 A few small code cleanups.
1697 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1699 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1700 unnecessary object creation in constructor.
1701 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1702 unnecessary object creation in constructor.
1704 2011-02-28 Ben Konrath <ben@bagu.org>
1706 Add file for TODO list.
1710 2011-02-18 Ben Konrath <ben@bagu.org>
1712 Enable the CellTable Pager when more than 20 rows need to be viewed.
1714 The Pager will automatically become active when the results are larger
1715 than the CellTable size which is currently set to 20 lines.
1717 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1718 name on debug statment in RPC call in LayoutListDataProvider, add
1719 numRows parameter to LayoutListView constructor, propperly set rowCount
1721 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1722 name on debug statment in RPC call, use LayoutListTable object in RPC
1723 calls, pass rowCount to LayoutListView.
1724 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1725 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1727 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1728 interface for changes in OnlineGlomService.
1729 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1730 getLayoutListHeaders() to getLayoutListTable() and return
1731 LayoutListTable. Using this object allows me to pass other information
1732 about the LayoutList like the expected number of rows in the result set.
1733 The Connection object from the connection pool is now propperly closed.
1734 Only the requested number of lines are returned to the client in
1736 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1737 GlomTable and add columnTitles and numRows.
1739 2011-02-18 Ben Konrath <ben@bagu.org>
1741 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1743 This is a small performance boost. I'll use GlomTable to get the required
1744 layoutlist information.
1746 * src/main/java/org/glom/web/client/OnlineGlom.java:
1747 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1748 * src/main/java/org/glom/web/shared/GlomDocument.java:
1750 2011-02-18 Ben Konrath <ben@bagu.org>
1752 Add option to turn off formatting in JDT formatter preferences.
1754 * .settings/org.eclipse.jdt.core.prefs:
1756 2011-02-18 Ben Konrath <ben@bagu.org>
1758 Rename LayoutList to LayoutListView.
1760 I'm working towards setting things up to easily use MVP when the time
1763 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1765 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1768 2011-02-17 Ben Konrath <ben@bagu.org>
1770 Move LayoutListDataProvider class into LayoutList.java.
1772 * src/main/java/org/glom/web/client/LayoutList.java:
1774 2011-02-17 Ben Konrath <ben@bagu.org>
1776 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1778 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1780 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1781 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1782 from LibGlomServer.java.
1783 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1784 Rename from LibGlomServiceAsync.java.
1785 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1786 Rename from LibGlomServiceImpl.java.
1787 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1789 2011-02-17 Ben Konrath <ben@bagu.org>
1791 Update JDT settings.
1793 * .settings/org.eclipse.jdt.core.prefs:
1795 2011-02-17 Ben Konrath <ben@bagu.org>
1797 Move GWT-RPC objects to shared package (where they should be).
1799 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1800 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1801 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1802 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1803 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1804 org.glom.web.shared package.
1805 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1806 org.glom.web.shared package.
1807 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1808 directory in compilation to javascript.
1810 2011-02-16 Ben Konrath <ben@bagu.org>
1812 Add sort clause to the sql query that grabs table information.
1814 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1815 if one of the columns is a primary key.
1817 2011-02-16 Ben Konrath <ben@bagu.org>
1819 Disable generateAsync feature of gwt-maven.
1821 The generated interface does not correctly match the methods in LibGlomService
1822 and the generated singleton Util inner-class doesn't respect the servlet
1825 * pom.xml: Turn off generateAsync feature.
1826 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1827 with singleton Util inner-class.
1829 2011-02-14 Ben Konrath <ben@bagu.org>
1831 Add LGPL v3 licence notices.
1833 Followed directions listed here:
1834 http://www.gnu.org/licenses/gpl-howto.html
1836 * COPYING: This file is a copy of the GPL v3.
1837 * COPYING.LESSER: This file is a copy of the LGPL v3.
1838 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1840 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1842 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1844 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1846 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1848 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1850 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1853 2011-02-14 Ben Konrath <ben@bagu.org>
1855 Use ArrayList instead of Array in GWT-RPC calls.
1857 Apparently this gives a slight performance boost to the compiled
1860 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1862 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1865 2011-02-14 Ben Konrath <ben@bagu.org>
1867 Access data from a postgres db rather than the example glom file.
1869 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1870 compile down to obfuscated javascript.
1871 * pom.xml: Add c3p0 and postgres JDBC libraries.
1872 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1873 using a postgres db accessed through the c3p0 connection pooling library.
1875 2011-02-14 Ben Konrath <ben@bagu.org>
1877 Update Java formatter settings.
1879 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1881 2011-02-02 Ben Konrath <ben@bagu.org>
1883 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1885 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1887 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1888 the compiled webapp directory that Eclipse uses as we're using Maven now.
1889 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1890 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1892 * pom.xml: Format file, change target Java version to 1.6.
1894 2011-02-02 Ben Konrath <ben@bagu.org>
1896 Add information about a deployment related issue.
1898 * README: Add Notes section with the problem outlined.
1900 2011-02-02 Ben Konrath <ben@bagu.org>
1902 Call Glom.libglom_deinit() when the servlet is shutdown.
1904 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1905 Glom.libglom_deinit() to destroy() method.
1907 2011-01-28 Ben Konrath <ben@bagu.org>
1909 Use generated Util class to get the RPC Async interface.
1911 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1913 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1914 getInstance() method to get a reference to the RPC Async interface.
1915 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1916 getInstance() method to get a reference to the RPC Async interface, remove
1917 the now unused getLibGlomServiceProxy() method.
1919 2011-01-27 Ben Konrath <ben@bagu.org>
1921 Cleanup ChangeLog entry from previous commit.
1923 * ChangeLog: Group logical changes together and add comments.
1925 2011-01-25 Ben Konrath <ben@bagu.org>
1927 Convert to gwt-maven project.
1929 * .gitignore: Update for new project structure.
1930 * README: New file with a link to the online documentation.
1931 * pom.xml: The generated maven configuration file with some tweaks.
1933 Add / update Eclipse settings. These files are a merge of the files that
1934 were generated with the gwt-maven plugin and the files we were previously
1938 * .settings/.jsdtscope:
1939 * .settings/com.google.gdt.eclipse.core.prefs:
1940 * .settings/com.google.gwt.eclipse.core.prefs:
1941 * .settings/org.eclipse.jdt.core.prefs:
1942 * .settings/org.eclipse.wst.common.component:
1943 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1944 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1945 * .settings/org.maven.ide.eclipse.prefs:
1946 * OnlineGlomTest-dev.launch:
1947 * OnlineGlomTest-prod.launch:
1949 Java source files moved from the 'src' directory to the directory structure
1951 * src/main/java/org/glom/web/client/GlomDocument.java:
1952 * src/main/java/org/glom/web/client/GlomTable.java:
1953 * src/main/java/org/glom/web/client/LayoutList.java:
1954 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1955 * src/main/java/org/glom/web/client/LibGlomService.java:
1956 * src/main/java/org/glom/web/client/OnlineGlom.java:
1957 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1959 Non-functional property file used for translations. I included this as
1960 reminder that it's something I need to sort out.
1961 * src/main/resources/org/glom/web/client/Messages.properties:
1963 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1964 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1966 The servlet configuration files moved from the 'war' directory.
1967 * src/main/webapp/OnlineGlom.css:
1968 * src/main/webapp/OnlineGlom.html:
1969 * src/main/webapp/WEB-INF/web.xml:
1971 Generated test files with most of the code commented out. I included these
1972 so that it's easy to add tests when we're ready for them.
1973 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1974 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1976 2011-01-25 Ben Konrath <ben@bagu.org>
1978 Remove unused println.
1980 * src/org/glom/web/server/LibGlomServiceImpl.java:
1982 2011-01-25 Ben Konrath <ben@bagu.org>
1984 Add project specific JDT settings.
1986 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1987 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1989 2011-01-25 Ben Konrath <ben@bagu.org>
1991 Populate celltable with example data.
1993 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1994 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1995 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1996 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1997 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1998 asynchronously gets the example data.
1999 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2000 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2001 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2002 curently selected table to be retrieved by other widgets.
2003 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2004 implement getTableData() in a hacky way. This method needs to be updated
2005 to grab information from the database when database creating is
2008 2011-01-20 Ben Konrath <ben@bagu.org>
2010 Set table headers when table dropBox changes.
2012 * src/org/glom/web/client/GlomDocument.java: Correct some method
2014 * src/org/glom/web/client/LibGlomService.java: Add method
2015 to get list layout field names.
2016 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2017 to get list layout field names.
2018 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2019 widget for list layout table.
2020 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2021 the table drop box and add new updateTable() method to asynchronously
2022 get the layout list field names for the currently selected table.
2023 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2024 implementation of getLayoutListHeaders() method.
2025 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2027 2011-01-18 Ben Konrath <ben@bagu.org>
2029 Make a listBox with table titles instead of the flexTable demo.
2031 This is the start of something more useful.
2033 * .classpath: Exclude a bunch of packages from the JVM that are
2034 getting in the way of the Eclipse content assist.
2035 * src/org/glom/web/client/GlomDocument.java:
2036 * src/org/glom/web/client/GlomTable.java:
2037 * src/org/glom/web/client/LibGlomService.java:
2038 * src/org/glom/web/client/LibGlomServiceAsync.java:
2039 * src/org/glom/web/client/OnlineGlom.java:
2040 * src/org/glom/web/server/LibGlomServiceImpl.java:
2041 * war/OnlineGlom.html:
2042 * war/WEB-INF/web.xml:
2044 211-01-13 Ben Konrath <ben@bagu.org>
2046 Update to new java-libglom API.
2048 * .gitignore: Ignore OnlineGlom.war.
2049 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2051 2010-12-20 Ben Konrath <ben@bagu.org>
2053 Add some basic style to the table listing.
2055 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2056 header, print useful error message on async callback failure.
2057 * war/OnlineGlom.css: Add style for table header, remove defaults
2058 provided by the Eclipse project wizard.
2060 2010-12-20 Ben Konrath <ben@bagu.org>
2062 Load example file from installed glom dir.
2064 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2065 provided by java-libglom to find the example file.
2067 2010-12-20 Ben Konrath <ben@bagu.org>
2069 Update Eclipse settings.
2072 * .settings/com.google.gdt.eclipse.core.prefs:
2073 * .settings/com.google.gwt.eclipse.core.prefs:
2075 2010-12-17 Ben Konrath <ben@bagu.org>
2079 * .classpath: New file.
2080 * .gitignore: New file.
2081 * .project: New file.
2082 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2083 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2084 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2085 * src/org/glom/web/client/GlomTable.java: New file.
2086 * src/org/glom/web/client/OnlineGlom.java: New file.
2087 * src/org/glom/web/client/TableNameService.java: New file.
2088 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2089 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2090 * war/OnlineGlom.css: New file.
2091 * war/OnlineGlom.html: New file.
2092 * war/WEB-INF/web.xml: New file.
2093 * war/images/glom.png: New file.