Re: [Wicket-user] Hibernate Paging
Yeah, I think there's a lot that can be done with ejb3/jpa, and I know that people are more comfortable with standards approved by Sun than they are with the Hibernate name. (There are some useful HibAnno relationships that didn't make it into the spec, tho.) Seems to me like validation and possibly bean editing using jpa annotations would be a great Wicket sub-project (or projects). But actually loading and persisting the data is a separate concern, right? Nathan Martijn Dashorst wrote: > Oh well, > > I find it very good to stirr up such a discussion. > > In fact I think that the ejb package could be just what the doctor > ordered for this in particular. javax.persistence while not the > end-all-be-all of ORM, does have annotations for all conceivable > relationships. This would make such scaffolding pretty standard and > possibly easy (easier?) to achieve. > > The biggest hurdle then becomes validation and tweaking of the > beanedit panel (which fields do you show and which not, providing > labels for the fields). > > Martijn > > > On 1/9/07, Nathan Hamblen <[EMAIL PROTECTED]> wrote: >> Please ignore my spirited reply to that old message below. Somehow Gmane >> (or Thunderbird?) has marked a bunch of old listserv messages as new, >> and it is causing me to live in the past. >> >> Nathan Hamblen wrote: >>> Experience with creating a "databinding" API... hmmm... >>> [blah blah BLAH] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
On 1/9/07, Nathan Hamblen <[EMAIL PROTECTED]> wrote: > Please ignore my spirited reply to that old message below. Somehow Gmane > (or Thunderbird?) has marked a bunch of old listserv messages as new, > and it is causing me to live in the past. Just 10 months ago :) Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Oh well, I find it very good to stirr up such a discussion. In fact I think that the ejb package could be just what the doctor ordered for this in particular. javax.persistence while not the end-all-be-all of ORM, does have annotations for all conceivable relationships. This would make such scaffolding pretty standard and possibly easy (easier?) to achieve. The biggest hurdle then becomes validation and tweaking of the beanedit panel (which fields do you show and which not, providing labels for the fields). Martijn On 1/9/07, Nathan Hamblen <[EMAIL PROTECTED]> wrote: > Please ignore my spirited reply to that old message below. Somehow Gmane > (or Thunderbird?) has marked a bunch of old listserv messages as new, > and it is causing me to live in the past. > > Nathan Hamblen wrote: > > Experience with creating a "databinding" API... hmmm... > > [blah blah BLAH] > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Please ignore my spirited reply to that old message below. Somehow Gmane (or Thunderbird?) has marked a bunch of old listserv messages as new, and it is causing me to live in the past. Nathan Hamblen wrote: > Experience with creating a "databinding" API... hmmm... > [blah blah BLAH] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Experience with creating a "databinding" API... hmmm... Hey, there's actually an implementation of DataView paging using criteria here: http://databinder.net/site/show/baseball-players (sorry I haven't kept up with my listserv reading) So, I wonder what could be done in terms of generic databinding that would make everyone happy. I kind of think it is impossible, just because people have such different opinions about it, and those opinions are always in flux. I'm certainly interested in someday supporting Cayenne through Databinder, but it will be a pretty major refactor, and even then I don't see it being possible (or desirable) to abstract-out the differences between persistence libraries in any particular layer. Instead you might have flavors of the toolkit that work similarly, and share common interfaces where possible and useful. As for scaffolding / beanviews or whatever... the problem is those things never support complicated (but common) relations between objects. Rails scaffolding when I last checked was a one-table-only affair. So as much as that functionality looks good in demos, it has no use at all if your minimally useful datamodel already has basic connections in it. Nathan Eelco Hillenius wrote: > Thanks. I have to say that - now that I take a closer look after allmost > a year - I am not particularly content with the contrib-data and > contrib-hibernate packages. It works, but it could be much more elegant. > > It would be good to rethink the databinding from scratch, and come up > with something really good and generic. And on top of that we could > create a (t)rails-like package with generic object editing panels, > ready-to-use datagrids etc. > > Any readers that have experience with creating a databinding API and > want to join in on the effort? > > Eelco > > > Phil Kulak wrote: > >> Oops, spoke too soon. I didn't have to use DetachedQueries. >> >> On 6/3/05, Phil Kulak <[EMAIL PROTECTED]> wrote: >> >> >>> Here's what I came up with. It seems to work well so far. >>> >>> -Phil >>> >>> On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >>> Yes, that was a bug. Should be fixed now. Eelco Phil Kulak wrote: > Take a look at HibernateCountAndListAction.getQuery(). It looks to me > like it's been hard coded to the example query in the comment at the > top of the class by putting the "cd" alias in there. > > On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > >> Yes, is it does. PageableList is the the object that has the magic in >> it. It reads only the 'window' that it is currently in, so you >> don't end >> up with your whole database in memory. >> >> Eelco >> >> Jonathan Carlson wrote: >> >> >> >> >>> I don't think the CD app example uses Hibernate to do the >>> paging. If I >>> remember right, it reads it all in and does the paging and >>> sorting in >>> memory but I could have missed something. >>> >>> - Jonathan >>> >>> >>> >>> >>> >>> >> [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> >> >> >> >> >> >>> I look like I've figured it out anyway, but for future reference, >>> where is the source for that example? I found the running >>> program. Is >>> the source only in CVS? >>> >>> On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> >>> Phil Kulak wrote: > It looks like you guys have that all figured out in the > contrib, but > > > > > >>> I >>> >>> >>> >>> >>> > can't seem to figure out how it's supposed to be used from just > the > source. Is there an example anywhere I could look at? > > > > > > > You could take a look at the CD-App example. This one is rather >>> feature >>> >>> >>> >>> >>> complete. It is member of the wicket-stuff project under the wicket-contrib-examples. Martijn --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using >>> Yahoo! >>> >>> >>> >>> >>> Search APIs Find out how you can build Yahoo! directly into your own Applications - visit >>> http://developer.yahoo.net/?
Re: [Wicket-user] Hibernate paging
examples of dataview and datatable in action are available in wicket-examples project under repeater examples-IgorOn 11/21/05, Matej Knopp < [EMAIL PROTECTED]> wrote:Hi,Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging.-MatejJuhani K wrote:> Hi,>> what is recommended way to create pageable ListView for 1 database> items? Is it possible to utilize Hibernate paging? >>> ---> This SF.Net email is sponsored by the JBoss Inc. Get Certified Today> Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit:> http://ads.osdn.com/?ad_idv28&alloc_id845&op=click > ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>---This SF.Net email is sponsored by the JBoss Inc. Get Certified TodayRegister for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate paging
Hi, Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging. -Matej Juhani K wrote: Hi, what is recommended way to create pageable ListView for 1 database items? Is it possible to utilize Hibernate paging? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28&alloc_id845&op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Thanks. I have to say that - now that I take a closer look after allmost a year - I am not particularly content with the contrib-data and contrib-hibernate packages. It works, but it could be much more elegant. It would be good to rethink the databinding from scratch, and come up with something really good and generic. And on top of that we could create a (t)rails-like package with generic object editing panels, ready-to-use datagrids etc. Any readers that have experience with creating a databinding API and want to join in on the effort? Eelco Phil Kulak wrote: Oops, spoke too soon. I didn't have to use DetachedQueries. On 6/3/05, Phil Kulak <[EMAIL PROTECTED]> wrote: Here's what I came up with. It seems to work well so far. -Phil On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Yes, that was a bug. Should be fixed now. Eelco Phil Kulak wrote: Take a look at HibernateCountAndListAction.getQuery(). It looks to me like it's been hard coded to the example query in the comment at the top of the class by putting the "cd" alias in there. On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Yes, is it does. PageableList is the the object that has the magic in it. It reads only the 'window' that it is currently in, so you don't end up with your whole database in memory. Eelco Jonathan Carlson wrote: I don't think the CD app example uses Hibernate to do the paging. If I remember right, it reads it all in and does the paging and sorting in memory but I could have missed something. - Jonathan [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Phil Kulak wrote: It looks like you guys have that all figured out in the contrib, but I can't seem to figure out how it's supposed to be used from just the source. Is there an example anywhere I could look at? You could take a look at the CD-App example. This one is rather feature complete. It is member of the wicket-stuff project under the wicket-contrib-examples. Martijn --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Katun Corporation -- www.katun.com _ --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://
Re: [Wicket-user] Hibernate Paging
Oops, spoke too soon. I didn't have to use DetachedQueries. On 6/3/05, Phil Kulak <[EMAIL PROTECTED]> wrote: > Here's what I came up with. It seems to work well so far. > > -Phil > > On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > Yes, that was a bug. Should be fixed now. > > > > Eelco > > > > Phil Kulak wrote: > > > > >Take a look at HibernateCountAndListAction.getQuery(). It looks to me > > >like it's been hard coded to the example query in the comment at the > > >top of the class by putting the "cd" alias in there. > > > > > >On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > > > > >>Yes, is it does. PageableList is the the object that has the magic in > > >>it. It reads only the 'window' that it is currently in, so you don't end > > >>up with your whole database in memory. > > >> > > >>Eelco > > >> > > >>Jonathan Carlson wrote: > > >> > > >> > > >> > > >>>I don't think the CD app example uses Hibernate to do the paging. If I > > >>>remember right, it reads it all in and does the paging and sorting in > > >>>memory but I could have missed something. > > >>> > > >>>- Jonathan > > >>> > > >>> > > >>> > > >>> > > >>> > > >>[EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> > > >> > > >> > > >> > > >> > > >>>I look like I've figured it out anyway, but for future reference, > > >>>where is the source for that example? I found the running program. Is > > >>>the source only in CVS? > > >>> > > >>>On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > >>> > > >>> > > >>> > > >>> > > Phil Kulak wrote: > > > > > > > > > > > > >It looks like you guys have that all figured out in the contrib, but > > > > > > > > > > > > > > >>>I > > >>> > > >>> > > >>> > > >>> > > >can't seem to figure out how it's supposed to be used from just the > > >source. Is there an example anywhere I could look at? > > > > > > > > > > > > > > > > > > > > You could take a look at the CD-App example. This one is rather > > > > > > > > > > >>>feature > > >>> > > >>> > > >>> > > >>> > > complete. It is member of the wicket-stuff project under the > > wicket-contrib-examples. > > > > Martijn > > > > > > --- > > This SF.Net email is sponsored by Yahoo. > > Introducing Yahoo! Search Developer Network - Create apps using > > > > > > > > > > >>>Yahoo! > > >>> > > >>> > > >>> > > >>> > > Search APIs Find out how you can build Yahoo! directly into your own > > Applications - visit > > > > > > > > > > >>>http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > >>> > > >>> > > >>> > > >>> > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > >>>--- > > >>>This SF.Net email is sponsored by Yahoo. > > >>>Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > > >>>Search APIs Find out how you can build Yahoo! directly into your own > > >>>Applications - visit > > >>>http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > >>>___ > > >>>Wicket-user mailing list > > >>>Wicket-user@lists.sourceforge.net > > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user > > >>> > > >>>__ > > >>>This email has been scanned by the MessageLabs Email Security System. > > >>>For more information please visit http://www.messagelabs.com/email > > >>>__ > > >>> > > >>>__ > > >>>This email and any files transmitted with it are confidential and > > >>>intended solely for the use of the individual or entity to whom they > > >>>are addressed. If you have received this email in error please notify > > >>>the system manager. > > >>> > > >>>Katun Corporation -- www.katun.com > > >>>_ > > >>> > > >>> > > >>>--- > > >>>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > > >>>shotput > > >>>a projector? How fast can you ride your desk chair down the office luge > > >>>track? > > >>>If you want to score the big prize, get to know the little guy. > > >>>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > > >>>___ > > >>>Wicket-user mailing list > > >>>Wicket-user@lists.sourceforge.net > > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user > > >>> > > >>> > > >>> > > >>> > > >> > > >>-
Re: [Wicket-user] Hibernate Paging
Here's what I came up with. It seems to work well so far. -Phil On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Yes, that was a bug. Should be fixed now. > > Eelco > > Phil Kulak wrote: > > >Take a look at HibernateCountAndListAction.getQuery(). It looks to me > >like it's been hard coded to the example query in the comment at the > >top of the class by putting the "cd" alias in there. > > > >On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > >>Yes, is it does. PageableList is the the object that has the magic in > >>it. It reads only the 'window' that it is currently in, so you don't end > >>up with your whole database in memory. > >> > >>Eelco > >> > >>Jonathan Carlson wrote: > >> > >> > >> > >>>I don't think the CD app example uses Hibernate to do the paging. If I > >>>remember right, it reads it all in and does the paging and sorting in > >>>memory but I could have missed something. > >>> > >>>- Jonathan > >>> > >>> > >>> > >>> > >>> > >>[EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> > >> > >> > >> > >> > >>>I look like I've figured it out anyway, but for future reference, > >>>where is the source for that example? I found the running program. Is > >>>the source only in CVS? > >>> > >>>On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> > >>> > Phil Kulak wrote: > > > > > > >It looks like you guys have that all figured out in the contrib, but > > > > > > > > > >>>I > >>> > >>> > >>> > >>> > >can't seem to figure out how it's supposed to be used from just the > >source. Is there an example anywhere I could look at? > > > > > > > > > > > > > You could take a look at the CD-App example. This one is rather > > > > > >>>feature > >>> > >>> > >>> > >>> > complete. It is member of the wicket-stuff project under the > wicket-contrib-examples. > > Martijn > > > --- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using > > > > > >>>Yahoo! > >>> > >>> > >>> > >>> > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit > > > > > >>>http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > >>> > >>> > >>> > >>> > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > >>>--- > >>>This SF.Net email is sponsored by Yahoo. > >>>Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > >>>Search APIs Find out how you can build Yahoo! directly into your own > >>>Applications - visit > >>>http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > >>>___ > >>>Wicket-user mailing list > >>>Wicket-user@lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > >>>__ > >>>This email has been scanned by the MessageLabs Email Security System. > >>>For more information please visit http://www.messagelabs.com/email > >>>__ > >>> > >>>__ > >>>This email and any files transmitted with it are confidential and > >>>intended solely for the use of the individual or entity to whom they > >>>are addressed. If you have received this email in error please notify > >>>the system manager. > >>> > >>>Katun Corporation -- www.katun.com > >>>_ > >>> > >>> > >>>--- > >>>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > >>>shotput > >>>a projector? How fast can you ride your desk chair down the office luge > >>>track? > >>>If you want to score the big prize, get to know the little guy. > >>>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > >>>___ > >>>Wicket-user mailing list > >>>Wicket-user@lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > >>> > >>> > >>> > >> > >>--- > >>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > >>shotput > >>a projector? How fast can you ride your desk chair down the office luge > >>track? > >>If you want to score the big prize, get to know the little guy. > >>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > >>___ > >>Wicket-user ma
Re: [Wicket-user] Hibernate Paging
Yes, that was a bug. Should be fixed now. Eelco Phil Kulak wrote: Take a look at HibernateCountAndListAction.getQuery(). It looks to me like it's been hard coded to the example query in the comment at the top of the class by putting the "cd" alias in there. On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Yes, is it does. PageableList is the the object that has the magic in it. It reads only the 'window' that it is currently in, so you don't end up with your whole database in memory. Eelco Jonathan Carlson wrote: I don't think the CD app example uses Hibernate to do the paging. If I remember right, it reads it all in and does the paging and sorting in memory but I could have missed something. - Jonathan [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Phil Kulak wrote: It looks like you guys have that all figured out in the contrib, but I can't seem to figure out how it's supposed to be used from just the source. Is there an example anywhere I could look at? You could take a look at the CD-App example. This one is rather feature complete. It is member of the wicket-stuff project under the wicket-contrib-examples. Martijn --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Katun Corporation -- www.katun.com _ --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, ge
Re: [Wicket-user] Hibernate Paging
Take a look at HibernateCountAndListAction.getQuery(). It looks to me like it's been hard coded to the example query in the comment at the top of the class by putting the "cd" alias in there. On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Yes, is it does. PageableList is the the object that has the magic in > it. It reads only the 'window' that it is currently in, so you don't end > up with your whole database in memory. > > Eelco > > Jonathan Carlson wrote: > > >I don't think the CD app example uses Hibernate to do the paging. If I > >remember right, it reads it all in and does the paging and sorting in > >memory but I could have missed something. > > > >- Jonathan > > > > > > > [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> > > > >I look like I've figured it out anyway, but for future reference, > >where is the source for that example? I found the running program. Is > >the source only in CVS? > > > >On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > > >>Phil Kulak wrote: > >> > >> > >> > >>>It looks like you guys have that all figured out in the contrib, but > >>> > >>> > >I > > > > > >>>can't seem to figure out how it's supposed to be used from just the > >>>source. Is there an example anywhere I could look at? > >>> > >>> > >>> > >>> > >>You could take a look at the CD-App example. This one is rather > >> > >> > >feature > > > > > >>complete. It is member of the wicket-stuff project under the > >>wicket-contrib-examples. > >> > >>Martijn > >> > >> > >>--- > >>This SF.Net email is sponsored by Yahoo. > >>Introducing Yahoo! Search Developer Network - Create apps using > >> > >> > >Yahoo! > > > > > >>Search APIs Find out how you can build Yahoo! directly into your own > >>Applications - visit > >> > >> > >http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > > > > >>___ > >>Wicket-user mailing list > >>Wicket-user@lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > >> > > > > > >--- > >This SF.Net email is sponsored by Yahoo. > >Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > >Search APIs Find out how you can build Yahoo! directly into your own > >Applications - visit > >http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > >___ > >Wicket-user mailing list > >Wicket-user@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/wicket-user > > > >__ > >This email has been scanned by the MessageLabs Email Security System. > >For more information please visit http://www.messagelabs.com/email > >__ > > > >__ > >This email and any files transmitted with it are confidential and > >intended solely for the use of the individual or entity to whom they > >are addressed. If you have received this email in error please notify > >the system manager. > > > >Katun Corporation -- www.katun.com > >_ > > > > > >--- > >This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > >a projector? How fast can you ride your desk chair down the office luge > >track? > >If you want to score the big prize, get to know the little guy. > >Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > >___ > >Wicket-user mailing list > >Wicket-user@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > --- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Phil Kulak wrote: Hmm... well, in any case, I've been looking at HibernateCountAndListAction and as of now it's not ready for general use (it's acutally been hardcoded to the CD demo app). If you look at getQuery(), it does a lot of string manipulation for setting the ORDER BY, which could possibly be avoided by using criteria queries. Yes, agreed. Using criterias would be much better. Please post if you have a better implementation. Eelco I'm going to work on a version like that. If it turns into something I'll post it up. -Phil --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
It is meant for general use. I am not entirely happy with the pattern, though I haven't come up with a better one either. You can override it and have quite some options to customize. For example, this is from one of my projects: public final class ActivityListModel extends AbstractReadOnlyDetachableModel { /** action used by the pageable list (has our order columns). */ private CountAndListAction countAndListAction = new CountAndListAction(); /** the list of matches */ private transient List list; /** number of rows on each page. */ private final int rowsPerPage; /** the venue for this model. */ private final Venue venue; /** * Construct. * @param venue the venue */ public ActivityListModel(Venue venue) { this(venue, 14); } /** * Construct. * @param venue the venue * @param rowsPerPage number of rows on each page */ public ActivityListModel(Venue venue, int rowsPerPage) { this.venue = venue; this.rowsPerPage = rowsPerPage; } /** * Add order-by field to query * @param field the field to add */ public final void addOrdering(String field) { PageableList list = (PageableList)getObject(null); if (list != null) { HibernateCountAndListAction action = (HibernateCountAndListAction)list.getCountAndListAction(); action.addOrdering(field); list.clear(); } } /** * @see wicket.model.IModel#getNestedModel() */ @Override public IModel getNestedModel() { return null; } /** * Gets number of rows on each page. * @return number of rows on each page */ public final int getRowsPerPage() { return rowsPerPage; } /** * Convenience method to figure out if this model has any rows at all. * @return whether there are any rows found */ public final boolean hasResults() { List results = (List)getObject(null); return (!results.isEmpty()); } /** * @see wicket.model.AbstractDetachableModel#onAttach() */ protected void onAttach() { if(venue != null) { list = new PageableList(rowsPerPage, countAndListAction); } else { list = Collections.EMPTY_LIST; } } /** * @see AbstractDetachableModel#onDetach() */ protected void onDetach() { list = null; } /** * @see wicket.model.AbstractDetachableModel#onGetObject(Component) */ protected Object onGetObject(final Component component) { return list; } /** count and list action that works with this model. */ private final class CountAndListAction extends HibernateCountAndListAction { /** * Construct. */ public CountAndListAction() { super(new HibernateSessionDelegate()); } @Override protected void setParameters(Query query, Object queryObject) throws HibernateException { query.setEntity("venue", venue); } @Override protected Query getQuery(Session session) { Query query = session.createQuery( "select act from " + Activity.class.getName() + " act.venue = :venue"); return query; } @Override protected Query getCountQuery(Session session) { Query query = session.createQuery( "select count(act) from " + Activity.class.getName() + " act.venue = :venue"); return query; } } } public final class HibernateSessionDelegate implements IHibernateSessionDelegate { /** * @see wicket.contrib.data.model.hibernate.IHibernateSessionDelegate#getSession() */ public Session getSession() { return ((BwhRequestCycle)RequestCycle.get()).getHibernateSession(); } } It's a bit verbose, but it works. Eelco Phil Kulak wrote: Hmm... well, in any case, I've been looking at HibernateCountAndListAction and as of now it's not ready for general use (it's acutally been hardcoded to the CD demo app). If you look at getQuery(), it does a lot of string manipulation for setting the ORDER BY, which could possibly be avoided by using criteria queries. I'm going to work on a version like that. If it turns into something I'll post it up. -Phil On 6/3/05, Jonathan Carlson <[EMAIL PROTECTED]> wrote: I don't think the CD app example uses Hibernate to do the paging. If I remember right, it reads it all in and does the paging and sorting in memory but I could have missed something. - Jonathan [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Re: [Wicket-user] Hibernate Paging
Yes, currently it is only in CVS. This weekend would be a nice moment to have proper releases for them as well I think. Eelco Phil Kulak wrote: I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Phil Kulak wrote: It looks like you guys have that all figured out in the contrib, but I can't seem to figure out how it's supposed to be used from just the source. Is there an example anywhere I could look at? You could take a look at the CD-App example. This one is rather feature complete. It is member of the wicket-stuff project under the wicket-contrib-examples. Martijn --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Yes, is it does. PageableList is the the object that has the magic in it. It reads only the 'window' that it is currently in, so you don't end up with your whole database in memory. Eelco Jonathan Carlson wrote: I don't think the CD app example uses Hibernate to do the paging. If I remember right, it reads it all in and does the paging and sorting in memory but I could have missed something. - Jonathan [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Phil Kulak wrote: It looks like you guys have that all figured out in the contrib, but I can't seem to figure out how it's supposed to be used from just the source. Is there an example anywhere I could look at? You could take a look at the CD-App example. This one is rather feature complete. It is member of the wicket-stuff project under the wicket-contrib-examples. Martijn --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Katun Corporation -- www.katun.com _ --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Hmm... well, in any case, I've been looking at HibernateCountAndListAction and as of now it's not ready for general use (it's acutally been hardcoded to the CD demo app). If you look at getQuery(), it does a lot of string manipulation for setting the ORDER BY, which could possibly be avoided by using criteria queries. I'm going to work on a version like that. If it turns into something I'll post it up. -Phil On 6/3/05, Jonathan Carlson <[EMAIL PROTECTED]> wrote: > I don't think the CD app example uses Hibernate to do the paging. If I > remember right, it reads it all in and does the paging and sorting in > memory but I could have missed something. > > - Jonathan > > >>> [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> > I look like I've figured it out anyway, but for future reference, > where is the source for that example? I found the running program. Is > the source only in CVS? > > On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Phil Kulak wrote: > > > > >It looks like you guys have that all figured out in the contrib, but > I > > >can't seem to figure out how it's supposed to be used from just the > > >source. Is there an example anywhere I could look at? > > > > > > > > You could take a look at the CD-App example. This one is rather > feature > > complete. It is member of the wicket-stuff project under the > > wicket-contrib-examples. > > > > Martijn > > > > > > --- > > This SF.Net email is sponsored by Yahoo. > > Introducing Yahoo! Search Developer Network - Create apps using > Yahoo! > > Search APIs Find out how you can build Yahoo! directly into your own > > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > --- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > __ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > __ > > __ > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > Katun Corporation -- www.katun.com > _ > > > --- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
I don't think the CD app example uses Hibernate to do the paging. If I remember right, it reads it all in and does the paging and sorting in memory but I could have missed something. - Jonathan >>> [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>> I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Phil Kulak wrote: > > >It looks like you guys have that all figured out in the contrib, but I > >can't seem to figure out how it's supposed to be used from just the > >source. Is there an example anywhere I could look at? > > > > > You could take a look at the CD-App example. This one is rather feature > complete. It is member of the wicket-stuff project under the > wicket-contrib-examples. > > Martijn > > > --- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Katun Corporation -- www.katun.com _ --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
I look like I've figured it out anyway, but for future reference, where is the source for that example? I found the running program. Is the source only in CVS? On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Phil Kulak wrote: > > >It looks like you guys have that all figured out in the contrib, but I > >can't seem to figure out how it's supposed to be used from just the > >source. Is there an example anywhere I could look at? > > > > > You could take a look at the CD-App example. This one is rather feature > complete. It is member of the wicket-stuff project under the > wicket-contrib-examples. > > Martijn > > > --- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate Paging
Phil Kulak wrote: It looks like you guys have that all figured out in the contrib, but I can't seem to figure out how it's supposed to be used from just the source. Is there an example anywhere I could look at? You could take a look at the CD-App example. This one is rather feature complete. It is member of the wicket-stuff project under the wicket-contrib-examples. Martijn --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user