hi david
thanks for your answer
i have done follow steps
1. setup tomcat 
<mime-mapping>
  <extension>svg</extension>
  <mime-type>image/svg+xml</mime-type>
</mime-mapping>
<mime-mapping>
  <extension>svgz</extension>
  <mime-type>image/svg+xml</mime-type>
</mime-mapping>

2. use htmTag component
<t:htmlTag value="object">
<f:attribute name="data" value="Test.svg" />
<f:attribute name="width" value="500" />
<f:attribute name="height" value="500" />
<f:attribute name="type" value="image/svg+xml" />
</t:htmlTag>

but is does not work. how i handle htmlTag Attributes?

best regards
mathias °ö°


David Delbecq-2 wrote:
> 
> graphicImage renders a   tag. Svgs are not supposed to be
> included with such tags. It's like trying to use a img tag to show a
> flash object.
> 
> See here how to include svg in your page:
> http://wiki.svg.org/SVG_and_HTML
> 
> When you have understand this, you can use either the ajx4jsf 'media'
> component or use the tomahawk 'htmlTag'  component to render your object
> tag.
> 
> Also don't forget to setup your mimetype in your web.xml for svg
> ressources.
> 
> En l'instant précis du 11/04/07 16:14, mathias °ö° s'exprimait en ces
> termes:
>> hi
>>
>> how link an extern svg-file with jsf component.
>> with
>> <h:graphicImage url="http://www.***/file.svg"; />
>> it does not work.
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-link-svg-file-with-jsf-component-tf3559628.html#a9955327
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to