Why would you use actionscript for events

Just downloaded and installed Flex and working my way through the tutorials (bright eyes). However the 'event' tutorial presents two ways to create an event and associate it with an object. The first uses the design mode to put a function call in the property of 'click' of the object - a single line, takes seconds to insert it. The second method involves writing several lines of actionscript and MXML code in three different places.

What I'm missing here? Why the hell someone would choose the second method (actionscript) when the MXML method takes seconds and is much less complex?

excellent, thank you.

Tags: Flex

Similar Questions

  • Why always, I received management is not available when you use maps for the iPhone 6 and I live in the Qatar?

    Why I always get direction is not available when you use maps for the iPhone 6 more?

    Currently I live in the Qatar.

    Hi Alison, Sameh

    The reason why you see directions is not available, it's that for cards of Apple, turn-by-turn directions is not a feature that is available in the Qatar. You can search for places and satellite imagery
    Take a look at the link below for more details on what features are available in the Qatar.

    iOS 9 feature availability
    http://www.Apple.com/iOS/feature-availability/

    Nice day

  • Why would you once on a network appears in the task like network 4 bar and then it turns into network 6,?

    Why would you once on a network appears in the task like network 4 bar and then it turns into network 6,?

    Network 6 is rated a public network. I want only connected to the internet so is that correct or should it be local

    File and printer for microsoft networks sharing has a check in it, it should be?

    One of my grandsons that started a few days ago and I don't know if it is passed something for xbox?
    TKS

    the only shared printer-shows

    Hello

    The number of network cards you have in your computer?

    For example, it might be a laptop computer with wireless card and wireless card, and each of them receives a different number (the number is just a number it does not mean that there are 4 cards more).

    Whether it's a regular network or a public network, must be able to connect to the Internet.

    Public network: connection that may use Public network such as in a coffee with free Internet house safely.

    Jack, MVP-Networking. EZLAN.NET

  • Why would you add paths to a jpeg file?

    Hello world!

    I use Ps and for a few years now as a hobby so I'm a bit able to find my way around it.

    Now for the question:

    Why would you add paths to a jpeg file?

    In addition why divide it into several paths? I have a vague memory of beeing paths able to for example make a transparent background in IE illustrator. Is it possible it?

    My reason for asking is that I work as a Digitalprinter operator and we have a client who wants that hide us objects in the images and also in som cases separated by paths.


    I reduced the example we obtained the client and added a link below hopfully someone can open it in Ps and explain why you would do that.

    Dropbox - paths


    Thank you for your time.


    Looks like that have already made separate paths each object by its color, shape, set highlight and shadow and maybe even the (rather difficult to say) basic coverage

    So, in this example, I would say it would create selections for separation into layers.

    Technically Yes in this case it would save space on disk and bandwidth on the net. But, it's still a jpg file and whenever it gets published, it loses data. My recommendation when you receive a picture like this, is so quickly save it in psd or tiff and use these paths to separate the parts of the image in layers to make it as easy on yourself as possible. Do your work on the psd or tiff image.

  • No idea why, when you use the Source of the Image changes it overwrites the content?

    No idea why, when you use the Source of the Image changes it overwrites the content?

    Its a really great tool and I want to use it as I have a complicated trajectory I want multiple items to follow, but to have many different PNGs. but when I change them it overwrites the content?

    Thanks in advance

    Scott

    Hi, Scott.

    It is likely that you touch the question where the dimensions of the old image are used when change you to a new image.  It is a known issue for the latest version of edge animate CC and we try to fix it in a future release.  Unfortunately, the only thing you can do is to change the dimensions of the image after you exchange.  You can also copy and paste the path of an element to another, if it would help.

    Hope that helps,

    -Elaine

  • Why would I use apple pay on my actual card?

    Why would I use apple pay on my actual card? Why put another man in the middle. It is easier to pull out my card that he must get out of my phone. What are the real benefits? I can understand if you have an Apple Watch. But otherwise what's the point?

    Hello

    You will discover the features and benefits of Apple pay here:

    http://www.Apple.com/Apple-pay/

  • Why would you put test pilot 1.3.9 in thunderbird without the knowledge of the user?

    Why would you put test pilot 1.3.9 in thunderbird without the knowledge of the user? It breaks the server status bar messages.

    You can follow the status of the bug AdBlock here:

    https://issues.adblockplus.org/ticket/180

    One user reports that ABP 2.5.1 is compatible with Earlybird.

  • which operating system would you recommend better for hp laptop 14-D008AU? Window7 32/64-bit or windows 8 32/64 bit

    which operating system would you recommend better for hp laptop 14-D008AU? Window7 32/64-bit or windows 8 32/64 bit

    and what is the defferent from 32-bit and 64-bit

    Hello

    Please see this thread:
    http://h30434.www3.HP.com/T5/notebook-operating-systems-and-software/what-OS-support-HP-notebook-14-D008AU/m-p/4326752

    Kind regards

  • Questions about privacy and security when you use Safari for Windows

    I have Itunes + Quick Time Player installed to download music and some time ago I had the opportunity to download Safari for Windows.  I used it a few times, just out of curiosity, and I noticed that it is much faster than IE7, so I plan to use it regularly, but before that, I have a few questions:

    -someone at - it tested (or uses) Safari for Windows, and what are your results?

    -What is save to use as Firefox or Opera, both recommended as alternative by our experts at the HijackThis forum?

    -the programs that I installed (Online Armor firewall, AVG 8.0 suite, MBAM with protection in real time enabled RogueRemover Pro with immune protection enabled, WinPatrol, SpywareBlaster) offer the same protection when you use Safari for browsing?

    Thanks a lot already for your answers, Advisor or thoughts on this issue.

    Mona.

    Inspiron 1501

    Win XP - SP3

    Message edited by mona7865 on 08/07/2008 06:19

  • What stage of treatment would you use to alert a seller on a form submission?

    Can someone tell me what step treatment would you use to alert a seller on a form submission?

    Hello

    Send a notification e-mail.

    Thank you

  • How to change folder name by default when you use save for Web in java script?

    Hello everyone, hope you can help me.


    Photoshop has a folder name by default of images When you export using slices Save for Web . I need to change this folder name.

    How to change folder name by default when you use save for Web in java script?

    Thanks in advance!


    1325ACD7-9C89-4D20-A6BF-E9EE8B7A1D27.png

    QQ20150923-1@2x.png


    JJMack Chuck Uebele Nicolas Ribot SuperMerlin

    You can try with scriptlistener to record the code. Change to the last line of the NO to ALL dialog boxes, so that the dialog - if you wish. There are two places in the code to save the files: one where is actually saved the file, and the other where the default value is file. I have seen it changed something with it. So, you can simply use the first listing of a path in the code below.

    #target photoshop
    
    var idExpr = charIDToTypeID( "Expr" );
        var desc19 = new ActionDescriptor();
        var idUsng = charIDToTypeID( "Usng" );
            var desc20 = new ActionDescriptor();
            var idOp = charIDToTypeID( "Op  " );
            var idSWOp = charIDToTypeID( "SWOp" );
            var idOpSa = charIDToTypeID( "OpSa" );
            desc20.putEnumerated( idOp, idSWOp, idOpSa );
            var idDIDr = charIDToTypeID( "DIDr" );
            desc20.putBoolean( idDIDr, true );
            var idIn = charIDToTypeID( "In  " );
            desc20.putPath( idIn, new File( "C:\\Users\\csuebele\\Pictures\\LR shortcuts" ) );//Here's where it actually saves
            var idFmt = charIDToTypeID( "Fmt " );
            var idIRFm = charIDToTypeID( "IRFm" );
            var idPNtwofour = charIDToTypeID( "PN24" );
            desc20.putEnumerated( idFmt, idIRFm, idPNtwofour );
            var idIntr = charIDToTypeID( "Intr" );
            desc20.putBoolean( idIntr, false );
            var idTrns = charIDToTypeID( "Trns" );
            desc20.putBoolean( idTrns, true );
            var idMtt = charIDToTypeID( "Mtt " );
            desc20.putBoolean( idMtt, true );
            var idEICC = charIDToTypeID( "EICC" );
            desc20.putBoolean( idEICC, false );
            var idMttR = charIDToTypeID( "MttR" );
            desc20.putInteger( idMttR, 255 );
            var idMttG = charIDToTypeID( "MttG" );
            desc20.putInteger( idMttG, 255 );
            var idMttB = charIDToTypeID( "MttB" );
            desc20.putInteger( idMttB, 255 );
            var idSHTM = charIDToTypeID( "SHTM" );
            desc20.putBoolean( idSHTM, false );
            var idSImg = charIDToTypeID( "SImg" );
            desc20.putBoolean( idSImg, true );
            var idSWsl = charIDToTypeID( "SWsl" );
            var idSTsl = charIDToTypeID( "STsl" );
            var idSLAl = charIDToTypeID( "SLAl" );
            desc20.putEnumerated( idSWsl, idSTsl, idSLAl );
            var idSWch = charIDToTypeID( "SWch" );
            var idSTch = charIDToTypeID( "STch" );
            var idCHsR = charIDToTypeID( "CHsR" );
            desc20.putEnumerated( idSWch, idSTch, idCHsR );
            var idSWmd = charIDToTypeID( "SWmd" );
            var idSTmd = charIDToTypeID( "STmd" );
            var idMDCC = charIDToTypeID( "MDCC" );
            desc20.putEnumerated( idSWmd, idSTmd, idMDCC );
            var idohXH = charIDToTypeID( "ohXH" );
            desc20.putBoolean( idohXH, false );
            var idohIC = charIDToTypeID( "ohIC" );
            desc20.putBoolean( idohIC, true );
            var idohAA = charIDToTypeID( "ohAA" );
            desc20.putBoolean( idohAA, true );
            var idohQA = charIDToTypeID( "ohQA" );
            desc20.putBoolean( idohQA, true );
            var idohCA = charIDToTypeID( "ohCA" );
            desc20.putBoolean( idohCA, false );
            var idohIZ = charIDToTypeID( "ohIZ" );
            desc20.putBoolean( idohIZ, true );
            var idohTC = charIDToTypeID( "ohTC" );
            var idSToc = charIDToTypeID( "SToc" );
            var idOCzerothree = charIDToTypeID( "OC03" );
            desc20.putEnumerated( idohTC, idSToc, idOCzerothree );
            var idohAC = charIDToTypeID( "ohAC" );
            var idSToc = charIDToTypeID( "SToc" );
            var idOCzerothree = charIDToTypeID( "OC03" );
            desc20.putEnumerated( idohAC, idSToc, idOCzerothree );
            var idohIn = charIDToTypeID( "ohIn" );
            desc20.putInteger( idohIn, -1 );
            var idohLE = charIDToTypeID( "ohLE" );
            var idSTle = charIDToTypeID( "STle" );
            var idLEzerothree = charIDToTypeID( "LE03" );
            desc20.putEnumerated( idohLE, idSTle, idLEzerothree );
            var idohEn = charIDToTypeID( "ohEn" );
            var idSTen = charIDToTypeID( "STen" );
            var idENzerozero = charIDToTypeID( "EN00" );
            desc20.putEnumerated( idohEn, idSTen, idENzerozero );
            var idolCS = charIDToTypeID( "olCS" );
            desc20.putBoolean( idolCS, false );
            var idolEC = charIDToTypeID( "olEC" );
            var idSTst = charIDToTypeID( "STst" );
            var idSTzerozero = charIDToTypeID( "ST00" );
            desc20.putEnumerated( idolEC, idSTst, idSTzerozero );
            var idolWH = charIDToTypeID( "olWH" );
            var idSTwh = charIDToTypeID( "STwh" );
            var idWHzeroone = charIDToTypeID( "WH01" );
            desc20.putEnumerated( idolWH, idSTwh, idWHzeroone );
            var idolSV = charIDToTypeID( "olSV" );
            var idSTsp = charIDToTypeID( "STsp" );
            var idSPzerofour = charIDToTypeID( "SP04" );
            desc20.putEnumerated( idolSV, idSTsp, idSPzerofour );
            var idolSH = charIDToTypeID( "olSH" );
            var idSTsp = charIDToTypeID( "STsp" );
            var idSPzerofour = charIDToTypeID( "SP04" );
            desc20.putEnumerated( idolSH, idSTsp, idSPzerofour );
            var idolNC = charIDToTypeID( "olNC" );
                var list4 = new ActionList();
                    var desc21 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzerozero = charIDToTypeID( "NC00" );
                    desc21.putEnumerated( idncTp, idSTnc, idNCzerozero );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc21 );
                    var desc22 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNConenine = charIDToTypeID( "NC19" );
                    desc22.putEnumerated( idncTp, idSTnc, idNConenine );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc22 );
                    var desc23 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwoeight = charIDToTypeID( "NC28" );
                    desc23.putEnumerated( idncTp, idSTnc, idNCtwoeight );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc23 );
                    var desc24 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc24.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc24 );
                    var desc25 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc25.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc25 );
                    var desc26 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc26.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list4.putObject( idSCnc, desc26 );
            desc20.putList( idolNC, list4 );
            var idobIA = charIDToTypeID( "obIA" );
            desc20.putBoolean( idobIA, false );
            var idobIP = charIDToTypeID( "obIP" );
            desc20.putString( idobIP, """""" );
            var idobCS = charIDToTypeID( "obCS" );
            var idSTcs = charIDToTypeID( "STcs" );
            var idCSzeroone = charIDToTypeID( "CS01" );
            desc20.putEnumerated( idobCS, idSTcs, idCSzeroone );
            var idovNC = charIDToTypeID( "ovNC" );
                var list5 = new ActionList();
                    var desc27 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzeroone = charIDToTypeID( "NC01" );
                    desc27.putEnumerated( idncTp, idSTnc, idNCzeroone );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc27 );
                    var desc28 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwozero = charIDToTypeID( "NC20" );
                    desc28.putEnumerated( idncTp, idSTnc, idNCtwozero );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc28 );
                    var desc29 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzerotwo = charIDToTypeID( "NC02" );
                    desc29.putEnumerated( idncTp, idSTnc, idNCzerotwo );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc29 );
                    var desc30 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNConenine = charIDToTypeID( "NC19" );
                    desc30.putEnumerated( idncTp, idSTnc, idNConenine );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc30 );
                    var desc31 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCzerosix = charIDToTypeID( "NC06" );
                    desc31.putEnumerated( idncTp, idSTnc, idNCzerosix );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc31 );
                    var desc32 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc32.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc32 );
                    var desc33 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc33.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc33 );
                    var desc34 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwofour = charIDToTypeID( "NC24" );
                    desc34.putEnumerated( idncTp, idSTnc, idNCtwofour );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc34 );
                    var desc35 = new ActionDescriptor();
                    var idncTp = charIDToTypeID( "ncTp" );
                    var idSTnc = charIDToTypeID( "STnc" );
                    var idNCtwotwo = charIDToTypeID( "NC22" );
                    desc35.putEnumerated( idncTp, idSTnc, idNCtwotwo );
                var idSCnc = charIDToTypeID( "SCnc" );
                list5.putObject( idSCnc, desc35 );
            desc20.putList( idovNC, list5 );
            var idovCM = charIDToTypeID( "ovCM" );
            desc20.putBoolean( idovCM, false );
            var idovCW = charIDToTypeID( "ovCW" );
            desc20.putBoolean( idovCW, true );
            var idovCU = charIDToTypeID( "ovCU" );
            desc20.putBoolean( idovCU, true );
            var idovSF = charIDToTypeID( "ovSF" );
            desc20.putBoolean( idovSF, true );
            var idovCB = charIDToTypeID( "ovCB" );
            desc20.putBoolean( idovCB, true );
            var idovSN = charIDToTypeID( "ovSN" );
            desc20.putString( idovSN, """c:\photos""" );//Here's where the default folder is suppose to go.
        var idSaveForWeb = stringIDToTypeID( "SaveForWeb" );
        desc19.putObject( idUsng, idSaveForWeb, desc20 );
    executeAction( idExpr, desc19, DialogModes.ALL );
    
  • How would you disble modifiable for a particular row in a dataGrid?

    How would you disble modifiable for a particular row in a dataGrid? Looks really hard to do.

    Point to make function made the trick:




    Editable = "{outerDocument.rendererEditable (data .month)} '"
    paddingTop = paddingBottom '0' = '0' / >

    public void rendererEditable(s:String):Boolean {}

    If (s == 'Total') {}
    Returns false;
    }
    Returns true;

    }

  • If you use firefox for linux, I'm unable to open the game client for a called flash browser game darkorbit.

    I'm using Linux Mint 17.2 xfce.
    The Firefox I use is 42.0 Mozilla Firefox for Linux Mint Mint - 1.0.
    Shockwave Flash is 11.2r202.
    The browser Flash game is DarkOrbit ( www.darkorbit.com ).
    The game was working fine until about 2 months ago.

    I log in the game (as before) and get on the last page without any problem.
    When I click on 'Start' to go to the game client, the screen is black. The browser tab written game client will blink twice.
    Please note that everything works fine when I use the chrome Web browser.
    DarkOrbit works very well with Firefox on Windows.

    Is there a way to use the pepper Flash used in Chrome/chrome using the freshplayerplugin wrapper.

    Your Linux distro may have related packages for it.

    Alternatively, you can use Chrome or chrome for that one site and use Firefox for everything else.

  • Is the rumor that I just read about the new versions of firefox, get attached to her true identity? If it is, WHY? Why would you ruin your browser privacy?

    It seems, confidentiality and integrity is under attack everywhere, even Firefox? I do not use firefox for something illegal, but I still enjoy my privacy. Then, is the true rumors?

    Yes, said exactly what Philipp. Also Klint, I was about to give you the same link you found in this blog post, but he felt old and I couldn't find a date anywhere on the page (I hate blog posts that have no dates!). But those are early concepts and a lot has changed since then.

    In any case, I found a great Youtube video explaining what Persona is here:

    http://pyvideo.org/video/1764/beyond-passwords-secure-authentication-with-Mozi-0

    And a few articles explaining more on Persona:

    https://support.Mozilla.org/en-us/KB/what-persona

    https://support.Mozilla.org/en-us/KB/what-is-persona-and-how-does-it-work

    The important thing to know is this is not compulsory and you are not deceived by an account. Also, there seems to be some confusion about what to call it: identity or Persona. The identity is the name of the team and Persona is the name of the project. Identity team and manages the connection of Persona project.

    I confused me myself and I hope that the good word (Persona) is used by the media in the future so that people can find information on Persona when they search.

  • liaison work not when you use EL for Hashtable keys

    Hi all

    Here's the scenario: I have an iteration of the external, in this iterator, a table and a PanelGroupLayout are generated; the PanelGroupLayout displayed or not displayed depends on a property in backing bean which is a hash table and touch which is based on the attribute of the external iterator, so access to the current item in the hash through table

    the key, he has incorporated EL; and inside the table, there are 2 radio buttons and each is bound to an instance of CoreSelectBooleanRadio using a hash table and key in this table is based on the same attribute of the external iterator (so same EL), the segment code looks like this:

    < tr:iterator var = "item" varStatus = "status" value = "#{bk_myBackingBean.subQuestions}" lines = '0' > ' "

    < tr:panelBox > <!-block test to check how to access the hastable value is OK->

    < tr:outputText value = "#{item.questionNumber}" / >

    < tr:outputText value = "#{bk_myBackingBean.dependent.medicalData.displayQ2Answers [item.questionNumber]}" / > <! - it's a good way to get the hastable value - >

    < / tr:panelBox >

    < trh:tableLayout >

    < trh:rowLayout >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 10px 0 10px 50px;  styleClass = "alignleft" >

    < label > < tr:outputText value = "#{item.questionLetter} #{item.description}" / > < / label >

    < / trh:cellFormat >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 0 0 10px 50px" styleClass = "alignleft" >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:selectBooleanRadio id = "Q2No" group = "question2 #{status.index}" text = "" autoSubmit = "true" inlineStyle = "border-width: 0px; »

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < tr:spacer width = "5px" / >

    < tr:selectBooleanRadio id = "Q2Yes" group = "question2 #{status.index}" text = 'Yes' autoSubmit = "true" inlineStyle = "border-width: 0px; »

    onclick = "removedRequiredError (this.ID)" "

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < / tr:panelGroupLayout >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:outputLabel id = "Q2Error" value = "#{bk_myBackingBean.dependent.medicalData.questionErrors [item.questionNumber]}" "

    styleClass = "error" / >

    < / tr:panelGroupLayout >

    < / trh:cellFormat >

    < / trh:rowLayout >

    < / trh:tableLayout >

    "" < tr:panelGroupLayout layout = "default" inlineStyle = "#{bk_myBackingBean. dependent.medicalData.displayQ2Answers [item.questionNumber]}".

    I checked the value of #{item.questionNumber} is just out of view it in the interface user as described above and also I tried to exit with a value in the hashtable and it is successfully recover and displayed in the user interface. (Those who are in the < tr:panelBox > block above) and the hastable displayQ2Answers is of type < String, String >. So far so good, but when I tried to link in what follows the radios and the PanelGroupLayout, he throws NullPointerException. But if I tried to link explicitly radio to an item in the hash table instead to use the key "" EL:

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2NoRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos ['q2a']} '

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2YesRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos ['q2a']} '

    then the page is rendered with success.

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type < String, String >, I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of < String, CoreSelectBooleanRadio > or < String , CorePanelGroupLayout > (this is not shown in the above code segment), the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. so apparently not caused by initialization

    . What follows is an overview of the data model, this is how I initialize the option button:

    public class MedicalInfo {}

    == getters and setters are defined but not shown here

    / / theare hash tables used to be linked to radio buttons

    Hashtable < String, CoreSelectBooleanRadio > q2NoRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    Hashtable < String, CoreSelectBooleanRadio > q2YesRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    / / these are the items that are stored in above hash for the actuall link tables

    private CoreSelectBooleanRadio q2aNoRdo = new CoreSelectBooleanRadio();

    private CoreSelectBooleanRadio q2aYesRdo = new CoreSelectBooleanRadio();

    and in the constructor, except for the hash for the binding tables:

    public MedicalInfo() {}

    ...

    q2NoRdos.put ("q2a", q2aNoRdo);

    q2YesRdos.put ("q2a", q2aYesRdo);

    ...

    }

    Where could I have missed or done wrong? Any hint is appreciated!

    Thank you

    Shawn

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type of , I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of or (this is not shown in the above code segment) the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. It is not caused by the initialization

    Well, #{number} is not resolved in the same phase as the 'binding' property ("compulsory" is resolved in the phase of restore view and variable "var" is resolved in the rendering phase).

    Dario

