1 2011-03-09 Ben Konrath <ben@bagu.org>
3 Add support for currency codes that are not ISO 4217 codes.
5 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
6 the currency code defined in the glom file when it's not 3 characters
7 long or when Java doesn't recognize the string as an ISO 4217 code.
9 2011-03-08 Ben Konrath <ben@bagu.org>
11 Remove test classes, launch configurations and configuration.
13 The test stuff was getting in the way when creating the war. To make
14 the war file you can now do 'mvn clean package'. The packaged war file
15 will be in the target directory.
17 * .classpath: Remove unused classpathentry for tests and i18n.
18 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
19 property. Don't run test or i18n goals when packaging the war.
20 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
25 * OnlineGlomTest-dev.launch:
26 * OnlineGlomTest-prod.launch:
27 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
28 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
30 2011-03-07 Ben Konrath <ben@bagu.org>
32 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
34 These fixes allow me to use 'mvn deploy' to create the war file.
36 * .classpath: This generated config has been updated by Eclipse. This
37 change was probably triggered by me updating from Eclipse 3.6.1 to
39 * .gitignore: Add entry to ignore the directory
40 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
41 * .project: The generated config has been updated by Eclipse. This
42 change was probably triggered by me updating from Eclipse 3.6.1 to
44 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
45 so that Eclipse doesn't complain
46 * pom.xml: Update to gwt-maven-plugin 2.2.0.
47 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
48 'tests' directory to 'client' directory. This is the new
49 gwt-maven-plugin convension.
50 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
51 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
53 2011-03-07 Ben Konrath <ben@bagu.org>
55 Add support for horizontal alignment in the LayoutList columns.
57 * TODO: Remove item about horizontal alignment. Add item about
58 improvements to ColumnInfo.
59 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
60 alignment on the columns. Use ColumnInfo RPC object get the column
61 title and horizontal alignment.
62 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
63 LayoutListView creation with ColumnInfo RPC object.
64 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
65 a ColumnInfo object for every LayoutList columnn. Convert the
66 FieldFormatting.HorizontalAlignment to the correct
67 ColumnnInfo.HorizontatlAlignment with the new
68 getColumnInfoHorizontalAlignment helper method.
69 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
70 to encapsulate column information like alignment and title. This
71 could be used to set the colour instead of on a per cell field basis.
72 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
73 column title storage and retrieval with ColumnInfo.
75 2011-03-04 Ben Konrath <ben@bagu.org>
77 Add support for column sorting.
79 * src/main/java/org/glom/web/client/LayoutListView.java: Change
80 AsynDataProvider to be an anonymous inner class. Use new
81 getSortedTableData RPC method when column sort is requested. Set all
82 columns sortable and add an AsyncHandler to activate sorting in the
84 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
85 method getSortedTableData(). Cleanup other method signatures.
86 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
87 new method getSortedTableData(). Cleanup other method signatures.
88 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
89 Implement getSortedTableData() and getTableData() methods by using a
90 private helper method with the appropriate parameters filled in. Use
91 user supplied sort clause when supplied, otherwise fall back to
92 sorting by the primary key. Move destroy() method to be underneath
93 constructor for readability. Cleanup comments.
95 2011-03-03 Ben Konrath <ben@bagu.org>
97 Add support for colour text and colour backgrounds to the layout list cells.
99 Only the cell backgrounds are coloured which leaves a gap between the
100 cells that isn't coloured. I need to figure out a way to set
101 'style=background-colour:' on the whole column rather than just the
104 * TODO: Add a note about colouring the background of the whole column.
105 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
106 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
107 render the coloured text and backgrounds. Use GlomField[] for the row type.
108 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
110 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
111 GlomField[] for the row type.
112 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
113 GlomField[] for the row type. Set the text, text colour and background
114 colour in the GlomField objects as specified in the glom document. Add
115 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
116 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
117 the glom field text, foreground colour and background colour.
119 2011-03-02 Ben Konrath <ben@bagu.org>
121 Don't display hidden tables in the combo box.
123 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
125 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
126 code to ignore hidden tables using ArrayLists for the table names and
128 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
129 tableNames to use ArrayLists instead of String[]. Update getter and setter
132 2011-03-01 Ben Konrath <ben@bagu.org>
134 Add support for Date and Time number types.
136 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
137 Implement formatting for Date and Time values. Change the default glom
138 file to small business example.
140 2011-03-01 Ben Konrath <ben@bagu.org>
142 Add support for formatting glom types as specified in the glom file.
144 Formatting isn't finished yet - I still need to add support for Date
147 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
148 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
149 checks for null values in JDBC cleanup code and catch all exceptions
150 instead of just SQLExceptions.
151 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
154 2011-03-01 Ben Konrath <ben@bagu.org>
156 Use GWT 2.2.0 instead of 2.1.1.
158 * pom.xml: Change GWT version numbers.
160 2011-03-01 Ben Konrath <ben@bagu.org>
162 A few small code cleanups.
164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
166 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
167 unnecessary object creation in constructor.
168 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
169 unnecessary object creation in constructor.
171 2011-02-28 Ben Konrath <ben@bagu.org>
173 Add file for TODO list.
177 2011-02-18 Ben Konrath <ben@bagu.org>
179 Enable the CellTable Pager when more than 20 rows need to be viewed.
181 The Pager will automatically become active when the results are larger
182 than the CellTable size which is currently set to 20 lines.
184 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
185 name on debug statment in RPC call in LayoutListDataProvider, add
186 numRows parameter to LayoutListView constructor, propperly set rowCount
188 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
189 name on debug statment in RPC call, use LayoutListTable object in RPC
190 calls, pass rowCount to LayoutListView.
191 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
192 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
194 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
195 interface for changes in OnlineGlomService.
196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
197 getLayoutListHeaders() to getLayoutListTable() and return
198 LayoutListTable. Using this object allows me to pass other information
199 about the LayoutList like the expected number of rows in the result set.
200 The Connection object from the connection pool is now propperly closed.
201 Only the requested number of lines are returned to the client in
203 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
204 GlomTable and add columnTitles and numRows.
206 2011-02-18 Ben Konrath <ben@bagu.org>
208 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
210 This is a small performance boost. I'll use GlomTable to get the required
211 layoutlist information.
213 * src/main/java/org/glom/web/client/OnlineGlom.java:
214 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
215 * src/main/java/org/glom/web/shared/GlomDocument.java:
217 2011-02-18 Ben Konrath <ben@bagu.org>
219 Add option to turn off formatting in JDT formatter preferences.
221 * .settings/org.eclipse.jdt.core.prefs:
223 2011-02-18 Ben Konrath <ben@bagu.org>
225 Rename LayoutList to LayoutListView.
227 I'm working towards setting things up to easily use MVP when the time
230 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
232 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
235 2011-02-17 Ben Konrath <ben@bagu.org>
237 Move LayoutListDataProvider class into LayoutList.java.
239 * src/main/java/org/glom/web/client/LayoutList.java:
241 2011-02-17 Ben Konrath <ben@bagu.org>
243 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
245 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
247 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
248 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
249 from LibGlomServer.java.
250 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
251 Rename from LibGlomServiceAsync.java.
252 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
253 Rename from LibGlomServiceImpl.java.
254 * src/main/webapp/WEB-INF/web.xml: Update configuration.
256 2011-02-17 Ben Konrath <ben@bagu.org>
260 * .settings/org.eclipse.jdt.core.prefs:
262 2011-02-17 Ben Konrath <ben@bagu.org>
264 Move GWT-RPC objects to shared package (where they should be).
266 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
267 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
268 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
269 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
270 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
271 org.glom.web.shared package.
272 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
273 org.glom.web.shared package.
274 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
275 directory in compilation to javascript.
277 2011-02-16 Ben Konrath <ben@bagu.org>
279 Add sort clause to the sql query that grabs table information.
281 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
282 if one of the columns is a primary key.
284 2011-02-16 Ben Konrath <ben@bagu.org>
286 Disable generateAsync feature of gwt-maven.
288 The generated interface does not correctly match the methods in LibGlomService
289 and the generated singleton Util inner-class doesn't respect the servlet
292 * pom.xml: Turn off generateAsync feature.
293 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
294 with singleton Util inner-class.
296 2011-02-14 Ben Konrath <ben@bagu.org>
298 Add LGPL v3 licence notices.
300 Followed directions listed here:
301 http://www.gnu.org/licenses/gpl-howto.html
303 * COPYING: This file is a copy of the GPL v3.
304 * COPYING.LESSER: This file is a copy of the LGPL v3.
305 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
307 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
309 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
311 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
313 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
315 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
317 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
320 2011-02-14 Ben Konrath <ben@bagu.org>
322 Use ArrayList instead of Array in GWT-RPC calls.
324 Apparently this gives a slight performance boost to the compiled
327 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
329 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
332 2011-02-14 Ben Konrath <ben@bagu.org>
334 Access data from a postgres db rather than the example glom file.
336 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
337 compile down to obfuscated javascript.
338 * pom.xml: Add c3p0 and postgres JDBC libraries.
339 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
340 using a postgres db accessed through the c3p0 connection pooling library.
342 2011-02-14 Ben Konrath <ben@bagu.org>
344 Update Java formatter settings.
346 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
348 2011-02-02 Ben Konrath <ben@bagu.org>
350 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
352 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
354 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
355 the compiled webapp directory that Eclipse uses as we're using Maven now.
356 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
357 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
359 * pom.xml: Format file, change target Java version to 1.6.
361 2011-02-02 Ben Konrath <ben@bagu.org>
363 Add information about a deployment related issue.
365 * README: Add Notes section with the problem outlined.
367 2011-02-02 Ben Konrath <ben@bagu.org>
369 Call Glom.libglom_deinit() when the servlet is shutdown.
371 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
372 Glom.libglom_deinit() to destroy() method.
374 2011-01-28 Ben Konrath <ben@bagu.org>
376 Use generated Util class to get the RPC Async interface.
378 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
380 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
381 getInstance() method to get a reference to the RPC Async interface.
382 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
383 getInstance() method to get a reference to the RPC Async interface, remove
384 the now unused getLibGlomServiceProxy() method.
386 2011-01-27 Ben Konrath <ben@bagu.org>
388 Cleanup ChangeLog entry from previous commit.
390 * ChangeLog: Group logical changes together and add comments.
392 2011-01-25 Ben Konrath <ben@bagu.org>
394 Convert to gwt-maven project.
396 * .gitignore: Update for new project structure.
397 * README: New file with a link to the online documentation.
398 * pom.xml: The generated maven configuration file with some tweaks.
400 Add / update Eclipse settings. These files are a merge of the files that
401 were generated with the gwt-maven plugin and the files we were previously
405 * .settings/.jsdtscope:
406 * .settings/com.google.gdt.eclipse.core.prefs:
407 * .settings/com.google.gwt.eclipse.core.prefs:
408 * .settings/org.eclipse.jdt.core.prefs:
409 * .settings/org.eclipse.wst.common.component:
410 * .settings/org.eclipse.wst.common.project.facet.core.xml:
411 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
412 * .settings/org.maven.ide.eclipse.prefs:
413 * OnlineGlomTest-dev.launch:
414 * OnlineGlomTest-prod.launch:
416 Java source files moved from the 'src' directory to the directory structure
418 * src/main/java/org/glom/web/client/GlomDocument.java:
419 * src/main/java/org/glom/web/client/GlomTable.java:
420 * src/main/java/org/glom/web/client/LayoutList.java:
421 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
422 * src/main/java/org/glom/web/client/LibGlomService.java:
423 * src/main/java/org/glom/web/client/OnlineGlom.java:
424 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
426 Non-functional property file used for translations. I included this as
427 reminder that it's something I need to sort out.
428 * src/main/resources/org/glom/web/client/Messages.properties:
430 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
431 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
433 The servlet configuration files moved from the 'war' directory.
434 * src/main/webapp/OnlineGlom.css:
435 * src/main/webapp/OnlineGlom.html:
436 * src/main/webapp/WEB-INF/web.xml:
438 Generated test files with most of the code commented out. I included these
439 so that it's easy to add tests when we're ready for them.
440 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
441 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
443 2011-01-25 Ben Konrath <ben@bagu.org>
445 Remove unused println.
447 * src/org/glom/web/server/LibGlomServiceImpl.java:
449 2011-01-25 Ben Konrath <ben@bagu.org>
451 Add project specific JDT settings.
453 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
454 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
456 2011-01-25 Ben Konrath <ben@bagu.org>
458 Populate celltable with example data.
460 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
461 * src/org/glom/web/client/GlomTable.java: Correct formatting.
462 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
463 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
464 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
465 asynchronously gets the example data.
466 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
467 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
468 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
469 curently selected table to be retrieved by other widgets.
470 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
471 implement getTableData() in a hacky way. This method needs to be updated
472 to grab information from the database when database creating is
475 2011-01-20 Ben Konrath <ben@bagu.org>
477 Set table headers when table dropBox changes.
479 * src/org/glom/web/client/GlomDocument.java: Correct some method
481 * src/org/glom/web/client/LibGlomService.java: Add method
482 to get list layout field names.
483 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
484 to get list layout field names.
485 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
486 widget for list layout table.
487 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
488 the table drop box and add new updateTable() method to asynchronously
489 get the layout list field names for the currently selected table.
490 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
491 implementation of getLayoutListHeaders() method.
492 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
494 2011-01-18 Ben Konrath <ben@bagu.org>
496 Make a listBox with table titles instead of the flexTable demo.
498 This is the start of something more useful.
500 * .classpath: Exclude a bunch of packages from the JVM that are
501 getting in the way of the Eclipse content assist.
502 * src/org/glom/web/client/GlomDocument.java:
503 * src/org/glom/web/client/GlomTable.java:
504 * src/org/glom/web/client/LibGlomService.java:
505 * src/org/glom/web/client/LibGlomServiceAsync.java:
506 * src/org/glom/web/client/OnlineGlom.java:
507 * src/org/glom/web/server/LibGlomServiceImpl.java:
508 * war/OnlineGlom.html:
509 * war/WEB-INF/web.xml:
511 211-01-13 Ben Konrath <ben@bagu.org>
513 Update to new java-libglom API.
515 * .gitignore: Ignore OnlineGlom.war.
516 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
518 2010-12-20 Ben Konrath <ben@bagu.org>
520 Add some basic style to the table listing.
522 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
523 header, print useful error message on async callback failure.
524 * war/OnlineGlom.css: Add style for table header, remove defaults
525 provided by the Eclipse project wizard.
527 2010-12-20 Ben Konrath <ben@bagu.org>
529 Load example file from installed glom dir.
531 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
532 provided by java-libglom to find the example file.
534 2010-12-20 Ben Konrath <ben@bagu.org>
536 Update Eclipse settings.
539 * .settings/com.google.gdt.eclipse.core.prefs:
540 * .settings/com.google.gwt.eclipse.core.prefs:
542 2010-12-17 Ben Konrath <ben@bagu.org>
546 * .classpath: New file.
547 * .gitignore: New file.
548 * .project: New file.
549 * .settings/com.google.gdt.eclipse.core.prefs: New file.
550 * .settings/com.google.gwt.eclipse.core.prefs: New file.
551 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
552 * src/org/glom/web/client/GlomTable.java: New file.
553 * src/org/glom/web/client/OnlineGlom.java: New file.
554 * src/org/glom/web/client/TableNameService.java: New file.
555 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
556 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
557 * war/OnlineGlom.css: New file.
558 * war/OnlineGlom.html: New file.
559 * war/WEB-INF/web.xml: New file.
560 * war/images/glom.png: New file.