Is it possible to update a styleClass in a table from a Bean?

How are Hello everyone, you today?

I use JDeveloper 12.1.2.0.0.

In my function onDimCoinSelect(SelectionEvent selectionEvent) I get the lines that I have to choose, put a styleClass for my table and for each other tables, I'm going to get the lines to highlight another style.

So in my first choice, I will select one or more pieces of my parts table (which I have the color with the color green) and the data associated with this selection (for example, the products of the table) will get a few lines of color in one color (white for related data) and other gray color (for data that is not related).

So, something like this happens:

(table of coins), selects: euro and dolar-> green color, not select: pound, etc.-> gray

(products table), data related (for example, product a, b and c)-> color white, unbound (for example, product d, e and f)-> gray

It works pretty well, but if now restrict my search for one product (say A product) must change now the styleClass my other style and color made it with green and others with the gray wire, since I chose only one.

My problem here is updating the table itself to detect that I've changed the styleClass.

I tried to add: AdfFacesContext.getCurrentInstance () .addPartialTarget (dimProduct);

But if I add to this, I can not select the data with Shift-click for multiple selections.

Is there another way to update the table to detect changes of styleClass?

The best way to achieve this is the help that you are an EL Expression. This El Expression can use variables or functions in your bean method, but the decision of the style is decided in the Expression of the El in the styleClass property.

Here is an example:

styleClass = 'AFStretchWidth; #{(ControlBean.inicial == 'true')? "style-1': (ControlBean.coin == 'false')?  "style-4': ' {style-0'}"

Tags: Java

