I think it should be easy enough to pull things from a database that
it's worth doing even for 12 items. Wicket is adept at rendering
objects, and Hibernate turns table rows into objects; it should be win-win.
But... looking back at the Databinder bookmarks example
(http://databinder.net/bookmarks.html), even it looks longish. I see
what you mean.
I can get rid of the validation messages now (thanks Wicket!) but
otherwise it's hard to optimize it further, without getting into generic
bean rendering which I'm honestly not that fond of. Or strip out the add
& delete code and you have something really short, but it's a brick. ;)
Nathan
Gwyn Evans wrote:
Just looking to see if we need to fill in any gaps in the docs/wiki
with regards to DB interactions, which stills seems a bit unclear in
places, to me at least (- that could just my not being experienced
with Hibernate, though...)
We've got the wicket-phonebook app (Spring/Hibernate) & DataBinder
(Hibernate/EJB3 Annotations) but what should we be recommending for
the following 'introduction' cases?
a) Something to display "select * from table" where there are less
than a dozen items (i.e. no paging needed & hibernate may be overkill)
b) (a), but with a couple of dozen items, leading to needing paging.
(Maybe here is where we do want to point to phonebook or databinder,
or maybe there's a step between (a) & Hibernate - Thoughts?)
Anyone want to suggest which components we should point people towards
- it doesn't have to be a full wiki article, just some comments would
do!
/Gwyn
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user