Boa tarde galera, estou tentando colocar uma imagem de fundo em uma aplicação web vou colocar abaixo como está minha página principal, ajudem-me por favor!!!
[code]
<?xml version="1.0" encoding="ISO-8859-1"?><ui:composition 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”
xmlns:a4j=“http://richfaces.org/a4j”
xmlns:c=“http://java.sun.com/jstl/core”
xmlns:t=“http://myfaces.apache.org/tomahawk”
xmlns:s=“http://jboss.com/products/seam/taglib”
xmlns:rich=“http://richfaces.org/rich”
template="/templates/template.xhtml">
<ui:define name=“barra”>
|
</ui:define>
<ui:define name=“complemento”>
<h:graphicImage value=“imagens/tramit.jpg”/> |
</ui:define>
</ui:composition>
[/code] e a imagem cisma em não apareçe o template é o seguinte:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition 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"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:rich="http://richfaces.org/rich">
<c:set var="ctx" value="#{facesContext.externalContext.request.contextPath}" />
<ui:include src="mainMenu.xhtml"/>
<ui:insert name="barra">
</ui:insert>
<ui:define name="complemento">
<table align="center">
<tr align="center">
<td height="410" align="center">
<h:graphicImage value="imagens/tramit.jpg"/>
</td>
</tr>
</table>
</ui:define>
</ui:composition>
Obrigado!!!