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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:31:56+00:00 2026-05-24T09:31:56+00:00

When I first load a page, the default option on a dropdownchoice is Choose

  • 0

When I first load a page, the default option on a dropdownchoice is “Choose One”. Is there a way to keep it in the dropdown, even when I have selected a choice?
(In case I would like to put nothing later)

  • 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-24T09:31:57+00:00Added an answer on May 24, 2026 at 9:31 am

    You need to use the DropDownChoice.setNullValid() method. From the javadoc:

    Determines whether or not the null value should be included in the list of choices when the field’s model value is nonnull, and whether or not the null_valid string property (e.g. “Choose One”) should be displayed until a nonnull value is selected. If set to false, then “Choose One” will be displayed when the value is null. After a value is selected, and that change is propagated to the underlying model, the user will no longer see the “Choose One” option, and there will be no way to reselect null as the value. If set to true, the null string property (the empty string, by default) will always be displayed as an option, whether or not a nonnull value has ever been selected. Note that this setting has no effect on validation; in order to guarantee that a value will be specified on form validation, FormComponent.setRequired(boolean). This is because even if setNullValid() is called with false, the user can fail to provide a value simply by never activating (i.e. clicking on) the component.

    If you want to keep the “Choose One” text with NullValid = true you can use a line similar to the following one in your Application.properties file:

    nullValid=[Choose one]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a two forms on a page. The first one has several quantity
I have two aspx page on my application. From the first one, lets say
I have a cascading dropdown list on my page. The first dropdown contains a
I've got some trouble with jQuery script on my Asp.net page. During first load
I have a div which, when my page is first loaded, is about 100px
every night i have a trigger that executes asp.net page with method that first
i have this site structure: First page: <script src=../jquery.uniform.min.js type=text/javascript charset=utf-8></script> <script type=text/javascript charset=utf-8>
Is there any section or code which allows us to set default page in
Source First: Default.aspx: <%@ Page Language=C# AutoEventWireup=true CodeBehind=Default.aspx.cs Inherits=WebApplication2.Default %> <!DOCTYPE html PUBLIC -//W3C//DTD
There is one thing, what I should make for client web page. All done,

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.