This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Flex and the fly likes Flex combo empty check validation ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Flex
Reply Bookmark "Flex combo empty check validation ?" Watch "Flex combo empty check validation ?" New topic
Author

Flex combo empty check validation ?

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 361
Hi,
I am using flex 3.0.

I am trying to check condition if the combo box value is not selected by the user at that time it is blank on load.
So ideally it should not allow to save the data.

But i have tried every option:



but in none of the case flow is going inside the if condition even the combo is not selected and it is blank.

Please suggest anyone have idea on this.

Regards,
Prabhat

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 361
I found the solution:

checking length is better option:

if(CallServerNameId.selectedLabel.length == 1){

}

it is now working.

prabhat
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Flex combo empty check validation ?
 
Similar Threads
Blank if statement
value of the textbox to a scriplet in JSP
Doumnet Listener Problem
How to Check for Null or Empty Value
SWT: Is dynamic resize of Combo possible?