1 Reply Latest reply on Jul 21, 2006 5:07 AM by pedrosacosta

    displaytag in my portal

    pedrosacosta

      Can you give me a help about how to use displaytag in my portal?

      I'm having a problem with the URL created by the displaytag when i use the option pagesize.

      Here is the code:

      <c:set var="addRowURL">
       <portlet:actionURL portletMode="view">
       </portlet:actionURL>
      </c:set>
      
      
      <div id="hf-portlet-form-content">
      <form name="ActionListShort" method="post" action="${addRowURL}">
      <input type="hidden" name="<%= GeneralPortalConstants.PARAMETER__ACTION %>" value="" />
      <input type="hidden" name="<%= GeneralPortalConstants.PARAMETER__CORE_ACTION_ID %>" value="-1" />
      
      <c:set var="listaVal" value="<%= actionList %>"></c:set>
      <table with="100%" cellpadding="0" cellspacing="0" class="portlet-form-input-field">
       <tr>
       <td align="center">
       <display:table name="${listaVal}" id="item" sort="list" style="width:100%; text-align:center" cellpadding="0" cellspacing="0" class="bem-theme.css" pagesize="2">
       <display:column sortable="true" property="startDateTimeFormat" title="${n:i18n('label.event.action.start_date')}" headerClass="sortable" class="portlet-form-input-field"/>
      
       <display:setProperty name="paging.banner.one_item_found" value=""></display:setProperty>
       <display:setProperty name="paging.banner.some_items_found" value=""></display:setProperty>
       <display:setProperty name="paging.banner.all_items_found" value=""></display:setProperty>
      
       </display:table>
       </td>
       </tr>
      </table>
      </form>
      </div>
      


      This produces me the URL: http://localhost:8080/bem/ActionList.jsp?d-49489-p=2

      who isn't correct. The URL for this portlet is:
      http://localhost:8080/portal/auth/portal/sigo/Accoes
      


      I've also tried with requestURI:
       <display:table name="${listaVal}" id="item" sort="list" style="width:100%; text-align:center" cellpadding="0" cellspacing="0" class="bem-theme.css" pagesize="2" requestURI="${addRowURL}">
      

      but it doesn't work.


      Any help?

      Thanks,
      Pedro