Hello,

Displaytag sorts the data that it receives from the controller. It is your
choice if you cache your data, or refetch it everytime.
The important thing to understand is that when sorting or paging it always
submits a request to your action and the action gets executed every time.
That's the role of requestUri attribute - to tell displaytag which action it
should go to so that it will have his data available for sorting or paging.

Cheers,
Narcis

2009/5/22 abhishek reddy <[email protected]>

> you mean for sorting, it wll fetch the data from database and display in
> the table...
>
> 2009/5/22 <[email protected]>
>
>  requestURI takes on the value of the web page or servlet that your
>> application called to generate the page.  Here's an example from some of my
>> source code for the <display:table> tag:
>>
>> <display:table name="requestScope.records"
>>                export="true"
>>                defaultorder="ascending"
>>                class="displayTable"
>>                requestURIcontext="true"
>>                requestURI="/servlet/UserActivityReport"
>>                cellspacing="0"
>>                cellpadding="5px"
>>                varTotals="totals">
>>
>>
>>  -----Original Message-----
>> From: abhishek reddy <[email protected]>
>> To: [email protected]
>> Sent: Fri, 22 May 2009 7:14 am
>> Subject: [displaytag-user] Sorting Problem
>>
>>  hi every one,
>>
>> what value should i give for requestURI attribute for sorting to
>> work......
>> Is it necessary to mention the value for requestURI attribute.......if
>> necessary mention the reason.
>>
>> I have given empty value for requestURI .........its working fine for the
>> first time....next time when i click on column for sorting, page will be
>> forwarded to some other page...from which the request has come...
>>
>> need help regarding..
>>
>> thanks in advance....
>> --
>> Abhishek
>>
>> ------------------------------------------------------------------------------
>>
>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>>
>> is a gathering of tech-side developers & brand creativity professionals. Meet
>>
>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>>
>> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
>>
>> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>>
>>  _______________________________________________
>>
>> displaytag-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>
>>  ------------------------------
>> Don't let your email address define you - Define yourself at 
>> tunome.com<http://www.tunome.com>today!
>>
>>
>> ------------------------------------------------------------------------------
>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>> is a gathering of tech-side developers & brand creativity professionals.
>> Meet
>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
>> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>> _______________________________________________
>> displaytag-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>
>>
>
>
> --
> Abhishek
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to