[xwiki-users] Setting a textarea object
Hi all, I've been working on a project that requires multiple classes fields to be updated, but I seem to have a problem putting info into a textarea on one of the classes attached. The "xmlResults" field is getting populated fine (there's four of them), but the "labelImage" doesn't. I have tried putting the data in manually from the Objects view, and the property accepts the data happily so I don't think it's hitting some sort of limit. Note: ${image} is a base64 image that I am displaying. The image displays happily, so I know the ${image} value is being obtained. .... <snipped> $mainDocObj.set("xmlResults", $talksToGroovy.getResults()) $doc.save() #foreach($box2 in $boxes) #set($ref=box2.getProperty("ref").value) $box2.set("labelImage", $talksToGroovy.getImage($ref))) <img width='700px' height='400px' src='data:image/gif;base64,${image}'/> $doc.save() #end
Esbach, Brandon wrote:
Hi all,
I've been working on a project that requires multiple classes fields to be updated, but I seem to have a problem putting info into a textarea on one of the classes attached. The "xmlResults" field is getting populated fine (there's four of them), but the "labelImage" doesn't. I have tried putting the data in manually from the Objects view, and the property accepts the data happily so I don't think it's hitting some sort of limit. Note: ${image} is a base64 image that I am displaying. The image displays happily, so I know the ${image} value is being obtained.
.... <snipped>
$mainDocObj.set("xmlResults", $talksToGroovy.getResults()) $doc.save()
#foreach($box2 in $boxes) #set($ref=box2.getProperty("ref").value) $box2.set("labelImage", $talksToGroovy.getImage($ref))) <img width='700px' height='400px' src='data:image/gif;base64,${image}'/> $doc.save() #end
Where and how is $boxes defined? Try putting just one $doc.save() after the foreach end. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Esbach, Brandon -
Sergiu Dumitriu