Using 8.5.3 UP1 with the Hotfix for the multi-rich text control issue.
I am dynamically binding rich text controls that are within a custom control wrapped in a repeat control. The rich text controls render just fine, except that the image upload functionality does not work. If I click on the image upload, choose a file, and then click send to server, the image apparently never makes it there.
Here is my code:
The Repeat Control:
<xp:repeat id="rptSections" rows="99" repeatControls="false"
var="sections" indexVar="rptIndex" value="#{javascript:2}">
<xc:ccDynamicSections_2 rptIndex="#{javascript:rptIndex}">
<xc:this.fieldName><![CDATA[#{javascript:"contentRT"+rptIndex}]]></xc:this.fieldName>
</xc:ccDynamicSections_2>
</xp:repeat>
The custom control:
<xp:inputRichText id="inputRichText1" value="#{document1[compositeData.fieldName]}" >
</xp:inputRichText>
I'm pretty sure if I can find a way to bind the rich text controls at run time I can make this work. I tried to do this and it appears to work on the page but when I go to save the document I get a error such like "Could not save the document NEW_79 NotesException: Object has been removed or recycled"
Bind after page load attempt:
<xp:repeat id="rptSections" rows="99" repeatControls="false"
var="sections" indexVar="rptIndex" value="#{javascript:2}">
<xp:text escape="true" id="computedField1">
<xp:this.value><![CDATA[#{javascript:var application = facesContext.getApplication();var scopedField = 'content'+rptIndex;var valueBinding = application.createValueBinding( '#{document1.' + scopedField + '}');getComponent("inputRichText1").setValueBinding('value', valueBinding );"test"+rptIndex}]]></xp:this.value>
</xp:text>
<xp:inputRichText id="inputRichText1"></xp:inputRichText>
</xp:repeat>
Any help is appreciated.