# Wrap HTML component and deploy assets

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 retag edit

Sort by » oldest newest most voted

hawk
3048 1 5
http://hawkphoenix.blogsp...

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.

[hide preview]