aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Property not found message" Watch "Property not found message" New topic
Author

Property not found message

Dirk Hausmanns
Greenhorn

Joined: Oct 06, 2012
Posts: 1
HI,

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.

Gr.

Dirk
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36486
    
  16
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: http://aspose.com/file-tools
 
subject: Property not found message
 
Similar Threads
Help Requested --> Yep, it's a verifier message!
Bean property must has both getter / setter ?
Hibernate Basic Error -
Difference between attribute and parameter
java.lang.Reflection throwing error when using (String)field.get(new String());