click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Fink <apr...@gmail.com>
Subject Re: Apache Click 3
Date Wed, 28 Jul 2010 09:34:26 GMT

My 2 cents:


1) http://slf4j.org/ instead of self-made log facade


2) data/business/entity objects "binding".
Now Click application source code looks like this:

Form personForm = new Form();
TextField srcAddr name = 
DateField birth = 
Select status = 

onInit: load Person, copy data from Person to Form

onSubmit:
validate
copy data from Form to Person, save Person


With binding

onInit:
personForm.bind(person);

same should work for any control without form (read only binding - like
Table now),

where Control name is Data object property name (or better ongl expression)

after onGet/onPost is form is valid then auto copy not read only enabled
form fields to data object



3) JSR-303 Bean Validation API for these data objects

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/validation.html#validation-beanvalidation

http://hibernate.org/subprojects/validator


4) freemarker as default template engine ;-)


5) useful ideas from others frameworks (I don't know which exactly)
http://click.1134972.n2.nabble.com/Play-and-Grails-hype-tp5324395p5343991.html
 

-- 
View this message in context: http://click.1134972.n2.nabble.com/Apache-Click-3-tp5334986p5345415.html
Sent from the click-development mailing list archive at Nabble.com.

Mime
View raw message