This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 16, 2015, 2:02 PM
178 Posts

custom renderer for xe:pagerAddRows

  • Category: Extension Library
  • Platform: All
  • Release: 9.0.1
  • Role: Developer
  • Tags: html
  • Replies: 2

has anyone defined a custom renderer for xe:pagerAddRows ? I am not sure how I can best alter the HTML of the control.

Sep 16, 2015, 6:40 PM
586 Posts
well

I can't tell you how to make a custom renderer... it's been on NotesIn9 a couple times I think.  But if you want to alter it I think that's you're only option.

 

good Luck!

Sep 21, 2015, 6:49 PM
38 Posts
Have a look at the source code on Github

Patrick, on Github you can have the original code of the pager Add Rows

https://github.com/OpenNTF/XPagesExtensionLibrary/blob/master/extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/renderkit/html_extended/data/PagerAddRowsRenderer.java

 

You can copy it to your own database as Java class, make a reference to it in the Faces-config.xm, see http://www.pipalia.co.uk/xpages-2/creating-custom-renderers-for-xpages-controls/

In this example the renderer is added to the component, but you can also specify the renderer also in your Theme, like I did for my own pager renderer

<name>Pager</name>

        <property>

          <name>rendererType</name>

          <value>nl.elstarit.renderers.type.BootstrapPagerRenderer</value>

        </property>

      </control>

 

And alter your renderer to your needs.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal