Recommended phase for "check all" button

Hello,
I have a question about the recommended processing phase for an event listener that implements a "check all" button which fills a number of checkboxes on the page. Should this be in Apply Request Values, or later? And does my handler have to update only the checkbox model values, or also the checkbox UI components?
The best analogy in the cardemo example is to CarActionListener, which handles events for setting checkboxes and dropdowns in accordance with some standard car accessory packages like "luxury," "performance," etc. This event listener executes during Apply Request Values. But I doubt this is the recommended implementation, since it seems quite inefficient in other ways.
Specifically, I notice that the handling methods -- like processLuxury(), processPerformance(), etc. -- take it on themselves to modify not only all the model values for every car accessory, but also all the other UI components. Is this right? If the JSF framework is smart enough to maintain a binding between the model values and the UI components, can't I use that mechanism when I want one UI component to modify the state of other ones?
Thanks,
Alexis

Hello,
I have a question about the recommended processing
phase for an event listener that implements a "check
all" button which fills a number of checkboxes on the
page. Should this be in Apply Request Values, or
later? And does my handler have to update only the
checkbox model values, or also the checkbox UI
components?I would recommend having this listener run in Apply Request Values phase. Further, you want to make sure that your listener calls FacesContext.renderResponse() to cause the rest of the phases be skipped, so that the current page will be redisplayed.
The best analogy in the cardemo example is to
CarActionListener, which handles events for setting
checkboxes and dropdowns in accordance with some
standard car accessory packages like "luxury,"
"performance," etc. This event listener executes
during Apply Request Values. But I doubt this is the
recommended implementation, since it seems quite
inefficient in other ways.
Specifically, I notice that the handling methods --
like processLuxury(), processPerformance(), etc. --
take it on themselves to modify not only all the model
values for every car accessory, but also all the other
UI components. Is this right? If the JSF framework is
smart enough to maintain a binding between the model
values and the UI components, can't I use that
mechanism when I want one UI component to modify the
state of other ones?
The original code for Cardemo was written very early in the life of JavaServer Faces, and doesn't take advantage of all the newest features. This is one of the things we're reviewing before the next release, so that CarDemo illustrates the most recent recommended practices.
Thanks,
AlexisCraig

Similar Messages

  • Scripting for when all buttons are clicked

    Im quite new to flash well at least the scripting part of it.
    I'm much more of a designer and I'm having big problems I know that
    it is prob very simple but I am totally useless at it! Can some1
    please just point me in the right direction thank you xxx

    If you're testing in flash you should see some trace outputs
    in the output panel. If you don't then there's something not
    working right.
    When you press each of your buttons, you want the main
    timeline to go to a different frame right? You need to set those
    frame targets in the code.
    example for but_bat:
    {button:but_bat, gotoFrame:2},
    this sets things up so that when but_bat is pressed, the
    timeline goes to frame 2.
    You will need to set the others for their correct frame
    targets. Just change the numbers for gotoFrame:
    number here
    Is what you want to happen when
    all of the buttons have been clicked that a congratulations
    sign movieclip is played? (You haven't said what you wanted it to
    do at that point, so I'm afraid I couldn't know that ;-) ) At the
    moment I've set the script up so that it checks... but all it does
    is trace an output:'I would normally want to do something special
    from this point' where whatever you want to have happen when
    they're all pressed would be requested by actionscript. If you tell
    me what that is, I can tell you the code to do it.

  • In Earthlink Webmail, the "check all" and "delete" button for deleting multiple messages no longer function (although they work in I explorer).

    When using the webmail application for earthlink email, the "check all" option to select an entire page of messages at once no longer functions. Same problem with the "delete" buttons that are located at the top and bottom of the page with multiple messages. Consequently, the only way to delete a message is to open the message and delete it in that view -- extremely tedious if there are a lot of messages.
    This is a recent change, in the last few days. Everything works fine in I explorer. Earthlink support suggested I start Firefox in safe mode and restore firefox default settings. I went through the process on the help page. It didn't help.
    I'll provide the earthlink link, but it is my email page that is the problem.

    Same here.
    - select multiple mails with the SEARCH option (manually selecting seems to work fine)
    - click the move button
    - list of folders appears (witn account & cancel options that both still work)
    - click on a folder
    - mail flies to this folder (animated)
    - list of folders remains visible
    - the cancel button does NOT work
    - the accounts button takes you back to the root "directory" of your accounts
    - in my case "live" and "exchange"
    - this screen is a dead end. Clicking on both the account names and the cancel button do not work
    A complete restart fixes the problem

  • If I want to create a Listbox to run multple tests, how can I create a check all and clear all button for selection/​deselectio​n of all the tests

    create check all/clear all button for listbox

    Hi Arien,
    Parthabe is right, next time, try to create a new thread.
    So when others try to search for a topic, they can actually find it.
    I developed this example code that you can take a look at.
    It's using property nodes of the chart to control which plot to show and to force invisible
    Message Edited by Van_L on 03-06-2008 07:19 PM
    Van L
    NI Applications Engineer
    Attachments:
    choose plot.vi ‏25 KB

  • DVD "Play All" Button Only Works for Two Clips

    I have Castle Season 1 on my computer and thought it would be nice to create a DVD of all of them.  I have a "Play All" button and an "Episodes" Button.  Both seem to be registered as a button (Havn't linked the "Episodes" button yet)... I'm hoping to get the "Play All" button to do just that, play all of the episodes in a row, and to do that I have them linked by end action in a row with the last one going to the 'Last Menu'.  It works for the first two episodes and then when I click the next chapter button (In the built in DVD 'emulator') after the second episode it goes back to the menu.  To see if there was a difference in settings I switch between the first and second episodes to detect any setting changes, and there were none (Except the end action was set to different episodes).  I am at a loss on what is wrong.
    If screenshots or settings need to be posted just let me know, and I would be happy to post them.
    Thanks Ahead
    Windows 7 Home Premium 64 Bit
    Adobe Master Suite CS5
    AMD Phenom II B45 (Unlocked Athlon II x3 445)-Not the best CPU, but i'm on a tight budget
    4GB G. Skill 1600 DDR3 RAM
    GTX 460 OC'd
    60GB SSD Boot Drive
    1TB HDD (1x250GB, 1x750GB)

    Glad that Playlist worked for you.
    1.) The buttons don't animate when selected.  On a DVD player, there would be no way to tell the difference on what I had selected, is there any way to remedy that?
    In the Menu Editing Panel>Properties>Motion area, you can check Animate Buttons. This will show the Thumbnails as animations.
    For telling the user which Button has been navigated to, one uses Sub-picture Highlights, which are only 2-bit color. Are you using a Library Menu? If so, which one? If it's a Library Menu, the Buttons should have the Sub-picture Highlights Layer in each Buttons Layer Set. If you created the Menu from scratch, did you add a Sub-picture Highlight?
    2.) I want to add a video clip that will blend into the main menu, how would I go about doing that?
    I do this often. First, I will go into Photoshop, and make a Flattened copy of my Menu, with the Sub-picture Highlight that the user will see (see above), visible. This will then be used in PrPro, as a Freeze Frame. In PrPro, I create the Video file that I want, and at the end, just add that Flattened PSD "Freeze Frame" from the actual Menu. This next part takes just a touch of math, but hang in there with me. We want a seamless transition from that Video to the Menu, so will use a Cross-Dissolve Transition between the Video on the Timeline and the Freeze Frame. We need to set the Duration of that Freeze Frame to just slightly longer than one-half of the Duration of that Cross-Dissolve. All we want is for the full Freeze Frame to be on-screen for a couple of Frames, as the Buttons will be dissolving in, and we do not want the user to begin pressing them yet, as they are NOT real Buttons, but just a graphic of the Buttons. I leave ~ 3 Frames, past the Transition. Remember, when you create that Freeze Frame in Photoshop, you want to make sure that the default Button's Sub-picture Highlight is exactly as the user will see it, when the real Menu comes up.
    Export this Video (w/ that Freeze Frame at the end) from PrPro, as say a DV-AVI, and Import it into En as a Timeline. Set that Timeline to First Play, and its End Action to go to your real Menu.
    3.) My C:// Drive is very small (60GB) as its just a boot drive SSD.
         -3a.) Can I delete the cache without harming my saved encore file? (I only have 1GB left, and my system keeps acting up because of it)
         -3b.) Is there a way to set the media cache to a different drive (I have three, and since using After Effects/Encore/Premiere the free space is shrinking at an alarming rate )?
    This is a bit tricky. Do you ONLY have the one physical SSD? If so, you will seriously want to look into adding more. You can clear the Media Cache files (do not Delete the folders though), however, En will recreate them, when you begin working on the Project. HDD's are cheap, and for Video editing and authoring HDD real estate is very important. If you have more than the one SSD drive, please give us the full details of your HDD's, and how you are using them.
    Good luck, and hope that this helps,
    Hunt

  • I downloaded the accept all request for facebook but when I go to the game requests page there is no accept all button. What do I need to do to get this to work?

    I have closed out of facebook and reentered but there is still no accept all button on game request page. I checked on add-on and it says it is enabled but is not there. I need to know what to do to get this to appear/work on facebook.

    If you have firewall/anti-virus software running turn them off.  With your iPad connected to your computer via USB and with iTunes open, once your iPad is recognized on the left side of the iTunes screen, look to the right and you should see a box that says Check For Software Update.  Click on that and iTunes should start the process of updating your software.  Please note that the process of updating to iOS 5 or higher is not a short process.  It takes time, so make sure you have enough time and you can stay there with your iPad and your computer to guide the process.

  • I know my network connection is fine and I've checked all the cables and that the tv is set to the correct source, but even though Apple Tv is on and responds with beeps when I hit the button, I see nothing on the screen. What do I do next?

    I know my network connection is fine and I've checked all the cable connections and my television is set to the correct input, but even though the remote beeps when I hit the button, I see nothing on the screen. The troubleshooting section in the setup guide says to make sure that Apple Tv is connected to my network by choosing Settings>General>Network. How do I do this? What do I need to do to get everything back? I've been using the Apple tv for a while now, and suddenly it's doing this.

    This is the iPod touch forum. I requested your posted be moved to the Apple TV forum
    Using Apple TV

  • Save All button for dynamic form

    Hi All,
    I haven't used coldfusion for a while and I am a little stuck getting my head around a problem I have occured.  I have taken a project over from one of my colleagues so the coding is not my own. See code below....
    <cfif isdefined("btnSubmit")>
         <!--- DO INDIVIDUAL UPDATE CODE HERE --->
    </cfif>
    <cfoutput query="getList">
         <cfform name="fmUpdList99_#applicationid#" action="list99.cfm">
              Clear:       <cfinput type="Radio" name="result" checked="No" value="CLEAR">
              Match:     <cfinput type="Radio" name="result" checked="No" value="MATCH">
              N/A:         <cfinput type="Radio" name="result" checked="No" value="NA">
              <input type="submit" name="btnSubmit" value="Save" />
         </cfform>
    </cfoutput>
    Now this works perfectly if I want to click on a submit button per row and save each row individually.... But what the user wants is the option to have a save all button which loops through each row and does the update code for all rows (rather than individually) depending on what is selected in the radio buttons.
    Sorry if I haven't described my problem to well, its just I haven't used CF for a while now and trying my best to get back into it.
    All apprciate all the help you can give.
    Thanks,
    George

    How would I syntax it to use my variable:  #form["result"&ilist99id]# to use in conjuction with the method StructKeyExists ???
    What did you try, and what were the results?
    Did you have a look @ the docs:
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f bb.html
    Did they not make sense?
    This is the key text from the docs:
    Function syntax
    StructKeyExists(structure, "key")
    Parameters
    Parameter Description
    structure
    Name of structure to test
    key
    Key to test
    Usage
    This function can sometimes be used in place of the IsDefined function, when working with the URL and Form scopes, which are structures. The following pieces of code are equivalent:
    cfif IsDefined("Form.JediMaster")>
    <cfif StructKeyExists(Form,"JediMaster")>
    I suspect Ray Camden wrote this part of the docs... ;-)
    So given all that... how would you use structKeyExists()?
    The chief questions are:
    * which part of your variable is the structure?
    * which part of your variable is the key?
    Adam

  • I can't get FaceTime or iMessage to connect, I enter valid password (tested and works for Apple account) and it won't connect. I have checked all settings, upgrades iOS to 8.3 rebooted, changed Apple acount PW still wont connect. My internet connecti

    I can't get FaceTime or iMessage to connect, I enter valid password (tested and works for Apple account) and it won't connect. I have checked all settings, upgrades iOS to 8.3 rebooted, changed Apple acount PW still wont connect. My internet connection is fine Safari works and I can access all sites. I have an iPad 2. Any help on this will be greatly appreciate.  iPad 2, iOS 8.3

    This is an ongoing problem as you will see by searching the forum. 
    Out of curiosity, do you have 2 step verification enabled?  It was recently extended to include iMessage & FaceTime & I'm wondering if it might be causing some of the issues that some users are experiencing.

  • Have Ipod Touch 2nd Gen. I noticed that my music will not play alphabetically anymore. Don't know exactly when this occured. I checked all my settings so doesn't seem to be that.Apple no longer is upgrading this unit..Thank u for your help.

    Have Ipod Touch 2nd Gen. 64 gig. I noticed that my music will not play alphabetically anymore. Don't know exactly when this occured. I checked all my settings so doesn't seem to be that.Apple no longer is upgrading this unit..I use windows XP but don't believe this is an issue since i have read posts saying this is not the problem..right now am converting my higher bit rate music to see if that changes anything. I also turned off my unit and the next thing am going to do is a restore if this doesn't work. Anyone find a fix for this yet? I also see that this is not a unique problem to Gen 2 units and is occuring on newer units as well..thank you all for any advise...

    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             

  • I want to check all functions of PCI 6534.I have read the user manual..I have some memory related questions.​Please help me for that.

    I want to check all functions of PCI 6534.I have read the user manual..I have some memory related questions.Please help me for that.
    1.)If i am using the continuous output mode.and the size of generated data is less than 32 MB.If i want to preload the memory,what should i do?I want that first of all i load all my data to onboard memory & then i want to make start the transfer between 6534 & peripheral.Is it possible?As per me it should be.Plz tell me how should i do this?I think that in normal procedure the transfer between 6534-peripheral & outputting data from pc buffer to onboard memory works parallely.But i don't want this.Is it poss
    ible?
    (2).Similarly in finite input operation(pattern I/O) is it possible to preload the memory and then i read it?Because i think that the PC memory will be loaded automatically when 6534 acquires the data and then when we use DIO read vi the pc buffer data will be transferred to application buffer.If this is true,i do not want this.Is it possible?
    (3) One more question is there if i am using normal operation onboard memory will be used bydefault right?Now if i want to use DMA and if i have data of 512 bytes to acquire.How will it work and how should i do it?Please tell me the sequence of operations.As per my knowledge in normal DMA operation we have 32 Bytes FIFO is there so after acquisition of 32 bytes only i can read it.How it will known to me that 32 bytes acquisition is complete?Next,If i want to acquire each byte separately using DMA interrupts what should i do?Provide me the name of sourse from which i can get details about onboard memory & DMA process of 6534 specifically
    (4).In 6534 pattern Input mode,if i want to but only 10 bits of data.and i don't want to waste any data line what should i do?

    Hi Vishal,
    I'll try to answer your questions as best I can.
    1) It is definitely possible to preload data to the 32MB memory (per group) and start the acquisition after you have preloaded the memory. There are example programs on ni.com/support under Example Code for pattern generation and the 6534 that demonstrate which functions to use for this. Also, if your PC memory buffer is less than 32MB, it will automatically be loaded to the card. If you are in continuous mode however, you can choose to loop using the on-board memory or you can constantly be reading the PC memory buffer as you update it with your application environment.
    2) Yes, your data will automatically be loaded into the card's onboard memory. It will however be transferred as quickly as possible to the DMA FIFO on the card and then transferred to the PC memory buffer through DMA. It is not going to wait until the whole onboard memory is filled before it transfers. It will transfer throughout the acquisition process.
    3) Vishal, searching the example programs will give you many of the details of programming this type of application. I don't know you application software so I can't give you the exact functions but it is easiest to look at the examples on the net (or the shipping examples with your software). Now if you are acquiring 512 bytes of data, you will start to fill your onboard memory and at the same time, data will be sent to the DMA FIFO. When the FIFO is ready to send data to the PC memory buffer, it will (the exact algorithm is dependent on many things regarding how large the DMA packet is etc.).
    4) If I understand you correctly, you want to know if you waste the other 6 bits if you only need to acquire on 10 lines. The answer to this is Yes. Although you are only acquiring 10 bits, it is acquired as a complete word (16bits) and packed and sent using DMA. You application software (NI-DAQ driver) will filter out the last 6 bits of non-data.
    Hope that answers your questions. Once again, the example code on the NI site is a great place to start this type of project. Have a good day.
    Ron

  • Running snow leopard on MBP and am not getting an sound alerts for Mail or Calendar; Have checked all setting in sound in the system preferences

    Running snow leopard on MBP and am not getting an sound alerts for Mail or Calendar; Have checked all setting in sound in the system preferences

    Hi..
    For Mail, from your Mail menu bar (top of your screen) click Mail > Preferences then select the General tab.
    Click the pop up menu to the right of New messages sound to make a selection.

  • I need a script to help me check all the AD Computers for a certain file.

    What I'm looking for is a script that I can use to check all the AD computers in my domain for a file that was created by Malware. It would be great if the script could export the results as a csv and have a column for the computer name, IP address, and
    if the file/path exists.
    I'm new to Powershell and I've been trying to script it on my own but no luck so far. I would be extremely great-full for any help, or a point in the right direction.
    I messed around with different commands:
    I'm not sure if I should be using test-path or get-childitem with recursive and wildcards.
    This is a sample of what I'm working with... I know it probably horrible but like I said I'm new.
    $date = [DateTime]::Today.AddDays(-90)
    $AllComps = get-adcomputer -filter {(Enabled -eq 'true') -and (lastlogondate -gt $date)} | select name
    $Allcomps = $AllComps[100..125]
    foreach ($ADcomputer in $AllComps)
    function check-remotefile {
        PROCESS {
                    $file = "\\$_\C$\Windows\notepad.exe"
                    if (test-path $file)
                    echo "$ADcomputer: .exe exists"

    You fail to ask a question.  What is it you do not know or understand?
    Start simple and learn how to best post code:
    $date=[DateTime]::Today.AddDays(-90)
    Get-adcomputer -filter 'Enabled -eq $true -and lastlogondate -gt $date' |
    Where{test-path "\\$($_.Name)\C$\Windows\notepad.exe"} |
    ForEach-Object{echo "$($_.Name): .exe exists"}
    Learn the basics. The pipeline is you friend.
    ¯\_(ツ)_/¯

  • HT201272 I can't fine the "check for available downloads" button anywhere and I want to download an album I preordered

    I can't fine the "check for available downloads" button anywhere and I want to download an album I preordered

    It should be under the Store menu on your computer's iTunes :
    If you are using your phone then does it show in the Purchased tab in the iTunes store app on it for downloading ?

  • What is Oracle's recommendation of enabling a 3rd Party application for Online Patching? Is this a requirement with EBS R12.2 or is this something that can be done in phases for e.g.:

    Hello -
    My Oracle Partner account uses Oracle EBS, Fusion Apps and is in the process of migrating from 10g to 11g;  forwarding their question here -
    What is Oracle’s recommendation of enabling a 3rd
    Party application for Online Patching? Is this a requirement with EBS R12.2 or
    is this something that can be done in phases for e.g.
    Phase 1: Oracle EBS utilizes Online patching while
    the 3rd Party application does not leverage edition based
    redefinition for Online patching
    Phase 2: 3rd Party application is modified
    to leverage edition based redefinition Online patching mechanism.
    I would appreciate any insight/recommendations you may have
    regarding Online patching for EBS 12.2.

    This seems to be related to EBS an may be better answered in the EBS forums as this forum is dedicated to Fusion.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

Maybe you are looking for