Display large rich text field values on to the web in XPages
-
14-06-2021 - |
سؤال
I have a rich text field storing comma separated numbers (large numbers from 11111 to 99999 with three character prefix - so xxx11111, xxx11112 etc). I am using the appendText property and in the document I noticed that after around 16KB another rich text field with the same name is created.
But when I display this information on the web:
<xp:inputRichText id="inputRichText1" readonly="true" value="#{doc.RichTextField}">
</xp:inputRichText>
it's only displaying upto xxx16351. What am I missing here?
Any help would be appreciated.
المحلول
You might want to alter your approach. What should work is Tim's MIME usage. So instead of RichText you write into a MIME field and the Domino engine takes care of size and rendering.
In any case, speak after me: There is no RichText on the web, it is a ghost of Christmas past, there is only MIME.
Let us know how it goes
نصائح أخرى
Is it only displaying the content from the first rich text field? I suspect that the value binding to fields will only retrieve from the first NotesItem with that name, rather than aggregating all NotesItems with that name.