Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6585627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:41:14+00:00 2026-05-25T16:41:14+00:00

I have the following tree node class: public abstract class DocumentTreeNode extends TreeNodeImpl implements

  • 0

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 void setToC(Boolean isToC)
    {
        this.isToC = isToC;
    }

}

This is a simple check box indicating whether the document is to be included in whatever or not. However, when trying to reference this from within JSF 2 EL

...
<h:selectBooleanCheckbox value="#{node.isToC}" />
...

I get an exception:

Caused by: javax.el.PropertyNotFoundException: /main.xhtml @541,64 value=”#{node.isToC}”: The class ‘ChapterTreeNode’ does not have the property ‘isToC’.

(I think I tried almost every combination, at least I felt this way… 😉 )

How do I resolve that boolean property? What needs to be changed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:41:14+00:00Added an answer on May 25, 2026 at 4:41 pm

    You should not specify the method name, but just the property name. You need to omit the is (and get and set) prefix when specifying bean properties.

    <h:selectBooleanCheckbox value="#{node.toC}" />
    

    EL will just automatically use the proper getter/setter for the property (note that this indeed means that the physical presence of the instance variable is not necessary). The exception which you got,

    Caused by: javax.el.PropertyNotFoundException: /main.xhtml @541,64 value="#{node.isToC}": The class ‘ChapterTreeNode’ does not have the property ‘isToC’.

    basically means that there’s no such method as isIsToc() or getIsToc() (and it has it right).

    Your second problem is that you used Boolean instead of boolean. You should then really call the method getToC() or getIsToC() instead of isToC(). In the latter case, you can just continue using #{node.isToC}.

    See also:

    • How does Java expression language resolve boolean attributes? (in JSF 1.2)
    • javax.el.PropertyNotFoundException: Property 'foo' not found on type com.example.Bean
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following object Node : private class Node implements Comparable<Node>(){ private String
I have following classes. class A { public: void fun(); } class B: public
I have the following function that prunes a tree data structure : public static
In firefox, I have the following fragment in my .css file tree (negative){ font-size:
I Have following code: Controller: public ActionResult Step1() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public
I am working with tree's in java and I have the following interface for
I'm trying to serialize and deserialize a tree of Node objects. My abstract Node
I have the following code. I constructed an expression tree and I am stuck
I have the following code that does something very simple: visits recursively a tree
I have an ArrayCollection and each element is an instance of the TreeNode class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.