• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

javax.el.PropertyNotFoundException

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try:

public boolean getCheckBox() {
return checkBox;
}
 
Predrag Ristic
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to use the proper naming access format:

#{myBeanClass.rememberMe}

public boolean getRememberMe()
{
return this.isCheckBox();
}
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic