1

@load does not work for image content

asked 2013-11-17 20:09:56 +0800

BrotherRichard gravatar image BrotherRichard
10 1

updated 2013-11-25 05:53:02 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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".

delete flag offensive retag edit

Comments

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

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-01-04 23:27:59 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-11-17 20:09:56 +0800

Seen: 35 times

Last updated: Jan 04 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More