1 Reply Latest reply on Apr 6, 2009 5:53 AM by Nick Belaevski

    a4j:mediaOutput with imageMap

    Janardan N Newbie

      Can somebody please point me how to use useMap attribute while using a4j:mediaOutput?

      The following usage of it didn't work for me...

      <a4j:mediaOutput element="img" cacheable="false" session="true"
       usemap="#chart"
       createContent="#{myBean.getChartImage}"
       mimeType="image/jpeg" />
      
      class MyBean {
       public void getChartImage (OutputStream out, Object data) throws Exception {
       BufferedImage pageImage = getPageImage();
       ChartUtilities.writeImageMap(new PrintWriter(out), "chart", info, true);
       ImageIO.write(this.pageImage, "jpeg", out);
       }
      }