Setting a textarea object

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting a textarea object

Esbach, Brandon
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
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Setting a textarea object

Sergiu Dumitriu-2
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/

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users