Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP JSF Tools Tutorial
WTP JSF Tools Tutorial [message #196176] Wed, 11 July 2007 19:56 Go to next message
Eclipse UserFriend
Originally posted by: Ben.Sisson.ccci.org

I followed the "WTP Tutorial - JavaServer Faces Tools Tutorial" but when I
enter the following code into login.jsp I get an error on the
<h:inputSecret value="#{loginBean.password.convertedID}"> line. The
message under the #{loginBean.password.convertedID} indicates "Expression
is not gettable". I'm not sure what this indicates and how to fix this?

<h:form>
<h:messages layout="table"></h:messages>
<h:panelGrid columns="2">
<h:outputLabel rendered="true" value="#{msg.name}"></h:outputLabel>
<h:inputText value="#{loginBean.name}" tabindex="0"></h:inputText>
<h:outputLabel rendered="true" value="#{msg.password}"></h:outputLabel>
<h:inputSecret value="#{loginBean.password.converetedID}">
<f:converter converterId="javax.faces.Long" />
<f:validator validatorId="com.tutorial.validatePassword" />
</h:inputSecret>
</h:panelGrid>
<h:commandButton action="login" value="#{msg.login}"></h:commandButton>
</h:form>

I'm running Eclipse 3.3, Java 1.5, WTP 2.0, Apache Tomcat 6.0, JavaServer
Faces v1.2 Project. I installed the Commons, JSTL, and SUN-RI JSF Tools
libraries as described in the tutorial.
Re: WTP JSF Tools Tutorial [message #196192 is a reply to message #196176] Wed, 11 July 2007 20:30 Go to previous message
epson wang is currently offline epson wangFriend
Messages: 32
Registered: July 2009
Member
the field "convertedID" of your Class "Password" should have a
"getConvertedID" method and "setConvertedID" method

also the loginBean.password should define the access method too.

On Wed, 11 Jul 2007 19:56:10 +0000 (UTC), Ben.Sisson@ccci.org (Ben)
wrote:

>I followed the "WTP Tutorial - JavaServer Faces Tools Tutorial" but when I
>enter the following code into login.jsp I get an error on the
><h:inputSecret value="#{loginBean.password.convertedID}"> line. The
>message under the #{loginBean.password.convertedID} indicates "Expression
>is not gettable". I'm not sure what this indicates and how to fix this?
>
><h:form>
> <h:messages layout="table"></h:messages>
> <h:panelGrid columns="2">
> <h:outputLabel rendered="true" value="#{msg.name}"></h:outputLabel>
> <h:inputText value="#{loginBean.name}" tabindex="0"></h:inputText>
> <h:outputLabel rendered="true" value="#{msg.password}"></h:outputLabel>
> <h:inputSecret value="#{loginBean.password.converetedID}">
> <f:converter converterId="javax.faces.Long" />
> <f:validator validatorId="com.tutorial.validatePassword" />
> </h:inputSecret>
> </h:panelGrid>
> <h:commandButton action="login" value="#{msg.login}"></h:commandButton>
></h:form>
>
>I'm running Eclipse 3.3, Java 1.5, WTP 2.0, Apache Tomcat 6.0, JavaServer
>Faces v1.2 Project. I installed the Commons, JSTL, and SUN-RI JSF Tools
>libraries as described in the tutorial.
Previous Topic:Annoying publish on Server during development
Next Topic:build/classes
Goto Forum:
  


Current Time: Thu Apr 25 08:06:33 GMT 2024

Powered by FUDForum. Page generated in 0.03903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top