Message:
The following issue has been resolved as FIXED.
Resolver: fabrizio giustina
Date: Mon, 25 Oct 2004 4:04 PM
this was an old issue. Should already be fixed in rc1.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/DISPL-5
Here is an overview of the issue:
---------------------------------------------------------------------
Key: DISPL-5
Summary: Problem with pagination
Type: Bug
Status: Resolved
Priority: Major
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: DisplayTag
Components:
Tag Library
Fix Fors:
1.0 RC1
Assignee: fabrizio giustina
Reporter: fabrizio giustina
Created: Tue, 21 Sep 2004 4:17 PM
Updated: Mon, 25 Oct 2004 4:04 PM
Description:
====
imported from sf tracker
id 948509
submitted by yann - ian93
http://sourceforge.net/tracker/index.php?func=detail&group_id=73068&atid=536613&aid=948509
====
I'am trying to use diplay tag with struts. A form bean
call an action and I want to display form property in a
table. It looks like the the tag (table) builds the links
based off the current url and appends parameters to
support sorting and paging. The problem that I have is,
If there are too many parameters in the current
url,displaytag do not takes all my parameters( It seems
to allow a maximum size in current url).
my formBean:
/**
* @author yann
*
*
* @struts.form
* name="suiviAccesForm"
*
*
*
*/
public class SuiviAccesForm extends ValidatorForm
{
private String periode;
private String dateDebut;
private String dateFin;
20 private String
.
.
.
}
My struts action:
/**
* @author yann
*
* @struts.action
* path = "/suiviAcces"
* parameter = "method"
* scope="request"
* name="suiviAccesForm"
* validate="false"
*
*
* @struts.action-forward
* name = "suiviAccesDef"
* path = "suiviAccesDef"
*
*
*/
public class SuiviAccesAction extends
AbstractTraceAction {
private static final String SUCCESS = "suiviAccesDef";
public ActionForward execute(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
ActionErrors errors = (ActionErrors) request.getAttribute
(Globals.ERROR_KEY);
request.getSession().setAttribute
(Globals.ERROR_KEY,errors);
SuiviAccesForm suiviAccesForm = (SuiviAccesForm)form;
suiviAccesForm.setListeMois(populeMois());
suiviAccesForm.setListeSemaine(populeSemaine());
suiviAccesForm.setDateDebut(populeDateJour());
suiviAccesForm.setDateFin(populeDateJour());
return mapping.findForward(SUCCESS);
}
.
.
.
my jsp:
<display:table
name="requestScope.suiviAccesForm.resultat"
pagesize="10" width="100%" requestURI="">
<display:column property="date" title="Date"
headerClass="cssSousTitre" width="20%"/>
<display:column property="agent" title="Agent"
headerClass="cssSousTitre" width="20%"/>
<display:column property="dossier" title="Dossier"
headerClass="cssSousTitre" width="20%"/>
<display:column property="sensible" title="Dossier
sensible" headerClass="cssSousTitre" width="10%"/>
<display:column property="AFT" title="AFT"
headerClass="cssSousTitre" width="20%"/>
<display:column property="archivage" title="Archivage"
headerClass="cssSousTitre" width="10%"/>
<display:setProperty name="paging.banner.first"
value="<span class='cssTitreTrace'>[Pr�c�dent/Suivant]
{0} [<a href={3}>Suivant</a>/<a href={4}>Derni�re
page</a>]</span>"/>
<display:setProperty name="paging.banner.full"
value="<span class='cssTitreTrace'>[<a href={1}
>Premi�re page</a>/<a href={2}>Pr�c�dent</a>] {0}
[<a href={3}>Suivant</a>/<a href={4}>Derni�re
page</a>]</span>"/>
<display:setProperty name="paging.banner.last"
value="<span class='cssTitreTrace'>[<a href={1}
>Premi�re page</a>/<a href={2}>Prev</a>] {0}
[Suivant/Derni�re page]</span>"/>
<display:setProperty
name="paging.banner.all_items_found" value=""/>
<display:setProperty
name="paging.banner.some_items_found" value=""/>
<display:setProperty
name="paging.banner.one_item_found" value=""/>
<display:setProperty
name="paging.banner.no_items_found" value="<span
class='cssSousTitre'>Aucun {0} trouv�.</span>"/>
<display:setProperty name="paging.banner.page.link"
value="<a href={1} title='Aller page {0}'>{0}</a>"/>
</display:table>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel