David Liebeherr wrote:
Hi!

Today i read a pretty much interesting article about Ruby on Rails (RoR).
First things first. I don't like ruby.

Then you may want to have a closer look at RoR. :)

There is a presentation video with David Heinemeier Hansson (the author of RoR) that gives a good overview of RoR, and also shows how Ruby contributes to RoR: http://www.rubyonrails.org/media/video/rubyonrails.mov


But: The Aproach of Ruby on Rails is very impressing and provides a
effective way to write standard Web-Apps.
So i like the way how wicket works much. And now i am thinking about to
adopt some ideas of Ruby on Rails to wicket.
The most interesting and time saving aspect of RoR is that it has mayn
scripts to automaticly generate Formulars and Lists so that you can deal
with Datas which mostly comes from a Database.

RoR goes way beyond that. Ruby is a very reflective language, much more than Java. Of course you can try to reproduce RoR in Java, but it will fail in some parts because of language restrictions, and it will certainly lack the elegance of RoR. More on that below.


I think a similary tool could be made for Wicket.
The features i think of are somehting likt this:
-Gernation of Formulars and Lists from the Strucure of a certain
Database-Table (Or JavaBean Class).

There already is a BeanEditor in the wicket examples.


 Which includes the generation of: Wicket-Class, Wicket-HTML-File and
that all already ready with all necessary connections and handling to
the database or the JavaBean object.

I think code generation is a bad idea. It works in certain cases where code generation and compilation are completely hidden from the user (see JSP).


My question now to you guys is:
1. Is already someone writing such a Generator?

There is a project that tries to reproduce RoR in Java. It's called Trails. It uses some code generation (using eclipse to generate getters and setters).

Well, it utterly failed to reproduce the simplicity and ease of use of RoR.


2. What do you guys think about this idea?

Sorry for being so pessimistic :)


Timo


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to