Custom renderer for Combobox in read mode

  • 15 May, 2014

The document in read mode opens like this bellow (I am using an Xpage to show the document content). In this Xpage i have one editbox and one combobox.

Image:Custom renderer for Combobox in read mode
If you open in edit mode you get this
Image:Custom renderer for Combobox in read mode
Se examinar o fonte da página veremos que o campo combobox foi renderizado como um texto e tabelas

Looking on the source of the page (document in read mode) the combobox field was rendered like a string  with a table

Image:Custom renderer for Combobox in read mode

Em modo edição o campo é renderizado como um elemento select:

The source of edit mode the combobox field was rendered as a select.

Image:Custom renderer for Combobox in read mode

The chalenge: Create a more consistent view of the combobox element when the document is open in read mode.

The Solution: Attention ->   I don´t know if this is the best solution but it works.

I create a class to modify the rendering of the combo box a custom renderer (based on this blog post).
When the document is opened in edit mode the class render the input field and when in edit mode it render the combobox.

The custom renderer  code:
**
**Image:Custom renderer for Combobox in read mode
When i open the document in read mode i get this:

Image:Custom renderer for Combobox in read mode

Related Posts

Migrating messages from Domino to Google using IMAP

  • 20 Feb, 2022

It's only for messages. No calendar migration Imapsync command is a tool allowing incremental and recursive imap transfers from one mailbox to another. If you don't understand the previous sentence,

Migrating messages from Domino to Google using IMAPRead More

Domino V12 and Verse 2.1 How to add a Photo URL

  • 08 Jun, 2021

Today i setup a Domino V12 server just for test some new features. A customer ask to use photos on Verse hosting photos on Domino. Domino V12 comes with Verse 2.0. I just download the version 2.1 of

Domino V12 and Verse 2.1 How to add a Photo URLRead More

Notes / Domino is forever

  • 04 Feb, 2021

Yesterday it seemed like it would be an ordinary working day but a client called me informing about the expiration of a certifier. It would be normal to resolve the problem with the re-certification p

Notes / Domino is foreverRead More