Maybe you are looking for

  • Re: I lost the key of windows of the Microsoft sticker

    I lost my windows key, which was written in the back of my laptop.In fact it is not visible now as the maptop is more than a year now. Is there anyway that I could find it?

  • Equium A110-252: the display on the external monitor resolution

    When I connect my LCD TV screen to my new satellite A110-252 using the external monitor port does not fit the image of the (too big) TV screen. I've tried everything on orders for establishment of TV screen but no joy. Surely, there must be an option

  • Apps Hang out sleep - Zbook 15

    Hello! I have a ZBook 15, running Windows 7 Enterprise 64-bit. I use it at work connected to a HP docking station, wireless and cable networks is turned on. I take home and use wireless only. I put the laptop to sleep between the two places. When I t

  • Error starting

    Hello First of all, sorry if I am posting this in the wrong section. If so, please redirect me to the right pair. Before I describe my problem, here are my pc specs: OS: Windows Home Edition SP3 32-bit CPU: Intel Pentium D 2.8 GHz MB: ASRock 775 Twin

  • Converts a URL string

    I need to convert a string to url in Labview. I found this in the example = box http://zone.NI.com/DevZone/CDA/EPD/p/ID/671 but this does not work on my Version 8.6... (it is made of 5) can someone post in version 8.6? TNX, K