File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Property not found message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Property not found message" Watch "Property not found message" New topic

Property not found message

Dirk Hausmanns

Joined: Oct 06, 2012
Posts: 1

I'm very new to java. What I want to do is the following :

I created a field called newsletter in the DB. Cause I want learn to understand Java, I took over a field called female. This declares if the user is female or male. The field is set to BIT and can contain a NULL.

this works well. The only problem I have is, that it shows up with this error :

Caused by javax.el.ELException with message: "/layout/inc/community/profile/profileAbout.xhtml: Property 'newsletter' not found on type com.server.entity.application.User

I wrote this code to com.server.entity.application.User

private Boolean newsletter;

public void setNewsletter(Boolean newsletter)
this.newsletter = newsletter;

public Boolean getNewsletter()
return newsletter;

This is the code to display the field :

<s:div styleClass="clear margin15bot" />
<p class="blue bold">#{currentUserHome.instance.newsletter ? 'nein' : 'ja'}</p>
<hr class="strategyHR margin3NS" />
<p class="medBlueGrey">Newsletter abbonieren</p>

Hope somebody can help me with this issue.


Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46375
Welcome to the Ranch

That question is too difficult for “beginning”, so I shall move it. Not sure where, and it might be moved again. Let’s try HTML first.
I agree. Here's the link:
subject: Property not found message
It's not a secret anymore!