Buscar
Social
Ofertas laborales ES

Foro sobre Java EE > Ayuda con este mensaje (NetBeans)

Soy principiante, estoy en un curso de programación gratuito de NetBeans que encontré aquí. El problema es el siguiente: Al darle click a "Run" para ver como esta quedando el documento veo este mensaje SIEMPRE y para poderlo quitar tengo que volver a cargar la pagina, esto se ha vuelto muy molesto y no tengo idea que podria ser. Si alguno sabe la respuesta al problema, les agradeceria mucho que me lo indicaran.

Gracias!

Estos son los mensajes:
Warning: This page calls for XML namespace declared with prefix head but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix br but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix br but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix b but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix h1 but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix html but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix hr but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix h2 but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix title but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace declared with prefix body but no taglibrary exists for that namespace.

marzo 4, 2015 | Unregistered CommenterGimmeUrPassword

Como principiante es normal que te pasen estas cosas, lo que te está pasando es que en tu página jsf estás utilizando un nameSpace que no tienes declarado.

http://es.wikipedia.org/wiki/Espacio_de_nombres_XML

Traducido al castellano es que en la cabecera de tu html o jsp no has declarado un espacio de nombres que usas en él código de tu página.

Otra cosa que tienes que aprender como principiante es que google lo sabe todo y si pones ese mensaje que te da en google la primera respuesta que obtienes es:

http://stackoverflow.com/questions/8634733/warning-this-page-calls-for-xml-namespace-declared-with-prefix-html-element-na

La solución te explica que le falta por declarar el espacio de nombre xmlns:h


<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">

marzo 4, 2015 | Registered Commenterantuansoft

Gracias por la ayuda, me sirvio de mucho, y me di cuenta que eso lo trae por defecto y yo lo habia borrado sin saber.

marzo 6, 2015 | Unregistered CommenterGimmeUrPassword