embedded object tags not working in jsf
maran_su Mar 21, 2013 10:35 PMHi ,
I am trying to embed the .mol files it for displaying the chemical structure,if i use the following piece of code inside <f:view > tags it is not working
where as if i use plain HTML tags(refer the attachment) it is working what am i missing in jsf file,
display.xhtml
___________
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" >
<h:head>
<f:verbatim>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, IE=9"/>
<link rel="stylesheet" type="text/css"
href="#{facesContext.externalContext.requestContextPath}/chemvector/stylesheets/chemvector.css" />
<link rel="stylesheet" type="text/css"
href="#{facesContext.externalContext.requestContextPath}/chemvector/stylesheets/demo.css" />
<link rel="stylesheet/chemical" type="application/json"
href="#{facesContext.externalContext.requestContextPath}/chemvector/stylesheets/chemistry.json" />
<script src="#{facesContext.externalContext.requestContextPath}/chemvector/lib/chemvector.js"></script>
<script>
chemvector.browser.ImageLoader.init({
// startup parameters here
});
</script>
</f:verbatim>
</h:head>
<h:body>
<h1> Structure Display Demo</h1>
<h2>Table View</h2>
<f:verbatim>
<table>
<tbody>
<tr>
<td>
<div class="cell">
<div class="structure">
<object width="100%" height="100%" class="chemvector-object">
<param name="src" value="#{facesContext.externalContext.requestContextPath}/chemvector/data/abarelix.mol"/>
</object>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</f:verbatim>
</h:body>
</f:view>
can any one help me please.
Thanks .
-
WorkingWith HTML.png 60.6 KB
-
index1.xhtml.zip 2.0 KB