[izpack-users] Search Field Bug?
macke
maier at isys.uni-klu.ac.at
Thu Nov 23 19:38:07 CET 2006
Hi!
First of all, thanks to all developers for this software. I love it!
But now my question: ;)
I use a search field in the userinputpanel for asyking the user for the
location of a license file. The code in the userinputspec.xml is the
following:
<field type="search" variable="LIC_PATH">
<description align="left"
txt="Path to activation file:"
id="input.licpath.description"/>
<spec type="file" result="file">
<choice txt="License.txt" value="$INSTALL_PATH\License.txt" set="true"/>
</spec>
</field>
If the user doesn't specify any path to such an file, the standard license
file in the choice-tag should be used.
But when I start my installer, wheter I can see the standard selection set
nor I find it in the combobox.
What I'm doing wrong?
I checked the code in UserInputPanel a little bit, but didn't find an
solution yet or where things are going wrong.
But I found this line in addSearch:
String set = ((XMLElement) choices.elementAt(i)).getAttribute(SET);
System.out.println(set);
if (set != null)
{
if (set != null && !"".equals(set)){
VariableSubstitutor vs = new
VariableSubstitutor(idata.getVariables());
set = vs.substitute(set, null);
System.out.println(value);
}
Why to substitute the boolean? Is it possible that searchField is buggy?
thx for any help,
macke
--
View this message in context: http://www.nabble.com/Search-Field-Bug--tf2693910.html#a7512557
Sent from the izpack users mailing list archive at Nabble.com.
More information about the izpack-users
mailing list