Similar Questions

  • Update of a column of table from xml data

    Hello

    I have an obligation to update a particular table from xml data column. to do this, I wrote the code below but I am not able to insert. could you please a peek into that.

    create table emp3
    as
    select *From emp
    where 1=1;
    
    alter table emp3
    add (fax_response varchar2(50));
    
    /*create sequence EmailRecords_XMLFILE_SEQ
      minvalue 1
      maxvalue 999999999999999999999999999
      start with 1
      increment by 1
      nocache;*/
    
    /* create global temporary table EmailRecords_XMLFILE
      (
      ID NUMBER not null,
      xmlfile CLOB
      )
      on commit preserve rows;*/
    
    /* create global temporary table UPD_Email_Records_With_Xml
      (
      id NUMBER not null,
    
      response VARCHAR2(500)
    
      )
      on commit preserve rows; */
    
    
    

    the XML data is

    <FAX>
    <EMAILOG>
    <ID>7839</ID>
    <RESPONSE>FAX SENT</RESPONSE>
    </EMAILOG>
    <EMAILOG>
    <ID>7566</ID>
    <RESPONSE>FAX NOT SENT</RESPONSE>
    </EMAILOG>
    </FAX>
    
    
    

    CREATE OR REPLACE PROCEDURE proc_upd_email_records (
       loc_xml          IN       CLOB,
       p_err_code_out   OUT      NUMBER,
       p_err_mesg_out   OUT      VARCHAR2
    )
    IS
       loc_id   NUMBER;
    BEGIN
       loc_id := emailrecords_xmlfile_seq.NEXTVAL; --created sequence
    
    
    
       INSERT INTO emailrecords_xmlfile --created Global Temp table
                   (ID, xmlfile
                   )
            VALUES (loc_id, loc_xml
                   );
    
       COMMIT;
          insert into UPD_Email_Records_With_Xml --created Global Temp table
            (ID, RESPONSE)
            select x1.id,
    
                      x1.RESPONSE
              from EmailRecords_XMLFILE,
                   xmltable('/FAX/EMAILOGID' passing
                            xmltype.createxml(EmailRecords_XMLFILE.xmlfile)
                            columns header_no for ordinality,
                            id number path 'ID',
                            RESPONSE VARCHAR2(250) path 'RESPONSE'
    
                               ) x1
             where EmailRecords_XMLFILE.id = loc_id;
       COMMIT;
    
       UPDATE emp3 er
          SET er.fax_response = (SELECT response
                               FROM upd_email_records_with_xml pr
                              WHERE pr.ID = er.empno)
        WHERE er.empno IN (SELECT ID
                             FROM upd_email_records_with_xml);
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          raise_application_error
             (-20000,
              'Sorry ! The Xml File which is passed is empty. Please try with Valid Xml File. Thank you!!! '
             );
       WHEN OTHERS
       THEN
          p_err_code_out := 4;
          p_err_mesg_out := 'error in insertion=> ' || SQLERRM;
    END proc_upd_email_records;
    {code}{code}
    
    
    

    Someone suggest me a slightly easier way to insert data...

    Thank you...

    You're complicating things

    A simple MERGE statement will do.

    create or replace procedure (proc_upd_email_records)

    loc_xml in clob

    )

    is

    Start

    merge into e emp3

    a_l'_aide_de)

    Select id

    response

    from xmltable)

    "/ FAX/EMAILOG.

    by the way xmlparse (document loc_xml)

    the columns id number way "ID".

    , path of varchar2 (250) response 'RESPONSE '.

    )

    ) v

    on (e.empno = v.id)

    When matched then update

    Set e.fax_response = v.response

    ;

    end;

    /

    But there is no value added by using these temporary tables if you are not at least an intermediate XMLType column (storage preferably binary XML).

    -What is the input XML code?

    -What is the version of db?

  • Update the values in the Table from another Table containing historical data

    So, I have two tables, a table and a master table.  The current table is updated each week and at the end of the week, is copied to the main table to keep historical data.  I have update the table in progress early in the week and want to take the latest data from the master table and update the current table with the data.  The current table could have additional IDs or some of the IDS could have deposited (these lines would receive data in the main table).  I want to only update the rows in the current table that have existing data to the attr1, attr2, attr3 columns.  A particular ID may have more than one record in the primary table, I want only the last disk to use for updating the current table.  The data from a different database where no direct connection is possible then I have to import data every week.  Here are some statements of create/insert:

    create table current_T (ID1 varchar(100),adate date,attr1 varchar(100),attr2 varchar(100),attr3 varchar(100))
    

    create table Master_T (ID1 varchar(100),adate date,attr1 varchar(100),attr2 varchar(100),attr3 varchar(100))
    
    

    begin
    insert into current_T (ID1,adate)
    values ('IE111','08/02/13');
    insert into current_T (ID1,adate)
    values ('IE112','08/02/13');
    insert into current_T (ID1,adate)
    values ('IE113','08/02/13');
    
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE111','08/01/13','yes','abc','123');
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE112','08/01/13','no','dgf','951');
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE113','08/01/13','no','dgf','951');
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE113','07/01/13','no','dgf','951');
    end;
    

    This has been a scratcher for me head and any help would be greatly appreciated.  I'm coding in Apex 4.1

    Thank you

    -Steve

    Not tested

    merge into current_t c

    using (select *)

    Of

    (select m.*

    row_number() over (partition by m.id1 m.adate DESC order) rn

    of master_t m

    )

    where rn = 1

    ) u

    on (c.id1 = u.id1)

    When matched then update

    Set c.adate = u.adate

    c.attr1 = u.attr1,

    c.attr2 = u.attr2,

    c.attr3 = u.attr3,

    When not matched then insert

    (c.id1, c.adate, c.attr1, c.attr2, c.attr3)

    values

    (u.id1, u.adate, u.attr1, u.attr2, u.attr3)

    ;

  • Is it possible to install the structure of the table from only EBS?

    I had an installation of R12 in my laptop that has been corrupted. It took me 2 days to install the application in my system RAM of 1 GB. I don't want to go through the painful steps once again, especially when the end result is a very slow application. But is there a way I can install the structure of the table of a single product in a clean oracle database installation. I just need to check the possibility of a few reports of discoverer and other animals... Is there a tweak we can do using all .odf files (in a window system?)

    If you still have the file system, just to create the database and rerun adodfcmp the tables/views you need - will probably be a bunch of dependencies however. Might be better for someone to send you exp = n their database lines.

    G.

  • I have to stay with OS10.7.5 due to software compatibility, but is it possible to update Safari to latest version during your stay on OS10.7.5

    I have to stay with OS10.7.5 due to software compatibility, but is it possible to update Safari to latest version during your stay on OS10.7.5. How this is done. Thank you very much.

    It is not possible to update Safari past 6.1.6 on Lion.

    (144969)

  • Is it possible to update a graphics card?

    Hello world!

    I was wondering, if it is possible to update my graphics card? I am currently using a graphics card Intel Iris 6100 1536 MB and 3.1 GHz Intel Core i7 processor. It is a beginning 2015 MacBook Pro with a Retina display.

    Units of the retina have card soldered to the logic board.  No upgrade is possible.

  • Re: Is it possible to update the graphics on Qosmio G20-105 PQG20E

    Is it possible to update the graphics card on my G20-105 (PQG20E)?
    Looking for something more powerful to manage new and future games any recommendations?

    Currently have the NVidia Geforce Go6600 series.

    Hello

    Sorry, buddy, but it is certainly not possible.

    The GPU is fixed and welded on the system onboard and cannot be exchanged.

    Nothing to see :(

    Best regards

  • Satellite A100-207: is it possible to update the graphics card for games

    Hello

    I am looking to buy the laptop Toshiba A100-207 and it comes with 128 MB shared graphics.

    I would like to play games and I was wondering if I could update the graphics (for example, a nvidia card I could buy and put in) or the fixed graphics?

    I just want to know if I am able to upgrade?

    Thank you

    Hello

    In my opinion the graphics card or processor is not welded on the new generation of mobile phones. The parts must be simply plugged into the card.
    But this does not change the status of the upgrade.
    Eventually, you will be able to remove the graphics card but I m sure that you will have problems of compatibility with other hardware.

    Fastest graphics card produces more heat and the temperature will automatically increase to a higher level. This would lead to overheating in the question and the laptop would be either closed or not starts.
    PC desktop technology is simply different as on laptops. You can also compare different graphics cards. Laptop factory uses only graphics card chips what don t supports a clean cooling module.

    It simply says s not possible to update the graphics card.

  • Satellite A100-033: is it possible to update the graphics card

    Is it possible to update the graphics card on the A100-033?
    I don't know if the side PCI slot will accept a separate graphics card?

    Hi George

    It of certainly not possible to update the graphics card. The technology of the laptop is a little different and you should not compare it with the current desktop PC.
    The GPU is fixed and not removable.

  • Equium A60: Is it possible to update the graphics card?

    Because the graphics card in the A60 Equium is not very good and I was wondering if I could get a different graphics card and plug it into the back and used instead.

    If someone could tell me if I can I would be very grateful

    Hello

    No, it s not possible to update the graphics card to another.
    As you certainly know, the laptop technology is not the same as the desktop PC simply. It s the motherboard technology all just different. You know that heat is a bigger problem for every laptop and generally of designer, developer and manufacturing. In addition, the various interfaces are not equal.

    For example: what do you think, why Intel doesn't produce chips with speeds of 10 GHz, 100GHz, or 1000GHz. Because of the heat.

    I think that the graphics card performance will produce more heat, and this could lead to overheating problems.
    The other graphics card needs another module of cooling and the cooling module must be compatible with the motherboard. Everything needs to be changed (the case design, interfaces, etc.) before the upgrade might be possible. In my view it is simply not possible at the moment.

  • Is it possible to update the graphics card in the Satellite A200-195

    Is it posible to upgrade this card for me to play the game of MSTS?

    Usually it of not possible to update the graphics cards installed in notebooks!
    Laptop technology is simply different!
    The graphics card is attached to the motherboard and it of not possible to remove it in a simple way.

    I have always recommended to use the computer to play the game!
    If you need the computer for hardcore games you should buy a desktop computer.
    Why? Because the latest games need for most fastest graphics card and the desktop PC can be upgraded much easily as a laptop.

    But finally it of your choice what you use ;)

    Best regards

  • Is W550s - possible to update the graphics card on laptop?

    Is it possible to update the graphics card on a W550s?

    Mod edit: System model added to the front of the subject line to improve visibility / clarity.

    Moved to post on the correct Thinkpad forum for better response

    Hi, lawless,

    Looks like it's not. (HMM) hardware maintenance manual says about p.82 the microprocessor and the GPU is soldered to the system board. It is in the section on replacing the system board.

    If you give a code anything you try to doa or who need to, here another user may be able to tell if the chart Nviidia or Intel is capable of this.

  • Is G560 - possible to update the graphics card on laptop?

    Hello

    I have laptop of Lenovo G560, Intel (R) Core i3 CPU M 370 @ 2.40 Ghz, graphics HD Intel (r), I want to update the graphics card on my laptop.

    now my question is, is it possible to update latest Nvidia GTX graphics card? If so what graphics card is compatible with my system?

    your comments are very much appreciated... Thank you in advance...

    Mod edit: System model added to the front of the subject line to improve visibility / clarity.

    the short answer is no. Only laptops with a removable graphics card can be improved, and your system is is not these slot machines.

  • Is it possible to update a chart "XY" whenever a point is generated as with a "table"?

    Is it possible to update a chart "XY" whenever a point is generated as with a "table"?

    In the attachment, the XY graph, 'OUT' is updated once the loop is completed. I would like to be updated as data is generated inside the loop. Is this possible?

    Thank you.

    To make it work, you need to do the full table available inside the loop.  This means that you cannot use a tunnel of indexing at the exit to build the array. Instead, you must use a shift register and build the table inside the loop.

    This will do what you want.  It would have been easier to show you if you had posted your code.

  • Is it possible to update the driver for my camcorder Handycam from Sony?

    Is it possible to update my previous Sony Driver for my camera Vid that Sony are not interested

    My Sony video camera is a Sony Handycam say they can't help

    In principle, Yes, you can write any driver of any material.

    In practice, no. Sony or MS will give you enough information on their products to you, to achieve this.

    If you succeed, they may offer you a job.

