Npe - jsf

2 respostas
P

Pessoal, tá dando um NPE, vou mandar aqui meu código do index.jsf:

<f:view>
<h:form>
<rich:tabPanel id=“painelLogin” style=“width: 250px;”>
<f:facet name=“header”>
<h:outputText value=“LOGIN” />
</f:facet>

<h:panelGrid columns="2">
			<h:column><h:outputText value="Login :"/></h:column>
			<h:column><h:inputText/> </h:column>
			<h:column><h:outputText value="Senha :"/></h:column>
			<h:column><h:inputText/> </h:column>
		</h:panelGrid>
		<h:commandButton value="LOGAR"/>
	</rich:tabPanel>
</h:form>

</f:view>

Segue o erro no browser:

exception
java.lang.NullPointerException

java.lang.String.startsWith(Unknown Source)

java.lang.String.startsWith(Unknown Source)

org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:189)

org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:222)

org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:139)

org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510)

Segue o web.xml:

index.html index.htm index.jsp default.html default.htm default.jsp org.richfaces.SKIN blueSky javax.faces.STATE_SAVING_METHOD server Ajax4jsf Filter ajax4jsf org.ajax4jsf.Filter ajax4jsf Faces Servlet REQUEST FORWARD INCLUDE Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet /faces/* *.jsf

Será que alguém pode me dizer o motivo do NPE, e me ajudar a consertá-lo??
vlws
[]'s

2 Respostas

ivela

Olá!

Você não está fazendo o binding com seu ManagedBean?
Provavelmente por isso está dando o NullPointerException…

alves.Felipe

Da uma olhadinha ai…
http://www.guj.com.br/posts/list/50115.java

Criado 5 de junho de 2009
Ultima resposta 5 de jun. de 2009
Respostas 2
Participantes 3