I am using a Dynamic View Panel to display various views inside a single XPage. This has resulted in a few problems. Firstly, column styling set inside the views is not displayed on the XPage (eg: making column headers bold). More importantly, while the view contains links to the documents inside the view, links are all appended with action=editDocument, which I would like to change to action=openDocument. However, I cannot find any way to change this property.
I am using a Dynamic View Panel to display various views inside a single
Share
You need to use a customizer bean for this and add the name of that bean to the
customizerBeanproperty of the Dynamic View Panel control.In the customizer bean you can control styling such as what you are looking for but you need to code the Java bean yourself. Jesse Gallagher has created a great example of an extended customizer bean and even put it on Github: https://github.com/jesse-gallagher/Domino-One-Offs.
Have a look at his blog posts on the subject:
—
For your specific question on changing editDocument to openDocument you can use the following small example of a customizer bean:
Remember to add the class to faces-config.xml in order to be able to use it as a bean.
Instead of a customizer bean you can use the onColumnClick event to do your own redirect. Here’s an example: