Disable the call to the listener of selection for certain cells of a row in the table.

Hi all


I have a table with 5 columns. I applied a listener of custom for this table in the bean selection. Now, what is my requirement, an action should happen in some specific cells in this table not all cells. So, how can I get that cell was clicked while the user selects a row in the table? If I can get my problem is apparently solved.

Help, please.

You could do this by putting a client listener on the element inside the columns instead of a listener of the selection on the table. You will then get a server event that will tell you which column was clicked.

http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/11-client-listener-169135.PDF

Tags: Java

Similar Questions

  • using listener of selection for table cause some problems

    Hello

    I'm using jdev 11.1.1.4.0

    My use case:
    I have the master/detail table
    When the user changes data in the secondary table then it click directly to anather record in the main table
    I need to display alert message ("you must save changes first") and prevent the movement, so I do the following:
    in the main table, I used bean manged in SelectionListener attribute called onTableSelect(SelectionEvent selectionEvent) like this:
    If (ADFUtils.getApplicationModuleForDataControl("CodesModuleDataControl").getTransaction () .isDirty ()) {}
    FacesContext context = FacesContext.getCurrentInstance ();
    context.addMessage (null, new FacesMessage (FacesMessage.SEVERITY_WARN, getValueFromResourceBundle("hr.view.vcBundle","global.msgUnsavedChanges"), null));

    * / / HERE, I need to move the selection to the previous record *.
    }
    else {}
    Table richeTableau = (RichTable) selectionEvent.getSource ();
    CollectionModel tableModel = (CollectionModel) table.getValue ();
    JUCtrlHierBinding adfTableBinding = tableModel.getWrappedData ((JUCtrlHierBinding));
    DCIteratorBinding tableIteratorBinding = adfTableBinding.getDCIteratorBinding ();
    Object selectedRowData = table.getSelectedRowData ();
    JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding) selectedRowData;
    Key rwKey = nodeBinding.getRowKey ();
    tableIteratorBinding.setCurrentRowWithKey (rwKey.toStringFormat (true));
    }

    the code is working properly but in the main table, the culmination of save becomes different from the table itterator,
    My question is how can I move point highest record in the table according to it itterator.

    Best regards

    In the selectionListener, you can get the previously selected like this lines:

        public void onSelectionListener(SelectionEvent selectionEvent) {
            Key removedKey = null;
            List removedkeys = null;
            RowKeySet removed = selectionEvent.getRemovedSet();
            for (Object l: removed) {
                removedkeys = (List)l;
                for (Object k: removedkeys) {
                    removedKey = (Key)k;
                    logger.finer("previously selected row key: " + removedKey.getAttribute(0));
                }
            }
    

    If you want to select the line above again, you can do something like the following:

            DCIteratorBinding someiteratorIT = ADFUtils.findIterator("SomeIterator");
            someiteratorIT .setCurrentRowWithKeyValue((String)removedKey.getAttribute(0));
            getT4().setSelectedRowKeys(removed);
            AdfFacesContext.getCurrentInstance().addPartialTarget(getT4());
        }
    

    where getT4() is the richeTableau.

    Published by: John on March 19, 2012 13:55

  • line selected in the table in jdev11

    I have listener custom selection for table to do things according to the selected line, but when the table has a single row of this line is automatically selected my interlocutor of choice is not triggered, so my question is how to accomplish that, initially, no row is selected in the table?

    Depends on the use case, but you can do this by deleting the attribute selectedRowKeys of the table.

    Pedja

  • Strange line under the text after the table conversion

    I've converted a few tabs text to a table, and I have black lines under the text. Where it comes from and how do I remove it.

    See attached screenshot.

    Rich

    Here are the rules of paragraph. The original paragraph had a rule below, and divide the line into separate cells repeated for each cell.

    Check if the rule is set in the style of paragraph applied to these texts (this is according to the rules of the paragraph); If so, disable it here. If not, just select all those cells and press Ctrl/Apple + Alt + J; Select 'Rule' below the menu drop down and uncheck "pronounce on.

  • The name of the Table may be 2 lines

    Can the name of the Table "numbers be 2 lines?

    I don't seem to be able to make a table name two lines.  You can use a box of text instead, while hiding the name of the table:

    Disable the table name in the Table formatter (lower-right)

    Add a text box

  • Pressing on the Table hangs the façade in a certain State

    Hi all!

    I have the following problem. I have a very simple state machine with two cases. In the case of slow motion is an event receives the entry of a Table control. When you press Run the Vi past to the executing State. I have to leave the State RUn a button finish, but IF I'm in the executing State and press on what either on the control panel the whole front panel lock. Disabling the Table control doesn´t competing aid State in the same way it helped for the button 1 and 2. Any help would be appreciated. I tried in vain with the validation functions and Unregistering event.

    Attached is a simplified version of the problem. Thanks in advance.


  • How to access the table cell script plugin c labels

    Hello

    We have a plugin written in actionscript, which prepares data in labels of each cell in a row of a table, when the user has their cursor in this line:

    var: a cell = getSelectedCell();

    for each {(var childCell:Cell in cell.parentRow.cells)

    childCell.insertLabel (labelName, theString);

    }

    public function getSelectedCell (): cell

    {

    ...

    var selectedLayers:Array = doc.selection in the table;

    var selectedLayers = obj:Object [0];

    If (obj have PointInsertion! = null) {}

    var ip:InsertionPoint = obj as PointInsertion;

    If (ip.parent cell) {}

    return ip.parent as cell;

    }

    } else if (obj as cell! = null) {}

    return items as cell;

    }

    Returns a null value.

    }

    I am now writing a C plugin that needs to read data using IScriptLabel: once again, when the user has a cursor in the same row.

    My problem is that I can't find (via the C code) against that UIDRefs the labels would have been stored by the script that the table does not seem that the objects of the cell in the same way as the script only.

    Any ideas on how to get the relevant UIDRefs?

    Thank you

    I found the answer:

    1) go to SnpIterTableUseDictHier.cpp.

    (2) go to the function void SnpIterTableUseDictHier::inspectThreadDict (const InterfacePtr& textStoryThreadDict).

    (3) add this code after the line after the line InterfacePtrMyCell (textStoryThread, UseDefaultIID());

    #define Solutiontotheproblem 1

    #if Solutiontotheproblem

    InterfacePtr iscript (textStoryThread-> QueryParent (ScriptInfo::RequestContext ()), IScript::kDefaultIID);

    {if (iscript)}

    Tags IScriptLabel::ScriptLabelKeyValueList is iscript-> GetTags();.

    IScriptLabel::ScriptLabelKeyValueList:iterator iter;

    If (!) Tags.Size ())

    {

    PMString return ("no labels found.");

    returnVal.SetTranslatable (kFalse);

    }

    for (iter = tags.begin (); iter)< tags.end();="">

    {

    PMString returnVal ((*iter).) Key());

    Return +=("::");

    Return += ((*iter).) Value();

    CAlert::InformationAlert (returnVal);

    }

    }

    #endif

    (3) voila!

    Hope that helped. If your question is the answer, please mark my solution as correct

    I used this link for the answer. The main thing to find was finding what associated text interface was IScript is associated with.

  • How to disable the feature CALL SOS?

    I've just updated to iOS 10 and 3 watch OS, but I can't find how to disable the feature of emergency SOS on my Apple Watch.

    I thought it would be a good feature for me so I turned it on, but my fingers are clumsy, so I struck the wrong cursor when I turned off my watch and accidentally, I called 911. I've disabled "Stick to Auto Call" and deleted all my contacts SOS in general in the application to watch on my iPhone and I restarted the iPhone and the Apple Watch, but emergency SOS still shows on my watch when I want to turn off my watch.

    I think that before I turned emergency SOS, I saw "Power Reserve" under the "Power Off". I read that once you turn Hold for Auto call in the app shows and then turn off, the cursor of SOS emergency will always be displayed when you turn off the watch.

    How can I disable the cursor of emergency SOS when I turn off my Apple Watch? Can I use Reset under general, or désapparier my watch and pair again? I don't want to do that, because it would take a lot of time to get all my settings that I want them to be.

    Hello

    I'm not aware of any option settings to remove the emergency SOS cursor in the menu that appears on pressing them and holding the button.

    If you want Apple to consider adding an option to disable the feature, you can submit a request here:

    https://www.Apple.com/feedback/watch.html

  • How to disable him drag the text selected for searching the Web?

    How to disable him drag the text selected for searching the Web?

    Hmm, I did not forward. This is a new tab page with nothing to do with what you were dragging?

    I wonder if this might be a feature of one of your extensions. You can see their and disable/remove those that are not essential or unrecognized, here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    If you disable the extensions, usually a link will appear above at least one of them to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    If there is no difference, you could test mode without failure of Firefox - which is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference?

  • How to disable the caller ID?

    I want to disable my caller ID.

    This message was transferred from its previous location to create his own new topic here; his subject and/or the title has been changed to differentiate the position of other requests for information and to reflect the content of the post. A link to this message appears when the post was initially added.

    Hi, Jaypee26, and welcome to the community,

    Please refer to this section of the FAQ:

    https://support.Skype.com/en/FAQ/FA2551/how-do-i-deactivate-caller-identification?

    Thank you!

    Elaine

    __________________________________________________________________________________________________
    Your question has been answered? Please click on the link to accept as a Solutionfor everyone can quickly find what works! As a post or want to say, 'Thank You ' -? Click on the button of congratulations!
    Reliable information: Brian Krebs: 3 basic rules for online safety

  • Disable the status options of calling on Samsung Galaxy S II

    Whenever I log a call with someone, it shows the status of the call directly on the screen and I'm not able to see their faces. I tried all the options and I can't turn it off. Help!

    Hello

    In order to solve the problem, you should disable the 'technical information' call under Skype settings.
    Tap your image on the upper right to access your profile. Once there, press the menu button > settings > (scroll down) uncheck the entry "technical information".

  • Disable the unwanted selection on the hover function

    Once again, my Lenovo Thinkpad 430 (running Windows 7) is constantly selecting what the pointer is sitting on. This happens regularly, and it drives me crazy. I was able to cure it in the past, but today I was unable to do so. The feature "Activate a window by hovering over it with a mouse" in Windows is NOT selected. Windows is configured to require a double click to open a window. Several times in the past, I have disabled the function of 'type' in the Lenovo touchpad (touchpad is the only pointer device that I use), but today I can't even find these settings to make sure that they are always disabled. I forget to do?

    I solved this. I installed a software update of the ultranav device, which allowed me to open the ultranav settings and change the settings again.

  • disable the option to run selected step

    Hello

    I'm working on a topic I want to avoid operator to run the selected step without going through the process template.  Since the Manager of the users, I see the option that I can disable the RunSelectedTests but which also disables the RunSelectedTests using SinglePass, which is an option, we want to keep for the operator.  Any idea on how I can address this problem?

    Thank you.

    Peggy

    On the second part of your question, you could use one of the Callbacks Interactive and run Exists ("RunState.ProcessModelClient") and continue if it exists and if it does not stop with some messages.

    On the first part of your question:

    Ideally, it would be preferable not to offer the option in the first place but I don't know if it's a useless option, if you do your own UI you can taylor the menu to include it not. That is, instead of using the Commandkind_DefaultExecuteMenu_Set would only include you the items you really want to see. If you would not install CommandKind_RunSelectedSteps but you'd install CommandKind_RunSelectedStepsUsingEntryPointSubmenu.

    Order one of the fully featured UI provided with TestStand.

  • I cannont turn on automatic updating. I have is gray. Disable the automatic update is selected but also gray and selected.

    I cannont turn on automatic updating.  I have is gray.  Disable the automatic update is selected but also gray and selected.

    you have the service disabled?

    Click Start > run > type in services.msc box and Microsoft Management Console will be open.

    Search for automatic updates. Right-click the line, and then click Properties. In the dialog that opens, make sure Startup Type is automatic. Click on apply. Wait for it. Then click Start under Service status. You will see another pop-up window but it is a progress bar. If the service does not start, you will get an error. Otherwise, you will see wuauserv in the Task Manager. You should also see the yellow shield which shows you download updates. Also check your Windows Firewall and third-party firewall installed on the machine. Another place is the router/modem. You may need your ISP to help with the party.

  • Can I disable the ability to make calls in PAP2T?

    Hi all

    Could not fdind and answer online here so go.

    I have connected my VoIP (Messagenet using the PAP2T) line both my that traditional Verizon on the same Panasonic Dect phone. It works flawlessy to receive calls, but when I call dials of two devices (the PAP2T and Verizon's network fixed of course).

    I need my only VoIP number to receive calls, it is there a way to disable the PAP2T to calls (while still their reception)? This way I could use Verizon to post fixed calls US and still receive calls from the two numbers without any problem when the component and the purchase of a new device.

    Thank you

    As far as I know, the PAP2 does not provide an option to disable Inbound calls since both lines 1 and 2, but you can set up to block calls and activate DND.

    You will need to have spend you your RJ11 cord at the back of the wall and the PAP2 to make outgoing calls and receive incoming calls.

Maybe you are looking for

  • Bookmark iPad

    How can I delete a bookmark in Firefox on my iPad

  • Some plugins don't appear on the page of the Check Plugin on Mac

    I use Firefox 35.0.1 on a MacBook OSX Yosemite running. I open the Add-ons Manager, go to the Plugins and click on 'check to see if your plugins are up to date. This brings me to the Plugin Check page. However, none of my plugins are listed on this p

  • Satellite M30, Intel pro WLAN 2100 3B mini PCI adapt does not

    HelloI bought a satellite M30 a week ago. I used the wirless lan a few times. Now I rebooted the computer after that the wireless network adapter no longer works. In the properties of the device, there is error code 10: impossible to activate the dev

  • They are never going to remove hard 100 MB download limit?

    Its literally the dumbest thing apple has always done. Even androids do not have this problem. It is disgusting to have to deal with that, why should I not download my favorite apps because Apple decided im supposed to have wifi. MOM why the * it con

  • OfficeJet Pro k550: copy print task Quick Sets of Win7 for Win10

    Put PC from Windows 7 to Windows 10.  After that, all my custom Print Quick Sets Taks disappeared.  I have a picture of my old installation of Windows 7.  Can someone tell me where are stored the these quick sets and if it is possible to copy them fr