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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:52:06+00:00 2026-05-21T08:52:06+00:00

I am faced with an unusual problem in a project that I am developing.

  • 0

I am faced with an unusual problem in a project that I am developing. The requirements are not clear regarding the size of a dozen or so text area input fields on the web page and as a result of which, I find myself having to change not only the database column to increase length but also to change the size parameter specified in my JSF validator for that text area component. Since the code has changed, an emergency deployment is necessary which makes a lot of people mad. Unfortunately, no one is quite sure what length these data elements should be and we expect it to change often. I changed my varchars to clobs but unfortunately the clob sizes were also too small and had to be increased as well.
Are there any tools or APIs that will help me address this problem? Or any best practices? I am considering building a small, on demand feature that will generate all db column lengths and make it available to the application via a singleton class. The UI view would then reference that particular element thus eliminating the need for code deployment.

Does anyone have any better solutions?

I am using JSF1.2+EJB3+Weblogic+Oracle DB stack.

Thanks a lot for looking.

  • 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-21T08:52:07+00:00Added an answer on May 21, 2026 at 8:52 am

    Your problem seems to be extreme case of a pretty normal use case.. (varchar to clob…:) )

    You have not mentioned any ORM framework and I assume that you are not using Hibernate.

    The first solution that comes to my mind is Using JSR 303 . Its a very scalable, non intrusive validation framework. You can implement this framework in whichever tier you want to. To hold the whole thing together, you could provide a single custom constraint validator , that will internally have a way of loading max and min values based on the field. The idea is to pass an parameter via annotation, indicating the field name, storing the min-max value of each field name in some external property file. So the validator, will dynamically load min max value based on the field name.

    So you have a customized framework for validating each fields based on constraints stored in a property file. You could reuse the same constraint both in your presentation and also your DAO layer.

    Of course, one things is unanswered.

    1.How to propogate this change to the underlying database. You could provide maximum possible length in database and handle contraints in your application tier, but there might be performance consideration. (although, I doubt there will be. Oracle is very very intelligent in its CBO).

    Look here for a general example.

    P.S: I have never tried this customization myself, but it is definitely possible.

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

Sidebar

Related Questions

I recently faced a problem of presenting the output of simple genetic algorithm that
Today we faced a quite simple problem that were made even simpler by the
I faced with problem that geomap by google fails with JQuery together in Internet
Currently im faced with the following problem: I have a script that searches through
I faced a little trouble - I do not know if I can define
I have faced this problem quite often during the last couple of months, during
I am currently faced with a difficult sorting problem. I have a collection of
Here I am faced with an issue that I believe(or at least hope) was
We have recently been faced with the problem of porting our C++ framework to
I'm faced with a design decision that doesn't smell to me, but gives me

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.