Ouch! I am so interested in taking Databinder further, but since novices are my priority I can't roll out something half baked. It's now fully baked, but being held up by the unpredictable Maven upload process (along with my upload request for 1.2 beta2 itself). Any hour now, I hope to see it on the repos so I can announce version 0.4.
My e-mail address is at the end of the FAQ page. Perhaps I should make it more obvious, or someday soon, set up a Databinder listserv. This one isn't appropriate for Databinder questions, but I suppose it's normal that people end up here when they don't know where else to go. Now, for the first question, are there any exceptions that precede the "Owner is not mapped" one? There may be one scrolling by, warning that the "hockeypond" database doesn't exist (does it?) or something else went wrong. For the second, you're probably missing the feedback panel, or stylesheet, or title label, or something else that DataPage adds on its own. It all depends on the error you're getting. When you migrate from DataPage to WebPage (which is a perfectly normal thing to do when you get tired of seeing orange) you should look at the DataPage sources and add that handful of components to your own (base) page. This is pretty easy to do if you're using Eclipse and you fetched the sources though the Maven eclipse:eclipse plug-in. For followup questions, feel free to e-mail me directly. Nathan On Tue, 2006-03-21 at 01:49 -0800, Ayodeji Aladejebi wrote: > i have used this databinder before i dint have any problems with it. i > think mine also dint work until i got rid of the extends DataPage > instead of extends WebPage > > Databinder worked excellently with the DataForm usage but when i try > to display my list in a WebPage and i extend DataPage, it doesnt work > but when i extend WebPage it works. Here is a snippet in my own sample > application. This works but the moment i change from WebPage to > DataPage, it doesnt. > > public class NewDeveloper extends WebPage { > public NewDeveloper() { > super(); > > IModel devList = new HibernateListModel(getString("query")); > cp.add(new PropertyListView("devView", devList) { > protected void populateItem(final ListItem item) { > Developer dev = (Developer) item.getModelObject(); > item.add(new Link("nameLink"){ > public void onClick(){ > > devForm.setPersistentObject(item.getModelObject()); > } > }); > item.add(new Label("nickname1",dev.getNickname())); > item.add(new Label("name1",dev.getName())); > item.add(new Label("mobile1",dev.getMobile())); > item.add(new > Label("skillSummary1",dev.getSkillSummary())); > // table row color > item.add(new AlternatingClassModifier(item)); > } > }); > > > > > the only problem i have with databinder is that its not migrating to > Wicket 1.2 fast enough and i doubt if the developer is still > interested in taking it further > > > On 3/21/06, Thibaut Colar <[EMAIL PROTECTED]> wrote: > Sorry, i just copied this from the bookmark example. > But anyhow even if i put an actual filed like "first", i get > the same error. > The error is about "owner" not being mapped, my guess is that > the > declaration of the "Owner" class using the annotations is > failing somehow. > However when i use the "bookmark" example it runs fine, so i > don't quite > get it :-) > > Hopefully Nathan will see this email, he probably will know > what i'm > doing wrong :-) > > > Dirk Markert wrote: > > > Hi Thibaut, > > I think the error is here: > > > > final IModel listModel = new HibernateListModel("from Owner > order by > > name") ; > > There is no 'name' attribute. > > > > Dirk > > > > > > > > 2006/3/21, Thibaut Colar <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>: > > > > Ok sounds good. > > I had just downloaded the wicket example that use > hibernate as well. > > So will look at that too. > > But if i can get Databinder to work that would be even > better, i like > > the idea (no XML :-) etc....) > > > > Thanks for the help. > > > > Igor Vaynberg wrote: > > > > > if you want an example of a wicket+spring+hibernate > app look at > > > wicket-phonebook in wicket stuff cvs. i think more > people here have > > > experience with that setup so you will be able to find > more help. > > > > > > -Igor > > > > > > > > > On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]> > > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> > wrote: > > > > > > I agree with this, however so far i found no > contact infos > > whatsoever, > > > will look some more. > > > I figured some other wicket users might have > experience with > > > databinder. > > > > > > Igor Vaynberg wrote: > > > > > > > have you tried emailing the author of > databinder, that > > might be a > > > > better place to seek help. > > > > > > > > -Igor > > > > > > > > > > > > On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]> > > > <mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > > > > <mailto: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>> > wrote: > > > > > > > > I believe with Databinder wich uses jaav5 > annotations i > > > don't need > > > > any > > > > xml declaration. > > > > > > > > See the application class, "addAnnotedClass" > call. > > > > > > > > public class HockeyPondApplication extends > DataApplication > > > > { > > > > > > > > @Override > > > > protected Class getHomePage() > > > > { > > > > return MyDataPage.class; > > > > } > > > > > > > > @Override > > > > protected void > > > configureHibernate(AnnotationConfiguration > > > > config) > > > > { > > > > super.configureHibernate > (config); > > > > > > > > // Loading the annotated > Owner model > > > > > config.addAnnotatedClass(Owner > > > > < > > > > > http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1 > > <http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1> > > > < > > http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1 > > < http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1>> > > > > > > > > > < http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1 > > <http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1> > > > > > <http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1 > > <http://www.google.com/search?q=allinurl%3AOwner > +java.sun.com&bntl=1>>>>.class); > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > Justin Lee wrote: > > > > > > > > >-----BEGIN PGP SIGNED MESSAGE----- > > > > >Hash: RIPEMD160 > > > > > > > > > >The "Owner" you see there is the > class. You need to tell > > > > hibernate that > > > > >Owner is a hibernated class. If you're > using spring > > that's > > > done in > > > > >applicationContext.xml . > > > > > > > > > >Thibaut Colar wrote: > > > > > > > > > > > > > > >>Hello there, I'm an experienced java > developer, > > however new to > > > > wicket. > > > > >> > > > > >>I found wicket and think it looks great > and decided > > to use > > > it, > > > > though i > > > > >>wanted Hibernate too, so decided to use > databinder. > > > > >>I installed databinder as explained on > there site, > > and ran the > > > > examples > > > > >>locally without problems. > > > > >> > > > > >>For Info: I got databinder three days ago, > i use > > java 5.0 and > > > > maven2, > > > > >>databinder uses i believe hibernate/ejb3 > and wicket 1.1. > > > > >> > > > > >>Then i created my own Application using > maven (as > > > explained on the > > > > >>databinder site), it does compile, however > as soon as i > > > try to get > > > > >>something from the database (hibernate) it > fails > > with this > > > error: > > > > >> > > > > > >>org.hibernate.hql.ast.QuerySyntaxException : Owner > > is not > > > > mapped. [from > > > > >>Owner order by name] > > > > >> > > > > >>"Owner" is my table name. > > > > >> > > > > >>The code i have is very very basic and > short, and I've > > > been over > > > > it 25 > > > > >>hundred time, it is basically similar to > the "bookmarks" > > > > example, yet it > > > > >>keeps failing with this error. > > > > >> > > > > >>I bet i am missing something obvious here, > so please > > show me > > > > what it is :-) > > > > >> > > > > >>I put the whole code on my wiki (since > it's kinda > > long in > > > an email) > > > > >> > > > > > >>http://wiki.colar.net/doku.php/databinder_issue > > > > >> > > > > >>Let me know what I'm doing wrong, so i can > start > > sleeping > > > > again :-) > > > > >> > > > > >>Thanks. > > > > >> > > > > >> > > > > > >>------------------------------------------------------- > > > > >>This SF.Net email is sponsored by xPML, a > groundbreaking > > > > scripting language > > > > >>that extends applications into web and > mobile media. > > > Attend the > > > > live > > > > >>webcast > > > > >>and join the prime developer group > breaking into > > this new > > > coding > > > > territory! > > > > > > > > > > > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> > > > > > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > > < > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>> > > > > > >>_______________________________________________ > > > > >>Wicket-user mailing list > > > > >>Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net> > > > <mailto:Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net>> > > > > <mailto: Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net> > > > <mailto:Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net>>> > > > > >> > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > >> > > > > >> > > > > > > > > > >- -- > > > > >Justin Lee > > > > >http://www.antwerkz.com > > > > >AIM : evan chooly > > > > > 720.299.0101 > > > > >-----BEGIN PGP SIGNATURE----- > > > > >Version: GnuPG v1.4.2.1 (Cygwin) > > > > > > > > > > > > > > > >iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC > > > > >/Q5kPS0atIvjDa5NTR0pJRo= > > > > >=dU/Z > > > > >-----END PGP SIGNATURE----- > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > >This SF.Net email is sponsored by xPML, a > groundbreaking > > > > scripting language > > > > >that extends applications into web and > mobile media. > > Attend > > > the > > > > live webcast > > > > >and join the prime developer group breaking > into this new > > > coding > > > > territory! > > > > > > > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> > > > > > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>> > > > > > >_______________________________________________ > > > > >Wicket-user mailing list > > > > >Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net> > > > <mailto: Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net>> > > > > <mailto:Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net> > > > <mailto: Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net>>> > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > < > https://lists.sourceforge.net/lists/listinfo/wicket-user> > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by xPML, a > groundbreaking > > > scripting > > > > language > > > > that extends applications into web and > mobile media. > > Attend the > > > > live webcast > > > > and join the prime developer group breaking > into this > > new coding > > > > territory! > > > > > > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> > > > > > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > > > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>> > > > > > _______________________________________________ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net> > > > <mailto: Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net>> > > > > <mailto: Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net> > > > <mailto: Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net>>> > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > < > https://lists.sourceforge.net/lists/listinfo/wicket-user> > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by xPML, a > groundbreaking > > scripting > > > language > > > that extends applications into web and mobile > media. Attend the > > > live webcast > > > and join the prime developer group breaking into > this new coding > > > territory! > > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > > < > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> > > > _______________________________________________ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net> > > > <mailto:Wicket-user@lists.sourceforge.net > > <mailto:Wicket-user@lists.sourceforge.net>> > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking > scripting > > language > > that extends applications into web and mobile media. > Attend the > > live webcast > > and join the prime developer group breaking into this > new coding > > territory! > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > <mailto: Wicket-user@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language > that extends applications into web and mobile media. Attend > the live webcast > and join the prime developer group breaking into this new > coding territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user