Hi everyone,
I am running the installer from a console, but things are not going as they should be:
1) I am getting : "dir field collection not implemented" messages. I have found the cause of this which is located in the UserInputPanelConsoleHelper.java class. I am using a UserInputPanel which has fields on it that use elements of type="dir". For some reason the console installer does not know how to process these types. So made some minor modifications to the UserInputPanelConsoleHelper.java class (I wanted the DIR type to respond as the FILE type):
a) added static member "private static final String DIR = "dir";" b) added to the runConsole() method if (TEXT_FIELD.equals(input.strFieldType) || FILE.equals(input.strFieldType) || RULE_FIELD.equals(input.strFieldType) || DIR.equals(input.strFieldType)) ===> this was added { c) added to the getInputFromField() method if (TEXT_FIELD.equals(strFieldType) || FILE.equals(strFieldType) || DIR.equals(strFieldType) )
This code seems to work during rough testing (functional testing). How does this code (or a bugfix for this issue) gets added to IzPack? I don't want to change/recompile every new IzPack version :-)
2) I am also using radio buttons and, because I wanted to select one as default, I used the set="true" attribute. For instance:
<field type="radio" align="left" variable="os" > <description align="left" id="description.radio.os"/> <spec> <choice txt="Choice 1" value="choice1" set="true" /> <choice txt="Choice 2" value="choice2" /> <choice txt="Choice 3" value="choice3" /> </spec> </field>
The thing is that during console install, when I want to choose the "Choice2" the "Choice 1" remains checked. As far as I can see, everything works as it should (He installs everyghing based on choice 2)
kind regards
Guy Van Tilborgh