Boa noite galera…
Estou com mais um probleminha… tenho um tela de login que estou testando, e a mesma não esta fazendo nada …
clico no botão entrar e não faz nada …
segue o XHTML:
[code]<?xml version="1.0" encoding="ISO-8859-1"?>
teste<h:body>
<h:form>
<p:layoutUnit position=“center” style=“border:0px;”>
<p:spacer height="250px" />
<p:panel header="Bem-Vindo(a)"
style="width:500px;margin-left:auto;margin-right:auto;border: 1px solid #000000;box-shadow:10px 10px 5px black;">
<h:panelGrid columns="2" style="margin-left:auto;margin-right:auto;">
<h:outputLabel value="Usuário:" />
<p:inputText value="#{teste.nome}" />
<h:outputLabel value="Senha:" />
<p:password value="#{teste.apelido}" />
</h:panelGrid>
<h:panelGrid columns="2" style="margin-left:auto;margin-right:auto;">
<p:commandButton type="submit" id="login" value="Entrar"
action="#{teste.imprimir}" />
<p:commandButton id="clear" value="Limpar Campos" />
</h:panelGrid>
</p:panel>
</p:layoutUnit>
</h:form>
</h:body>
[/code]Segue a classe bean:
[code]package com.estudo.teste.jdbc;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
@ManagedBean
@ViewScoped
public class teste {
private String nome;
private String apelido;
public void imprimir(){
System.out.println(nome+" - "+apelido);
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getApelido() {
return apelido;
}
public void setApelido(String apelido) {
this.apelido = apelido;
}
}
[/code]
Bom agradeço desde já…