Sign in to follow this  
irodrigues@verano.com.br

Height and width attributes showing null

Recommended Posts

Hi for all!

 

I'm developing an application with RichFaces JSF1.2 JBoss and more....

I did an import to my classpath of taglib from forum called

fusionchartstaglibJSF1-2 and put into my *.jspx the follow code below:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.0" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:jsp="http://java.sun.com/JSP/Page"
   xmlns:triad-ui="http://www.transformers.com.br/jsf12/ui-components"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:a4j="http://richfaces.org/a4j"
   xmlns:p="http://primefaces.prime.com.tr/ui"
   xmlns:rich="http://richfaces.org/rich"
   xmlns:fc="http://www.fusioncharts.com">

   <f:view>
    <link rel="stylesheet" type="text/css" href="css/login.css" />
    <html>
    <head>
    <title>#{msg['portal']}</title>
    <style type="text/css">
div.ar1 {
   background: #7cc623;
   width: 250px;
   position: relative;
   top: 80px;
}
div.ar2 {
   background: red;
   height: 100px;
   width: 250px;
   float: left;
   margin: 10px
}
</style>
	    </head>
    <body>
	    <script type="text/javascript" src="./chart/FusionCharts.js"></script>

    <a4j:form id="chart1">
	    <fc:renderHTML height="420" url="#{chart.xml}"
		    filename="./chart/MSColumn2D.swf" width="565" chartId="viewChart" />
    </a4j:form>

    </body>
    </html>
   </f:view>
</jsp:root>

 

However, in browser is rendered the following code, in respect the chart:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
  <param name="allowScriptAccess" value="always" />
  <param name="movie" />
  <param name="quality" value="high" />
  <param name="FlashVars" value="&chartWidth=null&chartHeight=null&debugMode=0&dataURL=<graph caption="Monthly Sales Summary Comparison" xAxisName="Month" yAxisName="Sales" numberPrefix="$" showNames="1"><categories>  <category name="Jan" hoverText="January" />   <category name="Feb" hoverText="February" />   <category name="Mar" hoverText="March" />   <category name="Apr" hoverText="April" />   <category name="May" hoverText="May" />   <category name="Jun" hoverText="June" />   <category name="Jul" hoverText="July" />   <category name="Aug" hoverText="August" />   <category name="Sep" hoverText="September" />   <category name="Oct" hoverText="October" />   <category name="Nov" hoverText="November" />   <category name="Dec" hoverText="December" />   </categories>- <dataset seriesName="2004" color="AFD8F8">  <set value="17400" />   <set value="19800" />   <set value="21800" />   <set value="23800" />   <set value="29600" />   <set value="27600" />   <set value="31800" />   <set value="39700" />   <set value="37800" />   <set value="21900" />   <set value="32900" />   <set value="39800" />   </dataset>- <dataset seriesName="2003" color="F6BD0F" showValues="0">  <set value="13500" />   <set value="15300" />   <set value="17400" />   <set value="12700" />   <set value="24400" />   <set value="18700" />   <set value="22300" />   <set value="28600" />   <set value="29700" />   <set value="26400" />   <set value="22900" />   <set value="29800" />   </dataset>- <trendlines>  <line startValue="22000" color="00cc00" displayValue="Average" isTrendZone="0" />   </trendlines>  </graph>" />
   <embed FlashVars="&chartWidth=null&chartHeight=null&debugMode=0&dataURL=<graph caption="Monthly Sales Summary Comparison" xAxisName="Month" yAxisName="Sales" numberPrefix="$" showNames="1"><categories>  <category name="Jan" hoverText="January" />   <category name="Feb" hoverText="February" />   <category name="Mar" hoverText="March" />   <category name="Apr" hoverText="April" />   <category name="May" hoverText="May" />   <category name="Jun" hoverText="June" />   <category name="Jul" hoverText="July" />   <category name="Aug" hoverText="August" />   <category name="Sep" hoverText="September" />   <category name="Oct" hoverText="October" />   <category name="Nov" hoverText="November" />   <category name="Dec" hoverText="December" />   </categories>- <dataset seriesName="2004" color="AFD8F8">  <set value="17400" />   <set value="19800" />   <set value="21800" />   <set value="23800" />   <set value="29600" />   <set value="27600" />   <set value="31800" />   <set value="39700" />   <set value="37800" />   <set value="21900" />   <set value="32900" />   <set value="39800" />   </dataset>- <dataset seriesName="2003" color="F6BD0F" showValues="0">  <set value="13500" />   <set value="15300" />   <set value="17400" />   <set value="12700" />   <set value="24400" />   <set value="18700" />   <set value="22300" />   <set value="28600" />   <set value="29700" />   <set value="26400" />   <set value="22900" />   <set value="29800" />   </dataset>- <trendlines>  <line startValue="22000" color="00cc00" displayValue="Average" isTrendZone="0" />   </trendlines>  </graph>" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
  </embed>
 </object>

In the page when I click with right button, appear Movie Not Loaded.

Cheers,

Ivan Rodrigues da Silva Junior

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this