Render table with some of the rows unselectable

Hi all,
I am using JSF for GUI development, i have a requirement wherein i want to render a table which has a column of checkboxes for selecting row(s) in addition to that i want that when the table is rendered based on some condition, for some of the rows the checkbox will remain disabled and for some it will remain enabled.

I was expecting that you've a problem with Sun JSF RI (Mojarra). For other JSF implementations and libraries you'll get quicker and more accurate response at the forums or mailinglists of the appropriate manfacturer. Sun hasn't manfactured Trinidad, Apache did.

Similar Messages

  • How can I implement the equivilent of a temporary table with "on commit delete rows"?

    hi,
    I have triggers on several tables. During a transaction, I need to gather information from all of them, and once one of the triggers has all the information, it creates some data. I Can't rely on the order of the triggers.
    In Oracle and DB2, I'm using temporary tables with "ON COMMIT DELETE ROWS" to gather the information - They fit perfectly to the situation since I don't want any information to be passed between different transactions.
    In SQL Server, there are local temporary tables and global.  Local temp tables don't work for me since apparently they get deleted at the end of the trigger. Global tables keep the data between transactions.
    I could use global tables and add some field that identifies the transaction, and in each access to these tables join by this field, but didn't find how to get some unique identifier for the transaction. @@SPID is the session, and sys.dm_tran_current_transaction
    is not accessible by the user I'm supposed to work with.
    Also with global tables, I can't just wipe data when "operation is done" since at the triggers level I cannot identify when the operation was done, transaction was committed and no other triggers are expected to fire.
    Any idea which construct I could use to acheive the above - passing information between different triggers in the same transaction, while keeping the data visible to the current transaction?
    (I saw similar questions but didn't see an adequate answer, sorry if posting something that was already asked).
    Thanks!

    This is the scenario: If changes (CRUD) happen to both TableA and TableB, then log some info to TableC. Logic looks something like this:
    Create Trigger TableA_C After Insert on TableA {
      If info in temp tables available from TableB
            Write info to TableC
       else
           Write to temp tables info from TableA
    Create Trigger TableB_C After Insert on TableB {
      If info in temp tables available from TableA
            Write info to TableC
       else
           Write to temp tables info from TableB
    So each trigger needs info from the other table, and once everything is available, info to TableC is written. Info is only from the current transaction.
    Order of the triggers is not defined. Also there's no gurantee that both triggers would fire - changes can happen only to TableA / B and in that case I don't want to write anything to TableC.
    The part that gets and sets info to temp table is implemented as temp tables with "on commit delete rows" in DB2 / Oracle.
    What do you think? As I've mentioned, I could use global temp tables with a field that would identify the transaction, but didn't find something like that in SQL Server. And, the lifespan of local temp tables is too short.

  • EXP 11.2.0.1 export tables with at leat 1 row

    I have oracle db 11.2.0.1 and user the export utility to export
    tables, and row dati from the database to a file dmp.
    I have notice that mow it extract the table with at leat 1 row
    and do not export table empty
    and so when i execute an import i lost a lot of tables...
    Very dangerous ....
    There is and explanations ???

    You may get this effect in release 11.2.0.1 if the table has no segment. You probably have deferred_segment_creation=true. This query may help identify the tables without segments:
    select table_name from user_tables
    minus
    select segment_name from user_segments where segment_type='TABLE';
    (you will of course have to modify the query to handle more complex table structures).
    Data Pump does not have this problem.
    John Watson
    Oracle Certified Master DBA

  • SQL: Find table with max no. of rows

    I have a table containing list of table names for each owner; as
    ## Table: db_tables
    OWNER TABLE_NAME
    a ta_1
    a ta_2
    a ta_3
    b tb_1
    b tb_2
    c tc_1
    Now, i want to know the table with max. no. of rows for each owner
    Plz....can anyone gimme a solution for the above ......

    Assuming 10g and above:
    SQL>  SELECT owner,
                 MAX(table_name) KEEP (DENSE_RANK FIRST ORDER BY XMLQUERY (t RETURNING CONTENT).getnumberval() DESC) table_name,
                 MAX(XMLQUERY (t RETURNING CONTENT).getnumberval()) cnt
        FROM (SELECT owner,table_name,    'count(ora:view("' || table_name || '"))' t
                FROM all_tables
               WHERE owner IN ('MICHAEL','SCOTT'))
               GROUP BY owner
    OWNER                          TABLE_NAME                            CNT
    MICHAEL                        SERVICE_ZIP                       1000000
    SCOTT                          EMP                                    14
    2 rows selected.

  • Problem in importing Sales Order with udf in the rows

    Dear All,
    I am having problem in importing Sales Order with udf in the rows. I mean it is getting imported but the udf values in the rows is not getting updated. But the udf values in the header is getting updated. I am using SAP 8.8 Pl 10.
    Can anyone guide me what to do in this scenario?
    Regards,
    Gary

    So , Login to DTW .
    with the Desired Database and Login Credentials.
    Goto - > Templates - > Customized Templates
    Select The Object .
    Right Click on the object needed and choose Create Template for the Structure .
    Then use this template for import .
    Hope it helps
    Thanks
    Ashish Ranjan

  • Using Windows XP and Firefox 3.6.15 web pages print with some of the script as unintelligible weird looking script or maybe some kind of computer script. This doe not accure usingg IE 8.0 with the same printer.

    Using Windows XP and Firefox 3.6.15 web pages print with some of the script as unintelligible weird looking script or maybe some kind of computer script. This problem also occurs with the web page on which this question is submitted. This doe not occur using IE 8.0 with the same printer.

    These have nothing to do with Firefox.
    C:\ProgramData\FLEXnet\Connect
    \11\ISUSPM.exe
    and
    C:\Users\Vinegarhill-User Acc\Desktop\Malware Removal Programs\eXplorer.exe
    This one - C:\Users\Vinegarhill-User Acc\AppData\Roaming\Mozilla\Firefox\Profiles\ak4dv58c.default\extensions\ \components\afom.exe - is probably the '''AFOM - Memory Recovery & Retention For Firefox Only''' extension.
    https://addons.mozilla.org/en-US/firefox/addon/11922/
    My advice is to uninstall that extension. IMO, you have too many extensions installed, and are asking for problems with Firefox. I am not against using a lot of extensions in Firefox ''(I typically have 45 to 50 extensions installed, but the mix of extensions you have scares me as potentially problematic.)''

  • Upgraded to 2.0.1 and the top screen won't work with some of the apps

    Ever since I upgraded to 2.0.1, when I open any of the applications the top part of the screen won't respond with some of the applications. I know that the screen is working and not damaged because on the main menu application prompt I can click into the apps on the top part of the screen, but as soon as I get inside some of the applications weather it be the ipod or texting the top part of the screen won't respond. Anyone else have this problem and have solution for the problem

    I had a similar issue when I upgraded last night to 2.0.1...everything went fine no issues last night that I could see...though I didn't make a single call until this morning after doing the upgrade...went to call in to work this morning and couldn't hear them they couldn't hear me and there was no sound whatsoever...turns out that somehow the 2.0.1 update caused my iPhone to go into a staus where it though it had my headphones in all the time...this resolved by following the information on this support document ( http://support.apple.com/kb/TS1630?viewlocale=en_US ) finally was a reset of the iPhone (step #7) that seemed to resolve it for me...you might want to try this too.

  • How to lock the perticular record in table with some of fields

    Hi,
    I have one Doubt please clarify me.
    How to lock the record in table with perticular fields combination please give me example of code.
    Thanks,
    Hari.

    Hi,
    IT LIKE this....
    This is the function mode that you have to create for locking the contents of you internal table.
      CALL FUNCTION 'ENQUEUE_EZHFINDID'
       EXPORTING
         mode_zhfindid        = 'E'
         mandt                = sy-mandt
         ownid                = w_display-ownid
      X_OWNID              = ' '
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
       EXCEPTIONS
         foreign_lock         = 1
         system_failure       = 2
         OTHERS               = 3.
      CASE sy-subrc.
        WHEN 1.
          w_flag_lock = c_x.
         CLEAR w_okflag.
          MESSAGE e265 WITH w_display-ownnum.
      ENDCASE.
    Jayant Sahu.

  • Tables with buttons to add rows

    Morning
    I am having trouble with a table that has buttons to add, show and hide rows.  There are 2 rows in my table which I need to be able to add depending on which button is clicked.  I've managed to get the first button to add an instance using (Table.Row1.instanceManager.addInstance(1);) but I can't get row 2 to add to the bottom of the table with a button.  I've tried to amend the script to fit the second row but it doesn't work.
    Table.Row2.instanceManager.addInstance(2);
    I'd appreciate some help
    I can send a sample if need be.
    Many thanks
    Ben

    The correct syntax is addInstance(1) (or addInstance(true)).
    As long as the row is set to repeat (Object>Binding>Repeat Row for Each Data Item) it should work. If the row doesn't exist yet then try using the underscore shortcut for the Instance Manager: Table._Row2.addInstance(1);

  • Parametrization of Tables Name before retrieveing the Rows.

    Hi all,
    I have more then one tables with same number and types of attributes,
    I want to create a single form to view only as per the parameter table name.
    further more I want the same in Reports. i.e
    Table Name : Test1, Test2.
    Application ask the table name and retrieve thre rows as per parameteized name
    Thanks, if any one could help

    Abdul,
    I don't think that you can change the table for a block in Forms at runtime. You may want to experiment with basing a block on a stored procedure so that the datasource for Forms doesn't change.
    In reports you can use ref cursors to build a query on. In a before Report trigger you can determine the table name by a custom parameter.
    Don't ask for example codes as I don't have some. Refer to teh Forms and Reporst documentation on how to use the techniques mentioned.
    Frank

  • Table - populate one table with data from the list of another table

    Hello All,
    I am a newbie in Swing and am a book and few tutorials old.
    I am trying to achieve the following:
    (1) I populate Table1 (a JTable) with a list of data - each row consists of several columns. And I have a Table2 (also JTable) that is in the beginning empty.
    Both the tables (Table1 and Table2) are showed in the window.
    (2) Lets say, there's a button (JButton) in between the two tables.
    Now if I Select a row from Table1 and press the button, this row will be sent/copied to Table2.
    And this way I can choose different rows and pass the data to Table2.
    I have manages to make Table1 and put data in it ... but for the rest, I don't know where and how to begin.
    Would appreciate some ideas and tips.
    Thank you.

    Since you are using a button to start the copy process you don't need to worry about a ListSelectionListener or a MouseListener. You need to create a button with an ActionListener that does the following:
    a) Create an Array based on the size of the number of columns in the table
    b) get the index of the selected row
    c) populate the Array with data from the TableModel by using the table.getModel().getValueAt(...) method for each
    d) Now you can add the row of data to the other JTable by updating its model.
    DefaultTableModel model2 = (DefaultTableModel)table2.getMode();
    model.addRow( theArray );

  • Upload data to an internal table with Services of the Table Tool

    Hi,
    I'm trying to upload data to an internal table with the table with the new abap debugger but I can see the option in Services of the Table Tool. I see the information in this sap link and also I saw some screen shot in other pages.
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/2db60934e414d0e10000000a42189b/content.htm
    Is this option depends the SAP version or the patch version or I need to configure the debugger?

    Hi,
    I used the statement
    SPLIT i_file AT '|' INTO TABLE It_file.
    But it is overwriting each row but not appending to the internal table while passing do and enddo.
    Actually my requirement is download the pipe delimited text file and sent an XLS attachment to the
    distribution mail id's.
    I know sending the mails by using the FM.
    But I need all data from the file line by line and pass to the Mail sending function module.
    Can you help me in acheiving  this.
    Regards
    Jay

  • Index on Partitioned Table with Some ReadOnly Tablespaces

    We have a warehouse with fact tables range partitioned on date - daily partitions with each month worth of partitions put into a specific monthly tablespace. Each month, we set the prior month's tablespace to READONLY. So our table ends up having data in readonly and read-write tablespaces.
    We now have a change we need to make to one of the fact tables - we need to add a new column AND add an index to that column. But because we have partitions in readonly state, Oracle doesn't let us create the index and it also doesn't let us update the local unique key (unique index).
    Is there a way we can do this without having to put the tablespaces in read-write mode? As importantly, what happens when we offline or drop some of the older tablespaces (for archiving purposes)? We need to find a way to add the index on just the read-write partitions.
    Thanks.

    We have a warehouse with fact tables range
    partitioned on date - daily partitions with each
    month worth of partitions put into a specific monthly
    tablespace. Each month, we set the prior month's
    tablespace to READONLY. So our table ends up having
    data in readonly and read-write tablespaces.
    We now have a change we need to make to one of the
    fact tables - we need to add a new column AND add an
    index to that column. But because we have partitions
    in readonly state, Oracle doesn't let us create the
    index and it also doesn't let us update the local
    unique key (unique index).
    Is there a way we can do this without having to put
    the tablespaces in read-write mode? As importantly,
    what happens when we offline or drop some of the
    older tablespaces (for archiving purposes)? We need
    to find a way to add the index on just the read-write
    partitions.
    Thanks.Hi,
    Improvements in Oracle 10g to maintain local-partitioned indexes when you use partition DDL commands:
    add partition, split partition, merge partiton, move partition.
    ALSO, the associated indexes NO LONGER have to be stored on the same tablespace as the table (i.e. answer to your question).
    On Oracle 9i: Local indexes are recommended on data warehouse platforms. In an OLTP system, global indexes are more common. On a data data warehouse, problems can be isoloted to one partition, the partitions moved, made r/o (like yours), no local indexes need to be rebuilt
    Regarding your issue:
    We now have a change we need to make to one of the
    fact tables - we need to add a new column AND add an
    index to that columnTo maintain the simplicity + functionality of your DW configuration, I think you need to change the TS to R/W, update the objects, then alter to R/O.
    fyi
    http://www.oracle.com/technology/deploy/availability/htdocs/online_ops.html

  • Table with a sub-heading row - under only two columns

    Hi all,
    Using TCS2 on Win 7 64-bit. This is likely a silly question but I can't for the life of me figure it out.
    I want to create a table as follows:
    -one table, with 4 columns and 5 rows
    -i would like the header row to span all 4 columns, but only be divided into 3 pieces, so that in the first row beneath the header, I can further sub-divide the farthest 2 right-columns
    I've attached a little screen diagram to try and give a sense of what I'm looking to do.
    I'm sure this is a simple thing but I just can't figure it out!
    Any help is greatly appreciated.
    Thanks,
    Adriana

    adrianaharper wrote:
    Hi all,
    Using TCS2 on Win 7 64-bit. This is likely a silly question but I can't for the life of me figure it out.
    I want to create a table as follows:
    -one table, with 4 columns and 5 rows
    -i would like the header row to span all 4 columns, but only be divided into 3 pieces, so that in the first row beneath the header, I can further sub-divide the farthest 2 right-columns
    I've attached a little screen diagram to try and give a sense of what I'm looking to do.
    I'm sure this is a simple thing but I just can't figure it out!
    Any help is greatly appreciated.
    Thanks,
    Adriana
    Select the two right-most cells in the top header row and choose Table > Straddle.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Open in Photoshop CS5 errors with "Some of the application Components are Missing...

    After doing a migration from one mac to another mac with the Migration Assistant,  when I try to edit a lightroom file with the Open In CS5 I get a dialog that comes up "Some of the application Components are Missing from the Application directory, Please reinstall the application.
    Well I have reinstalled photoshop, actually uninstalled it first, the reinstalled twice...once with "keep preferences" and once without.  I have also run the Adobe Upgrader and everything is up to date.  Lightroom is up to date.
    Any ideas??

    Since you can open a photo in CS5 when selecting <Open anyway>, I would also think that this is a problem of Lr.
    When you select <Render using Lightroom> Lr creates the PSD (or TIFF) and sends it to CS5.
    So it seems that this part of Lr that is creating a PSD (or TIFF) from your Raw image is missing / broken.
    Most probably something got left behind when you used the Migration Assistant.
    I would suggest this: Download from Adobe's website the trial version of Lr 4.3. The trial version is a full version with all features enabled, but it runs only for 30 days.
    Each time you open the trial version you get the option <I want to buy>. Select this option and enter your serial number. This will unlock the trial version for unlimited use.
    Maybe it would be good to un-install your current Lr before re-installing the downloaded file to ensure that you do a "clean" re-installation.

Maybe you are looking for

  • How to get month value from custom calendar without passing parameter from SSRS in MDX query

    Could you please throw some light to achieve below requirement?   I need to filter the data between two periods dynamically . The date calendar here works differently(ex:-Date 26-Aug-2014 will fall in period 7 which is last date and 27-Aug-2014 will

  • Updateable Report : re-display collection & Update Button question

    This a sequel to a previous Updateable Report question I had. Varad pointed me to this doc which has been incredibly helpful . http://www.oracle.com/technology/products/database/application_express/ howtos/tabular_form.html#RESTRICTIONS I was\am havi

  • Permissions problem with new SSD boot drive

    I recently installed an OWC SSD drive as a boot drive on an iMac I've had for many years. I'm having some sort of permissioning error that I can't figure out how to resolve. I've setup the SSD as the boot drive (created user named "Boot Admin"). 10.9

  • Update SO after creating missing condition record

    Hi Gurus, I was getting error message that missing MWST condition in Order, then I investigated and created missing condition record in VK11. Now I would like to update the Sales order and tried update tab on condition but invain. Initially the docum

  • View and Email purchase order

    Hi Gurus, I have created Purchase order output usind Smartform. As there is no standard printing program, I have created z_program for printing, which is working well. But when I want to see preview using print preview button, there is nothing displa