1 2011-03-09 Ben Konrath <ben@bagu.org>
3 Change to using a neutral locale for currency, date and time formatting.
5 This solves the problem of currency values being represented without a
6 space between the currency code and the number (e.g. "EUR5.89" is now
7 represented as "EUR 5.89"). More work is required when we implement
8 a locale preference setting.
10 * TODO: Add note about currency formatting issues with different
12 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
13 to using the neutral ROOT locale.
15 2011-03-09 Ben Konrath <ben@bagu.org>
17 Add support for currency codes that are not ISO 4217 codes.
19 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
20 the currency code defined in the glom file when it's not 3 characters
21 long or when Java doesn't recognize the string as an ISO 4217 code.
23 2011-03-08 Ben Konrath <ben@bagu.org>
25 Remove test classes, launch configurations and configuration.
27 The test stuff was getting in the way when creating the war. To make
28 the war file you can now do 'mvn clean package'. The packaged war file
29 will be in the target directory.
31 * .classpath: Remove unused classpathentry for tests and i18n.
32 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
33 property. Don't run test or i18n goals when packaging the war.
34 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
39 * OnlineGlomTest-dev.launch:
40 * OnlineGlomTest-prod.launch:
41 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
42 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
44 2011-03-07 Ben Konrath <ben@bagu.org>
46 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
48 These fixes allow me to use 'mvn deploy' to create the war file.
50 * .classpath: This generated config has been updated by Eclipse. This
51 change was probably triggered by me updating from Eclipse 3.6.1 to
53 * .gitignore: Add entry to ignore the directory
54 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
55 * .project: The generated config has been updated by Eclipse. This
56 change was probably triggered by me updating from Eclipse 3.6.1 to
58 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
59 so that Eclipse doesn't complain
60 * pom.xml: Update to gwt-maven-plugin 2.2.0.
61 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
62 'tests' directory to 'client' directory. This is the new
63 gwt-maven-plugin convension.
64 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
65 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
67 2011-03-07 Ben Konrath <ben@bagu.org>
69 Add support for horizontal alignment in the LayoutList columns.
71 * TODO: Remove item about horizontal alignment. Add item about
72 improvements to ColumnInfo.
73 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
74 alignment on the columns. Use ColumnInfo RPC object get the column
75 title and horizontal alignment.
76 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
77 LayoutListView creation with ColumnInfo RPC object.
78 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
79 a ColumnInfo object for every LayoutList columnn. Convert the
80 FieldFormatting.HorizontalAlignment to the correct
81 ColumnnInfo.HorizontatlAlignment with the new
82 getColumnInfoHorizontalAlignment helper method.
83 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
84 to encapsulate column information like alignment and title. This
85 could be used to set the colour instead of on a per cell field basis.
86 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
87 column title storage and retrieval with ColumnInfo.
89 2011-03-04 Ben Konrath <ben@bagu.org>
91 Add support for column sorting.
93 * src/main/java/org/glom/web/client/LayoutListView.java: Change
94 AsynDataProvider to be an anonymous inner class. Use new
95 getSortedTableData RPC method when column sort is requested. Set all
96 columns sortable and add an AsyncHandler to activate sorting in the
98 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
99 method getSortedTableData(). Cleanup other method signatures.
100 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
101 new method getSortedTableData(). Cleanup other method signatures.
102 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
103 Implement getSortedTableData() and getTableData() methods by using a
104 private helper method with the appropriate parameters filled in. Use
105 user supplied sort clause when supplied, otherwise fall back to
106 sorting by the primary key. Move destroy() method to be underneath
107 constructor for readability. Cleanup comments.
109 2011-03-03 Ben Konrath <ben@bagu.org>
111 Add support for colour text and colour backgrounds to the layout list cells.
113 Only the cell backgrounds are coloured which leaves a gap between the
114 cells that isn't coloured. I need to figure out a way to set
115 'style=background-colour:' on the whole column rather than just the
118 * TODO: Add a note about colouring the background of the whole column.
119 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
120 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
121 render the coloured text and backgrounds. Use GlomField[] for the row type.
122 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
124 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
125 GlomField[] for the row type.
126 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
127 GlomField[] for the row type. Set the text, text colour and background
128 colour in the GlomField objects as specified in the glom document. Add
129 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
130 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
131 the glom field text, foreground colour and background colour.
133 2011-03-02 Ben Konrath <ben@bagu.org>
135 Don't display hidden tables in the combo box.
137 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
139 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
140 code to ignore hidden tables using ArrayLists for the table names and
142 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
143 tableNames to use ArrayLists instead of String[]. Update getter and setter
146 2011-03-01 Ben Konrath <ben@bagu.org>
148 Add support for Date and Time number types.
150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
151 Implement formatting for Date and Time values. Change the default glom
152 file to small business example.
154 2011-03-01 Ben Konrath <ben@bagu.org>
156 Add support for formatting glom types as specified in the glom file.
158 Formatting isn't finished yet - I still need to add support for Date
161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
162 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
163 checks for null values in JDBC cleanup code and catch all exceptions
164 instead of just SQLExceptions.
165 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
168 2011-03-01 Ben Konrath <ben@bagu.org>
170 Use GWT 2.2.0 instead of 2.1.1.
172 * pom.xml: Change GWT version numbers.
174 2011-03-01 Ben Konrath <ben@bagu.org>
176 A few small code cleanups.
178 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
180 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
181 unnecessary object creation in constructor.
182 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
183 unnecessary object creation in constructor.
185 2011-02-28 Ben Konrath <ben@bagu.org>
187 Add file for TODO list.
191 2011-02-18 Ben Konrath <ben@bagu.org>
193 Enable the CellTable Pager when more than 20 rows need to be viewed.
195 The Pager will automatically become active when the results are larger
196 than the CellTable size which is currently set to 20 lines.
198 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
199 name on debug statment in RPC call in LayoutListDataProvider, add
200 numRows parameter to LayoutListView constructor, propperly set rowCount
202 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
203 name on debug statment in RPC call, use LayoutListTable object in RPC
204 calls, pass rowCount to LayoutListView.
205 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
206 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
208 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
209 interface for changes in OnlineGlomService.
210 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
211 getLayoutListHeaders() to getLayoutListTable() and return
212 LayoutListTable. Using this object allows me to pass other information
213 about the LayoutList like the expected number of rows in the result set.
214 The Connection object from the connection pool is now propperly closed.
215 Only the requested number of lines are returned to the client in
217 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
218 GlomTable and add columnTitles and numRows.
220 2011-02-18 Ben Konrath <ben@bagu.org>
222 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
224 This is a small performance boost. I'll use GlomTable to get the required
225 layoutlist information.
227 * src/main/java/org/glom/web/client/OnlineGlom.java:
228 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
229 * src/main/java/org/glom/web/shared/GlomDocument.java:
231 2011-02-18 Ben Konrath <ben@bagu.org>
233 Add option to turn off formatting in JDT formatter preferences.
235 * .settings/org.eclipse.jdt.core.prefs:
237 2011-02-18 Ben Konrath <ben@bagu.org>
239 Rename LayoutList to LayoutListView.
241 I'm working towards setting things up to easily use MVP when the time
244 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
246 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
249 2011-02-17 Ben Konrath <ben@bagu.org>
251 Move LayoutListDataProvider class into LayoutList.java.
253 * src/main/java/org/glom/web/client/LayoutList.java:
255 2011-02-17 Ben Konrath <ben@bagu.org>
257 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
259 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
261 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
262 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
263 from LibGlomServer.java.
264 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
265 Rename from LibGlomServiceAsync.java.
266 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
267 Rename from LibGlomServiceImpl.java.
268 * src/main/webapp/WEB-INF/web.xml: Update configuration.
270 2011-02-17 Ben Konrath <ben@bagu.org>
274 * .settings/org.eclipse.jdt.core.prefs:
276 2011-02-17 Ben Konrath <ben@bagu.org>
278 Move GWT-RPC objects to shared package (where they should be).
280 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
281 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
282 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
283 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
284 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
285 org.glom.web.shared package.
286 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
287 org.glom.web.shared package.
288 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
289 directory in compilation to javascript.
291 2011-02-16 Ben Konrath <ben@bagu.org>
293 Add sort clause to the sql query that grabs table information.
295 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
296 if one of the columns is a primary key.
298 2011-02-16 Ben Konrath <ben@bagu.org>
300 Disable generateAsync feature of gwt-maven.
302 The generated interface does not correctly match the methods in LibGlomService
303 and the generated singleton Util inner-class doesn't respect the servlet
306 * pom.xml: Turn off generateAsync feature.
307 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
308 with singleton Util inner-class.
310 2011-02-14 Ben Konrath <ben@bagu.org>
312 Add LGPL v3 licence notices.
314 Followed directions listed here:
315 http://www.gnu.org/licenses/gpl-howto.html
317 * COPYING: This file is a copy of the GPL v3.
318 * COPYING.LESSER: This file is a copy of the LGPL v3.
319 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
321 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
323 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
325 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
327 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
329 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
331 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
334 2011-02-14 Ben Konrath <ben@bagu.org>
336 Use ArrayList instead of Array in GWT-RPC calls.
338 Apparently this gives a slight performance boost to the compiled
341 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
343 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
346 2011-02-14 Ben Konrath <ben@bagu.org>
348 Access data from a postgres db rather than the example glom file.
350 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
351 compile down to obfuscated javascript.
352 * pom.xml: Add c3p0 and postgres JDBC libraries.
353 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
354 using a postgres db accessed through the c3p0 connection pooling library.
356 2011-02-14 Ben Konrath <ben@bagu.org>
358 Update Java formatter settings.
360 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
362 2011-02-02 Ben Konrath <ben@bagu.org>
364 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
366 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
368 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
369 the compiled webapp directory that Eclipse uses as we're using Maven now.
370 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
371 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
373 * pom.xml: Format file, change target Java version to 1.6.
375 2011-02-02 Ben Konrath <ben@bagu.org>
377 Add information about a deployment related issue.
379 * README: Add Notes section with the problem outlined.
381 2011-02-02 Ben Konrath <ben@bagu.org>
383 Call Glom.libglom_deinit() when the servlet is shutdown.
385 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
386 Glom.libglom_deinit() to destroy() method.
388 2011-01-28 Ben Konrath <ben@bagu.org>
390 Use generated Util class to get the RPC Async interface.
392 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
394 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
395 getInstance() method to get a reference to the RPC Async interface.
396 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
397 getInstance() method to get a reference to the RPC Async interface, remove
398 the now unused getLibGlomServiceProxy() method.
400 2011-01-27 Ben Konrath <ben@bagu.org>
402 Cleanup ChangeLog entry from previous commit.
404 * ChangeLog: Group logical changes together and add comments.
406 2011-01-25 Ben Konrath <ben@bagu.org>
408 Convert to gwt-maven project.
410 * .gitignore: Update for new project structure.
411 * README: New file with a link to the online documentation.
412 * pom.xml: The generated maven configuration file with some tweaks.
414 Add / update Eclipse settings. These files are a merge of the files that
415 were generated with the gwt-maven plugin and the files we were previously
419 * .settings/.jsdtscope:
420 * .settings/com.google.gdt.eclipse.core.prefs:
421 * .settings/com.google.gwt.eclipse.core.prefs:
422 * .settings/org.eclipse.jdt.core.prefs:
423 * .settings/org.eclipse.wst.common.component:
424 * .settings/org.eclipse.wst.common.project.facet.core.xml:
425 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
426 * .settings/org.maven.ide.eclipse.prefs:
427 * OnlineGlomTest-dev.launch:
428 * OnlineGlomTest-prod.launch:
430 Java source files moved from the 'src' directory to the directory structure
432 * src/main/java/org/glom/web/client/GlomDocument.java:
433 * src/main/java/org/glom/web/client/GlomTable.java:
434 * src/main/java/org/glom/web/client/LayoutList.java:
435 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
436 * src/main/java/org/glom/web/client/LibGlomService.java:
437 * src/main/java/org/glom/web/client/OnlineGlom.java:
438 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
440 Non-functional property file used for translations. I included this as
441 reminder that it's something I need to sort out.
442 * src/main/resources/org/glom/web/client/Messages.properties:
444 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
445 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
447 The servlet configuration files moved from the 'war' directory.
448 * src/main/webapp/OnlineGlom.css:
449 * src/main/webapp/OnlineGlom.html:
450 * src/main/webapp/WEB-INF/web.xml:
452 Generated test files with most of the code commented out. I included these
453 so that it's easy to add tests when we're ready for them.
454 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
455 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
457 2011-01-25 Ben Konrath <ben@bagu.org>
459 Remove unused println.
461 * src/org/glom/web/server/LibGlomServiceImpl.java:
463 2011-01-25 Ben Konrath <ben@bagu.org>
465 Add project specific JDT settings.
467 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
468 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
470 2011-01-25 Ben Konrath <ben@bagu.org>
472 Populate celltable with example data.
474 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
475 * src/org/glom/web/client/GlomTable.java: Correct formatting.
476 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
477 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
478 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
479 asynchronously gets the example data.
480 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
481 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
482 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
483 curently selected table to be retrieved by other widgets.
484 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
485 implement getTableData() in a hacky way. This method needs to be updated
486 to grab information from the database when database creating is
489 2011-01-20 Ben Konrath <ben@bagu.org>
491 Set table headers when table dropBox changes.
493 * src/org/glom/web/client/GlomDocument.java: Correct some method
495 * src/org/glom/web/client/LibGlomService.java: Add method
496 to get list layout field names.
497 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
498 to get list layout field names.
499 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
500 widget for list layout table.
501 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
502 the table drop box and add new updateTable() method to asynchronously
503 get the layout list field names for the currently selected table.
504 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
505 implementation of getLayoutListHeaders() method.
506 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
508 2011-01-18 Ben Konrath <ben@bagu.org>
510 Make a listBox with table titles instead of the flexTable demo.
512 This is the start of something more useful.
514 * .classpath: Exclude a bunch of packages from the JVM that are
515 getting in the way of the Eclipse content assist.
516 * src/org/glom/web/client/GlomDocument.java:
517 * src/org/glom/web/client/GlomTable.java:
518 * src/org/glom/web/client/LibGlomService.java:
519 * src/org/glom/web/client/LibGlomServiceAsync.java:
520 * src/org/glom/web/client/OnlineGlom.java:
521 * src/org/glom/web/server/LibGlomServiceImpl.java:
522 * war/OnlineGlom.html:
523 * war/WEB-INF/web.xml:
525 211-01-13 Ben Konrath <ben@bagu.org>
527 Update to new java-libglom API.
529 * .gitignore: Ignore OnlineGlom.war.
530 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
532 2010-12-20 Ben Konrath <ben@bagu.org>
534 Add some basic style to the table listing.
536 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
537 header, print useful error message on async callback failure.
538 * war/OnlineGlom.css: Add style for table header, remove defaults
539 provided by the Eclipse project wizard.
541 2010-12-20 Ben Konrath <ben@bagu.org>
543 Load example file from installed glom dir.
545 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
546 provided by java-libglom to find the example file.
548 2010-12-20 Ben Konrath <ben@bagu.org>
550 Update Eclipse settings.
553 * .settings/com.google.gdt.eclipse.core.prefs:
554 * .settings/com.google.gwt.eclipse.core.prefs:
556 2010-12-17 Ben Konrath <ben@bagu.org>
560 * .classpath: New file.
561 * .gitignore: New file.
562 * .project: New file.
563 * .settings/com.google.gdt.eclipse.core.prefs: New file.
564 * .settings/com.google.gwt.eclipse.core.prefs: New file.
565 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
566 * src/org/glom/web/client/GlomTable.java: New file.
567 * src/org/glom/web/client/OnlineGlom.java: New file.
568 * src/org/glom/web/client/TableNameService.java: New file.
569 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
570 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
571 * war/OnlineGlom.css: New file.
572 * war/OnlineGlom.html: New file.
573 * war/WEB-INF/web.xml: New file.
574 * war/images/glom.png: New file.