Did you bind the OptionsList property to the Dropdown list component?
In other words, if on the design canvas you click the Dropdown list component, what value do you in the items field of the Properties window?
I did not do anything different from Chris's (Jetsons) instructions and the code worked fine.
Thanks
Slava
I did that binding and I added the property to the sessionbean, because I didn't find the way to add it to the page.
IDE shows:
Cannot find symbol variable nameOptionsList..
Cannot find symbol constructor Option...
Cannot find symbol variable nameOptionsList...
It seems that the property (variable) is in wrong place. How it should be added?
You can access properties in the Session bean by prepending your call with getSessionbean1(), that is getting a property say named optionList would read as: getSessionbean1().getOptionList().
Onthe other hand, you can always add property to your page bean. As with the Session bean you need to find your bean in the Project window. You'll find it in this window under Source packages, or under src if you open Files layout of the Project window.
Slava
For some reason fix imports show me first only swing-Option (or maybe I was too hasty).
I did it manually like here;
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/lis tbox_components.html
This was missing in Chris's text, but anyway I got it working now.
Grateful for your help :-)
Tomppa