hi,
[ok, continue in english :)]

the problem is its running in firefox but its not running in ie 6 / 7 with
adobe svg viewer 3.0.3 (latest version).
with ie i get back only a grey frame and the browser cant load the svg files
(linked with object and embed tag).

that is the reason for testing the <a4j:mediaOutput> component.
but i am not sure which attributes of this component i must use for a
separate svg file.
<a4j:mediaOutput element="object"  uriAttribute="data" type="image/svg+xml"
?="http://../images/map.svg"; cacheable="false" ></a4j:mediaOutput>
that is not running.

best regards
mathias °ö°



Gerald Müllan wrote:
> 
> Hi,
> 
> maybe some path-related problem in order to access the file in your
> web-resource dir?
> 
> cheers,
> 
> Gerald
> 
> On 4/16/07, mathias °ö° <[EMAIL PROTECTED]> wrote:
>>
>> hi david
>>
>> i checked the object tag and tested in a simple html file linked to svg
>> file.
>> and this is working.
>> but the same is not running with the jsf web app.
>> <f:verbatim>
>> <object data="http://../images/map.svg"; width="500" height="500"
>> type="image/svg+xml">
>> </object>
>> </f:verbatim>
>>
>> which params must adjusted by <a4j:mediaOutput> component ?
>>
>> best regards
>> mathias °ö°
>>
>> David Delbecq-2 wrote:
>> >
>> > firefow can load svg using <object> tag, so you should check the the
>> > object tag is correct and the the pointed svg file is at proper
>> location.
>> >
>> > En l'instant précis du 12/04/07 16:10, mathias °ö° s'exprimait en ces
>> > termes:
>> >> i have tested with <f:verbatim>:
>> >> at browser (ie and firefox) i see only a grey frame. the browser can´t
>> >> load
>> >> the svg image.
>> >> (if i start the svg image from my file browser it will open.)
>> >>
>> >> my next step i try with <a4j:mediaOutput> component , but im not sure
>> >> which
>> >> attribute i must set.
>> >>
>> >> <a4j:mediaOutput element="object" uriAttribute="href"
>> >> codetype="image/svg+xml" codebase="test.svg" />
>> >>
>> >> but this code-snapshot does not work.
>> >>
>> >> best regards
>> >>
>> >>
>> >> David Delbecq-2 wrote:
>> >>
>> >>> Indeed, now you say this, am not sure the tomahwak htmlTag component
>> >>> accepts attributes other than the default uioutput ones.
>> >>> maybe something along this?
>> >>> <f:verbatim>
>> >>> <object data="test.svg" type="image/svg+xml"
>> >>> width="400" height="300">
>> >>> </object>
>> >>> </f:verbatim>
>> >>>
>> >>>
>> >>> In facelets i would simply make, without verbatim
>> >>>
>> >>> <object data="#{someBean.someSvgUrl}" type="image/svg+xml"
>> >>> width="#{someBean.someSvgWidth}" height="#{someBean.someSvgWidth}">
>> >>> </object>
>> >>>
>> >>> but won't work in JSP. Also the media tag of ajax4jsf is made to
>> ouput
>> >>> 'media' in various tags (object, a, img, iframe), if you can afford
>> an
>> >>> additionnal library...
>> >>>
>> >>>
>> >>> En l'instant précis du 12/04/07 10:40, mathias °ö° s'exprimait en ces
>> >>> termes:
>> >>>
>> >>>> 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#a10013013
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
> 

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

Reply via email to