1 2011-03-07 Ben Konrath <ben@bagu.org>
3 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
5 These fixes allow me to use 'mvn deploy' to create the war file.
7 * .classpath: This generated config has been updated by Eclipse. This
8 change was probably triggered by me updating from Eclipse 3.6.1 to
10 * .gitignore: Add entry to ignore the directory
11 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
12 * .project: The generated config has been updated by Eclipse. This
13 change was probably triggered by me updating from Eclipse 3.6.1 to
15 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
16 so that Eclipse doesn't complain
17 * pom.xml: Update to gwt-maven-plugin 2.2.0.
18 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
19 'tests' directory to 'client' directory. This is the new
20 gwt-maven-plugin convension.
21 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
22 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
24 2011-03-07 Ben Konrath <ben@bagu.org>
26 Add support for horizontal alignment in the LayoutList columns.
28 * TODO: Remove item about horizontal alignment. Add item about
29 improvements to ColumnInfo.
30 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
31 alignment on the columns. Use ColumnInfo RPC object get the column
32 title and horizontal alignment.
33 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
34 LayoutListView creation with ColumnInfo RPC object.
35 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
36 a ColumnInfo object for every LayoutList columnn. Convert the
37 FieldFormatting.HorizontalAlignment to the correct
38 ColumnnInfo.HorizontatlAlignment with the new
39 getColumnInfoHorizontalAlignment helper method.
40 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
41 to encapsulate column information like alignment and title. This
42 could be used to set the colour instead of on a per cell field basis.
43 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
44 column title storage and retrieval with ColumnInfo.
46 2011-03-04 Ben Konrath <ben@bagu.org>
48 Add support for column sorting.
50 * src/main/java/org/glom/web/client/LayoutListView.java: Change
51 AsynDataProvider to be an anonymous inner class. Use new
52 getSortedTableData RPC method when column sort is requested. Set all
53 columns sortable and add an AsyncHandler to activate sorting in the
55 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
56 method getSortedTableData(). Cleanup other method signatures.
57 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
58 new method getSortedTableData(). Cleanup other method signatures.
59 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
60 Implement getSortedTableData() and getTableData() methods by using a
61 private helper method with the appropriate parameters filled in. Use
62 user supplied sort clause when supplied, otherwise fall back to
63 sorting by the primary key. Move destroy() method to be underneath
64 constructor for readability. Cleanup comments.
66 2011-03-03 Ben Konrath <ben@bagu.org>
68 Add support for colour text and colour backgrounds to the layout list cells.
70 Only the cell backgrounds are coloured which leaves a gap between the
71 cells that isn't coloured. I need to figure out a way to set
72 'style=background-colour:' on the whole column rather than just the
75 * TODO: Add a note about colouring the background of the whole column.
76 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
77 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
78 render the coloured text and backgrounds. Use GlomField[] for the row type.
79 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
81 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
82 GlomField[] for the row type.
83 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
84 GlomField[] for the row type. Set the text, text colour and background
85 colour in the GlomField objects as specified in the glom document. Add
86 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
87 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
88 the glom field text, foreground colour and background colour.
90 2011-03-02 Ben Konrath <ben@bagu.org>
92 Don't display hidden tables in the combo box.
94 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
96 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
97 code to ignore hidden tables using ArrayLists for the table names and
99 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
100 tableNames to use ArrayLists instead of String[]. Update getter and setter
103 2011-03-01 Ben Konrath <ben@bagu.org>
105 Add support for Date and Time number types.
107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
108 Implement formatting for Date and Time values. Change the default glom
109 file to small business example.
111 2011-03-01 Ben Konrath <ben@bagu.org>
113 Add support for formatting glom types as specified in the glom file.
115 Formatting isn't finished yet - I still need to add support for Date
118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
119 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
120 checks for null values in JDBC cleanup code and catch all exceptions
121 instead of just SQLExceptions.
122 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
125 2011-03-01 Ben Konrath <ben@bagu.org>
127 Use GWT 2.2.0 instead of 2.1.1.
129 * pom.xml: Change GWT version numbers.
131 2011-03-01 Ben Konrath <ben@bagu.org>
133 A few small code cleanups.
135 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
137 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
138 unnecessary object creation in constructor.
139 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
140 unnecessary object creation in constructor.
142 2011-02-28 Ben Konrath <ben@bagu.org>
144 Add file for TODO list.
148 2011-02-18 Ben Konrath <ben@bagu.org>
150 Enable the CellTable Pager when more than 20 rows need to be viewed.
152 The Pager will automatically become active when the results are larger
153 than the CellTable size which is currently set to 20 lines.
155 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
156 name on debug statment in RPC call in LayoutListDataProvider, add
157 numRows parameter to LayoutListView constructor, propperly set rowCount
159 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
160 name on debug statment in RPC call, use LayoutListTable object in RPC
161 calls, pass rowCount to LayoutListView.
162 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
163 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
165 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
166 interface for changes in OnlineGlomService.
167 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
168 getLayoutListHeaders() to getLayoutListTable() and return
169 LayoutListTable. Using this object allows me to pass other information
170 about the LayoutList like the expected number of rows in the result set.
171 The Connection object from the connection pool is now propperly closed.
172 Only the requested number of lines are returned to the client in
174 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
175 GlomTable and add columnTitles and numRows.
177 2011-02-18 Ben Konrath <ben@bagu.org>
179 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
181 This is a small performance boost. I'll use GlomTable to get the required
182 layoutlist information.
184 * src/main/java/org/glom/web/client/OnlineGlom.java:
185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
186 * src/main/java/org/glom/web/shared/GlomDocument.java:
188 2011-02-18 Ben Konrath <ben@bagu.org>
190 Add option to turn off formatting in JDT formatter preferences.
192 * .settings/org.eclipse.jdt.core.prefs:
194 2011-02-18 Ben Konrath <ben@bagu.org>
196 Rename LayoutList to LayoutListView.
198 I'm working towards setting things up to easily use MVP when the time
201 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
203 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
206 2011-02-17 Ben Konrath <ben@bagu.org>
208 Move LayoutListDataProvider class into LayoutList.java.
210 * src/main/java/org/glom/web/client/LayoutList.java:
212 2011-02-17 Ben Konrath <ben@bagu.org>
214 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
216 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
218 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
219 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
220 from LibGlomServer.java.
221 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
222 Rename from LibGlomServiceAsync.java.
223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
224 Rename from LibGlomServiceImpl.java.
225 * src/main/webapp/WEB-INF/web.xml: Update configuration.
227 2011-02-17 Ben Konrath <ben@bagu.org>
231 * .settings/org.eclipse.jdt.core.prefs:
233 2011-02-17 Ben Konrath <ben@bagu.org>
235 Move GWT-RPC objects to shared package (where they should be).
237 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
238 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
239 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
240 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
241 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
242 org.glom.web.shared package.
243 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
244 org.glom.web.shared package.
245 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
246 directory in compilation to javascript.
248 2011-02-16 Ben Konrath <ben@bagu.org>
250 Add sort clause to the sql query that grabs table information.
252 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
253 if one of the columns is a primary key.
255 2011-02-16 Ben Konrath <ben@bagu.org>
257 Disable generateAsync feature of gwt-maven.
259 The generated interface does not correctly match the methods in LibGlomService
260 and the generated singleton Util inner-class doesn't respect the servlet
263 * pom.xml: Turn off generateAsync feature.
264 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
265 with singleton Util inner-class.
267 2011-02-14 Ben Konrath <ben@bagu.org>
269 Add LGPL v3 licence notices.
271 Followed directions listed here:
272 http://www.gnu.org/licenses/gpl-howto.html
274 * COPYING: This file is a copy of the GPL v3.
275 * COPYING.LESSER: This file is a copy of the LGPL v3.
276 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
278 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
280 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
282 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
284 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
286 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
288 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
291 2011-02-14 Ben Konrath <ben@bagu.org>
293 Use ArrayList instead of Array in GWT-RPC calls.
295 Apparently this gives a slight performance boost to the compiled
298 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
300 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
303 2011-02-14 Ben Konrath <ben@bagu.org>
305 Access data from a postgres db rather than the example glom file.
307 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
308 compile down to obfuscated javascript.
309 * pom.xml: Add c3p0 and postgres JDBC libraries.
310 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
311 using a postgres db accessed through the c3p0 connection pooling library.
313 2011-02-14 Ben Konrath <ben@bagu.org>
315 Update Java formatter settings.
317 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
319 2011-02-02 Ben Konrath <ben@bagu.org>
321 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
323 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
325 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
326 the compiled webapp directory that Eclipse uses as we're using Maven now.
327 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
328 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
330 * pom.xml: Format file, change target Java version to 1.6.
332 2011-02-02 Ben Konrath <ben@bagu.org>
334 Add information about a deployment related issue.
336 * README: Add Notes section with the problem outlined.
338 2011-02-02 Ben Konrath <ben@bagu.org>
340 Call Glom.libglom_deinit() when the servlet is shutdown.
342 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
343 Glom.libglom_deinit() to destroy() method.
345 2011-01-28 Ben Konrath <ben@bagu.org>
347 Use generated Util class to get the RPC Async interface.
349 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
351 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
352 getInstance() method to get a reference to the RPC Async interface.
353 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
354 getInstance() method to get a reference to the RPC Async interface, remove
355 the now unused getLibGlomServiceProxy() method.
357 2011-01-27 Ben Konrath <ben@bagu.org>
359 Cleanup ChangeLog entry from previous commit.
361 * ChangeLog: Group logical changes together and add comments.
363 2011-01-25 Ben Konrath <ben@bagu.org>
365 Convert to gwt-maven project.
367 * .gitignore: Update for new project structure.
368 * README: New file with a link to the online documentation.
369 * pom.xml: The generated maven configuration file with some tweaks.
371 Add / update Eclipse settings. These files are a merge of the files that
372 were generated with the gwt-maven plugin and the files we were previously
376 * .settings/.jsdtscope:
377 * .settings/com.google.gdt.eclipse.core.prefs:
378 * .settings/com.google.gwt.eclipse.core.prefs:
379 * .settings/org.eclipse.jdt.core.prefs:
380 * .settings/org.eclipse.wst.common.component:
381 * .settings/org.eclipse.wst.common.project.facet.core.xml:
382 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
383 * .settings/org.maven.ide.eclipse.prefs:
384 * OnlineGlomTest-dev.launch:
385 * OnlineGlomTest-prod.launch:
387 Java source files moved from the 'src' directory to the directory structure
389 * src/main/java/org/glom/web/client/GlomDocument.java:
390 * src/main/java/org/glom/web/client/GlomTable.java:
391 * src/main/java/org/glom/web/client/LayoutList.java:
392 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
393 * src/main/java/org/glom/web/client/LibGlomService.java:
394 * src/main/java/org/glom/web/client/OnlineGlom.java:
395 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
397 Non-functional property file used for translations. I included this as
398 reminder that it's something I need to sort out.
399 * src/main/resources/org/glom/web/client/Messages.properties:
401 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
402 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
404 The servlet configuration files moved from the 'war' directory.
405 * src/main/webapp/OnlineGlom.css:
406 * src/main/webapp/OnlineGlom.html:
407 * src/main/webapp/WEB-INF/web.xml:
409 Generated test files with most of the code commented out. I included these
410 so that it's easy to add tests when we're ready for them.
411 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
412 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
414 2011-01-25 Ben Konrath <ben@bagu.org>
416 Remove unused println.
418 * src/org/glom/web/server/LibGlomServiceImpl.java:
420 2011-01-25 Ben Konrath <ben@bagu.org>
422 Add project specific JDT settings.
424 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
425 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
427 2011-01-25 Ben Konrath <ben@bagu.org>
429 Populate celltable with example data.
431 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
432 * src/org/glom/web/client/GlomTable.java: Correct formatting.
433 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
434 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
435 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
436 asynchronously gets the example data.
437 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
438 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
439 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
440 curently selected table to be retrieved by other widgets.
441 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
442 implement getTableData() in a hacky way. This method needs to be updated
443 to grab information from the database when database creating is
446 2011-01-20 Ben Konrath <ben@bagu.org>
448 Set table headers when table dropBox changes.
450 * src/org/glom/web/client/GlomDocument.java: Correct some method
452 * src/org/glom/web/client/LibGlomService.java: Add method
453 to get list layout field names.
454 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
455 to get list layout field names.
456 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
457 widget for list layout table.
458 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
459 the table drop box and add new updateTable() method to asynchronously
460 get the layout list field names for the currently selected table.
461 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
462 implementation of getLayoutListHeaders() method.
463 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
465 2011-01-18 Ben Konrath <ben@bagu.org>
467 Make a listBox with table titles instead of the flexTable demo.
469 This is the start of something more useful.
471 * .classpath: Exclude a bunch of packages from the JVM that are
472 getting in the way of the Eclipse content assist.
473 * src/org/glom/web/client/GlomDocument.java:
474 * src/org/glom/web/client/GlomTable.java:
475 * src/org/glom/web/client/LibGlomService.java:
476 * src/org/glom/web/client/LibGlomServiceAsync.java:
477 * src/org/glom/web/client/OnlineGlom.java:
478 * src/org/glom/web/server/LibGlomServiceImpl.java:
479 * war/OnlineGlom.html:
480 * war/WEB-INF/web.xml:
482 211-01-13 Ben Konrath <ben@bagu.org>
484 Update to new java-libglom API.
486 * .gitignore: Ignore OnlineGlom.war.
487 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
489 2010-12-20 Ben Konrath <ben@bagu.org>
491 Add some basic style to the table listing.
493 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
494 header, print useful error message on async callback failure.
495 * war/OnlineGlom.css: Add style for table header, remove defaults
496 provided by the Eclipse project wizard.
498 2010-12-20 Ben Konrath <ben@bagu.org>
500 Load example file from installed glom dir.
502 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
503 provided by java-libglom to find the example file.
505 2010-12-20 Ben Konrath <ben@bagu.org>
507 Update Eclipse settings.
510 * .settings/com.google.gdt.eclipse.core.prefs:
511 * .settings/com.google.gwt.eclipse.core.prefs:
513 2010-12-17 Ben Konrath <ben@bagu.org>
517 * .classpath: New file.
518 * .gitignore: New file.
519 * .project: New file.
520 * .settings/com.google.gdt.eclipse.core.prefs: New file.
521 * .settings/com.google.gwt.eclipse.core.prefs: New file.
522 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
523 * src/org/glom/web/client/GlomTable.java: New file.
524 * src/org/glom/web/client/OnlineGlom.java: New file.
525 * src/org/glom/web/client/TableNameService.java: New file.
526 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
527 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
528 * war/OnlineGlom.css: New file.
529 * war/OnlineGlom.html: New file.
530 * war/WEB-INF/web.xml: New file.
531 * war/images/glom.png: New file.