Hi Ryan,
Thanks for the link. I don't use Hibernate so I had not seen your
annotation project yet but it looks great. I believe Wicket runs the
render listeners in the order they were added so if you were to do:
public class MyApplication extends WebApplication
{
public void init()
{
this.addComponentOnBeforeRenderListener(new
AutoCreateRenderListener());
this.addComponentOnBeforeRenderListener(new
HibernateAnnotationComponentConfigurator());
}
}
I believe it would do all the auto component creation and then run your
listener to do all the Hibernate annotations. If that is true I'll put
a link on my site to your project for anyone using Hibernate.
I created my own set of annotations because I primarily use Cayenne or
iBATIS which don't have them. Although all of my examples have the
annotation on the page, it was just to keep the examples simple... the
annotations can be put on the domain objects.
-Edward
Ryan Sonnek wrote:
Doh!
Forgot to post the url for info on the project. :)
http://jroller.com/wireframe/entry/hibernateannotationcomponentconfigurator
On Sat, Jul 19, 2008 at 8:59 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
Congratulations, this looks like a nice addition so far.
I would recommend checking out a wicket annotation project that has been
around for a little while. It dynamically picks up Hibernate annotations
*directly* from your model objects instead of annotating your pages. these
annotations are much like the annotations you've created (not-null,
max-length, etc).
Let me know if you have any questions or interest in contributing to this
project!
Ryan
On Fri, Jul 18, 2008 at 12:46 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:
I think wicket bench actually does something like this, generate a wicket
java page from html..
http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench
Brill Pappin wrote:
I was thinking more along the lines of capturing the HTML and having it
generate components, then filling int he blanks with your data access etc as
needed.
I'll have to keep my eye on it :)
- Brill Pappin
On 17-Jul-08, at 4:38 PM, Edward wrote:
I believe it would make porting an existing webapp easier, but it
wouldn't free you from writing Wicket related java completely. Wicket is
very powerful.
-Edward
Brill Pappin wrote:
Could this be used to port one webapp to Wicket?
- Brill Pappin
On 17-Jul-08, at 3:24 PM, Edward wrote:
Alpha release of WicketBits with two modules: Automagic and Automagic
Annotations.
Maven site is hosted at:
http://wicketbits.aezix.com
Summary:
Automagic is a Wicket render listener which automatically creates
default Java components matching the html markup.
Allows quick Wicket page development through the auto creation of
components by convention and helps separate page design from Java code
functionality. The render listener will try to auto-create any components
that are not specifically instantiated in code by matching them to a
property on a parent CompoundPropertyModel.
-Edward
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]