0 Replies Latest reply on Jul 5, 2007 5:01 AM by encurto

    Can't use youtube videos

    encurto

      Hi! with a JSF page I can embed youtube videos but if I use Richfaces it doesn't work.I tried with default tab panel, switched in "ajax" style and switched completely on client. Anyone know how to do it? Thanks! (I prefer to use "ajax" style)

      This is my example:

      <%@ page language="java" pageEncoding="UTF-8"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
      
      
      
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
       <base href="<%=basePath%>">
      
       <title>Inmu-búsqueda</title>
      
       <link rel="stylesheet" type="text/css" href="estilos.css">
      </head>
      
      <body>
       <f:view>
      
       <h:form>
       <rich:tabPanel switchType="ajax" style="width: 300px">
      
       <rich:tab label="Datos">
      
       </rich:tab>
      
       <rich:tab label="Fotos" >
      
       </rich:tab>
      
       <rich:tab label="Videos" >
      
       <f:verbatim>
       <object width="425" height="350">
       <param name="movie" value="<h:outputText value="#{ConsultasBean.video1}"/>"></param><param name="wmode" value="transparent"></param>
       <embed src="<h:outputText value="#{ConsultasBean.video1}"/>" type="application/x-shockwave-flash" wmode="transparent" width="400" height="325"></embed>
       </object>
       </f:verbatim>
      
      
       </rich:tab>
      
      
       </rich:tabPanel>
       </h:form>
      
      
       </f:view>
      </body>
      </html>