PDA

View Full Version : Two Sample Bean Code examples do not load



ozer_richard
05-07-2003, 07:21 AM
All beans discussed below can be found in
\samples\com\installshield\wizardx\panels

I compiled sample bean code:
com.installshield.wizardx.panels.TextDisplayPanel

It registered fine with the Bean Gallery. I inserted into my
application and it worked fine.

I compiled two other sample beans:
com.installshield.wizardx.panels.TextDisplayPanelAWTImpl
and
com.installshield.wizardx.panels.TextDisplayPanelSwingImpl

When I try to register these with the Bean Gallery, it rejects
them with the message:

"The item specified cannot be registered. It is not a legal
registerable type."

Class TextDisplayPanelAWTImpl extends class
DefaultAWTWizardPanelImpl.
Class TextDisplayPanelSwingImpl extends class
DefaultSwingWizardPanelImpl.

Are these two PanelImpl classes supported by MP?

Jeff Dillon
05-08-2003, 02:38 PM
You are not supposed to register UI Impl classes. Those are automatically built into the archive by including TextDisplayPanel in your project. The TextDisplay panel automatically loads and intializes ConsoleImpl, AWTImpl, and SwingImpl depending on the UI mode which the installer is running in.

I suggest you read the help section regarding custom beans in 5.0.

bimborock
01-07-2004, 03:10 AM
I have a related question to this post

I try to test sample included on ISMP5.0
samples\com\installshield\product\wizardbeans\DestinationPanel.java

I rename it to WizPanelDestination.java and change the class name of the code as well to WizPanelDestination and compile it with no problem

I register it and insert it to my project successfully

After building I run the installer but it skip the WizPanelDestination

What could have been wrong?