If you want to mantain the state of your displaytag even after you go to the
detail view, just specify in your displaytag declaration the attribute
keepStatus (in bold) . Basically does something like Naveen Namburi said in
his email, stores in session a variable that contains the last page where
you left displaytag, but you hve to assure that id attribute value is unique
in all application
<display:table name="agrupComiLst" id="agrupComis" pagesize="8"
excludedParams="*" *keepStatus="true"*
decorator="com.datasoft.zara.comis.decorators.AgrupComiDecorator"
clearStatus="${pageScope.clearPaging}"
requestURI="agrupComi.do?accion=goToAgcLst"
htmlId="displayTable" >
<display:column property="idagc" title="ID" />
<display:column property="nombre" title="Nombre" />
<display:column property="accion" title="Accion"
class="actionCol" />
</display:table>
Regards.
2010/10/4 Naveen Namburi <naveennamb...@gmail.com>
> when going to next page call request.getHeader("referer") gives you the
> previous URI from where you came...store that in session further...and when
> you click back...redirect it to this URI....using java script or what ever
> os the best way
>
> Thanks,
> Naveen.
>
> 2010/10/4 John Watson <joh...@azasrs.gov>
>
>> We have a paginatedset of search results being rendered in display tag.
>> The scenario is that the end user gets the results, sorts, goes to second or
>> third page then clicks on detailed view. Now when the user navigates back to
>> the search results they are ending up on the first page of unsorted results.
>> I have proposed reading in all the extra displayTag http parameters while on
>> the detailed view then when they user is done with the details and clicks
>> 'back' trying to recreate the full url and redirect them back there. The net
>> result should be that the user ends up on the same page of search results
>> and with the sort order retained.
>>
>> Is there a better way to accomplish this?
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization is moving to the mainstream and overtaking non-virtualized
>> environment for deploying applications. Does it make network security
>> easier or more difficult to achieve? Read this whitepaper to separate the
>> two and get a better understanding.
>> http://p.sf.net/sfu/hp-phase2-d2d
>> _______________________________________________
>> displaytag-user mailing list
>> displaytag-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>
>>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user