Sep 14, 2011 2:30 PM
66 Posts

Run code/partial refresh a panel onclick of a Pager Control link

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
I have a pager attached to a repeat control and it appears that there are no events available with the Pager Control in XPages.
 
What I'm wanting to do is to partial refresh a panel before the pager switches to the next page. (I have a repeat setup to only show 1 "row"). Is there anyway this can be done?
 
Any thoughts are appreciated.
Sep 14, 2011 3:53 PM
66 Posts
Re: Run code/partial refresh a panel onclick of a Pager Control link
 I've found if you set the "Pager style" to "Custom", you can add <xp:pagerControl> controls which have onclick events associated with them. However, I cannot get any event (client or server) to fire off.
 
  <xp:pager id="pager1" for="repeat1">
<xp:pagerControl id="pagerControl1" type="Next">
<xp:eventHandler event="onclick" submit="false">
<xp:this.script><![CDATA[alert("hello");]]></xp:this.script>
</xp:eventHandler>
</xp:pagerControl>
</xp:pager>
 
The "hello" alert box does not show onclick of the "Next" link in the pager control. Am I missing something?