Maybe you are looking for

  • Satellite U840W-10J - noisy fan and the version of the bios

    Hello more top of the machine when you run tempro said new version of bios is available, the link to it is [Satellite U840W BIOS 6, 40 - WIN | http://www.toshiba.eu/innovation/download_driver_details.jsp?service=EU&selCategory = 2 & selFamily = 2 & s

  • Need HP Smart Media

    Hello: I installed a new hard drive on my HP Pavilion DV7-4270us; Windows 7 64-bit. I did a clean install of Windows 7, and I would like that to download HP Smart Media - who plays, CDs, DVD, operates the webcam, etc... In other words, all the softwa

  • ThinkCentre M52 8115-KUF CPU upgrade to Pentium D 820

    I just upgraded my CPU from the P4 630 HT 3 GHz for the P4 D 820 and had no trouble from it upward after replacement of CPU, but it records only 1.50 GHz in the Task Manager performance page, although it is still in the custody of P4 630. It should a

  • Importing video in Vista using the Panasonic PV-DV910 camcorder

    I'm trying to import video from my camcorder in Vista using Windows Movie Maker and it gives me an error saying: "import video could not find a compatible digital camera...". "My camcorder is on, on the way to VCR, connected with a Firewire 800 Expre

  • BlackBerry smartphone email sychronisation with outlook

    Hi my boss directs the Pearl, I put delete on victories both phone and mailbox and mailbox. I'm also not deposited email (not sure what it does). When her PA move mails in or out of his mailbox, even when you press synchronize now, these emails do no