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 7824713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:41:36+00:00 2026-06-02T08:41:36+00:00

is there a possibility to tell my JSF-implementation to convert empty numbers as null.

  • 0

is there a possibility to tell my JSF-implementation to convert empty numbers as null.
So far I always get 0 (of the corresponging complex-type).
For empty strings there is javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL, but I couldn’t find anything for numbers. By the way: No, I can’t use the vm-argument: -Dorg.apache.el.parser.COERCE_TO_ZERO=false

Is a custom-numberconverter my only possibility?

  • 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-02T08:41:41+00:00Added an answer on June 2, 2026 at 8:41 am

    No, I can’t use the vm-argument: -Dorg.apache.el.parser.COERCE_TO_ZERO=false

    The problem is in EL implementation used by the server, not in JSF. You really need to use the VM argument. If you can’t use it then your problem can’t be solved by other way than downgrading Tomcat to 6.0.15 or older, or replacing the server by for example Glassfish. It was Tomcat 6.0.16 when this “improved” EL coercion behaviour was introduced.

    If you elaborate the exact reason why you can’t use it (it makes at least no sense to me), then we may be able to propose ways how to really use it. For example, if it’s ignorance how to set a VM argument, then say so. Or if you’re not allowed to add a VM argument to startup script because it’s a 3rd party maintained server, then say so. Both problems can be solved so that you can use the VM argument rightly.

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

Sidebar

Related Questions

Is there any possibility to tell Firefox to use the mousewheel für scrolling through
Is there a possibility to tell the designer or the report a default font-size,
Is there possibility to compile windows service using only mingw c++ compiler and library?
Is there any possibility to select a option field by default in a g:select
Is there a possibility to access a i.e background-image:url() property inside an inline style
Is there any possibility to extract globalize2 translation for specified locale without setting I18n.locale
Is there any possibility of changing the MySQL DB table's field name or adding
Is there any possibility to make a link or a button to close the
Is there a possibility to take a picture using phone's camera without user interaction?
Is there any possibility in the prefix-function of a given pattern to have something

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.