What is the problem with the property headerRender of the accordion?

Components of the accordions have a property called headerRender which is a ClassFactory object that generates objects of the specified class. By default this ClassFactory creates AccordionHeader objects that are the buttons on the accordion.
I try to use a custom object that extends AccordionHeader, therefore the ClassFactory these will create those instead of those by default, I have do this, where button extends AccordionHeader

< mx:Accordion id = "test" width = "100%" height = "100%" its = "{ClassFactory (com.legosoft.mxml.Boton) new}" >

Later in my code, I need assigns values to one of the button accordion (an AccordionHeader) then I use getHeaderAt() method, it returns the button at the index specified in the accordion, so I try to access the button properties like this:

test.getHeadertAt (1) .property = value

but, the compiler generates an error saying that there is no 'good', so I tried to cast to button like this:

Boton (test.getHeadertAt (1)) .property = value

in this way it does not compile, but when I access the swf, it throws a Cast Exception saying:

Type coercion failed: cannot convert mx.containers.accordionClasses::AccordionHeader@5c629e1 to com.legosoft.mxml.Boton

I realize now that this is because when the accordion is being created is not taking the new value that I spent at the property of headerRender, it is indeed always the AccordionHeader objects creation, so the question is:
What I have to do the accordion will create button objects instead of the AccordionHeader objects?

headerRenderer = "com.legosoft.mxml.Boton"

MXML will create the classfactory for you. You may need to

import com.legosoft.mxml.Boton

in a script block

Tags: Flex

Similar Questions

  • Error message: this isn't a problem with intellectual property. Board of Directors, but rather with your SQL Server when you visit a Web site.

    Original title: an error occurred in SQL server?

    Hello, I just wanted to go to this site, but this error pops up: error SQL

    An error occurred in SQL server:

    This isn't a problem with intellectual property. Board of Directors, but rather with your SQL Server. Please contact your host and copy the above message.

    «Back to index »

    Please help me, I just moved my computer so I had to disconnect from the internet, but now he has problems.

    Is the site I tried to go to: http://www.minecraftforum.net/topic/227822-166-millenaire-npc-village-076c-duplicate-villager-fix/

    Hey Brainiac,

    1. are you encounter problems with this site?

    2. are you able to connect to this site from a different computer?

    3. were you able to connect to this website before?

    4. you remember to make changes to the computer before this problem?

    The problem seems to be, with the site that you are visiting. You can check if you can access the site from another computer.

    Hope this information is useful.

  • BlackBerry Smartphones do you know what are my problems with my camera and how to solve?

    Mine is Curve 3 G running OS 6. I have 3 years now.

    Never installed any themes. I removed all languages, except for English and mandarin. Obtained third-party applications, which are whatsapp and screen grabber. I also youtube, twitter and yahoo messenger but I think that they are developed by rim. I uninstalled the default games from the early days, owner of the device and never install others. I also removed the maps and the world of blackberry. In any case, they are useless.

    I don't store a lot of pictures and the ones I did on my ram external 2gigs. I have not all media files. Just the default values.

    I join 1 group and it's not active. I don't have multiple conversations. I end conversations as soon as they are finished. BBM contacts grow about 1-2 monthly and phone books from 3 to 5 every week. I am a seller.

    I delete e-mails from the unit as soon as I finished reading the. Never navigation because the browser kills each front page loaded completely, making me unable to use youtube.

    I remember regular cleaning to run hourly.

    I do battery pull everyday because I'm tired of waiting for the clock or the gel to disappear, which could take more than half an hour if I let them which of course eventually crashing.

    Never have data backup because the device freezes the second I connect it to the PC with desktop blackberry on.

    So the question is do you know what are my problems and how to solve? Because I did not.

    Hello

    Well... We must memory cleaner is enabled, this feature is known to cause many problems!

    Try a battery pull reboot and let us know.

  • What is this problem with Verizon abandoned Microsoft Premium

    Verizon reported that they no longer Microsoft Premium with their dsl.  What that means for me?  electronic mail, Favorites, contacts. etc /

    Hi TheresaSustak,

    You can check the mentioned Verizon link below for more information:

    http://www22.Verizon.com/ResidentialHelp/FiOSInternet/General+support/essentials+and+extras/QuestionsOne/127186.htm

  • ADF Mobile Browser: problem with rowSelection = property 'Single '.

    Hi all

    I use jdev 11.1.1.5.0 version.

    I'm setting up browser mobile ADF application. in my case, I created two pages jsp (pronounced on mobile). on the first page, I slipped master vo and on the second page I drag detail vo.

    and rowSelection value = "Single" another property in VO. master so when the user select table main line radio button, and then click the order link go to the details page and vo display detail record according to master vo.

      <tr:table value="#{bindings.PayDepartmentView1.collectionModel}"
                      var="row" rows="#{bindings.PayDepartmentView1.rangeSize}"
                      emptyText="#{bindings.PayDepartmentView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                      width="100%" horizontalGridVisible="false"
                      selectionListener="#{bindings.PayDepartmentView1.collectionModel. makeCurrent}"
                      rowSelection="single">
                      
              <tr:column sortProperty="Name" sortable="false"
                         headerText="#{bindings.PayDepartmentView1.hints.Name.label}" width="100%">
                         <tr:panelGroupLayout layout="vertical">
                <tr:commandLink text="#{row.bindings.Name.inputValue}" styleClass="af_m_listingLink"
                                action="#{mobbean.chngDept}"
                                actionListener="#{mobbean.chngdeptlistener}"/>
                </tr:panelGroupLayout>
             
              </tr:column>
            </tr:table>
    

    but the problem is that I don't want radio button for selecting rows.

    If I disassembled rowSelection property box option is hide but not selected table then. and detail table show always record according to the first row of the table.

    Thank you

    Manish

    You don't need to display the key of the fields in the table, but do not add to your links page so that they are accessible - so you can reference them in your link. If you use a composite key, you may need to use the setCurrentRowWithKey instead of KeyValue #{row.rowKeyStr}

    See the section on the setCurrentRowWithKey here: Application Module Databinding tips and Techniques

  • I have some problems with my Qosmio G30-126

    Hello

    I can feel that Toshiba does not have just customers to be technical but also is harmful to reputation because the Toshiba customers cannot use Toshiba product as do advertising -: performance, stability...

    I bought 1.5 year ago Quosmio G30-126, which was earlier model (more expensive) at this time. But this model does not allow me to correct the work. Ways to collapse the system lose the work during treatment, slowing down my productivity.

    If I contacted the service, was always somewhere else than the warranty conditions.

    http://EU.computers.Toshiba-Europe.com/innovation/generic/QOSMIO_G30_BIOS_UPDATE/

    http://EU.computers.Toshiba-Europe.com/innovation/generic/PRODUCT_UPDATE_RAID_DRIVER/

    For this I am sure about the instability and not much choice of graphics GeForce GO 7600 card. The driver for Vista which has been updated several times of Toshiba (and after a year as buying by NVidia for Vista - until that moment only for XP) seems to be like another flaw of Toshiba.

    Also have problems with scratches on the screen. The framework is too soft (high and low) and "technicals" told me I was putting something heavy on top... which I did not, but anywhere: in this case it can scratch it if it is to stay on the table. Second think it is I travel a lot with her... My answer is Yes, it is portable and not PC... It's the first laptop on which have stripes, using laptops for the last 12 years and 17 "for the last 5 years.

    Also feel funny that I am a customer subscribed and that waiting will be provided, all news of Toshiba, not only on new products, but also all product updates... nothing happen.

    Anyone have a similar experience as it is written above?

    Hana

    The year last January or February my friend give me his newest Qosmio G30. I ve used a month. I've install my favorite games and I also used it to scan all my movies of course done.

    The laptop has been pre-installed with Vista, but we have also installed Windows XP Home edition on the second partition to check the performance in the two operating systems. WXP works perfectly and after some personal configurations that Vista was also good working operating system. I recorded a hours of movies, he coded and burned about 20 DVDs. So I hope you believe me that this laptop has been uninterrupted on the race. Encoding is not short and portable process runs almost 24 hours a day.

    After a month of use I didn't noticed anything negative and I can say that the Qosmio G30 is a fabulous laptop. Unfortunately a bit expensive for me.
    I don't know what you're doing with expensive products, but I always buy the extended warranty to avoid a risk of material damage. I don't want to pay for costly repairs. For my new LCD TV I paid about 130 euros for 2 years warranty. Now I don't what will happen over the next 4 years.

    Thus, everyone has their own way how to use laptop and to discuss the system collapse, lose the work during treatment, slowing my productivity is not so easy. Who knows what applications, freeware or shareware you stuff use? Who knows what make your system unstable?

    I use my Satellite 17 nearly 2 years of work and private things and I always use original preinstalled Vista. Why I don't have this kind of problems?
    This with scratches on the screen is too strange for me. I wonder how this can happen. After closing the cover of the display, the screen is protected and there is no chance to make scratches on it.

    One last thing: maybe I didn t understand you well, but what is your problem with the driver updated, updated BIOS or corrections? Each laptop manufacturer offers different updates or upgrades to improve performance, better security, or functionality of the software. Toshiba do this too and this process would not present yesterday, but for years.

    Sorry mate, a side that I understand your wish to discuss all of these negative issues but just blame laptop manufacturer for every stupid thing is not understandable for me. According to me, you know a lot of people say that PC 80% disorders are not result of bad hardware/software, but because nobody who are sitting in front of it.

    What to say at the end? If possible, buy extended warranty to be on the safe side, try to have the right operating system, from time to time do the backup data, make sure that the laptop is placed correctly on the desktop to avoid overheating and I'm sure you'll use your Qosmio for a long time.

    Bye and good luck!

  • I have problems with my games after update my iPad 2 to 9.3.2,and can anyone help?

    IS that what someone has problem with updated their 9.3.2 at ipad2?

    Yes.

  • photos of the iPhone are on the side and I can not turn because theres a problem with the property file

    Photos imported from my iphone came on the side and when I turn and try to save, it won't let me save it like that saying "windows Photo Viewer cannot save changes to this picture because there is a problem with the pictures of file properties". What should I do?

    I don't know if the following links answer your question, but
    they may be worth a visit:

    Good luck and * proceed at your own risk *.

    FWIW... There is a very long discussion (several pages) to the
    following link:

    Cannot change the imported iPhone 4S photo
    https://discussions.Apple.com/thread/3444951?start=0&TSTART=0

    More Discussion

    iPhone 4S image properties is not compartible with Windows?
    Editing can be done on the computer due to the error
    "Windows Photo Viewer cannot save changes to this picture.
    because there is a problem with the properties of the image file".
    Any help?
    https://discussions.Apple.com/message/17291884#17291884

    More Discussion:

    We cannot turn a few photos in Windows 7 (but can turn others)
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

    A simple solution is to open the photos in paint or most other
    digital image editor and modify it.

    Some people have reported success using the following free download
    to remove the metadata.

    Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    Here's a way to turn...

    Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
    the rotator Lossless JPEG free
    http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/

    Free download JPEG Lossless rotating
    http://annystudio.com/software/jpeglosslessrotator/

  • Error: "Canoe Photo window Viewer save the changes to this picture because there is a problem with the property of photo file" when trying to upload photos from the iPhone to the Windows Photo Viewer.

    Original title: saving photos and videos, common sense?

    JW why I can't save a picture to the top of the right way in my windows photo viewer and Media Player (same for video too) so when I download my pictures frim my iphone on the computer a few photos have been taken vertically, and when I go to put the image a gardener would come saying ' canoe photo window Viewer save the changes to this picture because there is a problem with the file of. properties of photos? What can I do to fix this?

    JW why I can't save a picture to the top of the right way in my windows photo viewer and Media Player (same for video too) so when I download my pictures frim my iphone on the computer a few photos have been taken vertically, and when I go to put the image a gardener would come saying ' canoe photo window Viewer save the changes to this picture because there is a problem with the file of. properties of photos? What can I do to fix this?

    =============================================
    I don't know if the following links answer your question, but
    they may be worth a visit:

    Good luck and * proceed at your own risk *.

    FWIW... There is a very long discussion (several pages) to the
    following link:

    Cannot change the imported iPhone 4S photo
    https://discussions.Apple.com/thread/3444951?start=0&TSTART=0

    More Discussion

    iPhone 4S image properties is not compartible with Windows?
    Editing can be done on the computer due to the error
    "Windows Photo Viewer cannot save changes to this picture.
    because there is a problem with the properties of the image file".
    Any help?
    https://discussions.Apple.com/message/17291884#17291884

    More Discussion:

    We cannot turn a few photos in Windows 7 (but can turn others)
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

    A simple solution is to open the photos in paint or most other
    digital image editor and modify it.

    Some people have reported success using the following free download
    to remove the metadata.

    Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    Here's a way to turn...

    Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
    the rotator Lossless JPEG free
    http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/

    Free download JPEG Lossless rotating
    http://annystudio.com/software/jpeglosslessrotator/

  • I have problems with anchors named in my htm file. I clearly identify them as being in the document (ie., internal links within the file).  When I preview the file in a browser, the links point to my hard drive, which is totally false. What do I need

    I have problems with anchors named in my htm file. I clearly identify them as being in the document (ie., internal links within the file).  When I preview the file in a browser, the links point to my hard drive, which is totally false. What should I do to change it?  I use DreamWeaver 2004 on a PC.

    You will need to correct the links that begin with "file".

    Now that your site has been defined, you just delete the bad links and DW left write the good ones for you.

    Click on the yellow folder on the property inspector, and then select the target page.

    If your site is small, you can edit the links manually (remove the part in red)

    content.htm file:///C:/desktop/localRootFolder/subfolder/subfolder/images/

    It would be useful that post you your code on the page so that we can see if you use the old technique or new for these links.

  • CSS problem with the clear property

    This is my page real http://www.martcol.co.uk/abba/ and I want to swap the paragraphs autour. That's what I'm going with http://www.martcol.co.uk/abba/test/test01.php

    I think I'm getting confused with the whole thing of float clearing.

    Thank you very much

    Martin

    In fact, I think that he only breaks in Firefox – keep in mind, I have only tested in IE6 and FF

    http://martcol.co.UK/Abba/pages/patch.php

    Oh dear, another problem with my floating elements and the clear property...

    Martin

    I think I have it now. Don't know why, but picking far home set.

  • What is the problem with my iMac mid-2011

    Hello

    Need help find out what is the problem with my iMac to mid-2011.

    Yesterday during a reboot it just never came to life.

    On turning the power on, I get the RINGTONE to start and that's it. The screen is totally black. Nothing behind tried with a torch.

    VRAM rearmament so far I tried repeatedly, unplug and plug, all kinds of combinations of keys in the carillon and nothing.

    Connected to an external monitor and shows nothing of too - no signal.

    Any way that I can know what is wrong with it before sending it to the service tech? I suspect bad graphics card but how do you ensure?

    From what you describe, it looks like a hardware issue that Apple will only be able to resolve, but not to despair immediately.

    Read it please get help with graphics issues on external displays connected to your Mac - Apple Support.

    I know that the title and subject are not suitable to your concern, but buried in this document is the following passage that contains three links describing the steps to follow.

    If you can not change the resolution of your screen because you see no image, restart your Mac in safe mode to reset the default display resolution.

    If booting safe mode doesn't resolve the problem, reset your Mac NVRAM and SMC to reset the video ports on your Mac to their default values.

    That first, then write again for additional suggestions if you are still having problems.

  • WTF? Google yahoo even facebook become unreliable transmitter? What is the problem with firefox

    I know what is the meaning of the untrusted site...
    But what the hell can I do with an internet without facebook google and yahoo?
    I have not used the computer for a while and when I look on the internet today
    I can only search youtube and my own school website
    Please help me to solve the problems
    This thing has confused me for the whole day

    Thank you

    Check the settings for date, time and the operating system time zone.

  • Problems with 24. Cannot know what version I had before the 24th. Where can I find it?

    Should not be whiney, but 2 - 3 times a year, these updates of FF make everything go haywire. I don't have the patience to go through all the questions and find solutions for them right now. I want to just go back to a working version, the version I had immediately before the 24th. But I don't know what version that was. I deleted the FF and installed 3.6.28, but it has even more questions. Is there a place to find the versions that I used, or if someone has similar problems and knows what previous version worked perfectly, can you please let me know who it was? Yes, I am still running XP, and yes I know I should update. I'm getting a new computer for Christmas and will not need to "Fix" things, so just I want to continue with what I got for the last 2 months.

    Questions that I speak to you, it's my bookmarks bar barely works. My email link does not work, I lost the icons for half of my favorites...

    Please, what was the last good version?

    Thank you

    Please upgrade to Firefox 24 (using earlier versions let you at a high risk of attack) and then tell us exactly what does not work with your bookmarks bar.

  • I want to download free applications, but it doesn't let me do it cause I have a problem with my payment, I try to remove my debit card and the option did not appear, I can't choose no for the payment, what can I do?

    I want to download free applications, but it doesn't let me do it cause I have a problem with my payment, I try to remove my debit card and the option did not appear, I can't choose no for the payment, what can I do? This happen after I bought some coins for a game

    You must settle the debt until you can download something else of the podcast episodes on the iTunes Store or select None as the payment option.

    (142394)

