[OT] Re: Displaying mulitpage results

2005-02-22 Thread Bill Schneider
By using good frameworks like iBATIS (which has great support for 
 pagination and dynamic queries) and design patterns pertinent to
the requirement, the code in the layers you can be kept to a minimum. 
The web application at workeffort.dev.java.net does all kinds of 
pagination, ordering sorting etc from the database. The methods for
pagination in the struts actions is a few lines and the service layer
method call is a one liner. There is no code bloat if you take the 
time to design the different layers appropriately. 
Now that I remember, I think one of the major pain points for doing 
paging/sorting at the DB level with Hibernate and Struts together was 
needing to make a second query with count(*) to figure out how many 
total rows/pages there are.  If Hibernate gave you back a paginated 
results object that implemented Collection (and size() works), which I 
think iBATIS does, it would be cleaner.

Lazy-paginated collections may require the open session in view 
pattern to actually fetch the results from within a JSP page.  I'm not 
that fond of this personally (hangs onto db resources during potentially 
slow output rendering/transmission) but it seems to be the widespread 
accepted practice.

-- Bill
--
Bill Schneider
Chief Architect
Vecna Technologies
5004 Lehigh Rd., Suite B
College Park, MD 20740
[EMAIL PROTECTED]
t: 301-864-7253 x1140
f: 301-699-3180
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Displaying mulitpage results

2005-02-21 Thread Bill Schneider
Check out the datagrid library at 
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
If all you are looking for is pagination, sorting and ordering from the 
database this is a good fit.  It does not have all the bells and whistles 
displaytag has, but is a simple and clean implementation.
The biggest issue I have with the stock displaytag is, you have to stick the whole query result somewhere (generally in the users session) to do pagination. A very bad idea in my opinion.
It's not a bad idea, it's a tradeoff: if you want native DB pagination 
(e.g., limit/offset in PostgreSQL, TOP xx in SQL Server, etc.) you 
either have to couple your UI components directly to the database, or 
you have to handle pagination at each and every layer in a multi-tier 
design (Struts Actions, business logic/session beans, DAOs/entity home 
interfaces, etc.)  Neither choice is particularly appealing for the 
common case.

My feeling is that, if you can't afford to pull all the results into 
memory at once, pagination probably is not the right UI design anyway. 
How meaningful is it to allow the user to jump to page 87 of 439?  You 
should look at pagination strictly as a UI construct, to optimize 
*client* side performance rather than server-side (i.e., to avoid 
scrolling and downloading long HTML over a possibly slow dialup link). 
Then, in exceptional cases, you can always break abstraction and couple 
your UI directly to the DB (with JSTL sql tags, for instance) for 
server-side performance tuning when you really need it.

-- Bill
--
Bill Schneider
Chief Architect
Vecna Technologies, Inc.
5004 Lehigh Road, Suite B
College Park, MD 20740
[EMAIL PROTECTED]
t: 301-864-7594
f: 301-699-3180
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Displaying mulitpage results

2005-02-21 Thread Antony Joseph
By using good frameworks like iBATIS (which has great support for pagination 
and dynamic queries) and design patterns pertinent to the requirement, the code 
in the layers you can be kept to a minimum. The web application at 
workeffort.dev.java.net does all kinds of pagination, ordering sorting etc from 
the database. The methods for pagination in the struts actions is a few lines 
and the service layer method call is a one liner. There is no code bloat if you 
take the time to design the different layers appropriately. 

Applications of reasonable sizes generally deal with queries that return a 
whole bunch of records (as developers we would like to limit the records 
returned, unfortunately this is dictated by the users, and they want to query 
by all kinds of different criteria and rightfully so) and if these records are 
stuck in the users session, the application is not going to scale.




- Original Message -
From: Bill Schneider [EMAIL PROTECTED]
To: user@struts.apache.org
Subject: Re: Displaying mulitpage results
Date: Mon, 21 Feb 2005 09:16:16 -0500

 
  Check out the datagrid library at 
  http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
 
  If all you are looking for is pagination, sorting and ordering 
  from the database this is a good fit.  It does not have all the 
  bells and whistles displaytag has, but is a simple and clean 
  implementation.
 
  The biggest issue I have with the stock displaytag is, you have 
  to stick the whole query result somewhere (generally in the users 
  session) to do pagination. A very bad idea in my opinion.
 
 It's not a bad idea, it's a tradeoff: if you want native DB 
 pagination (e.g., limit/offset in PostgreSQL, TOP xx in SQL Server, 
 etc.) you either have to couple your UI components directly to the 
 database, or you have to handle pagination at each and every layer 
 in a multi-tier design (Struts Actions, business logic/session 
 beans, DAOs/entity home interfaces, etc.)  Neither choice is 
 particularly appealing for the common case.
 
 My feeling is that, if you can't afford to pull all the results 
 into memory at once, pagination probably is not the right UI design 
 anyway. How meaningful is it to allow the user to jump to page 87 
 of 439?  You should look at pagination strictly as a UI construct, 
 to optimize *client* side performance rather than server-side 
 (i.e., to avoid scrolling and downloading long HTML over a possibly 
 slow dialup link). Then, in exceptional cases, you can always break 
 abstraction and couple your UI directly to the DB (with JSTL sql 
 tags, for instance) for server-side performance tuning when you 
 really need it.
 
 -- Bill
 -- Bill Schneider
 Chief Architect
 
 Vecna Technologies, Inc.
 5004 Lehigh Road, Suite B
 College Park, MD 20740
 [EMAIL PROTECTED]
 t: 301-864-7594
 f: 301-699-3180
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Displaying mulitpage results - Néstor

2005-02-20 Thread Peter Neu
Hello Néstor,
I'm quite happy using your taglib. I got only one problem:
How can I get an index for the rows which are created.
In Struts you would have something like this:
 logic:iterate id=element name=hvaList indexId=index
There I could easily tell  which row some data belongs
to by usign the index above. How can I do the same thing
in Datagrid?
cheers,
Peter
Néstor Boscán schrieb:
Hi Antony
1) Expose two more variables to access first page and last page ( like
nextUrlVar). 

You can use the pages variable and get the first and last page elements to
get the first page and the last page. But It may be interesting to put two
aditional variables.
2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.
With the pages variable you can use the data anyway you like. You can show
all of them or limit the number of pages shown to a specific number. 

Any new features that you can come up is always welcomed.
Regards,
Néstor Boscán
-Mensaje original-
De: Antony Joseph [mailto:[EMAIL PROTECTED] 
Enviado el: Sábado, 19 de Febrero de 2005 02:37 p.m.
Para: Struts Users Mailing List
Asunto: RE: Displaying mulitpage results

Hi Nestor,
Thanks for putting together the datagrid library. Please see if you can add
these two features in a future release of the library:
1) Expose two more variables to access first page and last page ( like
nextUrlVar). 
2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

Currently to provide these features I am using scriplets.  


- Original Message -
From: Néstor Boscán [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
Subject: RE: Displaying mulitpage results
Date: Sat, 19 Feb 2005 13:43:16 -0400

Hi Antony
You can't use JSP tags inside the columns. You could use HTML buttons 
and input fields with JSTL expressions.

Regards,
Néstor Boscán
-Mensaje original-
De: Peter Neu [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 19 de 
Febrero de 2005 01:18 p.m.
Para: Struts Users Mailing List
Asunto: Re: Displaying mulitpage results

Hello Antony,
the datagrid-tags were exactly what I was looking for. The one 
question which I have is how can I use Struts tags inside the columns? 
I really need some buttons and input fields.

cheers,
Peter

Antony Joseph schrieb:
Check out the datagrid library at
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.htm
l
If all you are looking for is pagination, sorting and ordering from 
the
database this is a good fit.  It does not have all the bells and 
whistles displaytag has, but is a simple and clean implementation.

The biggest issue I have with the stock displaytag is, you have to 
stick
the whole query result somewhere (generally in the users session) to 
do pagination. A very bad idea in my opinion.

See https://workeffort.dev.java.net for an application usage example 
of datagrid library. Got tired of spamming you all with my company 
website, so I moved the application to java.net :-)

- Original Message -
From: Peter Neu [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Subject: Displaying mulitpage results
Date: Sat, 19 Feb 2005 11:11:27 +0100

Hello everybody,
in my struts application I used to display a table of query results 
on one page. Now the results are becoming way too much to display 
them on one page. What is the best way to implement a mulitpage 
result view?
The problem is I have multi-step workflow and I don't want to 
confuse the user too much.

Best Regards,
Peter
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Antony Joseph
Available for consulting
http://www.logicden.com
-
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]


Antony Joseph
Available for consulting
http://www.logicden.com
--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10
-
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

Re: Displaying mulitpage results

2005-02-19 Thread Bing Qiao
hi Peter,

Have you tried displaytag before?


On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu [EMAIL PROTECTED] wrote:
 Hello everybody,
 
 in my struts application I used to display a table of query results on
 one page. Now the results are becoming way too much to display them on
 one page. What is the best way to implement a mulitpage result view?
 The problem is I have multi-step workflow and I don't want to confuse
 the user too much.
 
 Best Regards,
 
 Peter
 
 -
 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]



Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
Ok, I will check this out. This a non-struts-project right?
Is there also an option only using struts?
Bing Qiao schrieb:
hi Peter,
Have you tried displaytag before?
On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu [EMAIL PROTECTED] wrote:
Hello everybody,
in my struts application I used to display a table of query results on
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.
Best Regards,
Peter
-
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]


Re: Displaying mulitpage results

2005-02-19 Thread Bing Qiao
As far as I know, you may do the paging using logic:iterate. But
then you need to build the traversing and sorting functions youself.

Regards

bq

On Sat, 19 Feb 2005 11:51:13 +0100, Peter Neu [EMAIL PROTECTED] wrote:
 Ok, I will check this out. This a non-struts-project right?
 Is there also an option only using struts?
 
 Bing Qiao schrieb:
  hi Peter,
 
  Have you tried displaytag before?
 
 
  On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu [EMAIL PROTECTED] wrote:
 
 Hello everybody,
 
 in my struts application I used to display a table of query results on
 one page. Now the results are becoming way too much to display them on
 one page. What is the best way to implement a mulitpage result view?
 The problem is I have multi-step workflow and I don't want to confuse
 the user too much.
 
 Best Regards,
 
 Peter
 
 -
 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]



Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
OK, your are right this is too much work. I tried to use the display tag 
in my application. But there is an error thrown:

Failed to load or instantiate TagExtraInfo class: 
org.displaytag.tags.TableTagExtraInfo

I used Tomcat 5.27 and the 1.2 display-tag. Did you encounter this
problem as well?
Regards,
Peter
Bing Qiao schrieb:
As far as I know, you may do the paging using logic:iterate. But
then you need to build the traversing and sorting functions youself.
Regards
bq
On Sat, 19 Feb 2005 11:51:13 +0100, Peter Neu [EMAIL PROTECTED] wrote:
Ok, I will check this out. This a non-struts-project right?
Is there also an option only using struts?
Bing Qiao schrieb:
hi Peter,
Have you tried displaytag before?
On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu [EMAIL PROTECTED] wrote:

Hello everybody,
in my struts application I used to display a table of query results on
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.
Best Regards,
Peter
-
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]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Displaying mulitpage results

2005-02-19 Thread Antony Joseph
Check out the datagrid library at 
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html

If all you are looking for is pagination, sorting and ordering from the 
database this is a good fit.  It does not have all the bells and whistles 
displaytag has, but is a simple and clean implementation.

The biggest issue I have with the stock displaytag is, you have to stick the 
whole query result somewhere (generally in the users session) to do pagination. 
A very bad idea in my opinion.

See https://workeffort.dev.java.net for an application usage example of 
datagrid library. Got tired of spamming you all with my company website, so I 
moved the application to java.net :-)


- Original Message -
From: Peter Neu [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Subject: Displaying mulitpage results
Date: Sat, 19 Feb 2005 11:11:27 +0100

 
 Hello everybody,
 
 in my struts application I used to display a table of query results 
 on one page. Now the results are becoming way too much to display 
 them on
 one page. What is the best way to implement a mulitpage result view?
 The problem is I have multi-step workflow and I don't want to confuse
 the user too much.
 
 Best Regards,
 
 Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
Hello Antony,
the datagrid-tags were exactly what I was looking for. The one question 
which I have is how can I use Struts tags inside the columns? I really 
need some buttons and input fields.

cheers,
Peter

Antony Joseph schrieb:
Check out the datagrid library at 
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
If all you are looking for is pagination, sorting and ordering from the 
database this is a good fit.  It does not have all the bells and whistles 
displaytag has, but is a simple and clean implementation.
The biggest issue I have with the stock displaytag is, you have to stick the 
whole query result somewhere (generally in the users session) to do pagination. 
A very bad idea in my opinion.
See https://workeffort.dev.java.net for an application usage example of 
datagrid library. Got tired of spamming you all with my company website, so I 
moved the application to java.net :-)
- Original Message -
From: Peter Neu [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Subject: Displaying mulitpage results
Date: Sat, 19 Feb 2005 11:11:27 +0100

Hello everybody,
in my struts application I used to display a table of query results 
on one page. Now the results are becoming way too much to display 
them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.

Best Regards,
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Antony Joseph
Available for consulting
http://www.logicden.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Displaying mulitpage results

2005-02-19 Thread Néstor Boscán
Hi Antony

You can't use JSP tags inside the columns. You could use HTML buttons and
input fields with JSTL expressions.

Regards,

Néstor Boscán 

-Mensaje original-
De: Peter Neu [mailto:[EMAIL PROTECTED] 
Enviado el: Sábado, 19 de Febrero de 2005 01:18 p.m.
Para: Struts Users Mailing List
Asunto: Re: Displaying mulitpage results

Hello Antony,

the datagrid-tags were exactly what I was looking for. The one question
which I have is how can I use Struts tags inside the columns? I really need
some buttons and input fields.

cheers,

Peter



Antony Joseph schrieb:
 Check out the datagrid library at 
 http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
 
 If all you are looking for is pagination, sorting and ordering from the
database this is a good fit.  It does not have all the bells and whistles
displaytag has, but is a simple and clean implementation.
 
 The biggest issue I have with the stock displaytag is, you have to stick
the whole query result somewhere (generally in the users session) to do
pagination. A very bad idea in my opinion.
 
 See https://workeffort.dev.java.net for an application usage example 
 of datagrid library. Got tired of spamming you all with my company 
 website, so I moved the application to java.net :-)
 
 
 - Original Message -
 From: Peter Neu [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Subject: Displaying mulitpage results
 Date: Sat, 19 Feb 2005 11:11:27 +0100
 
 
Hello everybody,

in my struts application I used to display a table of query results on 
one page. Now the results are becoming way too much to display them on 
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse 
the user too much.

Best Regards,

Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 Antony Joseph
 Available for consulting
 http://www.logicden.com
 

-
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]



Re: Displaying mulitpage results

2005-02-19 Thread Antony Joseph
I don't think so. That's just a guess because I have not tried it. I use 
datagrid for display purposes only. For multi row input fields/buttons I use 
struts iterator tag.

- Original Message -
From: Peter Neu [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Displaying mulitpage results
Date: Sat, 19 Feb 2005 18:17:45 +0100

 
 Hello Antony,
 
 the datagrid-tags were exactly what I was looking for. The one 
 question which I have is how can I use Struts tags inside the 
 columns? I really need some buttons and input fields.
 
 cheers,
 
 Peter
 
 
 
 Antony Joseph schrieb:
  Check out the datagrid library at 
  http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
 
  If all you are looking for is pagination, sorting and ordering 
  from the database this is a good fit.  It does not have all the 
  bells and whistles displaytag has, but is a simple and clean 
  implementation.
 
  The biggest issue I have with the stock displaytag is, you have 
  to stick the whole query result somewhere (generally in the users 
  session) to do pagination. A very bad idea in my opinion.
 
  See https://workeffort.dev.java.net for an application usage 
  example of datagrid library. Got tired of spamming you all with 
  my company website, so I moved the application to java.net :-)
 
 
  - Original Message -
  From: Peter Neu [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org
  Subject: Displaying mulitpage results
  Date: Sat, 19 Feb 2005 11:11:27 +0100
 
 
  Hello everybody,
 
  in my struts application I used to display a table of query 
  results on one page. Now the results are becoming way too much 
  to display them on
  one page. What is the best way to implement a mulitpage result view?
  The problem is I have multi-step workflow and I don't want to confuse
  the user too much.
 
  Best Regards,
 
  Peter
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  Antony Joseph
  Available for consulting
  http://www.logicden.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Displaying mulitpage results

2005-02-19 Thread Antony Joseph
Hi Nestor,
Thanks for putting together the datagrid library. Please see if you can add 
these two features in a future release of the library:
1) Expose two more variables to access first page and last page ( like 
nextUrlVar). 
2) A way to specify the maximum number of page links on the page. For example 
if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

Currently to provide these features I am using scriplets.  



