Hi all
I am about developing a web application using
JSF 2.0 and netbeans 7.1.2
I have a user bean UserBean wich is defined by
and a login form:
<?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"
xmlns:pou="http://primefaces.org/ui">
<pou:panel header="Login" widgetVar="dlg" style="width: 500px;height: 180px;" >
<h:form id="form" >
<h:panelGrid columns="2" style="margin-bottom:10px">
<h:outputText value="Username" />
<pou:inputText value="#{UserBean.username}"/>
<h:outputText value="Password" />
<pou:password value="#{userBean.password}" />
</h:panelGrid>
<h:panelGrid columns="2">
<pou:commandButton value="Connect" type="submit" action="#{userBean.login()}" ajax="false" />
<pou:commandButton value="Reset" type="reset" />
</h:panelGrid>
</h:form>
</pou:panel>
</html>
when I run the application and submit username and password I got the following error:
/loginForm.xhtml @13,62 value="#{UserBean.username}": Target Unreachable, identifier 'UserBean' resolved to null
is there any thing I have to add to the UserBean class??
thanks for help