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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:58:35+00:00 2026-05-26T06:58:35+00:00

I have a field description in my UserInputSpec.xml file. <field type=radio variable=selected.source > <description

  • 0

I have a field description in my “UserInputSpec.xml” file.

<field type="radio" variable="selected.source" >
        <description align="left" txt="Please select TBPAPIIntegrator data source:" id="combo.text" />
        <spec>
            <choice txt="IMKB Server"      id="combo.item.imkb"     value="imkb"/>
            <choice txt="Exernal Database" id="combo.item.database" value="db"/>
        </spec>
        <validator class="com.j32bit.installer.validator.SelectSourceValidator" txt="Please select one source!" >
            <param name="selected.source" value="${selected.source}"/>
        </validator>
    </field>

and this my Validator class:

package com.j32bit.installer.validator;

import java.util.Map;
import com.izforge.izpack.panels.ProcessingClient;
import com.izforge.izpack.panels.Validator;

public class SelectSourceValidator implements Validator{

    @Override
    public boolean validate(ProcessingClient client) {

        Map<String, String> params = client.getValidatorParams();

        if( params.get("selected.source").equals("imkb")
                ||  params.get("selected.source").equals("db"))
            return true;

        return false;
    }
}

Also variable deceleration as below in “Installer.xml”:

<variables>
    <variable name="selected.source" value="" />
</variables>

Radio buttons comes unselected. While buttons still unselected if I click “next” button installer continuous the next page and validation does not work.

enter image description here

enter image description here

Please help!
Thanks in advance.

  • 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-26T06:58:36+00:00Added an answer on May 26, 2026 at 6:58 am

    It seems like declaring a variable in <dynamicvariables></dynamicvariables> or in <variables></variables> does not work at all. Instead you can just write a variable name to a field and it can be used and referenced in anywhere in installer.

    I also removed validator from field declaration in UserInputPanelSpec.xml and moved it to panel declaration in Installer.xml.

    Installer.xml:

    <panels>
        <panel classname="UserInputPanel" id="select.source" >
            <validator classname="com.j32bit.installer.validator.SourceValidator"/>
        </panel>
    </panels>
    

    UserInputPanelSpec.xml:

    <!-- SELECT SOURCE PANEL  -->
    <panel id="select.source">
        <field type="radio" variable="selected.source" >
            <description align="left" txt="Please select TBPAPIIntegrator data source:" id="radio.text" />
                <spec>
                    <choice txt="IMKB" id="radio.item.imkb" value="imkb" />
                    <choice txt="Exernal Database" id="radio.item.db" value="db" />
                </spec>
        </field>
    </panel>
    

    Now it is working with no problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So i have this XML structure: <fields> <field name=agent_description label=Agent Description size=area /> <field
I have a long description field in a products table with a data type:
I have the following form input field: <input type=text value= title=Enter item description name=description>
I have a field 'Description' which can have product descriptions with any unicode characters.
I have a description field indexed in Lucene.This field contains a book's description. How
If I have a table field named 'description', what would be the SQL (using
I have seen the following code: [DefaultValue(100)] [Description(Some descriptive field here)] public int MyProperty{...}
I'm using CCK Image field (multi-images) and for each image I have the Description
I have a model Product with a description field. Now I want to have
I have a MySQL table with a field named description , with a record

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.