0 Replies - 1299 Views - Last Post: 25 January 2010 - 03:01 PM

#1 tomlidong   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 30-October 07

How to add JavaScript function to the pagination link of Hibernate?

Post icon  Posted 25 January 2010 - 03:01 PM

Hello All,

I used the Hibernate to get the pagination. I plan to bind a Javascript function to the pagination link. For example, I will get the new event when I click the next or last or any link page. Where should I modify at jsp or controller?

Thanks a lot.

My jsp code:
<code>
<display:table name="quoteTable"
uid="quoteRow" export="false" border="1"
class="data" defaultsort="1" width="470px"
pagesize="5" requestURI="${iqx_requestUri_quote}">

<display:column titleKey="test.manager.action" sortable="false">
<input type="radio" name="searchId"
onclick="setQuoteId('<c:out value="${quoteRow.quoteId}"/>');" />
</display:column>

<display:column titleKey="test.manager.quoteId" sortable="true"
sortProperty="quoteId" property="quoteId" />

<display:setProperty name="paging.banner.placement" value="top" />
<display:setProperty name="paging.banner.onepage" value="" />
<display:setProperty name="paging.banner.no_items_found" value="" />
</display:table>
</code>

<code>
<div id="divDateInfo" style="visibility: hidden;">
<input type="submit" name="test.change" id="changing"
value="<spring:message code="test.details.change.value" />"
style="width: 100px; height: 0px; float: none;" />
</div></code>

My javascript code:
<code>
<script>

function submitButton() {
document.getElementById('changing').click()
}

</script>
</code>

Is This A Good Question/Topic? 0
  • +

Page 1 of 1