Maybe you are looking for

  • Merging 2 partitions on a hard disk again on Satellite X 200-21 L

    Okmy situation: I bought the Satellite X 200-21 L (European version of the X 205-SLi3) on this point, I have two hard drives with a capacity of 160 GB per disk.But among the hard disks is divided into two partitions, the partition "C:" for progra0ms

  • ReSTOR Idevice sauvegardΘ

    Days ago I decied to re - install and clean install my OS and before I got a full upward on my mac and after installation when I wanted to restore my back upwards again on my mac I faced with an error that my back storage capacity is greater than my

  • Need drivers USB 3.0 for laptop HP 14-f027cl

    Hello Yesterday, I had to get off my OS Windows 7 Pro 64 bit. I need help, to try to find the right USB 3.0 drivers. Here is the hardware ID of the device. PCI\VEN_1022 & DEV_7814 & SUBSYS_2115103C & REV_09PCI\VEN_1022 & DEV_7814 & SUBSYS_2115103CPCI

  • System freeze

    News: Toshiba laptop S855-S5252 Fresh installation of windows 7 pro (32-bit) with all Toshiba drivers installed. This laptop does not load before the splash screen. I tried to access the system in safe mode. But it freezes on the avgidshx.sys driver.

  • Private App World

    Hello I like to test my app BB10 installation and upgrade procedure, as if the user was doing it live from the App World. Is there a way I can emulate/simulate a local BB App World in my LAN to test my application? Thank you Khe