Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateChoices of Select erases initial value #274

Open
amedranogil opened this issue Jun 2, 2017 · 0 comments
Open

generateChoices of Select erases initial value #274

amedranogil opened this issue Jun 2, 2017 · 0 comments

Comments

@amedranogil
Copy link
Member

Originally Opened: @Alfiva (2013-03-04 13:46:52)

After creating a Select1 object with initial value, e.g:

Select1 s=new Select1(hours, new Label("Dinner time", (String) null), PROP_PATH_REF8, null, "v2"));

But then setting the possible values with:

s.generateChoices(new String[] { "v1", "v2", "v3"});

Removes the initial value set in the constructor and sets it to the first of the list.

This is not critical because you can manually set the initial value later with storeUserInput, but it doesnt look clean. If this is not fixed, at least warn about this behaviour in the javadoc.

--

From: this issue has been automatically imported from our old issue tracker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants