Wrap HTML component and deploy assets

asked 2022-08-30 20:17:16 +0800

claudioveryant gravatar image claudioveryant
9 1

Hi, I've developed a wrapper to embed an HTML/js component as a zk component. The component I use needs images to be deployed for rendering buttons. I'm not sure how and where to add the images to get them depoyed with the webapp. I tried adding them in the resources/web folder, in the mold folder, but I can't get them to deploy.

Is there any documentation on how to go about that?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-08-31 17:20:55 +0800

hawk gravatar image hawk
3185 1 5
http://hawkphoenix.blogsp... ZK Team

if you can set the image path in java, you can include an image with Classpath Web Resource Path

<button image="~./zklogo.png" />

It's under a class path, so you can package the image and the component code into a jar. Then you include the component jar in another project.

See https://www.zkoss.org/wiki/ZKDeveloper%27sReference/UIComposing/ZUML/IncludeaPage#ClasspathWebResourcePath

If your case is more complicate, please contact ZK support and send us the component code.

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




Asked: 2022-08-30 20:17:16 +0800

Seen: 5 times

Last updated: Aug 31 '22

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