1 2011-04-08 Ben Konrath <ben@bagu.org>
3 Add copyright header to one more file ... oops.
5 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
7 2011-04-08 Ben Konrath <ben@bagu.org>
9 Add copyright header to files without it.
11 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
12 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
13 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
14 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
15 * src/main/java/org/glom/web/shared/ColumnInfo.java:
16 * src/main/java/org/glom/web/shared/GlomField.java:
18 2011-04-08 Ben Konrath <ben@bagu.org>
20 Add support for accessing multiple glom documents in the servlet.
22 This completes the demo selection functionality.
24 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
25 document title to methods.
26 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
27 document title to methods.
28 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
29 Set browser window title when the activity starts. Correct name of
30 document title variable.
31 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
32 Set browser window title when the activity starts. Set the table
33 selector change handler after table selector has been set. Clear the
34 OnlineGlomView when the activity has been stopped.
35 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
36 document title as the place token. Use "#Document:" instead of
37 "#OnlineGlomPlace:" in the URL.
38 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
39 Change heading to "Online Glom"
40 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
41 document title in RPC methods.
42 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
43 setDocumentTitle() method. Add clear() method.
44 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
45 setDocumentTitle() method. Implement clear() method which removes the
46 change handler on the ListBox, clears the ListBox and clears the
48 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
49 Implement methods with document title. Keep track for the configured
50 glom documents and their corresponding JDBC configurations in a hash
51 table. This information is retrieved using the document title as the
52 key in the hash table.
53 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
54 document title field as it's no longer needed.
56 2011-04-08 Ben Konrath <ben@bagu.org>
58 Update the Eclipse JDT configuration.
60 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
61 methods. Automatically add the copyright header to new files.
63 2011-04-05 Ben Konrath <ben@bagu.org>
65 Add new page for demo selection.
67 This patch adds all the components required to view and start an
68 OnlineGlom demo by clicking on the desired hyperlink. The user is
69 able to return to the demo selection page with the browser's back
70 button. I still need to modify the servlet to work with multiple
71 documents so all demo links will load the file defined in the
72 OnlineGlom.properties.
74 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
75 This is only useful during development so we don't need to save it.
76 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
77 get a reference to the DemoSelectionView.
78 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
79 method to get a reference to the DemoSelectionView.
80 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
81 default view to DemoSelectionView.
82 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
83 to get glom document titles for glom files in a hard-coded directory.
84 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
85 method to get glom document titles for glom files in a hard-coded
87 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
88 Presenter for DemoSelectionView.
89 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
90 for DemoSelectionView.
91 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
92 Update for DemoSelectionView.
93 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
94 Basic 'Place' implementation for the DemoSelectionView.
95 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
96 The interface for the DemoSelectionView.
97 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
98 The implementation of the DemoSelectionView.
99 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
100 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
102 implementation of method to get glom document titles for glom files
103 in a hard-coded directory.
104 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
105 on longer being used.
106 * src/main/webapp/glom.png: Glom logo.
108 2011-04-05 Ben Konrath <ben@bagu.org>
110 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
112 This is the forth and final commit of a refactor that will allow
113 OnlineGlom to be used with multiple documents.
115 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
116 Move RPC code from OnlineGlomViewImpl to this class.
117 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
119 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
120 RPC code to the presenter class (the P in MVP).
122 2011-04-04 Ben Konrath <ben@bagu.org>
124 Start moving the existing OnlineGlom code to MVP.
126 This work is based on the GWT MVP framework that is documented here:
128 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
130 This is the third commit of a refactor that will allow OnlineGlom to
131 be used with multiple documents.
133 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
134 Interface for client factory which is used to get instances of various
135 classes throughout the app.
136 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
137 Implementation of client factory.
138 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
139 initialize the MVP framework.
140 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
141 New file. Activity manager for the main container widget. This is the
143 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
144 Maps place (URL) to its corresponding activity.
145 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
146 New file. This is just a place holder for a generated file.
147 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
148 New file. Represents the URL for the main Online Glom app.
149 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
150 for changes in LayoutListViewImpl.
151 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
152 interface for View. Move code to OnlineGlomViewImpl class.
153 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
154 file. Implementation of OnlineGlomView.
155 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
156 Place resources. Use ClientFactoryImpl by default.
158 2011-04-04 Ben Konrath <ben@bagu.org>
160 Move View classes to their own package.
162 This is the second commit of a refactor that will allow OnlineGlom to
163 be used with multiple documents.
165 * src/main/java/org/glom/web/client/OnlineGlom.java:
166 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
167 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
169 2011-04-02 Ben Konrath <ben@bagu.org>
171 Move UI code from the main module to its own class.
173 This is the first commit of a refactor that will allow OnlineGlom to be
174 used with multiple documents.
176 * src/main/java/org/glom/web/client/LayoutListView.java: Update
177 references to OnlineGlom to OnlineGlomView.
178 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
179 OnlineGlomView and instantiate it here.
180 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
181 represents the main OnlineGlomView with one document.
183 2011-04-01 Ben Konrath <ben@bagu.org>
185 Fix formatting of gwt.xml and add DTD.
187 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
189 2011-03-30 Ben Konrath <ben@bagu.org>
191 Propperly convert gdkColor string to html colour string.
193 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
195 2011-03-28 Ben Konrath <ben@bagu.org>
197 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
199 This implementation matches
200 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
201 readable and is not tied to Swig.
203 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
205 2011-03-28 Ben Konrath <ben@bagu.org>
207 Use read-only checkboxes for boolean field types.
209 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
210 in the CellTable based on the field type. It currently only
211 distinguishes between boolean and text columns but I'll need to add
212 support for more types.
213 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
214 column type in the ColumnInfo object. Add method to convert between the
215 glom field type enum in ColumnInfo and the glom field type in libglom.
216 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
218 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
219 getting and setting booleans.
221 2011-03-25 Ben Konrath <ben@bagu.org>
223 Don't get the Date twice from the ResultSet.
225 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
227 2011-03-25 Ben Konrath <ben@bagu.org>
229 Cleanup code in the servlet.
231 * TODO: Remove item about row count. Add item about testing row count
232 query with large number of rows.
233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
234 spelling mistakes, change method parameter to be consistent with
237 2011-03-25 Ben Konrath <ben@bagu.org>
239 Add server side logging with the gwt-log library.
241 * .gitignore: Ignore the log file we're now producing.
242 * TODO: Add a couple TODO item for logging.
243 * pom.xml: Add gwt-log and log4j as a dependency.
244 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
245 logging of errors, warnings and some important info.
246 * src/main/resources/log4j.properties: New file to configure log4j.
248 2011-03-24 Ben Konrath <ben@bagu.org>
250 Add a disable button for the Details view.
252 * src/main/java/org/glom/web/client/LayoutListView.java:
254 2011-03-22 Ben Konrath <ben@bagu.org>
256 Use a count query to get the number of rows for the list view pager.
258 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
260 2011-03-22 Ben Konrath <ben@bagu.org>
262 Add more TODO information about CellTable pager positioning.
266 2011-03-19 Ben Konrath <ben@bagu.org>
268 Add TODO item about CellTable pager positioning.
272 2011-03-18 Ben Konrath <ben@bagu.org>
274 Remove unneeded GlomFieldColumn class.
276 This is just a small code cleanup.
278 * src/main/java/org/glom/web/client/LayoutListView.java:
280 2011-03-18 Ben Konrath <ben@bagu.org>
282 Use cursor mode in the query that gets data for the list view.
284 I still need to fix the potential memory problem when getting the row
285 count for the list view.
287 * TODO: Add note about testing memory usage with large data sets. Add
288 item about fixing row counting with large data sets.
289 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
290 PostgreSQL JDBC driver into cursor mode when getting data for the
293 2011-03-15 Ben Konrath <ben@bagu.org>
295 Remove the GWT Container from the Eclipse build classpath.
297 The GWT dependencies are set by Maven so this isn't needed.
301 2011-03-15 Murray Cumming <murrayc@murrayc.com>
303 Added some earlier mockups to git, but not to the tarball dist.
305 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
306 Openismus. These hopefully show how we might structure the HTML so that
307 it can be styled easily with CSS. However, we probably need to adapt them
308 for the CSS structure that GWT dictates for common widgets.
310 2011-03-14 Ben Konrath <ben@bagu.org>
312 Locate OnlineGlom.properties using the ServletContext.
314 This is required to be able to locate the file in the deployed servlet.
316 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
317 Configure the database and glom document in in a helper method so
318 that the ServletContext can be used to locate OnlineGlom.properties.
319 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
320 src/main/webapp. This is the proper location for .properites files.
322 2011-03-12 Ben Konrath <ben@bagu.org>
324 Add note to README about why we're compiling down to obfuscated JavaScript.
328 2011-03-11 Ben Konrath <ben@bagu.org>
330 Use properties file to configure servlet.
332 This allows people to change the glom file path, db username and db
333 password without recompiling the code.
335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
336 * src/main/webapp/OnlineGlom.properties:
338 2011-03-11 Ben Konrath <ben@bagu.org>
340 Use table fields in layout list view if the layout list is not defined.
342 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
343 Manually create a LayoutFieldVector for the query builder using the
344 table fields when a layout list is not defined in the glom file.
346 2011-03-11 Ben Konrath <ben@bagu.org>
348 Only show FIXME string for images when there's an image.
350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
351 in this change are some small code cleanups.
353 2011-03-11 Ben Konrath <ben@bagu.org>
355 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
357 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
359 2011-03-11 Ben Konrath <ben@bagu.org>
361 Correctly set the index of the default table.
363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
364 Correctly set the index of the default table. Add commented out example
367 2011-03-10 Ben Konrath <ben@bagu.org>
369 Add comment to pom.xml about the previous change.
371 * pom.xml: Add comment about the deployment issue so that it's obvious
372 why java-libglom is set to the provided scope.
374 2011-03-10 Ben Konrath <ben@bagu.org>
376 Change java-libglom dependency from compile to provided in pom.xml.
378 Since java-libglom uses jni it can only be loaded once and therefore
379 must be placed in $CATALINA_HOME/lib and not included in each war.
380 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
381 More information about this issue can be found in the Tomcat 6 release
382 notes in the "JNI Based Applications" section:
384 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
386 * README: Remove note about this issue. Deployment info should really
387 be on the wiki anyway so I'll add it right now.
388 * pom.xml: Change java-libglom dependency from compile to provided so
389 that it's copied in to the packaged war.
391 2011-03-09 Ben Konrath <ben@bagu.org>
393 Change to using a neutral locale for currency, date and time formatting.
395 This solves the problem of currency values being represented without a
396 space between the currency code and the number (e.g. "EUR5.89" is now
397 represented as "EUR 5.89"). More work is required when we implement
398 a locale preference setting.
400 * TODO: Add note about currency formatting issues with different
402 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
403 to using the neutral ROOT locale.
405 2011-03-09 Ben Konrath <ben@bagu.org>
407 Add support for currency codes that are not ISO 4217 codes.
409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
410 the currency code defined in the glom file when it's not 3 characters
411 long or when Java doesn't recognize the string as an ISO 4217 code.
413 2011-03-08 Ben Konrath <ben@bagu.org>
415 Remove test classes, launch configurations and configuration.
417 The test stuff was getting in the way when creating the war. To make
418 the war file you can now do 'mvn clean package'. The packaged war file
419 will be in the target directory.
421 * .classpath: Remove unused classpathentry for tests and i18n.
422 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
423 property. Don't run test or i18n goals when packaging the war.
424 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
429 * OnlineGlomTest-dev.launch:
430 * OnlineGlomTest-prod.launch:
431 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
432 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
434 2011-03-07 Ben Konrath <ben@bagu.org>
436 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
438 These fixes allow me to use 'mvn deploy' to create the war file.
440 * .classpath: This generated config has been updated by Eclipse. This
441 change was probably triggered by me updating from Eclipse 3.6.1 to
443 * .gitignore: Add entry to ignore the directory
444 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
445 * .project: The generated config has been updated by Eclipse. This
446 change was probably triggered by me updating from Eclipse 3.6.1 to
448 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
449 so that Eclipse doesn't complain
450 * pom.xml: Update to gwt-maven-plugin 2.2.0.
451 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
452 'tests' directory to 'client' directory. This is the new
453 gwt-maven-plugin convension.
454 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
455 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
457 2011-03-07 Ben Konrath <ben@bagu.org>
459 Add support for horizontal alignment in the LayoutList columns.
461 * TODO: Remove item about horizontal alignment. Add item about
462 improvements to ColumnInfo.
463 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
464 alignment on the columns. Use ColumnInfo RPC object get the column
465 title and horizontal alignment.
466 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
467 LayoutListView creation with ColumnInfo RPC object.
468 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
469 a ColumnInfo object for every LayoutList columnn. Convert the
470 FieldFormatting.HorizontalAlignment to the correct
471 ColumnnInfo.HorizontatlAlignment with the new
472 getColumnInfoHorizontalAlignment helper method.
473 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
474 to encapsulate column information like alignment and title. This
475 could be used to set the colour instead of on a per cell field basis.
476 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
477 column title storage and retrieval with ColumnInfo.
479 2011-03-04 Ben Konrath <ben@bagu.org>
481 Add support for column sorting.
483 * src/main/java/org/glom/web/client/LayoutListView.java: Change
484 AsynDataProvider to be an anonymous inner class. Use new
485 getSortedTableData RPC method when column sort is requested. Set all
486 columns sortable and add an AsyncHandler to activate sorting in the
488 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
489 method getSortedTableData(). Cleanup other method signatures.
490 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
491 new method getSortedTableData(). Cleanup other method signatures.
492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
493 Implement getSortedTableData() and getTableData() methods by using a
494 private helper method with the appropriate parameters filled in. Use
495 user supplied sort clause when supplied, otherwise fall back to
496 sorting by the primary key. Move destroy() method to be underneath
497 constructor for readability. Cleanup comments.
499 2011-03-03 Ben Konrath <ben@bagu.org>
501 Add support for colour text and colour backgrounds to the layout list cells.
503 Only the cell backgrounds are coloured which leaves a gap between the
504 cells that isn't coloured. I need to figure out a way to set
505 'style=background-colour:' on the whole column rather than just the
508 * TODO: Add a note about colouring the background of the whole column.
509 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
510 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
511 render the coloured text and backgrounds. Use GlomField[] for the row type.
512 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
514 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
515 GlomField[] for the row type.
516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
517 GlomField[] for the row type. Set the text, text colour and background
518 colour in the GlomField objects as specified in the glom document. Add
519 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
520 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
521 the glom field text, foreground colour and background colour.
523 2011-03-02 Ben Konrath <ben@bagu.org>
525 Don't display hidden tables in the combo box.
527 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
529 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
530 code to ignore hidden tables using ArrayLists for the table names and
532 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
533 tableNames to use ArrayLists instead of String[]. Update getter and setter
536 2011-03-01 Ben Konrath <ben@bagu.org>
538 Add support for Date and Time number types.
540 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
541 Implement formatting for Date and Time values. Change the default glom
542 file to small business example.
544 2011-03-01 Ben Konrath <ben@bagu.org>
546 Add support for formatting glom types as specified in the glom file.
548 Formatting isn't finished yet - I still need to add support for Date
551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
552 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
553 checks for null values in JDBC cleanup code and catch all exceptions
554 instead of just SQLExceptions.
555 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
558 2011-03-01 Ben Konrath <ben@bagu.org>
560 Use GWT 2.2.0 instead of 2.1.1.
562 * pom.xml: Change GWT version numbers.
564 2011-03-01 Ben Konrath <ben@bagu.org>
566 A few small code cleanups.
568 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
570 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
571 unnecessary object creation in constructor.
572 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
573 unnecessary object creation in constructor.
575 2011-02-28 Ben Konrath <ben@bagu.org>
577 Add file for TODO list.
581 2011-02-18 Ben Konrath <ben@bagu.org>
583 Enable the CellTable Pager when more than 20 rows need to be viewed.
585 The Pager will automatically become active when the results are larger
586 than the CellTable size which is currently set to 20 lines.
588 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
589 name on debug statment in RPC call in LayoutListDataProvider, add
590 numRows parameter to LayoutListView constructor, propperly set rowCount
592 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
593 name on debug statment in RPC call, use LayoutListTable object in RPC
594 calls, pass rowCount to LayoutListView.
595 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
596 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
598 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
599 interface for changes in OnlineGlomService.
600 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
601 getLayoutListHeaders() to getLayoutListTable() and return
602 LayoutListTable. Using this object allows me to pass other information
603 about the LayoutList like the expected number of rows in the result set.
604 The Connection object from the connection pool is now propperly closed.
605 Only the requested number of lines are returned to the client in
607 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
608 GlomTable and add columnTitles and numRows.
610 2011-02-18 Ben Konrath <ben@bagu.org>
612 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
614 This is a small performance boost. I'll use GlomTable to get the required
615 layoutlist information.
617 * src/main/java/org/glom/web/client/OnlineGlom.java:
618 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
619 * src/main/java/org/glom/web/shared/GlomDocument.java:
621 2011-02-18 Ben Konrath <ben@bagu.org>
623 Add option to turn off formatting in JDT formatter preferences.
625 * .settings/org.eclipse.jdt.core.prefs:
627 2011-02-18 Ben Konrath <ben@bagu.org>
629 Rename LayoutList to LayoutListView.
631 I'm working towards setting things up to easily use MVP when the time
634 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
636 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
639 2011-02-17 Ben Konrath <ben@bagu.org>
641 Move LayoutListDataProvider class into LayoutList.java.
643 * src/main/java/org/glom/web/client/LayoutList.java:
645 2011-02-17 Ben Konrath <ben@bagu.org>
647 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
649 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
651 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
652 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
653 from LibGlomServer.java.
654 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
655 Rename from LibGlomServiceAsync.java.
656 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
657 Rename from LibGlomServiceImpl.java.
658 * src/main/webapp/WEB-INF/web.xml: Update configuration.
660 2011-02-17 Ben Konrath <ben@bagu.org>
664 * .settings/org.eclipse.jdt.core.prefs:
666 2011-02-17 Ben Konrath <ben@bagu.org>
668 Move GWT-RPC objects to shared package (where they should be).
670 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
671 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
672 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
673 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
674 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
675 org.glom.web.shared package.
676 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
677 org.glom.web.shared package.
678 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
679 directory in compilation to javascript.
681 2011-02-16 Ben Konrath <ben@bagu.org>
683 Add sort clause to the sql query that grabs table information.
685 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
686 if one of the columns is a primary key.
688 2011-02-16 Ben Konrath <ben@bagu.org>
690 Disable generateAsync feature of gwt-maven.
692 The generated interface does not correctly match the methods in LibGlomService
693 and the generated singleton Util inner-class doesn't respect the servlet
696 * pom.xml: Turn off generateAsync feature.
697 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
698 with singleton Util inner-class.
700 2011-02-14 Ben Konrath <ben@bagu.org>
702 Add LGPL v3 licence notices.
704 Followed directions listed here:
705 http://www.gnu.org/licenses/gpl-howto.html
707 * COPYING: This file is a copy of the GPL v3.
708 * COPYING.LESSER: This file is a copy of the LGPL v3.
709 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
711 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
713 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
715 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
717 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
719 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
721 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
724 2011-02-14 Ben Konrath <ben@bagu.org>
726 Use ArrayList instead of Array in GWT-RPC calls.
728 Apparently this gives a slight performance boost to the compiled
731 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
733 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
736 2011-02-14 Ben Konrath <ben@bagu.org>
738 Access data from a postgres db rather than the example glom file.
740 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
741 compile down to obfuscated javascript.
742 * pom.xml: Add c3p0 and postgres JDBC libraries.
743 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
744 using a postgres db accessed through the c3p0 connection pooling library.
746 2011-02-14 Ben Konrath <ben@bagu.org>
748 Update Java formatter settings.
750 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
752 2011-02-02 Ben Konrath <ben@bagu.org>
754 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
756 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
758 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
759 the compiled webapp directory that Eclipse uses as we're using Maven now.
760 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
761 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
763 * pom.xml: Format file, change target Java version to 1.6.
765 2011-02-02 Ben Konrath <ben@bagu.org>
767 Add information about a deployment related issue.
769 * README: Add Notes section with the problem outlined.
771 2011-02-02 Ben Konrath <ben@bagu.org>
773 Call Glom.libglom_deinit() when the servlet is shutdown.
775 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
776 Glom.libglom_deinit() to destroy() method.
778 2011-01-28 Ben Konrath <ben@bagu.org>
780 Use generated Util class to get the RPC Async interface.
782 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
784 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
785 getInstance() method to get a reference to the RPC Async interface.
786 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
787 getInstance() method to get a reference to the RPC Async interface, remove
788 the now unused getLibGlomServiceProxy() method.
790 2011-01-27 Ben Konrath <ben@bagu.org>
792 Cleanup ChangeLog entry from previous commit.
794 * ChangeLog: Group logical changes together and add comments.
796 2011-01-25 Ben Konrath <ben@bagu.org>
798 Convert to gwt-maven project.
800 * .gitignore: Update for new project structure.
801 * README: New file with a link to the online documentation.
802 * pom.xml: The generated maven configuration file with some tweaks.
804 Add / update Eclipse settings. These files are a merge of the files that
805 were generated with the gwt-maven plugin and the files we were previously
809 * .settings/.jsdtscope:
810 * .settings/com.google.gdt.eclipse.core.prefs:
811 * .settings/com.google.gwt.eclipse.core.prefs:
812 * .settings/org.eclipse.jdt.core.prefs:
813 * .settings/org.eclipse.wst.common.component:
814 * .settings/org.eclipse.wst.common.project.facet.core.xml:
815 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
816 * .settings/org.maven.ide.eclipse.prefs:
817 * OnlineGlomTest-dev.launch:
818 * OnlineGlomTest-prod.launch:
820 Java source files moved from the 'src' directory to the directory structure
822 * src/main/java/org/glom/web/client/GlomDocument.java:
823 * src/main/java/org/glom/web/client/GlomTable.java:
824 * src/main/java/org/glom/web/client/LayoutList.java:
825 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
826 * src/main/java/org/glom/web/client/LibGlomService.java:
827 * src/main/java/org/glom/web/client/OnlineGlom.java:
828 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
830 Non-functional property file used for translations. I included this as
831 reminder that it's something I need to sort out.
832 * src/main/resources/org/glom/web/client/Messages.properties:
834 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
835 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
837 The servlet configuration files moved from the 'war' directory.
838 * src/main/webapp/OnlineGlom.css:
839 * src/main/webapp/OnlineGlom.html:
840 * src/main/webapp/WEB-INF/web.xml:
842 Generated test files with most of the code commented out. I included these
843 so that it's easy to add tests when we're ready for them.
844 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
845 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
847 2011-01-25 Ben Konrath <ben@bagu.org>
849 Remove unused println.
851 * src/org/glom/web/server/LibGlomServiceImpl.java:
853 2011-01-25 Ben Konrath <ben@bagu.org>
855 Add project specific JDT settings.
857 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
858 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
860 2011-01-25 Ben Konrath <ben@bagu.org>
862 Populate celltable with example data.
864 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
865 * src/org/glom/web/client/GlomTable.java: Correct formatting.
866 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
867 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
868 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
869 asynchronously gets the example data.
870 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
871 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
872 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
873 curently selected table to be retrieved by other widgets.
874 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
875 implement getTableData() in a hacky way. This method needs to be updated
876 to grab information from the database when database creating is
879 2011-01-20 Ben Konrath <ben@bagu.org>
881 Set table headers when table dropBox changes.
883 * src/org/glom/web/client/GlomDocument.java: Correct some method
885 * src/org/glom/web/client/LibGlomService.java: Add method
886 to get list layout field names.
887 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
888 to get list layout field names.
889 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
890 widget for list layout table.
891 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
892 the table drop box and add new updateTable() method to asynchronously
893 get the layout list field names for the currently selected table.
894 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
895 implementation of getLayoutListHeaders() method.
896 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
898 2011-01-18 Ben Konrath <ben@bagu.org>
900 Make a listBox with table titles instead of the flexTable demo.
902 This is the start of something more useful.
904 * .classpath: Exclude a bunch of packages from the JVM that are
905 getting in the way of the Eclipse content assist.
906 * src/org/glom/web/client/GlomDocument.java:
907 * src/org/glom/web/client/GlomTable.java:
908 * src/org/glom/web/client/LibGlomService.java:
909 * src/org/glom/web/client/LibGlomServiceAsync.java:
910 * src/org/glom/web/client/OnlineGlom.java:
911 * src/org/glom/web/server/LibGlomServiceImpl.java:
912 * war/OnlineGlom.html:
913 * war/WEB-INF/web.xml:
915 211-01-13 Ben Konrath <ben@bagu.org>
917 Update to new java-libglom API.
919 * .gitignore: Ignore OnlineGlom.war.
920 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
922 2010-12-20 Ben Konrath <ben@bagu.org>
924 Add some basic style to the table listing.
926 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
927 header, print useful error message on async callback failure.
928 * war/OnlineGlom.css: Add style for table header, remove defaults
929 provided by the Eclipse project wizard.
931 2010-12-20 Ben Konrath <ben@bagu.org>
933 Load example file from installed glom dir.
935 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
936 provided by java-libglom to find the example file.
938 2010-12-20 Ben Konrath <ben@bagu.org>
940 Update Eclipse settings.
943 * .settings/com.google.gdt.eclipse.core.prefs:
944 * .settings/com.google.gwt.eclipse.core.prefs:
946 2010-12-17 Ben Konrath <ben@bagu.org>
950 * .classpath: New file.
951 * .gitignore: New file.
952 * .project: New file.
953 * .settings/com.google.gdt.eclipse.core.prefs: New file.
954 * .settings/com.google.gwt.eclipse.core.prefs: New file.
955 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
956 * src/org/glom/web/client/GlomTable.java: New file.
957 * src/org/glom/web/client/OnlineGlom.java: New file.
958 * src/org/glom/web/client/TableNameService.java: New file.
959 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
960 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
961 * war/OnlineGlom.css: New file.
962 * war/OnlineGlom.html: New file.
963 * war/WEB-INF/web.xml: New file.
964 * war/images/glom.png: New file.