This week's book giveaway is in the Flex forum.
We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line!
See this thread for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSF
 
RSS feed
 
New topic
Author

Rich:comboBox

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Messages: 88

Hi!
I wrote the following code:

my bean is:

the data in servicesNames is full with service names.

But on the screen it doesn't display any value when clicking on the arrow neither when starting to type the first letter.

What is the problem?
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Messages: 167

Check if you have a getter for servicesNames. If so, then you should have called getCustomerServices() from your getter.
Sumeet Singh Aryan
Ranch Hand

Joined: Jul 30, 2008
Messages: 31

try the following code in your JSF

<f:selectItems value="#{fileUploadBean.customerServices}" />

you are using servicesNames instead of customerServices.... this is the problem.. try to use the name of getter not the list

The woods are lovely, dark and deep, But I have promises to keep; And miles to go before I sleep, And miles to go before I sleep. - Robert Frost
Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Messages: 88

Hi

I fixed the code to this:

and the bean:


The function is being filled in the constructor.
Then i have getter and setter for servicesNames.

What is the problem?
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Messages: 167

Just put the code in getCustomerServices() to getServicesNames().
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSF
 
RSS feed
 
New topic
IntelliJ open source