[RESOLVIDO]Problema com conteudo do arquivo que eu incluo "/

5 respostas
Thyago1
<div style="width:80%; height:100%; float: right; display: block;" >
         <rich:panel>
           <rich:tabPanel switchType="client">
             <rich:tab label="Entrada" style="border-color:green;">
               <rich:panelBar height="100%" width="100%">
                 <rich:panelBarItem label="APE_15_04_50_425">
                     <jsp:include page="/teste.jsp" />
                 </rich:panelBarItem>
               </rich:panelBar>
             </rich:tab>

...
[color=green]É o seguinte pessoal, estou tentando fazer o include de um arquivo jsp, até ai tudo beleza, o problema é que eu nao consigo mostrar o que esta dentro deste arquivo, eu tenho certeza que ele esta abrindo o arquivo, pois ele deixa o local em que eu faço a chamada do arquivo, ele da o tamanho exato da div e a cor do fundo tbm, mais o conteudo de dentro ele não pega, eu não sei o porque.

Este codigo abaixo esta é o codigo que eu estou pegando, ou seja, o codigo do arquivo "teste.jsp"[/color]

<div style="width:500px;  height:400px;  background-color:rgb(240,240,240);"  id="Evento" >
    <h:inputText id="APA_15_17_04_359" style="position:relative; margin-left:197; margin-top:19; width:200px; height:30px; background-color:-1; color:black; font-weight:; font-style:; "  />
 
    <h:outputFormat id="Label_APA_15_17_04_359" value="num" style="position:relative; margin-left:27; margin-top:19; width: 130px; height:31px; "/>
    <rich:inputNumberSpinner id="APA_15_12_24_191" style="position:relative; margin-left:136; margin-top:66; width:200px; height:30px; background-color:-1; color:black; font-weight:; font-style:; " value="0"  />
 
    <h:outputFormat id="Label_APA_15_12_24_191" value="Caixa de numero " style="position:relative; margin-left:-34; margin-top:66; width: 130px; height:31px; "/>
    <rich:comboBox id="APA_15_12_12_760" style="position:relative; margin-left:197; margin-top:119; width:200px; height:30px; background-color:-1; color:black; font-weight:; font-style:; " />        <h:outputFormat id="Label_APA_15_12_12_760" value="teste tabela" style="position:relative; margin-left:27; margin-top:119; width: 130px; height:31px; "/>
        <h:outputFormat id="Label_APA_15_12_12_760" value="teste tabela" style="position:relative; margin-left:27; margin-top:119; width: 130px; height:31px; "/>
    <h:inputText id="APA_15_11_50_929" style="position:relative; margin-left:126; margin-top:164; width:200px; height:30px; background-color:-1; color:black; font-weight:; font-style:; "  />
 
    <h:outputFormat id="Label_APA_15_11_50_929" value="teste caixa texto" style="position:relative; margin-left:-44; margin-top:164; width: 130px; height:31px; "/>
    <h:outputText id="APA_15_11_29_090" style="position:relative; margin-left:155; margin-top:213; width:200px; height:30px; background-color:-1; color:black; font-weight:; font-style:; "  />
 
    <h:outputFormat id="Label_APA_15_11_29_090" value="Caixa de texto" style="position:relative; margin-left:-15; margin-top:213; width: 130px; height:31px; "/>
    <a4j:commandButton id="APA_15_11_12_851" style="position:relative; margin-left:20; margin-top:270; width:200px; height:30px; background-color:-1; color:black; font-weight:; font-style:; " value="Ok"  />
 
</div>

5 Respostas

balrog

ja ouviu falar em css?
esse codigo com todos os estilos dessa forma eh uma m* pra ler,

qual o browser que vc usa? tente outro(s) e veja se o mesmo problema acontece
remova esses estilos e carregue a pagina, e veja se alguma coisa muda

e aprenda a usar css

Thyago1

Mudei de navegador e nada.

E não tem como eu fazer pra ele gerar um css, pois ele faz a geração desse codigo através de um codigo xml.

Imagine só se eu tiver 100 elementos em uma tela cada elemento tem uma interface, se eu tiver 100 css no servidor vou perder muito desempenho, se a cada hora ter que ir buscar.

Mais não resolveu ainda o meu problema, preciso que alguem me fale se tem algum form algo que eu possa fazer.

Thyago1

Alguém pode me ajuda ?

Ygor

E se vc passar para <jsp:include page="/teste.jsf" /> Funciona?

Assumindo que o teste.jsp possua as devidas tags jsf.

Thyago1

Aee, consegui pessoal, é o seguinte o que o cara acima falou deu até certo mas não deu diferença nenhuma, quer dizer então que tanto faz o formato que eu estou pegando os arquivos.

O problema era quando eu fazia os includes dos arquivos, os arquivos vinham assim ...

<div style="width:500px;  height:200px;  background-color:rgb(240,240,240);"  id="Evento" >
    <h:selectBooleanCheckbox id="APA_15_20_52_596" style="position:relative; margin-left:20; margin-top:20; width:150px; height:30px; background-color:-1; color:black; font-weight:; font-style:; "  />
    <h:outputLabel style="position:relative; margin-left:90;  margin-top:30; width:150px; height:30px; font-weight:; font-style:; color:black; "> Teste Seleçao  </h:outputLabel>

    <h:inputText id="APA_15_21_54_641" style="position:relative; margin-left:179; margin-top:57; width:200px; height:60px; background-color:-1; color:black; font-weight:; font-style:; "  />
 
    <h:outputFormat id="Label_APA_15_21_54_641" value="Teste " style="position:relative; margin-left:9; margin-top:57; width: 130px; height:31px; "/>
</div>

ou seja estou usando por exemplo " " mais de onde pego este " h: " ?

hehe

é só fazer os importes das bibliotecas :D

Assim ..
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
 <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
 <html>
 <body>
	<div style="width:500px;  height:200px;  background-color:rgb(240,240,240);"  id="Evento" >
    <h:selectBooleanCheckbox id="APA_15_20_52_596" style="position:relative; margin-left:20; margin-top:20; width:150px; height:30px; background-color:-1; color:black; font-weight:; font-style:; "  />
    <h:outputLabel style="position:relative; margin-left:90;  margin-top:30; width:150px; height:30px; font-weight:; font-style:; color:black; "> Teste Seleçao  </h:outputLabel>

    <h:inputText id="APA_15_21_54_641" style="position:relative; margin-left:179; margin-top:57; width:200px; height:60px; background-color:-1; color:black; font-weight:; font-style:; "  />
 
    <h:outputFormat id="Label_APA_15_21_54_641" value="Teste " style="position:relative; margin-left:9; margin-top:57; width: 130px; height:31px; "/>
  </div>
</body>
</html>

Valeu pela atenção galera.

Criado 8 de setembro de 2010
Ultima resposta 9 de set. de 2010
Respostas 5
Participantes 3