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

  • Home
  • SEARCH
  • 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 9194839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:30:24+00:00 2026-06-17T21:30:24+00:00

As it is known freemarkers beanwrapper uses the BeanIntrospector of java. That has a

  • 0

As it is known freemarkers beanwrapper uses the BeanIntrospector of java. That has a consequence that wrapped Boolean cannot have an “is” method for it’s public gets but just has to be a plain get method.

Now I’m working on a project where all of the sudden it became obvious primitive booleans had to become Boolean … Odd situation ofcourse but we are here. Ofcourse all the freemarkers don’t work anymore.

I was wondering if anyone knows, that there is somewhere on the net some BeanWrapper written for freemarker that doesn’t use the BeanIntrospector but some other way to allow Booleans to have is method getters ? Reason I’m asking is because I could try and write my own but the project just doesn’t allow the time for it. I have been googling for a while but can’t come up with anything (mostly since google seems to take Boolean and boolean as the same word …)

If there isn’t any … I’m just going to let one of the juniors change all is methods to get … thats gonna be a fun task for that guy …

Thanks in advance

Kenny

  • 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-06-17T21:30:25+00:00Added an answer on June 17, 2026 at 9:30 pm

    I can’t point to any solution that you can just download. But this is actually quite easy to do by overriding finetuneMethodAppearance in BeansWrapper. There you can make a fake property from any method. See the related part of the JavaDocs.

    OTOH, probably the best thing to do is changing those methods to get methods, because FreeMarker is not the only component that adheres to the JavaBeans spec. So, even if you fix this in FreeMarker, you can still run into the same problem elsewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Its known that Java ArrayList is implemented using arrays and initializes with capacity of
It's well known that in Windows a directory with too many files will have
I have known for a while now that .on is supposed to replace .live,
I known that with subversion you can attach arbitrary properties to each files. In
Background It is known that random branching costs significant overhead. And there was a
It's known that CF indicates unsigned carry out and OF indicates signed overflow. So
It's a well known fact, that Oracle treats empty strings as null. However, I'm
A known issue with nesting ListBoxes in a Windows Phone 7 App is that
Anyone known how to polulate a combo with values that depends on the user
Is there any well known established framework for C or Java or PHP to

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.