Cargar PDF enin Iframe
Publicado por MIPO (1 intervención) el 16/12/2008 17:17:06
Hola a todos,
Tengo dos problemas:
1- Cargar un pdf en un iframe.
Tengo un dropdown menu, ahi tengo 4 opciones, una de ellas carga un archivo PDF, yo puedo cargar cualquiera de las opciones, pero cuando cargo el PDF y depues quiero cambiarme a otra opcion, me sigue cargando la opcion del PDF.
la cargada del archivo en el fragmento JSPF esta asi:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Document : Ley306
Created on : 12-04-2008, 12:50:18 PM
Author : omarin
-->
<div style="-rave-layout: grid; width: 100%px;" xmlns:f="http://java.sun.com/jsf/core" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
<f:subview id="Ley306">
<table border="0" align="center" width="100%" height="500px">
<tr>
<td width="100%" height="100%">
<object data="http://monitoreo.ideay.net.ni:8080/INTUR/media/ley306.pdf" type="application/pdf" align="center" style="height:480px;" width="100%"/>
</td>
</tr>
</table>
</f:subview>
</div>
2- Dropdown menu.
Asi mismo tambien tengo un Warning en el log con el dropodwn que carga el menu, el codigo para llenar el dropdown es el siguiente:
public void init() {
// Perform initializations inherited from our superclass
this.dropDown1.resetValue();
HttpServletRequest request = (HttpServletRequest) this.getExternalContext().getRequest();
String url= request.getRequestURI();
String s = request.getParameter("s");
String c = request.getParameter("c");
String a=request.getParameter("a");
CtrlAcceso CA1 = (CtrlAcceso) getBean("CtrlAcceso");
Usuario user1 = (Usuario) getBean("Usuario");
crearBeanUsuario(CA1,user1);
user1 = (Usuario) getBean("Usuario");
getBean("Seccion");
crearBeanFecha();
crearBeanSeccion(s);
Seccion secc1 = (Seccion) getBean("Seccion");
if (user1.isInicializado()==true){
&nbs p; this.dropDown1.resetValue();
&nbs p; this.comboModulo=fun.LlenarOption("select m.id, m.nombre from navegacion.menu m inner join navegacion.perfil_seccion ps on ps.idseccion = m.idseccion where ps.idperfil='"+ user1.getId_perfil() +"' and m.id = m.idsuperior and ps.permitido=true and m.id!=1", "id", "nombre");
&nbs p; if (secc1.getId_seccion()==1){
&nbs p; CA1.setCentro("Inicio.jspf");
&nbs p; }else{
&nbs p; CA1.setCentro("CargarCentro.jspf");
&nbs p; }
&nbs p; this.dropDown1.resetValue();
&nbs p; this.dropDown1.setSelected(secc1.getMenu_superior());
&nbs p; CA1.setCentro(CA1.getCentro()+"?s="+s);
}
public void destroy() {
this.dropDown1.resetValue();
}
El warnings es:
com.sun.webui.jsf.component.DropDown::The current value of component form1:dropDown1 does not match any of the selections.
Did you forget to reset the value after changing the options?
Si tienen alguna sugerencia, se los agradecere.
Saludos,
Tengo dos problemas:
1- Cargar un pdf en un iframe.
Tengo un dropdown menu, ahi tengo 4 opciones, una de ellas carga un archivo PDF, yo puedo cargar cualquiera de las opciones, pero cuando cargo el PDF y depues quiero cambiarme a otra opcion, me sigue cargando la opcion del PDF.
la cargada del archivo en el fragmento JSPF esta asi:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Document : Ley306
Created on : 12-04-2008, 12:50:18 PM
Author : omarin
-->
<div style="-rave-layout: grid; width: 100%px;" xmlns:f="http://java.sun.com/jsf/core" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
<f:subview id="Ley306">
<table border="0" align="center" width="100%" height="500px">
<tr>
<td width="100%" height="100%">
<object data="http://monitoreo.ideay.net.ni:8080/INTUR/media/ley306.pdf" type="application/pdf" align="center" style="height:480px;" width="100%"/>
</td>
</tr>
</table>
</f:subview>
</div>
2- Dropdown menu.
Asi mismo tambien tengo un Warning en el log con el dropodwn que carga el menu, el codigo para llenar el dropdown es el siguiente:
public void init() {
// Perform initializations inherited from our superclass
this.dropDown1.resetValue();
HttpServletRequest request = (HttpServletRequest) this.getExternalContext().getRequest();
String url= request.getRequestURI();
String s = request.getParameter("s");
String c = request.getParameter("c");
String a=request.getParameter("a");
CtrlAcceso CA1 = (CtrlAcceso) getBean("CtrlAcceso");
Usuario user1 = (Usuario) getBean("Usuario");
crearBeanUsuario(CA1,user1);
user1 = (Usuario) getBean("Usuario");
getBean("Seccion");
crearBeanFecha();
crearBeanSeccion(s);
Seccion secc1 = (Seccion) getBean("Seccion");
if (user1.isInicializado()==true){
&nbs p; this.dropDown1.resetValue();
&nbs p; this.comboModulo=fun.LlenarOption("select m.id, m.nombre from navegacion.menu m inner join navegacion.perfil_seccion ps on ps.idseccion = m.idseccion where ps.idperfil='"+ user1.getId_perfil() +"' and m.id = m.idsuperior and ps.permitido=true and m.id!=1", "id", "nombre");
&nbs p; if (secc1.getId_seccion()==1){
&nbs p; CA1.setCentro("Inicio.jspf");
&nbs p; }else{
&nbs p; CA1.setCentro("CargarCentro.jspf");
&nbs p; }
&nbs p; this.dropDown1.resetValue();
&nbs p; this.dropDown1.setSelected(secc1.getMenu_superior());
&nbs p; CA1.setCentro(CA1.getCentro()+"?s="+s);
}
public void destroy() {
this.dropDown1.resetValue();
}
El warnings es:
com.sun.webui.jsf.component.DropDown::The current value of component form1:dropDown1 does not match any of the selections.
Did you forget to reset the value after changing the options?
Si tienen alguna sugerencia, se los agradecere.
Saludos,
Valora esta pregunta


0