- Original Message -
From: Néstor Boscán [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
Subject: RE: Displaying mulitpage results
Date: Sat, 19 Feb 2005 13:43:16 -0400

 
 Hi Antony
 
 You can't use JSP tags inside the columns. You could use HTML buttons and
 input fields with JSTL expressions.
 
 Regards,
 
 Néstor Boscán
 
 -Mensaje original-
 De: Peter Neu [mailto:[EMAIL PROTECTED]
 Enviado el: Sábado, 19 de Febrero de 2005 01:18 p.m.
 Para: Struts Users Mailing List
 Asunto: Re: Displaying mulitpage results
 
 Hello Antony,
 
 the datagrid-tags were exactly what I was looking for. The one question
 which I have is how can I use Struts tags inside the columns? I really need
 some buttons and input fields.
 
 cheers,
 
 Peter
 
 
 
 Antony Joseph schrieb:
  Check out the datagrid library at 
  http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
 
  If all you are looking for is pagination, sorting and ordering from the
 database this is a good fit.  It does not have all the bells and whistles
 displaytag has, but is a simple and clean implementation.
 
  The biggest issue I have with the stock displaytag is, you have to stick
 the whole query result somewhere (generally in the users session) to do
 pagination. A very bad idea in my opinion.
 
  See https://workeffort.dev.java.net for an application usage 
  example of datagrid library. Got tired of spamming you all with 
  my company website, so I moved the application to java.net :-)
 
 
  - Original Message -
  From: Peter Neu [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org
  Subject: Displaying mulitpage results
  Date: Sat, 19 Feb 2005 11:11:27 +0100
 
 
  Hello everybody,
 
  in my struts application I used to display a table of query 
  results on one page. Now the results are becoming way too much 
  to display them on one page. What is the best way to implement a 
  mulitpage result view?
  The problem is I have multi-step workflow and I don't want to 
  confuse the user too much.
 
  Best Regards,
 
  Peter
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  Antony Joseph
  Available for consulting
  http://www.logicden.com
 
 
 -
 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]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Displaying mulitpage results

2005-02-19 Thread Néstor Boscán
Hi Antony

1) Expose two more variables to access first page and last page ( like
nextUrlVar). 

You can use the pages variable and get the first and last page elements to
get the first page and the last page. But It may be interesting to put two
aditional variables.

2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

With the pages variable you can use the data anyway you like. You can show
all of them or limit the number of pages shown to a specific number. 

Any new features that you can come up is always welcomed.

Regards,

Néstor Boscán

-Mensaje original-
De: Antony Joseph [mailto:[EMAIL PROTECTED] 
Enviado el: Sábado, 19 de Febrero de 2005 02:37 p.m.
Para: Struts Users Mailing List
Asunto: RE: Displaying mulitpage results

Hi Nestor,
Thanks for putting together the datagrid library. Please see if you can add
these two features in a future release of the library:
1) Expose two more variables to access first page and last page ( like
nextUrlVar). 
2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

Currently to provide these features I am using scriplets.  



- Original Message -
From: Néstor Boscán [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
Subject: RE: Displaying mulitpage results
Date: Sat, 19 Feb 2005 13:43:16 -0400

 
 Hi Antony
 
 You can't use JSP tags inside the columns. You could use HTML buttons 
 and input fields with JSTL expressions.
 
 Regards,
 
 Néstor Boscán
 
 -Mensaje original-
 De: Peter Neu [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 19 de 
 Febrero de 2005 01:18 p.m.
 Para: Struts Users Mailing List
 Asunto: Re: Displaying mulitpage results
 
 Hello Antony,
 
 the datagrid-tags were exactly what I was looking for. The one 
 question which I have is how can I use Struts tags inside the columns? 
 I really need some buttons and input fields.
 
 cheers,
 
 Peter
 
 
 
 Antony Joseph schrieb:
  Check out the datagrid library at
  http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.htm
  l
 
  If all you are looking for is pagination, sorting and ordering from 
  the
 database this is a good fit.  It does not have all the bells and 
 whistles displaytag has, but is a simple and clean implementation.
 
  The biggest issue I have with the stock displaytag is, you have to 
  stick
 the whole query result somewhere (generally in the users session) to 
 do pagination. A very bad idea in my opinion.
 
  See https://workeffort.dev.java.net for an application usage example 
  of datagrid library. Got tired of spamming you all with my company 
  website, so I moved the application to java.net :-)
 
 
  - Original Message -
  From: Peter Neu [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org
  Subject: Displaying mulitpage results
  Date: Sat, 19 Feb 2005 11:11:27 +0100
 
 
  Hello everybody,
 
  in my struts application I used to display a table of query results 
  on one page. Now the results are becoming way too much to display 
  them on one page. What is the best way to implement a mulitpage 
  result view?
  The problem is I have multi-step workflow and I don't want to 
  confuse the user too much.
 
  Best Regards,
 
  Peter
 
  ---
  -- To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  Antony Joseph
  Available for consulting
  http://www.logicden.com
 
 
 -
 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]



Antony Joseph
Available for consulting
http://www.logicden.com

--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10


-
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]