Clicking on a t:selectBooleanCheckBox gives exception

hi ,
I need some help with the jsf h:selectBooleanCheckBox. My scenario is i have a link in my t:dataTable header . so whenever i click on that link a popup shows up with a list of checkboxes . whenever i click on any of those checkboxes in the popup and click submit button the user should be navigated to the main page generating a new column for that checkbox value. I get a null pointer exception when i click on those checkboxes and hit submit. This is how i am implementing the logic. This logic works for me when the checkboxes and on the jsp instead of a popup. Please help.
code in my jsp
<h:outputLink styleClass="tips" value="#AGselectPopup" rel="#AGselectPopup" title="Select Access Groups For This View"><t:outputText value="Access Groups..." />
My popup div
<h2 class="accessibility">Show only: Access Groups</h2>
<div class="noDisplay" id="AGselectPopup">
          <h:form styleClass="radioCheckGroup" >     
           <h:panelGroup>
                        <fieldset id="popupAGs">
               <legend class="accessibility">All Access Groups for this company</legend>
                  <t:dataList id="row" var="ag" layout="unorderedList"
                             value="#{manageuserscontroller.popupAGList}" >
                          <t:selectBooleanCheckbox id="checkbox3" value="#{manageuserscontroller.selectedAGIds[ag.accessGroupID]}" rendered="#{ag.accessGroupID!= manageuserscontroller.accessGroupID}"/>
                          <t:outputText style="font-weight:bold;" id="text2" value="#{ag.name}" /><t:outputText value="(default)" rendered="#{ag.accessGroupID== manageuserscontroller.accessGroupID}" />
                         </t:dataList>
              </fieldset>
          <div class="clr"><!-- --></div>
      </h:panelGroup>     
       <f:verbatim> <br /> </f:verbatim>
<t:saveState value="#{manageuserscontroller.accessGroupID}" />Backing bean code
private Map<Integer, Boolean> selectedAGIds = new HashMap<Integer, Boolean>();
   public void getSelectedAGItems(ActionEvent event) {
        // Get selected items.
      System.out.println("Inside selected AG Items method");
      System.out.println("Access group ID in selected AGItems method" + accessGroupID);     
     System.out.println("Selected AG list" + popupAGList);     
     selectedAGList = new ArrayList<AccessGroup>();
      for (AccessGroup accgrp : popupAGList) {
            System.out.println("inside for loop");
            int x = accgrp.getAccessGroupID();
            System.out.println("accessgroupid" + x);
     *if (selectedAGIds.get(x).booleanValue()) {*
                selectedAGList.add(accgrp);
                System.out.println("OK-user added to selected AG list");
                System.out.println("Accessgroup id" + accgrp.getAccessGroupID());
                System.out.println("Accessgroup name" + accgrp.getName());
           else
                System.out.println("Accessgroup not selected");
      }I get the nullpointer exception at this line if (selectedAGIds.get(x).booleanValue())
Please someone help when since i am struck with this and cann't go ahead with my task
Thank You so much in advance

You can try these steps in case of issues with web pages:
You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Hold down the Shift key and left-click the Reload button
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (Mac)
Clear the cache and remove cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Similar Messages

  • Since trying to update yesterday, my computer won't download any updates and itunes 11.1 says "Internal Error" and gives me the following info when I click on a song or podcast: Exception Name: NSInvalidArgumentException Description: -[_NSConcreteUserNoti

    Since trying to update yesterday, my computer won't download any updates and itunes 11.1 says "Internal Error" and gives me the following info when I click on a song or podcast:
    Exception Name: NSInvalidArgumentException
    Description: -[_NSConcreteUserNotification activationType]: unrecognized selector sent to instance 0x25a06b0
    User Info: (null)
    0   CoreFoundation                      0x922216fb __raiseError + 219
    1   libobjc.A.dylib                     0x920108db objc_exception_throw + 230
    2   CoreFoundation                      0x9222563d -[NSObject(NSObject) doesNotRecognizeSelector:] + 253
    3   CoreFoundation                      0x9216af77 ___forwarding___ + 487
    4   CoreFoundation                      0x9216ad22 _CF_forwarding_prep_0 + 50
    5   iTunes                              0x00df38e2 iTunes + 14624994
    6   iTunes                              0x00df36ae iTunes + 14624430
    7   libobjc.A.dylib                     0x9201c6c5 -[NSObject performSelector:withObject:withObject:] + 77
    8   Foundation                          0x93c12d85 -[_NSConcreteUserNotificationCenter _sendDelegateMessage:sendToAppDelegate:withNotificationFromMessage:] + 335
    9   Foundation                          0x93c12eaf -[_NSConcreteUserNotificationCenter _notificationPresentedMessage:] + 58
    10  Foundation                          0x93c137c2 __block_global_1 + 156
    11  libdispatch.dylib                   0x9371b2cf _dispatch_call_block_and_release + 15
    12  libdispatch.dylib                   0x9371ea80 _dispatch_client_callout + 46
    13  libdispatch.dylib                   0x9371c8e8 _dispatch_main_queue_callback_4CF + 223
    14  CoreFoundation                      0x9211b255 __CFRunLoopRun + 1829
    15  CoreFoundation                      0x9211a7c4 CFRunLoopRunSpecific + 308
    16  CoreFoundation                      0x9211a67b CFRunLoopRunInMode + 123
    17  HIToolbox                           0x90b6fc76 RunCurrentEventLoopInMode + 242
    18  HIToolbox                           0x90b76eb9 ReceiveNextEventCommon + 374
    19  HIToolbox                           0x90b76d34 BlockUntilNextEventMatchingListInMode + 88
    20  AppKit                              0x97621923 _DPSNextEvent + 709
    21  AppKit                              0x97621167 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
    22  AppKit                              0x9761d78c -[NSApplication run] + 855
    23  iTunes                              0x0017a898 iTunes + 1546392
    24  iTunes                              0x0017a709 iTunes + 1545993
    25  ???                                 0x00000002 0x0 + 2

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • AMFConnection never give exception,why?

    This is my simple code
    import flex.messaging.io.amf.client.AMFConnection;
    import flex.messaging.io.amf.client.exceptions.ClientStatusException;
    public class AMFClient {   
        public AMFClient() {        
        public static void main(String[] args) {        
            AMFConnection amfConnection = new AMFConnection();
            String url = "http://192.168.0.199:9081/testApp/messagebroker/amf";       
            System.out.println("AMF Client Test");
            try
                amfConnection.connect(url);
            catch (ClientStatusException cse)
                System.out.println(cse);
                return;
    The program never give exception if I give a non-existed url,why?Please help
    Thanks
    Mark

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server.

    Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server. I have to click the link several time before it will load and sometimes when they do load it does not show the page right. It is like the HTML is messed up or something. I have tried everything I can think of. I started in safe mode, still did it., I removed add-ons, still did it., I reset Firefox and still did it., I completely uninstalled Firefox and re-installed Firefox and it still does it. I have tried Malware Bytes Anti-Malware scans and Avast boot-time scans and found no malware or viruses. I have found that those websites open the first time with no problems on my IE9 and they used to do so in Firefox 26.0. I'm at my wit's end. The website links are in my bookmarks and are used all the time so they are trusted and my avast is set to allow them. They range from news websites to gun websites and everything I have read says that Mozilla does not filter those unless something has changed recently.

    Try this as a first step;<BR><BR>
    Clear the Cache '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''<BR><BR>
    and<BR><BR>
    Remove Cookies '''''Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"'''''<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    While you are in safe mode;
    '''''Firefox Options > Advanced > General'''''. Look for and turn off '''Use Hardware Acceleration'''.

  • How do I access the End User Licensing Agreement? I clicked on it and it gives me a message that I need to launch Adobe Reader, accept and close and reopen. Trouble is I can't get to an icon for file to launch. I am working on a Mac and have installed Mac

    I am using a Mac and have installed Adobe Reader for Mac, latest version. I cannot access the End User Licensing Agreement. I clicked on it and it gives me a message that I must launch Adobe, check that I agree, close and reopen. The problem is I can't find any way to launch Adobe because it appears nowhere on my launch pad, nor in my document files or on the control panel. Because of this, I cannot print bank statements nor can I get into my insurance companies billing department to make a payment. HELP!

    How about in your Applications folder?

  • It says that i forces quit last time and askes if i want to reopen the window, then i click reopen and then it gives me the spinning ball

    it says that i forced quit last time, and askes if i want to reopen the window, then i click reopen and then it gives me the spinning ball. Then i have to force quit again.

    Can you give us more info about this?
    Name of the application?
    What happens if you restart the computer?

  • Photo clicked with flash does not give clear image

    photo clicked with flash does not give clear image

    I did some more testing with this, and it appears to be a Gmail problem with iOS iPhoto.
    I called Apple support, and this issue was escalated to engeneering.
    When sending photos from iPhoto for iOS via Gmail from the iOS device, only the small and medium sized photos can be opened in Mail on the iOS device.  The large and original photos do not open in Mail.
    This occured across different devices I tested, including iPad 2, 3, and 2 separate iPhone 4S devices.  All were updated to the lastest firmware.  iPhoto was uninstalled, and reinstalled.
    When sending and receiving photos from iPhoto for iOS via iCloud me.com email servers, all the photos of different sizes could be opened in Mail fine on the iOS devices.
    It appears that Gmail servers somehow change the way the photos are encoded, and make them not viewable on the iOS device.  Very disappointing, since the native Mail program has no problem, and photos sent via gmail or other are fine.
    Another iPhoto for iOS glitch!

  • I have been trying to update Bridge CC and it immediately goes to update failed - learn more which I click on and all it give me is download error. retry or contact customer support(49). I have retried about 5 times now. All other updates finished success

    I have been trying to update Bridge CC and it immediately goes to update failed - learn more which I click on and all it give me is download error. retry or contact customer support(49). I have retried about 5 times now. All other updates finished successfully,

    Hi Dennis,
    Please refer to the thread below where this issue has been addressed:
    Bridge Update failed customer support(49)
    Updates failing from CC errors U44M1l216 and 49 - anyone else getting these?
    Installation succeeded but a patch failed
    Regards,
    Sheena

  • PreparedStatement in batched mode gives Exception

    Hi
    I have a problem.
    I am running PreparedStatement in batched mode, actually I am using Springs BatchSQLUpdate component.
    Now i am creating a batch of about 10000 inserts / updates. However if any single of these inserts / updates fails, it gives exception with DataIntegrityViolation, BadSQLGrammer etc.
    I am also maintaining a parallel cache of the values that I am using to bind the preparedstatements.
    So for statement 1 in the batch, i know what values are being used.
    My question is when the batch update fails, how can we identify which SQL statement, i mean which index in the batch caused the issue?
    Please help me as I am stuck and need to build some robust exception handling for PreparedStatement batch loads.
    Niki

    Niki-Nono wrote:
    The insertPreparedStatements.get() in my code returns a BatchSqlUpdate object which has already been assigned a statement and also have passed the array of object values to it.
    I have done this using batchSqlUpdate.update(objects); where objects is an array of values.
    THe code block that I executes the flush(). This throws an exception. In some cases it is a BadSQLGrammerException for cases where we try to insert alphabets in integer columns or in some cases DataIntegrityViolation where the batch has 2 sets of values with same primary key.
    The results array is null when i check the value in the catch block.
    And the flush() does not proceed with execution of the complete batch in fact it aborts when even 1 statement fails.
    I hope it is clearer now.
    However, if all the statements go through, I have seen that the results array has correct values as to how many rows were updated / inserted.
    Please let me know.OK, I really wasn't sure about what it did on flush, as there's no explicitly stated exception and nothing in the method description. The array will be null since it hasn't been set with the return value from flush since an exception was thrown.
    From what I can tell this Spring class uses, under the hood, the batch functionality from JDBC. So the particular exceptions you;re getting will have started life as SQLExceptions...which themselves will be of the BatchSQLException I mention in my first post. I'm wondering if the Spring exceptions contain the SQLException. I would hope so, and I have a vague recollection that the original is wrapped so you should be able to do something along the lines of:
    catch (DataAccessException ex)
        SQLException ex = ex.getCause();
        if (ex instanceof java.sql.BatchUpdateException)
            // Get the info from here.
    }Now, this is only a concept, and I haven't tested it or anything, but I would hope something along these lines should get you to the data you're after.

  • HT1390 I rented a movie and it shows up in my iTunes "Rented" section, but when I click to play it, it gives me an error message saying the movie can't be played because the original file can't be found. Please help!

    I rented a movie and it shows up in my iTunes "Rented" section, but when I click to play it, it gives me an error message saying the movie can't be played because the original file can't be found. Please help!

    Never mind I fixed it. Just in case anyone else has this problem, after you reinstall iTunes you have to delete all your old music, and if you have iTunes match all the songs you have saved on itunes match will display and you just have to download them to your Macbook.

  • Can an image in the slideshow widgets be moved around inside the bounding box as can be in a normal image placed into Muse (double clicking on a placed image gives the functionality to move the image around - as per Indesign functionality)

    Can an image in the slideshow widgets be moved around inside the bounding box as can be in a normal image placed into Muse (double clicking on a placed image gives the functionality to move the image around - as per Indesign functionality)

    Can an image in the slideshow widgets be moved around inside the bounding box as can be in a normal image placed into Muse (double clicking on a placed image gives the functionality to move the image around - as per Indesign functionality)

  • Button actionListener gives exception

    Dear All,
    I have created a sample page in jsf2.0 in netbeans6.9 which gives me following error when i click the submit button.. I am quite confused because my code seems correct.
    registration.jsp
    <h:form>
    Name:
    <h:inputText value="#{loginBean.userName}" label="Name"></h:inputText>
    <h:message for="Name" ></h:message>
    Password:
    <h:inputSecret value="#{loginBean.password}" label="Password"></h:inputSecret>
    <h:message for="Password" ></h:message>
    <h:commandButton value="Login" actionListener="#{loginBean.processAction}">
    </h:commandButton>
    </h:form>
    faces-config.xml
    <faces-config>
    <managed-bean>
    <managed-bean-name>loginBean</managed-bean-name>
    <managed-bean-class>com.beans.LoginBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    </faces-config>
    backing bean class
    package com.beans;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.AbortProcessingException;
    import javax.faces.event.ActionEvent;
    import javax.faces.event.ActionListener;
    public class LoginBean{
    private String userName;
    private String password;
    /** Creates a new instance of LoginBean */
    public LoginBean() {
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    public String getUserName() {
    return userName;
    public void setUserName(String userName) {
    this.userName = userName;
    public void processAction(ActionEvent event) {
    if(userName.equals("sa") && password.equals("sa")){
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Login sucessfull."));
    Exception
    org.apache.jasper.JasperException: /registration.jsp(31,12) A literal value was specified for attribute actionListener that is defined as a deferred method with a return type of void. JSP.2.3.4 does not permit literal values in this case
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    Please can any one put some light in this problem..
    Regards,
    Santosh
    NetBeans IDE 6.9.1
    Server : Apache Tomcat 6.0.29

    I don't see anything wrong. The problem may be somewhere else, such as in the deployment or in the web.xml.

  • "unlock your luck" site just appeared on my computer and now its frozen. It has a click on that wants to give me 25 free tokens. What do i do

    I was looking at a site for window shades when I was closing it another site called "unlock your luck" appeared and I can't get out of it.A small window appeared saying their agents want to give me 25 free tokens. I can't close down the computer or esc.

    Force Quit Safari.
    Press command + option + esc keys together at the same time.
    Wait.
    When Force Quit window appears, select Safari if not already.
    Press Force Quit button at the bottom of the window.
    Wait.
    Safari will quit.
    If this does not help, press the power button for 10 or more seconds.
    Computer will shut down.
    Restart.
    Hold the shift key down and launch Safari.
    Reset Safari.
    Click Safari in the menu bar.
    From the drop down select "Reset Safari".
    Uncheck the box next to  " Remove saved names and passwords".
    Click "Reset".
    Empty Caches
    Safari > Preference > Advance
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.

  • Right clicking my iDevice in iTunes gives old restore options

    I just noticed that if I right click my iPhone in my Mac's iTunes and selecting restore, it gives me options for a bunch of very old backups, along with one undated backup (the one from this morning)
    Further checking, I see that I can't even select restore that way with my iPad.    I just tried again, and it tells me I need to turn off "Find My iPad before restoring", even though it is backed up to my Mac.
    I wish to have previous backups available, but how do I control them?
    (All of my software and firmware is current)

    Interesting.   I just tested this out by restoring my current backup then checking.   This particular backup is now available.    A clumsy way of doing things, but now I can have a useful backup.   It does no good to discover I need a backup, only to find out that I backed up a bad copy this morning.
    So once a week, I will restore my iDevices right after the morning backup.   Very unintuitive and time consuming.
    Is there a way to delete old backups I no longer want (or maybe can't even use)?

  • POTS Sample gives exception

    I am trying to follow the POTS Sample code, specifically the PotsOrderConsumer class. This compiles but when invoked gives the following error:
    Exception creating order:153:Request parameter error:No legacy data found.  Namespace and Version need to be supplied.
    How do I specify the Namespace and Version?
    Many thanks
    ~Richard

    Hi Joseph
    Thanks a lot !!
    Now I am able to run that application till card request is acceping for localsystems if i run sample demo jcwde jcwde.app.Now i need info that i am using ChipDrive Micro 100 card reader and microprocessor card (MPCOS EMV)on my windows2000 machine.I installed the relavant PC drivers .Just i want to check this ReadFile application with my card.what all i need to do.

Maybe you are looking for

  • Deleted or Archived Items are not Reconciling

    Hello all It's 6 months I am dealing with a problem that my company IT doesn't seem to be able to resolve. We have tried multiple enterprise reactivations without being able to change anything. It worked all fine the first months, but here is what's

  • Influence Status in SXI_Monitor

    Hi experts. I have a configuration scenario with a BMP. I the BPM i preform a few checks on the sent message. My goal is to find a way to influence the message status in sxi_monitor from the BPM without stopping the queue of the messages. Is it possi

  • Dropdown List in report program

    Hi Anybody send me the Dropdown list coding for a parameter in s selection-screen of a normal report program without using a module-program regards paul

  • Error in forwarding to other jsp page

    HI , I am trying to move from one page to other page by using jsp:forward. I get the following error. what might be the problem. java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688) at org.ap

  • TS1389 can't get into Itunes from my desktop icon.  itunes is listed in my programs list but can't bring it up

    two problems this morning.  I can't get into itunes from my desktop icon.  previously I've not been able to download a book to my ipod nano.  it shows in the audiobooks menue and in "purchased" but can't download.  Help  thanks,