UserInputPanel : Combo fields won't show the id in console installations.

Description

Provided a definition like this:

For the "Combo fields", won't show the id in console installations .
So the console appears as such :

Normally one would need to able to display it like this:

But no problem with windows and linux interface.

Environment

None

Activity

Show:
René Krell
January 15, 2018, 10:23 AM
Edited

So my combos haven't label on Linux console

Sorry for misunderstanding, of course this is missing.

Zdeněk Vaník
January 15, 2018, 9:56 AM

I have sent a PR that allows you to display labels for choice fields when they are specified in console mode.

claire bonnans
January 14, 2018, 9:21 PM

The <choice> tag it's not my problem but it's the <spec> tag when I'm on a Linux console.
The id in <spec id = "input.full.url"> doesn't display when I'm on a Linux console.
I would like to show my label : "Full Url" for my combo just as on the second example.
That's all right on Windows and on Linux interface but not on console
So my combos haven't label on Linux console but just a choice between yes or no.

René Krell
January 11, 2018, 5:31 PM
Edited

This works as expected.

The value attribute of the single choices is just the value returned if the according field has been chosen (clicked) by the user, and is assigned to the variable bound to that field after leaving the panel. Just because the strings chosen true or false as values this does not automatically mean which field is set by default when you enter the panel. Remember, you can choose a random string like foo and bar as values.

Please use the default attribute of the <spec> element to choose the field selected by the default, see https://izpack.atlassian.net/wiki/x/ZIAH.

You can also add a set="true" to the according <choice> element for chosing it by default, but this means it will always reset the default to this field even if the user comes back to this panel from one of the next panels and had already chosen a different than the default values.

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Zdeněk Vaník

Reporter

claire bonnans