• Post Reply Bookmark Topic Watch Topic
  • New Topic

IZPACK custom DataValidator unable to read custom panel user input  RSS feed

 
manoj aggarwal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a sample installer using IZPACK API. In this, i have created a custom panel class by extending IzPanel. After that i created a panel data validator by implementing DataValidator interface.

I have given its entry in install.xml as shown below:

<panel classname="TestInstallation" id ="TestInstallation">
<validator classname="com.izforge.izpack.panels.TestValidator"/>
</panel>


Validator is running fine and showing error message. Here, I need to show error message depending upon wrong user input combination entered in panel multiple fields. But, i am unable to read user entered data in my custom data validator(TestValidator) and getting null. AutomatedInstallData.getAttribute("") as well as AutomatedInstallData.getVariable("") both methods are returning null in my custom data validator.

Please help and let me know if i am missing something here.

Thanks in Advance !!!
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

AutomatedInstallData.getAttribute("") as well as AutomatedInstallData.getVariable("") both methods are returning null in my custom data validator.

I've never used IZPack so this is a pure guess but I'd have thought that when you call either of those methods you would need to pass in the identifying name of the attribute/variable you wanted to get the value of ie not pass in an empty string.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!