Questions tagged [propertynotfoundexception]

javax.el.PropertyNotFoundException is thrown when a property could not be found while evaluating a ValueExpression or MethodExpression.

javax.el.PropertyNotFoundException is thrown when a property could not be found while evaluating a ValueExpression or MethodExpression.

For example, this could be triggered by an index out of bounds while setting an array value, or by an unreadable property while getting the value of a JavaBeans property.

93 questions
144
votes
18 answers

Identifying and solving javax.el.PropertyNotFoundException: Target Unreachable

When trying to reference a managed bean in EL like so #{bean.entity.property}, sometimes a javax.el.PropertyNotFoundException: Target Unreachable exception is being thrown, usually when a bean property is to be set, or when a bean action is to be…
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
32
votes
6 answers

javax.el.PropertyNotFoundException: Property 'foo' not found on type com.example.Bean

I have results from Query query = session.createQuery("From Pool as p left join fetch p.poolQuestion as s"); query and I would like to display it on JSP. I have loop:
Ilkar
  • 2,113
  • 9
  • 45
  • 71
27
votes
2 answers

javax.el.PropertyNotFoundException: Property 'foo' not readable on type java.lang.Boolean

I have a class which looks something like this: public class ScoreDefinition { protected Boolean primary; public Boolean isPrimary() { return primary; } public void setPrimary(Boolean value) { this.primary =…
user1759136
13
votes
1 answer

javax.el.PropertyNotFoundException when trying to resolve Boolean properties in EL

I have the following tree node class: public abstract class DocumentTreeNode extends TreeNodeImpl implements javax.swing.tree.TreeNode { private Boolean isToC; ... public Boolean isToC() { return isToC; } public…
Kawu
  • 13,647
  • 34
  • 123
  • 195
13
votes
4 answers

Changing faces-config.xml from 2.2 to 2.3 causes javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bean' resolved to null

Have the following code snippets: Bean: import javax.faces.view.ViewScoped; import javax.inject.Named; @Named(value = "directoryBean") @ViewScoped public class DirectoryBean implements Serializable { private static final long serialVersionUID =…
AndrewG10i
  • 661
  • 1
  • 6
  • 21
11
votes
2 answers

Error : javax.el.PropertyNotFoundException: Target Unreachable, 'null' returned null

I got this error below when I was running my JSF page. javax.el.PropertyNotFoundException: Target Unreachable, 'null' returned null.. Warning: /createStaff.xhtml @33,125 value="#{staffBean.staff.firstName}": Target Unreachable, 'null' …
Lawrence Wong
  • 1,129
  • 4
  • 24
  • 40
10
votes
3 answers

javax.el.PropertyNotFoundException: using JSTL in JSP

I have a JSP where I'm trying to use JSTL tags to display data from an in-memory instance of a class. The data consists of a series of Strings where each String is the address of an RSS feed. In the JSP, I have the following code:
Mr Morgan
  • 153
  • 1
  • 2
  • 6
8
votes
3 answers

Getter in an interface with default method JSF

I have an interface with the following default method: default Integer getCurrentYear() {return DateUtil.getYear();} I also have a controller that implements this interface, but it does not overwrite the method. public class NotifyController…
8
votes
3 answers

Outcommented Facelets code still invokes EL expressions like #{bean.action()} and causes javax.el.PropertyNotFoundException on #{bean.action}

I've the following code snippet in my Facelet: It works fine, but when I outcomment it like this,