Help! Checkbox on Table not working

Help! I can't use a checkbox on a table to select rows.
I don't know what I'm doing wrong, I exactly followed very tutorial there is and all won't work. First I tried the one described by the Tutorial Divas, but couldn't get it to work.
I followed all the steps: add a HashSet to SessionBean1, then add a selected property of typ boolean and than set the selected property of the checkbox to the property in the SessionBean1 (selected). I changed the isSelected and setSelected methods, so they work with the HashSet.
But when I select some checkboxes in the table, the HashSet is still empty... When debugging I saw, that the SetSelected method is never called (althougt isSelected is called). Why is that? I couldn't find detailed information on the matter. I looked at the Table_Component_example, but there a bit different approche is used, with a TablePhaseListener.
I also read the part in Winston's blog, but that didn't really add anything and I tried the example described in the JSC Field Guide.
Finally some code:
public boolean isSelectedObservationPoint() {
        TableRowDataProvider rowData = (TableRowDataProvider) getBean("currentRow");
        if(rowData == null) return false;
            RowKey rowKey= rowData.getTableRow();
            if(selectedObservationPoints.contains(rowKey)) return true;
            else return false;
public void setSelectedObservationPoint(boolean selectedObservationPoint) {
        TableRowDataProvider rowData = (TableRowDataProvider) getBean("currentRow");
        RowKey rowKey= rowData.getTableRow();
        if(selectedObservationPoint){
            this.selectedObservationPoints.add(rowKey);
        else {
            this.selectedObservationPoints.remove(rowKey);
    }So the only thing is, that I changed the iterating over the Hashset to contains call (why wasn't that used in the first place?) But that can't really be the problem, as I doesn't do anything... SetSelected is never called (at least not when debugging).
Is there something I missed? Could this be a problem, that the table itself a rather complicated grid-layout?
Thanks

The JSP:
<ui:table augmentTitle="false" binding="#{createConfig.observationPointTable}" id="observationPointTable"
                                    style="height: 121px" title="Observation Points" width="958">
                                    <script></script>
                                    <ui:tableRowGroup binding="#{createConfig.tableRowGroup1}" id="tableRowGroup1" rows="3"
                                        selected="#{createConfig.selectedObservationPoint}" sourceData="#{SessionBean1.observationDataProvider}" sourceVar="currentRow">
                                        <ui:tableColumn binding="#{createConfig.tableColumn1}" headerText="ID" id="tableColumn1" sort="id">
                                            <ui:staticText binding="#{createConfig.staticText1}" id="staticText1" text="#{currentRow.value['id']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{createConfig.tableColumn2}" headerText="DomainId" id="tableColumn2" sort="domainId">
                                            <ui:staticText binding="#{createConfig.staticText2}" id="staticText2" text="#{currentRow.value['domainId']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{createConfig.tableColumn5}" headerText="Type" id="tableColumn5" sort="type">
                                            <ui:staticText binding="#{createConfig.staticText5}" id="staticText5" text="#{currentRow.value['type']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{createConfig.tableColumn4}" headerText="Parameters" id="tableColumn4" sort="parameters">
                                            <ui:staticText binding="#{createConfig.staticText4}" id="staticText4" text="#{currentRow.value['parameters']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{createConfig.tableColumn20}" headerText="Next Processes" id="tableColumn20" sort="nextInfo">
                                            <ui:hyperlink action="#{createConfig.observ_next_action}" binding="#{createConfig.observ_next}" id="observ_next" text="#{currentRow.value['nextInfo']}"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{createConfig.tableColumn21}" headerText="Edit" id="tableColumn21" width="25">
                                            <ui:button action="#{createConfig.edit_Observationpoint_button_action}"
                                                binding="#{createConfig.edit_Observationpoint_button}" id="edit_Observationpoint_button" text="Edit"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{createConfig.tableColumn22}" headerText="Remove" id="tableColumn22">
                                            <ui:button action="#{createConfig.remove_observation_point_action}"
                                                binding="#{createConfig.remove_observation_point}" id="remove_observation_point" text="Remove"/>
                                        </ui:tableColumn>
                                        <ui:tableColumn binding="#{createConfig.tableColumn23}" headerText="Add to Config" id="tableColumn23" onClick="setTimeout('initAllRows()', 0)" selectId="checkbox2">
                                            <ui:checkbox binding="#{createConfig.checkbox2}" id="checkbox2" selected="#{createConfig.selectedObservationPoint}"/>
                                        </ui:tableColumn>
                                    </ui:tableRowGroup>
                                </ui:table>As far as I can see it is pretty much the same. Did I over look something?

Similar Messages

  • F4 help for 0MAT_SALES is not working in BI 7

    Hi Gurus,
    The F4 help for 0MAT_SALES is not working when distibution channel is selected as (!=02) in Bex Analyzer. But for all other values for distibution channel  i am getting values in F4 help.
    Since 02 is excluded it is supposed to give values for all other combination. but it not so.
    Could anyone of you please help me on this?
    Thanks in advance.

    Closing Thread

  • Help! limewire will not work on my Mac mini 10.4.11 now that i cleaned it

    Help! LimeWire will not work on my Mac mini 10.4.11 now that i cleaned it out and had to get the new LimeWire. It keeps asking for Java 1.6 but I'm having no luck. :O( LimeWire was the reason I bought a Mac!

    Very weird day in Firefoxland
    First on a Powerbook G4 running 10.4.11 I respond to an invitation to upgrade to Firefox 4 (like a lot of others). Long story short, I wind up losing the browser altogether -- including all bookmarks. Why? Because neither the Firefox homepage (or CNET downloads) makes it clear that 4.0 is for OS 10.5 only! Amazing!
    Then I try to register to post a reply in a thread that crits Firefox for not making this System Requirements info upfront clear. But the Register page I’m taken to (https://support.mozilla.com/bs/users/register) is in SERBO-CROATIAN!!
    Then I try to log into Chat a couple of times and when it’s not CLOSED its a long line waiting and THEN it closes.
    WOW!! Are the wheels off the wagon here or what!?!

  • HT201272 I need a refund on my books I purchased from itunes because my ipod will not support them. I was on the apple chat last night and they tried to help but it did not work and they told me my ipod was to old to support them. I was wondering how do I

    I need a refund on my books I purchased from itunes because my ipod will not support them. I was on the apple chat last night and they tried to help but it did not work and they told me my ipod was to old to support them. I was wondering how do I get the refund on them?

    Try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Hi can you help the sound is not working on my Mac I have went into settings and there are no option for interal speaker help

    Hi can you help the sound is not working on my Mac I have went into settings and there are no option for interal speaker help

    Read the documentation at the links.  They won't hurt your data. 
    Basically smc reset is shutdown, pull your plug for 15 seconds, plug it back in, wait 5 seconds, and reboot.  Harmless to you.  Resets the smc.
    Pram reset is similar but you need to push commnd-option-P-R after the boot chime.  Read what does.
    smc and pram reset

  • Plz help me my facetime not working and no have facetime app

    plz help me my facetime not working and no have facetime app

    In what way is it not working?
    Which iPhone do you have?
    Which iOS version?
    Where did you purchase your iPhone?
    Any info at all about your issue?

  • I can buy my needs from the game says I tell customers to help please help me Visa card not working in any Itemes games

    I can buy my needs from the game says I tell customers to help please help me Visa card not working in any Itemes
    games

    If you mean that you have been instructed to contact iTunes support, then will need to do what it says, contact iTunes Support. These are user-to-user support forums, if you thought you were contacting Apple by posting here. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to contact the iTunes Store.
    If that does not answer your question, try posting in your native language, or find a friend with a better command of English to help you ask your question here.
    Regards.

  • Help for date field not working after upgrade

    hi experts,
    In our BSP application for a page we had an inputfield (date).
    Onvaluehelp for input field we were calling the saphelpdate function.
    however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
    we have upgraded to SPS 16 recently.
    please help me.
    regards,
    Arvind.

    Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
    DATA: BEGIN OF T_PCONT OCCURS 0,
          PCONT LIKE ZPSPERMISOS-PSOBKEY,
    END OF T_PCONT.
    DATA: BEGIN OF T_FIELDS OCCURS 0.
            INCLUDE STRUCTURE help_value.
    DATA END OF T_FIELDS.
    DATA: BEGIN OF T_VALUES OCCURS 0,
          VALUE(60) TYPE c.
    DATA: END OF T_VALUES.
    DATA: N TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK  b20 WITH FRAME TITLE text-b02.
      SELECT-OPTIONS:
        P_CONT FOR  ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_INT  FOR  ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_FEC  FOR  ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,    
        P_RAZ  FOR  ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b20.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
      PERFORM P_HELP_P_CONT USING P_CONT-LOW.
    *&      Form  P_HELP_P_CONT
    FORM P_HELP_P_CONT  USING P_P_CONT.
      DESCRIBE TABLE T_PCONT LINES N.
      IF N EQ 0.
        T_FIELDS-FIELDNAME  = 'PSOBKEY'.
        T_FIELDS-TABNAME    = 'ZPSPERMISOS'.
        T_FIELDS-SELECTFLAG = 'X'.
        APPEND T_FIELDS.
        CLEAR T_FIELDS.
        SELECT PSOBKEY FROM ZPSPERMISOS
        INTO  TABLE T_PCONT.
        SORT T_PCONT BY PCONT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          CUCOL        = 10
          CUROW        = 1
          TABNAME      = 'T_PCONT'
          FIELDNAME    = 'PCONT'
        IMPORTING
          SELECT_VALUE = P_P_CONT
        TABLES
          FIELDS       = T_FIELDS
          VALUETAB     = T_VALUES.
    ENDFORM.                    " P_HELP_P_CONT
    Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
    Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM

  • TRUNCATE TABLE NOT WORKING AFTER DROPPING CONSTRAINTS

    Hi,
    I have a table with a foreign key constraint. I know you can't truncate tables when there are foreign key constraints. So I drop the constraints before running the TRUNCATE TABLE command. But SQL Server is still stating there are foreign key constraints
    even after they have just been dropped.
    When I use SQL Server Management Studio to generate a drop & create script on this table or any other table with an FK consttaint, the generated script fails stating that there are still foreign key constraints??
    I have the same problem for every table that has FK constraints, for those without FK, TRUNCATE table works without issues.
    The end goal is to reset the identity value of the primary key. Since DBCC does not work on Azure, TRUNCATE TABLE is the only way left, especially if you can't even drop and recreate tables with FK constraints.
    What am I missing here?
    Peter

    Hi,
    Thanks for posting here.
    TRUNCATE TABLE is similar to the DELETE statement with no WHERE clause; however, TRUNCATE TABLE is faster and uses fewer system and transaction log resources.
    TRUNCATE TABLE removes all rows from a table, but the table structure and its columns, constraints, indexes, and so on remain. To remove the table definition in addition to its data, use the DROP TABLE statement.
    If the table contains an identity column, the counter for that column is reset to the seed value defined for the column. If no seed was defined, the default value 1 is used. To retain the identity counter, use DELETE instead.
    Restrictions
    You cannot use TRUNCATE TABLE on tables that:
    •Are referenced by a FOREIGN KEY constraint. (You can truncate a table that has a foreign key that references itself.)
    •Participate in an indexed view.
    •Are published by using transactional replication or merge replication.
    For tables with one or more of these characteristics, use the DELETE statement instead.
    TRUNCATE TABLE cannot activate a trigger because the operation does not log individual row deletions. For more information, see CREATE TRIGGER (Transact-SQL).
    Truncating Large Tables
    Microsoft SQL Server has the ability to drop or truncate tables that have more than 128 extents without holding simultaneous locks on all the extents required for the drop.
    Permissions--------------------------------------------------------------------------------
     The minimum permission required is ALTER on table_name. TRUNCATE TABLE permissions default to the table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and are not transferable. However, you
    can incorporate the TRUNCATE TABLE statement within a module, such as a stored procedure, and grant appropriate permissions to the module using the EXECUTE AS clause.
    You cannot truncate a table which has an FK constraint on it.
    Typically my process for this is:
    Drop the constraints
    Trunc the table
    Recreate the constraints.
    Hope this helps you.
    Girish Prajwal

  • HELP SESSION RESTORE WILL NOT WORK

    please can some one help me i am trying to copy session restore file from a previous back up - but it will not work - please help - thnx

    Could you describe what you have tried?
    To make sure you are copying the old sessionstore.js file to your currently active Firefox profile folder, you can open that folder from inside Firefox as follows (either):
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * Help menu > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button
    Please note that before touching the existing sessionstore.js file, you should exit Firefox and allow time for it to close files. Either:
    * "3-bar" menu button > "power" button
    * File menu > Exit
    Then rename it to sessionstore.old before copying in the file you want to use.
    Note: if Windows does not show .js extensions on file, please see the steps in this article to show them so you can work with files as accurately as possible: http://support.microsoft.com/kb/865219

  • Updating database table - not working

    Hi ,
              My database table 1 is having multiple data for a primary key
    example :
    table 1:
    GLOBMATNR  -> Primary key
    WERKS  --> non primary key -- multiple for globmatnr
    MBLNR --> non primary key -- multiple for globmatnr
    MBLPO--> non primary key --
    BUKRS --> non primary key -- multiple for globmatnr
    i m using below statement to make entry into the table.. but this insert is not working.. I stead of putting 30 entries its just inserting 1 entry..
    Can any one help me in this..?
    INSERT table1 FROM TABLE internal_table ACCEPTING DUPLICATE KEYS.
    Edited by: neha gupta on Oct 29, 2010 1:25 PM

    Hi,
    Hit F1 on ACCEPTING DUPLICATE KEYS. You will identify why it is inserting 1 line only. I hope the table is a custom table. For fields which can have multiple values, make it primary key.
    In your example table, GLOBMATNR, WERKS, MBLNR could be primary keys if WERKS is in one company code only. If not add BUKRS also
    Hope it helps
    Sujay

  • Urgent help - MUSE email form not working - PLEASE HELP

    HI to all!!
    I'm having a big issue here with Adobe Muse cc 7.0
    I have my personal domain www.shepherdtextiles.com
    and third party host (here in China which is 72e.net (and yes, got all php and so on requirements Adobe Muse needs)
    I follow carefully all steps to add a simple contact form, adding first [email protected] and changing it to my personal hotmail when I saw it wasn't working to try if with hotmail could work, but didn't.
    I have checked the Muse PHP Diagnostics  and as you can see the mail one failed.....
    I used first the simple contact form that comes with Muse and later I used one from museresources.com but none of them seemed to work
    I'm just guessing that something is not well setup on my server because I just follow all steps Adobe mentioned and I watched many videos where people do it very simple.
    The error I get on my website when I click on submit button is "The server encountered an error"
    There is NO error when I export to html or warnings, just exports fine.
    PLEASE HELP
    Many many thanks!
    Vic

    I'M having a similar problem with my Muse website Formally hosted by GoDaddy. The contact me widget does not send an email when you click submit button. Normally, it accepts with a green check mark in another screen. It does not do that. The submit just turns black when clicked, but nothing else happens
    THe he regular email works. I am able to send and receive. It just does not work with the contact widget

  • My mic is not working please help, my mic is not working please help

    my mic is broken i think at first i thaught it was cloged so i put a pin in it but it still would not work . i did get water on my ipod 5 but i dont understand why it only affected my mic intead of anything else please help me anyone

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - 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.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Ither the water damaged the mic or the pin did.
      Apple Retail Store - Genius Bar                              

  • Search help of material is not working in ECC 6.0 : Urgent

    Hi Friends,
    I am using ECC 6.0. I have a problem in search help of material by plant. In the search help of material (choosing the tab plant material by descriptions), if i give any plant which is 3 chars long (exp. ABC) it is giving correct combination of plant material. But if i am giving a plant which is 4 chars long (exp ABCD) it firing a message saying no values found, although the combination exist. (if i am giving only material name it is showing both 3 chars and 4 chars long plant).
    for ref: please use transaction MD04 and press f4 in material field and choose tab "plant material by descriptions", and give 3 chars and 4 chars long plant.
    please help me to trace the problem or any OSS note.
    correct answer will be awarded.
    I will appreciate to not giving code of search helps because it is a standard SAP functionality that is not working.
    Regards
    Krishnendu

    Krishnendu,
    Please check your SAPGui frontend i think you are using 7.10 patch level 3.? if not try with some other system that have 7.10 patch level 3.

  • Help! Keyboard suddenly not working

    im back from school trip and when i turn on my computer, suddenly part of my macbook pro's keyboard isnt working...
    the not working keys: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, +/=
    Q, W, E, R, T, Y, U, I, O
    I need to use my laptop at school and its not possible for me to carry an external keyboard around, plz help!
    Note: things started to get weird after I open Far Cry 2, i dunno if its related, but after i open it, the number keys stopped working too. Also I am using windows, but its the same problem on mac as I already checked

    Last =night =mine =started =acting =up =too. =as =you =can =see =the =space =bar =gives =me =an =equal =sign. =The =delete =key =works =but =also =turns =up =the =volume. =various =other =keys =seem =to =be =linked.

Maybe you are looking for

  • Search for Follow-Up Activity in CIC Search Area

    Hi CRM Experts, I am new in CRM world, so in customizing(IMG) path: CRM --> Transactions --> Settings for Activities --> Mantain Categories, Goals and Priorities --> Mantain Categories, I created an entry for a new category called Survey. In Tcode CI

  • I want an itunes account without using a credit card

    My kids add music, from my library, to their ipods on my comuter as well. They have itunes gift cards to use for their purchases. How do I sign up? Additionally, I am very unhappy with the inability to choose my OWN playlists, thank you very much, I

  • Apple iPod Update Server Error

    Whenever I try to run an update for my iPod through iTunes, it comes up with an error that says that "The iPod server network could not be contacted." I have parental controls set up on my computer applied to me, and I'm wondering if that is the case

  • Can't start xfdesktop[solved]

    i have installed xfce4 and xfce4-goodies,follow this wiki http://wiki.archlinux.org/index.php/Xfce, I choose xfce session in login screen,only black screen with two panels,no wallpaper,no icons... the xfdesktop doesn't start automatic,then i want to

  • Java.util.Map as Parameter?

    hi! i use a Map as Parameter in a webserivce. in detail it's a hashMap<String,String> is this a recommend way? can any other client such as .net understand the wsdl? in the wsdl the map looks like : type="apachesoap:Map" thanks a lot?