aspose file tools*
The moose likes JSF and the fly likes Sun Java Studio Creator : dropdown value .. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Sun Java Studio Creator : dropdown value .." Watch "Sun Java Studio Creator : dropdown value .." New topic
Author

Sun Java Studio Creator : dropdown value ..

Naveen Mishra
Ranch Hand

Joined: Nov 20, 2005
Posts: 75
Hi.
this is my day 1 with Sun Java Stdio Creator.

I've a dropdown filled with data , a textfield and a button .
as soon as i click on button I get the index of the list item selected.
i need value ( displayed text indeed).

my code is ...
////


public String button1_action() {
// User event code here...
textField1.setValue("Hello , "+ dropdown1.getValue());

return null;
}
////
any change in the code ???

Thanks .
Darrin Smith
Ranch Hand

Joined: Aug 04, 2003
Posts: 276
Originally posted by Naveen Mishra:
Hi.
this is my day 1 with Sun Java Stdio Creator.

I've a dropdown filled with data , a textfield and a button .
as soon as i click on button I get the index of the list item selected.
i need value ( displayed text indeed).

my code is ...
////


public String button1_action() {
// User event code here...
textField1.setValue("Hello , "+ dropdown1.getValue());

return null;
}
////
any change in the code ???

Thanks .



You should probably post that question here: http://swforum.sun.com/jive/forum.jspa?forumID=123&start=0
Naveen Mishra
Ranch Hand

Joined: Nov 20, 2005
Posts: 75
Thanks Darrin for ur valuable suggestion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sun Java Studio Creator : dropdown value ..