Problema com Facelets + JSF + RichFaces no Chrome

121 views
Skip to first unread message

André Mafra

unread,
Mar 18, 2010, 6:14:10 PM3/18/10
to javasf: JavaServer Faces Group
Olá pessoal tudo bem? Estou tendo problemas com JSF + Facelets, bem,
resumindo, funciona no IE7 mas não funciona no
Chrome 4.1.249.1036....

Segue o erro no navegador:

This page contains the following errors:

error on line 2 at column 18: XML declaration allowed only at the
start of the document
Below is a rendering of the page up to the first error.

----------

Segue minhas duas paginas:
Esta é o template

<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://
java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:rich="http://
richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">

<head>
<title>Template JSP-JSF</title>
</head>
<body>
<f:view>
<h:form>
<h:commandLink value="click Aqui!" />
</h:form>
</f:view>
</body>
</html>

Esta "chama" o template:

<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://
java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:rich="http://
richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">

<ui:insert name="top-menu">
<ui:include src="template/template.xhtml" />
</ui:insert>
<f:view>
<rich:fileUpload></rich:fileUpload>
<rich:calendar></rich:calendar>
<rich:gmap lat="30" lng="60" ></rich:gmap>
</f:view>
</html>

Porque será que no chrome da erro?
Sera que errei em algum lugar? as daus são xhtml...
Peço que me ajudem urgente, pois é para o trabalho de conclusão de
curso....

Obrigado Senhores!

André

Ellison Alves

unread,
Mar 18, 2010, 10:53:24 PM3/18/10
to jav...@googlegroups.com
em vez de você utilizar o cabeçalho <html xmlns= "" ....></html>
utilize <ui:composition xmlns="" ...></ui:composition>



2010/3/18 André Mafra <andre...@gmail.com>

--
http://groups.google.com/group/javasf

You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to jav...@googlegroups.com

To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
Ellison Alves de Souza

Ellison Alves

unread,
Mar 18, 2010, 10:54:26 PM3/18/10
to jav...@googlegroups.com
Esqueci de mencionar...
a página que será incluida deverá ser <ui:composition xmlns="" ...></ui:composition>

flwwwss...boa sorte =)

2010/3/18 Ellison Alves <elliso...@gmail.com>

André Mafra

unread,
Mar 18, 2010, 11:22:14 PM3/18/10
to javasf: JavaServer Faces Group
Opa!!

Muito obrigado Amigão!!

funcionou direitnho!

apenas o rich:gmap não apareceu no chrome...

porq sera?

abraçaos e muiiiiiiiiitttooo obrigada!

On Mar 18, 11:54 pm, Ellison Alves <ellisonal...@gmail.com> wrote:
> Esqueci de mencionar...
> a página que será incluida deverá ser <ui:composition xmlns=""
> ...></ui:composition>
>
> flwwwss...boa sorte =)
>

> 2010/3/18 Ellison Alves <ellisonal...@gmail.com>


>
>
>
>
>
> > em vez de você utilizar o cabeçalho <html xmlns= "" ....></html>
> > utilize <ui:composition xmlns="" ...></ui:composition>
>

> > 2010/3/18 André Mafra <andresma...@gmail.com>

Ellison Alves

unread,
Mar 19, 2010, 2:54:05 PM3/19/10
to jav...@googlegroups.com
Opa, eu nunca usei esse componente mas dá uma olhadinha nos links abaixo, podem te ajudar a resolver a maior parte dos problemas.

- http://livedemo.exadel.com/richfaces-demo/richfaces/gmap.jsf?c=gmap&tab=usage
- http://code.google.com/intl/pt-BR/apis/maps/documentation/index.html
- http://docs.jboss.org/richfaces/3.3.2.GA/en/devguide/html_single/

flwwww =)


2010/3/19 André Mafra <andre...@gmail.com>
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

André Mafra

unread,
Mar 20, 2010, 8:28:40 AM3/20/10
to javasf: JavaServer Faces Group
Ok Ellison!! mt obrigado, vou dar uma olhada!

Abçs

On Mar 19, 3:54 pm, Ellison Alves <ellisonal...@gmail.com> wrote:
> Opa, eu nunca usei esse componente mas dá uma olhadinha nos links abaixo,
> podem te ajudar a resolver a maior parte dos problemas.
>

> -http://livedemo.exadel.com/richfaces-demo/richfaces/gmap.jsf?c=gmap&t...
> -http://code.google.com/intl/pt-BR/apis/maps/documentation/index.html
> -http://docs.jboss.org/richfaces/3.3.2.GA/en/devguide/html_single/<http://docs.jboss.org/richfaces/3.3.2.GA/en/devguide/html_single/>
>
> flwwww =)
>
> 2010/3/19 André Mafra <andresma...@gmail.com>

Reply all
Reply to author
Forward
0 new messages