CSS não redenderiza JSF

7 respostas
L

Olá!

Estou com um problema com CSS, ele nao renderiza quando coloco dentro do jsf.

#barra-brasil-v3 span .imagemGov { background: url("../img/barra-brasil-v3-verde.gif") no-repeat scroll right top transparent; height: 24px; left: 50%; margin-left: -375px; position: absolute; top: 4px; width: 740px; }

<div id="barra-brasil-v3"> <span> <div class="imagemGov"> <a href="http://www.brasil.gov.br" target="_blank" class="brasilgov"/> </div> </span> </div>

se eu colocar o link http://localhost:8080/TemplateGestor/template.xhtml ele renderiza mas se eu colocar o faces(http://localhost:8080/TemplateGestor/faces/template.xhtml) ele para de renderizar.
o que vcs acham que pode ser?

7 Respostas

A

Posta o seu Web.xml

R

Como você está importando o CSS para a página?

H

Bem parecido com esse…

H

E pior, para quem acha que o perfil é verdadeiro… olhem a última postagem: http://www.guj.com.br/java/262913-primefaces-nao-funciona

L

AmauriSpPoa

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
    
</web-app>

digaoneves

<link type="text/css" href="stylesheet/theme.css"  rel="stylesheet" />
        <link type="text/css" href="stylesheet/gestor.css" rel="stylesheet" />

Hebert Coelho

não é não ele so para de renderizar essa unica div… o restante do css funciona.

R

Já tentou assim? <h:outputStylesheet library="css" name="styleCss.css" id="styleCss" />

H

luci.al:
AmauriSpPoa

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
    
</web-app>

digaoneves

<link type="text/css" href="stylesheet/theme.css"  rel="stylesheet" />
        <link type="text/css" href="stylesheet/gestor.css" rel="stylesheet" />

Hebert Coelho

não é não ele so para de renderizar essa unica div… o restante do css funciona.

E por que você não importa igual ao que é descrito aqui?
JSF Mini Livro - Dicas, conceitos e boas práticas

Criado 1 de outubro de 2012
Ultima resposta 1 de out. de 2012
Respostas 7
Participantes 4