Menu

BUG? requestURI param endless appended

Help
2006-06-29
2012-10-09
  • stefan flick

    stefan flick - 2006-06-29

    when using the requestURI param at tabletag like the following: requestURI="?myParam=1&myParam2=2" the resulting page navigation links at the first usage is ok and looks for example like

    http://localhost/displaytag-examples-1.1/example-paging.jsp?d-49653-p=2&myParam=1&myParam2=2

    but after the first interaction (for example click the obve link to navigate to page 2) the url looks like

    http://localhost/displaytag-examples-1.1/example-paging.jsp?d-49653-p=2&myParam=1&myParam2=2&myParam=1&myParam2=2

    the requestURI params are added twice and so on...
    i'm sure, this is not the desired behavior - right?
    is there a workaround available? or did i misuse the requestURI param?

    thanks in advance,

    steff

     
    • Mercury

      Mercury - 2006-08-11

      try to use excludedParams="myParam*" in tabletag.

       
      • diogui

        diogui - 2008-03-11

        Besides that problem.

        When listing and navigating between different pages the url generated was getting huge with all the params added by displaytag, like it was referred by steff.

        Beside that problem I had another one. When I was editing some record of the table a submit is produced (to update the record). The problem was that next time I navigate throw the list all the params of the form were being added to the url generated by th dispalytag (in DefaultRequestHelper.java) which generated an exception since it was producing another form submit.

        So I included the attrbiute excludedParams="*" and the problem was solved. Now the only params added are the ones needed for the pagination without duplications and form params.

        Here is my table definition:

        <display:table class="contentsMainTableGreat" name="${actionBean.villages}" export="true" defaultsort="2" defaultorder="descending"
        requestURI="/admin/geolocalization/Village.html?loadAllVillages" pagesize="2" excludedParams="*">
        <display:column property="name" title="Nombre" href="/admin/geolocalization/Village.html?loadVillageById"
        paramId="village.id" paramProperty="id" sortable="true"/>
        <display:column property="municipality.name" title="Municipality" sortable="true"/>
        <display:column property="municipality.province.name" title="Province" sortable="true"/>
        <display:setProperty name="export.pdf" value="true"/>
        </display:table>

        I hope that this helps.

        diogui

         

Log in to post a comment.