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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:38:11+00:00 2026-05-27T22:38:11+00:00

I have a question regarding JSF conversion. I have an input text define like

  • 0

I have a question regarding JSF conversion. I have an input text define like this:

<p:inputText size="15" maxlength="11" value="#{user.SSN}"/>

backing bean:

private Integer SSN;

From this site:
http://laliluna.com/articles/posts/javaserver-faces-converter-tutorial.html

I understand that JSF has built in converters for Integers.

“If you don’t specify a converter, JSF will pick one for you. The framework has standard converters for all of the basic types: Long, Byte, Integer, Short, Character, Double,
Float, BigDecimal, BigInteger and Boolean.. For example, if your component is associated with a property of type boolean, JSF will choose the Boolean converter. Primitive types are automatically converted to their object counterparts.”

however when I execute the above code, I got this error:

j_idt78: '99999999999' must be a number consisting of one or more digits.

What is wrong with my understanding this concept? Why doesn’t JSF uses its standard converters in this case?

  • 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-27T22:38:11+00:00Added an answer on May 27, 2026 at 10:38 pm

    Not completely sure but I am positive that the number 99999999999 is far too large to be stored as an Integer, so instead it defaults to treat it like a String.

    If you change the field SSN to a Long or BigInteger then it will probably work correctly. Optionally you can explicitly specify a number converter for this field directly by adding the following Facelets tag inside of the Primefaces tag <f:convertNumber>

    http://docs.oracle.com/javaee/5/javaserverfaces/1.2/docs/tlddocs/f/convertNumber.html

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

Sidebar

Related Questions

I have question regarding polymorphism about its assignment statement, for Example this is The
I have a question regarding inheritance in Java. If I have this base class
I have a question regarding Spring Web Flow with JSF: How can I teach
I have a question regarding this code. I'm a beginner and enjoy learning C#.
Hi there Im just learning JSF 2 using Primefaces. I have a question regarding
I have a question regarding vectors: If I have a std::vector<MyClass> will this vector
I have a question regarding the Impersonation on WCF. I'd like to connect to
I have question regarding RESTful resources similar to this other question . We're also
I have a question regarding GetTickCount function, I have two calls to this function
I have question regarding the SQLAlchemy. How can I add into my mapped 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.