Discussion:
Code Generator with Wicket...
badgers
2017-10-09 07:57:05 UTC
Permalink
Hi,

in my project I have a lot of easy master data gui's...nothing complex.
mostly with one foerign key in its data store.

I want to develop a code generator which is based on metamodel.
Goal is to generate based on a DSL? Beans with Annotations? or something
similar wicket gui's, service's that at the end automatically persists all
in a database when the persistence is generated too.

But the first goal is to generate the Wicket GUI, the binding and the GUI
Model who calls a Service.

How would you recommend to start such an approach?

thx

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Vit Rozkovec
2017-10-09 08:24:24 UTC
Permalink
I've developed one simple generator that consumes java POJOs, inspects
them via reflection and produces CRUD wicket components from the template.
If you are interested, I can publish it on the github as a separate project.

Vit
Post by badgers
Hi,
in my project I have a lot of easy master data gui's...nothing complex.
mostly with one foerign key in its data store.
I want to develop a code generator which is based on metamodel.
Goal is to generate based on a DSL? Beans with Annotations? or something
similar wicket gui's, service's that at the end automatically persists all
in a database when the persistence is generated too.
But the first goal is to generate the Wicket GUI, the binding and the GUI
Model who calls a Service.
How would you recommend to start such an approach?
thx
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
badgers
2017-10-09 14:43:43 UTC
Permalink
Hi Vit,

would be nice and I'm intertested.

Maybe I can participate ;-)

best regards
badgers


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Илья Нарыжный
2017-10-09 20:45:48 UTC
Permalink
Jack,

We did the following approach: https://github.com/OrienteerBAP/Orienteer
/tree/master/orienteer-core/src/main/java/org/orienteer/core/component/meta
Shortly: there is a metapanel, which can "substitute" corresponding panel
according to display mode (view or edit), property type (boolean, string,
number, etc.) and visualizer (for example for string it might be just a
textarea or code-highlighter or markup and etc.
With wicket it's working extremely fast: around 70ms for average page on
average hardware.

Thanks,
Ilia

---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform
Post by badgers
Hi Vit,
would be nice and I'm intertested.
Maybe I can participate ;-)
best regards
badgers
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
f1842947.html
---------------------------------------------------------------------
Vit Rozkovec
2017-10-10 18:57:00 UTC
Permalink
Hi badgers,

have a look here: https://github.com/vrozkovec/wicket-code-generator

Please note that it is a quickly created project that was part of the
set of my internal utilities and some imports in the generated classes
will be missing.
Generated files contain also unnecessary imports, I use IDE for
organizing them.

Pretty simple and someone may say a dumb way to do, but hey, worked for
me and allows me to quickly create admin interfaces and because it
generates working wicket components for you, there is no hidden magic in
how things work - they work the way you have prepared them in your
template.

Just try and see what I mean.

Clone a repository, set proper path and run the application.

If you are interested in making this tool a bit better, I will be happy
to help you.

Best regards,
Vit
Post by badgers
Hi Vit,
would be nice and I'm intertested.
Maybe I can participate ;-)
best regards
badgers
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
badgers
2017-10-12 06:05:04 UTC
Permalink
Hi Vit,

I checked it out yesterday. The core intention of the framework is clear.
I give you feedback.

best regards
badgers

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
badgers
2017-10-13 06:38:23 UTC
Permalink
Hi Vit,

I am an pure Java Developer since many years ;-) ... I like it to use
annotations.
I know that many frameworks use DSL and whatever today...but Java Classes to
configure is an Java developer friendly was.

What is your goal with the project?`

best regards
badgers

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Vit Rozkovec
2017-10-16 11:01:50 UTC
Permalink
Hi, happy you like it.

Feel free to do whatever you want with it, at the moment I use it
regularly to generate admin interfaces that I then customize according
to usecase.
There are some areas that could receive more attention, generator could
get more clever in guessing correct formcomponent, more templates for
different approaches could be added..
For now it just suits my needs, but if someone would send me a pull
request with new template or an improvement, I'll be happy to merge it.

Best regards,
Vit
Post by badgers
Hi Vit,
I am an pure Java Developer since many years ;-) ... I like it to use
annotations.
I know that many frameworks use DSL and whatever today...but Java Classes to
configure is an Java developer friendly was.
What is your goal with the project?`
best regards
badgers
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
badgers
2017-10-16 16:32:10 UTC
Permalink
I understand it. I develop Maven based Velocity Generator using Reflection.
We are on the same knowledge path ;-)

* cz.newforms.wicket.behaviors is missing...difficult to test it...is it
possible that you sent me fragments or a jar file to test it?
* I would prefer not to use hibernate...it should be more open.
* I want to generate additonally the DB/NoSQL Layer based on that. e.g. when
the data is saved in a MySQL i would like to generate the SQL Skript.

What do you think?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Vit Rozkovec
2017-10-18 09:00:11 UTC
Permalink
As a quickfix I've commited missing package with behaviors.

Regarding Hibernate, instead of that, there could be this dependency
http://search.maven.org/#artifactdetails%7Cjavax.persistence%7Cpersistence-api%7C1.0.2%7Cjar

If you'd like to have it even without that, I guess that would mean
introducing your own set of annotations.

And for generated templates, the way how is it prepared now, it is easy
to generate your own project specific logic from the template that is
located in your own project.

Was that what you have meant?
Post by badgers
I understand it. I develop Maven based Velocity Generator using Reflection.
We are on the same knowledge path ;-)
* cz.newforms.wicket.behaviors is missing...difficult to test it...is it
possible that you sent me fragments or a jar file to test it?
* I would prefer not to use hibernate...it should be more open.
* I want to generate additonally the DB/NoSQL Layer based on that. e.g. when
the data is saved in a MySQL i would like to generate the SQL Skript.
What do you think?
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
badgers
2017-10-18 09:29:25 UTC
Permalink
Yes!

I will check it. When I did my adaptions I will do a pull request.

Thx in advance

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Vit Rozkovec
2017-10-19 08:33:43 UTC
Permalink
Awesome, PR welcomed.

Cheers.
Post by badgers
Yes!
I will check it. When I did my adaptions I will do a pull request.
Thx in advance
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
craliaga
2018-09-19 16:58:25 UTC
Permalink
Nice work :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org

Martijn Dashorst
2017-10-09 08:42:35 UTC
Permalink
Perhaps https://isis.apache.org is doing what you are looking for?

Martijn
Post by badgers
Hi,
in my project I have a lot of easy master data gui's...nothing complex.
mostly with one foerign key in its data store.
I want to develop a code generator which is based on metamodel.
Goal is to generate based on a DSL? Beans with Annotations? or something
similar wicket gui's, service's that at the end automatically persists all
in a database when the persistence is generated too.
But the first goal is to generate the Wicket GUI, the binding and the GUI
Model who calls a Service.
How would you recommend to start such an approach?
thx
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
f1842947.html
---------------------------------------------------------------------
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
badgers
2017-10-09 14:41:56 UTC
Permalink
Hi Martin,

Thanks. I saw Apache Isis - I will check how high is the learning curve?

Thx

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Loading...