<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How can I use Primeface Dock in Html Dialog</title><link>https://answers.axonivy.com/questions/44/how-can-i-use-primeface-dock-in-html-dialog</link><description>&lt;p&gt;Hello, did anyone use Dock im Html Dialog?&lt;/p&gt;
&lt;p&gt;I have  a problem, the image of menuitem cannot be found and painted.&lt;/p&gt;
&lt;p&gt;The Path and image have been correctly set. The code is as follows:&lt;/p&gt;
&lt;p&gt;&amp;lt;p:dock&amp;gt;
&amp;lt;p:menuitem label="Home" icon="/images/macosx/finder.png" url="#"/&amp;gt;
&amp;lt;/p:dock&amp;gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/44/how-can-i-use-primeface-dock-in-html-dialog" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 30 Oct 2013 17:54:49 -0400</lastBuildDate><item><title>Answer by Peter Stöckli</title><link>https://answers.axonivy.com/questions/44/how-can-i-use-primeface-dock-in-html-dialog/45</link><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you hover over the icon attribute in the editor it says "Path of the menuitem image." (Not a resource name like graphicImage).
You should be able to specify a path to the icon like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;p:menuitem label="Home" icon="#{resource['images/macosx/finder.png']}" url="#"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also have a look at the Resource Demo in the HtmlDialog Demos.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Stöckli</dc:creator><pubDate>Wed, 30 Oct 2013 17:54:49 -0400</pubDate><guid>https://answers.axonivy.com/questions/44/how-can-i-use-primeface-dock-in-html-dialog/45</guid></item></channel></rss>