-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am dynamically generating an image (as a java BufferedImage) for an application being built using the MVVM approach. At one place in the system, I have a list of items with an image as a property. For that, a .zul reference like
<image content="${item.image}" /> (inside a <template name="children" var="item" />)
works perfectly. However, in another part of the system, I am rendering one image all by itself. I tried to do that using
<image content="@load(vm.image)" />
, but that fails with a "Can not convert class" error. To make it work, I had to create a trivial list with a single entry and use a
<template name="children" var="image" />.
Also, in entering this, it's asking me for tags, but the list of choices only goes to the mid "C"s and it does not scroll past that. The correct tags for this are probably "image content MVVM @load".
Hello BrotherRichard,
A similar solution for your problem can be found at the following post:
http://forum.zkoss.org/question/95645/how-to-get-image-lob-attribute-from-database-into-listcell/
Best Regards,
Darksu
Asked: 2013-11-17 20:09:56 +0800
Seen: 35 times
Last updated: Jan 04 '15
Problem binding values to a composite component
How to access static member field of a class in zul without zscript
How can i load a constant in .zul
MVVM Validator: class not found ? [closed]
MVVM tab box - delay @load until tab pane displayed?
mvvm, load or save with after or before for seach command
how to fire an event when a variable value loaded through VM
is there any event trigger from zk component on binding ?
ZK team plans to dispose of Composer EventQueues no longer in scope? [closed]
to little tags here, what class are u trying to convert to what class, or better can you put the output here?
chillworld ( 2013-11-18 21:44:50 +0800 )edit