Adobe Dreamweaver Forums



Last 10 THreads :         Adobe Flash 10 kills Wimpy (Last Post : ClubEXL.com - Replies : 82 - Views : 955 )           »          static sound (Last Post : 21n9 - Replies : 10 - Views : 11 )           »          flash loader reappears after movie plays (Last Post : kglad - Replies : 4 - Views : 5 )           »          Flex compiler in FlexBuilder and Flex SDK (Last Post : 2009 Matt - Replies : 4 - Views : 5 )           »          Is file too large? (Last Post : kglad - Replies : 1 - Views : 2 )           »          Embed files in a projector (Last Post : Sean Wilson - Replies : 1 - Views : 2 )           »          problems linking PDFs (Last Post : Mantzi - Replies : 2 - Views : 3 )           »          VERY newbie question (Last Post : cashcrate13 - Replies : 0 - Views : 1 )           »          Undesired offset with Flash object (Last Post : TC2112 - Replies : 1 - Views : 2 )           »          Code that can effect two movie clips (Last Post : NedWebs - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-25-2008, 08:13 PM
2009 Matt
 
Posts: n/a
Diggs:
Default defaultButton causes state changes

I'm building a mx:Panel with two buttons (Login and Register) and two states
(base and "register"). In the "base" state, I set Login Button as the default
button. In the "register" state, I set Register Button as the default button.
The base state has two text input fields: userid and password. The "register"
state has userid and password plus other fields for personal data. All the
fields are checked by Validators before submitting to server. A mx:LinkButton
is used to change states.

When there were no data entered and I submitted the form, I got warning from
the Validators. After I did it for both states and if I pressed the Enter key
again, the state is changed just like clicking the LinkButton. It should
display warnings, not causing state change. It seems the LinkButton becomes the
defaultButton.

When I took away the defaultButton settings, the problem goes away.

I'm posting this to see if others have seen the same problem.
I hope I did something wrong, but it looks like a bug. I still want to use the
defaultButton, is there any workaround?





Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-25-2008, 08:53 PM
rtalton
 
Posts: n/a
Diggs:
Default Re: defaultButton causes state changes

The defaultButton in a container can change if focus moves to another button.
Check that you are not moving to the link button somehow after pressing enter
(set the linkbutton:tabEnabled =false), which then becomes the defaultButton.

Reply With Quote
  #3 (permalink)  
Old 11-25-2008, 10:23 PM
2009 Matt
 
Posts: n/a
Diggs:
Default Re: defaultButton causes state changes

I tried tabEnable="false" with LinkButton, but still get the same behave.
tabEnable="false" only causes tab to skip the LinkButton. How to remove the
focus from LinkButton automatically after it is clicked?

Reply With Quote


  #4 (permalink)  
Old 11-26-2008, 05:14 AM
John Hall
 
Posts: n/a
Diggs:
Default Re: defaultButton causes state changes

Can you post some application code so we can see what you're doing? It would be a lot easier to help out with specific code.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk