Need to get UI components values...

hi,

I want to get the currently selected value of a dropdown list in Page1 within a seperate java class in sourse package. I tried as below.

Page1 myPage = new Page1();

String select = String.valueOf(myPage.getDropDown1.getSelected() );

but nothing is comming.

how can I get it done.

kajanan

[334 byte] By [Kajanan] at [2007-11-26 11:59:22]
# 1

You cannot simply create a new Page1 instance to achieve what you want. In fact, I do not understand why you want to get the dropdown's value from a separate Java class. Typically you would get the dropdown's value from within a method of Page1 itself, such as a button action method or the prerender method.

mbohm at 2007-7-7 12:21:14 > top of Java-index,Development Tools,Java Tools...