Changes in id/name handling!?

On my search to find a good way to compensate the lack of event triggers with the new Animate effects I encoutered a strange problem. A really basic one
So I have an empty application with a button like this (simplyfied):
<s:Application>
<s:Button id="myButton" click="trace(event.target)" />
</s:Application>
When i click the Button I would expect it to trace something like
app.ApplicationSkin2.Group3.myButton
but instead i get
EventSanityCheck0.ApplicationSkin2.Group3.Button4
just some auto generated Button4 identifier!?
Seems like my identifier is lost somehow. It turns out that if I set the name property of my Button like so:
<s:Button name="myButton" click="trace(event.target)" /> it actually gives me the correct name in the trace.
This is not really what one would expect or? It certainly was different in Flex 3 and I don`t think it makes sense. The identifier should be the identifier or?
What is the difference between name and id anyway? In Flex3 it made sense but now it`s treated in a different way I think?
From the manual:
name = Indicates the instance name of the DisplayObject.
id = ID of the component. This value becomes the instance name of the object
I get the feeling I`m asking something really dumb here - just need to do a sanity check
BTW I have much more probems with events and objects in a group but first need to sort this out
Thanks for any clarifications on these changes.
Benz

Nope, you aren't asking anything dumb.
So with the Flex 4 containers (including s:Application), the compiler no longer generates UIComponentDescriptors representing each node in your MXML document.
Why is this meaningful?
In Flex 3 the compiler would generate a UIComponentDescriptor representation of each component tag in your document.  At runtime these component descriptors would be realized into actual instances.  See Container::createComponentFromDescriptor ... In this method the 'name' would be set (copied) from the id of the component.
In Flex 4 the compiler instead generates factory methods for each component tag in your document.  These are a bit faster.  In this case we don't go through the step of copying the id to the name field (if name is unspecified).
You can compile your sample with '-keep' to contrast the difference in code generation to see for yourself what I'm referring to.
Feel free to file an enhancement request in JIRA (I believe it would be valuable to address) - http://bugs.adobe.com/flex/.  But for now you'll need to assign a meaningful name yourself if you wish to your name to reflect the id moniker.
Regards,
Corey Lucier

Similar Messages

  • Couldn't change my name (handle)

    Hi,
    I went to "Your Control Panel" in order to change my name (handle) but the change doesn't take effect.
    For now I remain a number
    Please, advise.
    Carlos.

    Re: Uh-oh...changed my emailaddress/username
    Srini

  • How do you handle change in user names if folks get married or divorced

    If an application is using the apex authentication scheme, how do you handle change in user names if folks get married or divorced. The reason I ask the question is that all of apex uses v('app_user'), which is the user_name. If I have transactions done by this user and then their name changes, which means so does their id, how do I get all of their transactions, before and after the name change. Traditionally I would expect to use user_id, not sure if this feature is still available. I can always create a custom auth scheme, but that is a lot of additional work. Any ideas?
    Thanks,

    Appreciate your help and time Jari, below is my game plan, unless someone has a better idea,
    I plan on doing the following to use user_id for auditing of transaction records:
    1. Get the user_id to use in the tables audit trail fields
    user_id := apex_util.get_user_id(v('app_user'));
    OR
    user_id := apex_util.get_current_user_id;
    2. If a user changes their name then use
    apex_util.set_last_name(p_user_id, p_new_lastname);
    apex_util.set_username(p_userid, p_new_username);
    Thanks,

  • 11g change an event name on an ADF OperationBinding

    Hi,
    In the main page I have an eventmap where I defined some events with their consumer and producers.
    Now in a task flow I want to change the event name in a particular situation so it fires a different event in the main page eventmap
    how can I do this from a backing bean.
    here is the methodaction from the pagedef of the page fragement
    &lt;action IterBinding="DepartmentsViewTFLeftIterator"
    id="setCurrentRowWithKeyValue" RequiresUpdateModel="false"
    Action="setCurrentRowWithKeyValue"&gt;
    &lt;NamedData NDName="rowKey" NDType="java.lang.String"
    NDValue="${bindings.setCurrentRowWithKeyValue_rowKey}"/&gt;
    &lt;events xmlns="http://xmlns.oracle.com/adfm/contextualEvent"&gt;
    &lt;event name="LeftSetCurrentRowWithKeyValue"/&gt;
    &lt;/events&gt;
    &lt;/action&gt;
    I want to change LeftSetCurrentRowWithKeyValue
    event name to an other name.
    Here some code where I can retrieve from event information but this does not get me any further.
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    JUCtrlActionBinding con2 = (JUCtrlActionBinding) bc.findCtrlBinding("setCurrentRowWithKeyValue");
    EventConsumer eventC = con2.getEventConsumer();
    EventProducer eventP = con2.getEventProducer();
    Hope someone can help me
    thanks Edwin

    Hi Frank.
    I have a TaskList TF where I show the BPEL workflow tasks, These tasks belong to a task type. For every task type I have in the main page I have an eventmap with so many event handling.
    Now in the TaskList TF I don't want to use a TF router and call the same method action for every workflow type with the only difference an other event name in the pagedef.
    Is this is not possible I will use TF input parameters
    thanks Edwin

  • Want to change my Skype Name

    I would like to change my Skype name on Skype.  I am not seeing the option to do so anywhere on Skype.  Would anybody know how I can do that?  Dandoun

    You can only change your account display name, but not your account username -
    https://support.skype.com/en/faq/FA110/can-i-change-my-skype-name-or-display-name-in-skype-for-windo...
    CONTACT SKYPE CUSTOMER SERVICE   |  HOW TO RECORD SKYPE VIDEO CALLS  | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES   |  WINDOWS PROBLEMS TROUBLESHOOTING   |  SKYPE DOWNLOAD LINKS  
    MORE TIPS, TRICKS AND UPDATES AT
    skypefordummies.blogspot.com

  • Change in column name in REUSE_ALV_FIELDCATALOG_MERGE

    Hi Everyone,
    In my requirement  I need to change the column name in the internal table t_fieldcat. But where can i find the way to change the names of column in REUSE_ALV_FIELDCATALOG_MERGE
       CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
         EXPORTING
           i_structure_name       = 'YV_TAB'
         CHANGING
           ct_fieldcat            = t_fieldcat
         EXCEPTIONS
           inconsistent_interface = 1
           program_error          = 2
           OTHERS                 = 3.

    Hi,
    you can do it in different ways, please try
    1) Build field catelog
    CLEAR wa_fieldcat.
      wa_fieldcat-tabname     = tab_name
      wa_fieldcat-fieldname   = 'Field Name'
      wa_fieldcat-seltext_l   = 'Field Text'.
      wa_fieldcat-outputlen   = 15.
      APPEND wa_fieldcat TO it_fieldcat.
    2) Create a structure with required fileds and create new data element refer with standard domain. Then you can give your require text in the Field Label tab. pass this structure to the FM.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name         = sy-repid
    i_internal_tabname     = 'internal_tab_name'
    i_structure_name       = 'structure_name'
    i_inclname             = sy-repid
    CHANGING
    ct_fieldcat            = it_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error          = 2
    OTHERS                 = 3.
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.

  • Messages Beta will not let me change my display name.

    Messages Beta only shows my yahoo email address and my actual name. I want to change it to something I want.

    Hi,
    Edit the info in the Address Book for your My Card.
    Not that this will make a jot of difference as to what your Buddies see.
    iChat and Messages beta can chose to display the screen name (Handle) or the Name (From the Address Book) at the top of the Buddy list.
    It make no difference what you display to yourself as the Buddy can see only your Screen Name ( and whatever they call you in their Address Book)
    With AIM accounts (and some accounts that can Log in to AIM) you can set up a Display name.
    I am not sure if Yahoo also do Display names (I don't use my Yahoo name that much)
    Anyway as the Address Card for yourself can be anything you can change what it reads so that iChat displays to you what you want.
    9:25 PM      Thursday; April 26, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • We have an itunes account on our desktop and my kids have it on their ipod and iphone. I went in and changed our user name from my old e-mail address which is no longer accessible to my new one and now either of my kids can access the itunes store..

    We have an itunes account on our desktop and both my kids have it on iphone and ipod. I went in and changed out user name from an old e-mail address which is no longer accessible to my one I use now... When the kids try to sign onto the itunes store it tells them they have the wrong user name..
    Can this be fixed??

    Did you change the email address or create a new Apple ID?
    If the email address associated with the account was merely changed, sign out of the Apple ID on the devices and sign in using the new credentials.

  • How can I change my user name? Someone else is using "phammm" my user name. At this point I cannot sign in with my email address and change my name. Help!

    When I try to access the user forum, I have this problem. I am trying to access the forum for a problem with Firefox. NOte the typo; my user name is phamm.

    hey...thanks for your post....ok I followed your instructions but seems this is what i had already done...
    so say when I turn my computer on
    I get
    MAC OS X
    Louise xOldsurnamex
    Login user: Louise xnewsurnamex
    Password-----------
    So I have already changed the login name and it is the only one showing in accounts (and is admin)
    What i want to change is the name above...I am unsure how to describe it? Basically the name of my computer???
    Errr is this poss? Do you know what i am describing?
    Thanx Louise

  • How do I change my user name in syn? I typed in the wrong email address. And I cancelled syn thinking this may work but no luck.

    How do I change my user name in syn? I typed in the wrong email address. And I cancelled syn thinking this may work but no luck.

    You have to clear saved password for this page:
    # Open you login page (where you have to enter username and password).
    # Right click on page and select '''Page Info''' form context menu.
    # On last tab ('''Security''') there is '''View saved passwords''' button, click it and delete all saved passwords for this page.
    # Also clear all related cookies (just in case) there is button for this next to first one.

  • Unable to change group text name or add person to some group texts in iOS 8

    I really like the ability to change group text names as it helps me separate work group texts from personal especially when I have coworkers that have separate business phones. I'm unable to change the name of some group texts as the option is not there when I go into details. I'm also unable to add contact to the same group texts that I'm unable to change the name on. Is this a glitch or am I missing something?

    Hi CaliWingsFan,
    If you are having issues with renaming and adding users to group texts, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    iOS: Force an app to close
    Next, I would try restarting the iPhone -
    Turn your iOS device off and on (restart) and reset
    If the issue is still present, you may want to restore the iPhone as a new device -
    iOS: How to back up your data and set up your device as a new device
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How can I change the account name in iCloud.  My email has changed and I want to change it on iCloud.

    How can I change the account name in iCloud.  My email has changed and I want to change it on iCloud.

    To change your iCloud ID, go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.
    To change the ID on your Mac, go to System Preferences>iCloud, sign out, choose Delete for all the prompts (your data will still be in iCloud), then sign back in with the changed ID.

  • How can I change the "Full Name" for my iCloud account?

    Hello,
    At some point in the past, iCloud started identifying me as someone else when I send emails. This incorrect name appears to be the "Full Name" setting of the email account, but when modifying the properties for the email account in Mail the field for modifying the "Full Name" setting is disabled, not allowing me to make any changes.
    Where is the correct place to change the "Full Name" setting for my iCloud account?
    Thanks,
    - Josh
    <Email Edited By Host>

    I believe it can be changed by going to https://appleid.apple.com/, click Manage your Apple ID, sign in with your iCloud ID, select "Name, ID and Email Addresses", then click "Edit" next to the name listed under "Your Name" and change it as desired.
    Also, if you are trying to change the sender name for your iCloud email account, you'll want to go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done.  Then quit Mail (Command-Q) on your Mac and re-open it.  Your new From name should now appear in the drop-down list when you compose a new email.
    (The image was removed in your post above because it showed your iCloud email address.)

  • How can i change the screen name in my icould account?

    my Apple ID used to have my Dad's name because of the billing issues.. now is changed again to have my name, but i keep seeing that my account on icloud.com still says my dad's name, so if i try to send an email through there it says my dad's name and my email address instead of my name...
    how can i change the name that appears linked to my icloud account? (note that as i already sayd my Apple ID has my name now, i jsut want to know why is not my name in my icloud account?)
    thank you,

    I believe it can be changed by going to https://appleid.apple.com/, click Manage your Apple ID, sign in with your iCloud ID, select "Name, ID and Email Addresses", then click "Edit" next to the name listed under "Your Name" and change it as desired.
    Also, if you are trying to change the sender name for your iCloud email account, you'll want to go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done.  Then quit Mail (Command-Q) on your Mac and re-open it.  Your new From name should now appear in the drop-down list when you compose a new email.
    (The image was removed in your post above because it showed your iCloud email address.)

  • How can I change the "short name" of my account?

    I want to change the short name of my account because when my dad bought this computer for me he set up the account with his name as the short name and it has been bothering me ever since.
    When I go to system preferences and then accounts my account is listed and when I click on it under password I am able to change my name, but not my short name because it is greyed out and cannot be clicked. Is there any way to change the short name on my account? I can't even delete my account and make a new one because the account delete button is greyed out when I click on my account.
    Also, I went to my home folder and changed that from my dad's name to my name. This has reset every program on my computer to default settings! For example when I open my Safari browser a message pops up saying a keychain cannot be found to store Safari and asks me if I want to restore default settings.
    So pretty much I've tried to change the short name on my administrative account, I reset everything to default settings and my short name is still my father's name. Can anyone help me out here?

    Try this.
    Or you could just create a new account and delete the old one.

Maybe you are looking for

  • Unable to print special characters in SAP script.

    Hi,   There is an address which needs to be hardcoded in a SAP Script form. It looks like: Česká republika s.r.o Karla Engliu0161e 3219/4 Česká republika IČO:  25635972 The letters which has got a tilde and sign above them are appearing as a hash '#'

  • How well does the TomTom app work?

    Let's hear it, how well does the TomTom app work compared to a dedicated GPS device? Are you using TomTom's special cat kit? Is there a way to load TomTom binary files (POIs) onto the iphone?

  • THE ADDRESS BAR IS NOT SHOWING

    THE ADDRESS BAR DOES NOT SHOW WHERE IS IT == This happened == Every time Firefox opened == I DOWNLOADED IT

  • Real-time data acquisition for HR datasources

    Dear Experts, I have a couple of questions on real-time data acquisition... a) Can you tell me if any standard HR datasources support real-time data acquisition? b) Can we apply real-time data acquisition for generic datasources? If yes, is there any

  • JMS adpater

    Dear Expertise, I have some doubts in JMS Adpater. 1. IS JMS adapter in XI is JMS client? 2. If JMS adaper CC is in sender mode, will XI pull the data(queues) from JMS server or JMS server will send the data to XI. For IDOC to JMS scenario, what are