File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.el.PropertyNotFoundException

 
Predrag Ristic
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my bean class:


and this is my login page:


When I try to open login page,this exception occurs:
[qoute]
javax.el.PropertyNotFoundException: /login.xhtml @49,80 value="#{myBeanClass.checkBox}": Property 'checkBox' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_seam_2

Help please!
 
Lincoln Baxter
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try:

public boolean getCheckBox() {
return checkBox;
}
 
Predrag Ristic
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have that kind of function,it's called GetRememberMe().I tried to use it in login.xhtml (#{myBeanClass.GetRememberMe} and #{myBeanClass.GetRememberMe()}) but without successs.
 
Lincoln Baxter
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the proper naming access format:

#{myBeanClass.rememberMe}

public boolean getRememberMe()
{
return this.isCheckBox();
}
 
Sumeet Singh Aryan
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lincoln is right... this solves the problem

try to use #{myBeanClass.rememberMe} in your JSF file, and remember the case sensitivity... (check 'r' of remeberMe is small in JSF file)

put the following function in your Managed Bean class

public boolean getRememberMe()
{
return this.isCheckBox();
}
 
Predrag Ristic
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added that method but the setter one was also needed:

for this to work.Thanks a lot for your help!!!

P.S. Just for further usage,if I would like to have another check box for some other purpose rather than remembering the certain user,what would I have to set as a value attribute since I've user myBeanClass.rememberMe?
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the similar problem.
The trouble is that all my entities are generated automatically. Is there no alternative for this wiring ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic