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 Thu, 29 Jul 2010 06:09:18 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) popup/dialog windows support "out-of-box"
(javascript + div)

examples:
http://javascript.about.com/library/blmodald1.htm
http://javascript.about.com/library/blmodald3.htm
http://www.queness.com/post/77/simple-jquery-modal-window-tutorial


5) freemarker as default template engine ;-)


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


--
Best regards,
Andrew P.Fink

e-mail/gtalk/jabber: aprpda@gmail.com
mob.: +7(915)405-4296
Fax: +7(347)293-09-13

Mime
View raw message