| Author |
javax.el.PropertyNotFoundException
|
Predrag Ristic
Greenhorn
Joined: Dec 07, 2009
Posts: 28
|
|
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
Joined: Aug 25, 2008
Posts: 24
|
|
Try:
public boolean getCheckBox() {
return checkBox;
}
|
Lincoln Baxter, III | [url]http://ocpsoft.com/[/url] | Creator of: PrettyFaces - Bookmarks, Navigation, and Dynamic Parameters for JSF
|
 |
Predrag Ristic
Greenhorn
Joined: Dec 07, 2009
Posts: 28
|
|
|
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
Joined: Aug 25, 2008
Posts: 24
|
|
You need to use the proper naming access format:
#{myBeanClass.rememberMe}
public boolean getRememberMe()
{
return this.isCheckBox();
}
|
 |
Sumeet Singh Aryan
Ranch Hand
Joined: Jul 30, 2008
Posts: 43
|
|
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();
}
|
The woods are lovely, dark and deep, But I have promises to keep; And miles to go before I sleep, And miles to go before I sleep. - Robert Frost
|
 |
Predrag Ristic
Greenhorn
Joined: Dec 07, 2009
Posts: 28
|
|
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
Joined: Jul 02, 2008
Posts: 302
|
|
I am having the similar problem.
The trouble is that all my entities are generated automatically. Is there no alternative for this wiring ?
|
 |
 |
|
|
subject: javax.el.PropertyNotFoundException
|
|
|