anonymous wrote : 
  | There is no problem here, pagination is easy to implement (the Hibernate 
Tools plugin actually generates code to do pagination). All you do is have a 
nextPage() action that re-runs the query with a diff 
setFirstResults()/setMaxResults(). Very, very simple.
  | 

Well I was thinking more along a different line. JSF has the generic data model 
mechanism, a mechanism rather rough to implement, but very generic.
I was thinking about the line of a generic EJB3/Hibernate data model, which you 
only have to feed with a query.
The advantage of such an approach to something like you propose is following. 
MyFaces and other component libs have semi automatic data scrollers which work 
on the data tables.
They basically do automatically what you propopse by incrementation of 
the internal scroller index of the data model.
In the end the result would be, that you only have to feed an initialized data 
model, and do not even have to care for the next and back paging.

anonymous wrote : 
  |  have tried to do this. Which files in particular are lacking?
  | 

I have to apologize here, I overlooked the online docs to the config files 
somewhat.
Typical case of RTFM on my side. 
I will check the docs out thoroughly on this issue to see if I can find 
something unclear.

Anyway seams is an excellent framework, all it needs is better integration into 
different IDEs and you have a clear winner, once this thing can be deployed 
with some wizards and reverse engineering tools (like they exist for hibernate 
already) in an instant you have something amazing on your hands.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913469#3913469

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913469


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to