How to get the reference of the component JSF by the faces context

I have :
<h:commandLink id="toto" action="#{controller.test}" >
I want to get the reference of this commandLink component in function test of "controller ", for instance , to get the "id" attribute of it, so how to do it? by facescontext??????
Thanks a lot.

hi again:
to precise my question, i know that attribute "actionListener " of the component can let the controller.test know the reference of the component ,but if i want to know when the getters are called for example <h:outputText value="#{controller.myValue}"> it calles the controller.getMyValue() , so in the getMyValue, how to know which component calls him?
Thanks a lot...

Similar Messages

  • ABAP WebDynpro - How to get a reference to a component?

    Hey,
    I want to have a reference within my normal component to a different component - Is this possible?
    Thanks in advance,
    Patric

    I want to create a popup which contains a view of a different component.
    Currently i'm just able to create a popup which contains a view from vom own component as you can see below:
      data comp type ref to if_wd_component.
      com = wd_comp_controller->wd_get_api( ).
    *TRY.
    CALL METHOD cl_wd_popup_factory=>popup
      EXPORTING
        component           = comp
    *    used_component_name =
        view_name           = 'VTEST'
    *    create_only         = ABAP_FALSE
    *    modal               = ABAP_TRUE
    *    window_title        =
        close_button        = abap_true
    *    button_kind         =
    *    message_type        = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
    *    close_in_any_case   = ABAP_TRUE
    *  IMPORTING
    *    popup_window        =
    *    component_usage     =
    But i want to use a view from a different component than my normal one, and because of that i need a reference to the different component.
    regards
    Edited by: Patric Stade on Sep 30, 2008 5:47 PM

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • I just got the iphone 4s and i cant figure out how to get siri to work it seems to be the old voice command. HELP!

    i just got the iphone 4s and i cant figure out how to get siri to work it seems to be the old voice command. HELP!

    Did you enable Siri in settings?
    Settings > General > Siri > ON
    If Siri is off, all you get when pressing the home button for 1 second is the old Voice Control.

  • How to get last Build date of a dll in the real time target

    Info On My Project    
       I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...  
    I am facing some problems while checking Build date of my Application file( .dll)
    I have tried to use GetFileDate API. But it is not supporting for realtime Target..
    So i have tried __DATE__ macro.. That also having some problems..
    How to get last Build date of a dll from the real time target  ??
    Please Help to solve this....
    Thanks
    Vaishakh A  K

    Please reply if any one have suggestion...

  • I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !

    I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !
    I also tried resetting settings all to no avail ...I looked up some advice and watched utube video advice on how to fix without success..
    The volume control button on side does not work ,I got the iPad last August and wonder if it is a fault that means I must return it for replacement from where it was purchased ?

    The Retrospect you used way back when is no longer around. The company was sold and that company produced a new version of Retrospect - Retrospect 8.x
    So, as you've been told, you would have to be running a Tiger system with an old version of Retrospect software (5.x or 6.x - you would need to know) assuming you can find the software.
    As best I can remember you cannot extract files from a Retrospect backup except using the software since Retrospect did not normally make a file by file backup rather it created an archive of the files in the backup. I'm assuming that the EMC/Retrospect people have told you that old Retrospect backups are not accessible by Retrospect 8.x?

  • How to get Text from (.txt) file to display in the JTextArea ?

    How to get Text from (.txt) file to display in the JTextArea ?
    is there any code please tell me i am begginer and trying to get data from a text file to display in the JTextArea /... please help...

    public static void readText() {
      try {
        File testFile = new File(WorkingDirectory + "ctrlFile.txt");
        if (testFile.exists()){
          BufferedReader br = new BufferedReader(new FileReader("ctrlFile.txt"));
          String s = br.readLine();
          while (s != null)  {
            System.out.println(s);
            s = br.readLine();
          br.close();
      catch (IOException ex){ex.printStackTrace();}
    }rykk

  • Does anyone know how to get a preflight file signed by apple for the 21 mac

    does anyone know how to get a preflight file signed by apple for the 21 mac

    im trying to get a hold of them to see if they can deauthorize a computer. I am unable to do it because i can't get the internet to hook up. And i got a new laptop that i get the internet on but i can't authorize it unless i deauthorize the other one. i've called apple 3 times and theyve not been very helpful saying i need to get  hold of itunes.

  • HT4962 how i get ios 5 on my ipod 3g becuase the version is too old 4.2.1

    how i get ios 5 on my ipod 3g becuase the version is too old 4.2.1

    Very likely since yu really have a 2G iPod. Those only go to 4.2.1. If your is an 8 or 16 GB one it is a 2G since Apple only made 32 and 64 GB 3G iPods. A 32 GB one can be either. See:
    http://support.apple.com/kb/HT1353#iPod_touch_late2009
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • How to get a reference to the owner of a class instance?

    Within a method of a class, how can I get a reference to the
    object containing the class instance?
    To be clear: I have class B that contains a method, say
    "myfunc()". Class A (say, the application itself or a custom
    component) instantiates a new instance of Class B : myclassB=new
    ClassB()
    Now, from within myfunc() can I get a reference to Class A?
    The simplest way here is to pass a "this" reference when
    calling myfunc(), i.e. "myclassB.myfunc(this)" but I would prefer
    not to have to remember to always use 'this'.

    Are these objects within each other. Does classA own classB?
    If that is the case, then Greg is correct and it should be
    available in parentDocument.
    In projects in the past we have created a central
    refObjectLocator object that is available to all objects.
    Mostly we use events to communicate between objects. Dispatch
    an event and let whoever listen for it.
    Here is a copy of our reflocator if you are interested.
    package com.goconfigure.model {
    import mx.collections.ArrayCollection;
    import com.adobe.cairngorm.model.ModelLocator;
    import com.goconfigure.util.HashMap;
    [Bindable]
    public class RefObjectLocator implements ModelLocator {
    // this instance stores a static reference to itself
    private static var refObject : RefObjectLocator;
    public var refObjectHM : HashMap = new HashMap();
    // singleton: constructor only allows one model locator
    public function AppLocator() : void {
    if ( RefObjectLocator.refObject != null )
    throw new Error( "Only one RefObjectLocator instance should
    be instantiated" );
    // singleton: always returns the one existing static
    instance to itself
    public static function getInstance() : RefObjectLocator {
    if ( refObject == null )
    refObject = new RefObjectLocator();
    return refObject;
    public function addRefObject( pRefObject : Object, pName :
    String ) : void {
    refObjectHM.put(pName,pRefObject);
    public function getRefObject( pName : String ) : Object {
    return refObjectHM.getValue(pName);
    public function removeRefObject( pName : String ) : void {
    refObjectHM.remove(pName);
    public function clearRefObject() : void {
    refObjectHM.clear();

  • How to get a value for Select One Choice in the backing bean

    Friends,
    Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
    Below is the my code snippet
    <af:selectOneChoice value="#{bindings.country.inputValue}"
    required="#{bindings.country.hints.mandatory}"
    shortDesc="#{bindings.country.hints.tooltip}"
    id="soc1" autoSubmit="true" valuePassThru="true"
    valueChangeListener="#{pageFlowScope.Bean.onValueChange
    <f:selectItems value="#{bindings.country.items}" id="si2"/>
    </af:selectOneChoice>
    Thanks in advance.

    check my other post at Re: Pass data from a variable to another page

  • How can I set the field ICt in component table of the Tasklist as "Input" ?

    Hi experts,
    How can I set the field ICt (BOM's Item Category (POSTP)) in component table of the Tasklist as "Input" Status (The system is in gray now).
    I can define the different Category value by IB01 or IB02,then I can select them at the Tasklist's component table.But sometimes I need batch input such as LSMW,so pls kindly tell me how to setup it,thanks!
    Yinjun

    Hi,
    BOM is created with some component and item category.
    In task list when you go to component, in normal case one selects and copies BOM over there by clicking component selection button.
    Once BOM is copied over there the BOM item category will get copied. As it is BOM item category in Task list it is greyed and it will get copied automatically from BOM.
    You specify item category required by you in IB01 or IB02 and then use that BOM in task list. Go to componenet tab and click component selection button. Once BOM is copied over there the BOM item category will get copied

  • How to get my ipad to connect to itune if the password is locked

    How to get ipad to connect to itune if the password is locked.

    note total data loss
    recovery mode
    open itunes on computer
    plug cable into computer not iOS device
    turn device off
    hold home button and plug cable into IOS device.  do not release home button until an itunes graphic appears on IOS device.
    look to computer should have message about recovery mode click ok and restore
    Peace, Clyde
    if u need an article see
    http://support.apple.com/kb/HT1808

  • How to get Ken Burns effect to zoom out so the whole pic is visible

    I want to start or end with the full pic in view - just as the FIT command does.
    Then I want Ken Burns to Zoom/pan to make it interesting.
    But I can't figure out how to re-size the frame beyond the 4:3 (or whatever is restricting it) ratio.
    Tried dragging the frame edges with CTRL, ALT, SHIFT, and COMMAND. Nothing seems to release the constraint.
    Thanks in advance.

    I want to start or end with the full pic in view - just as the FIT command does.
    If by "Fit" you mean the image exactly matches the display area, then you would have to "pre-crop" your scan to one of the available aspect ratios either before or after making your scan. If by "Fit" you mean "letterbox" or "pillar" views, then as Appleman said, you would have to either use the mentioned automator action or almost any graphic application. I prefer the manual approach so I can add a "text" area, frame, texture the background and/or image, and/or create other special effects.
    But, how do I zoom the view out past the edges of the photo? If I press the FIT button in KB effect, it does it. But I loose the ability to zoom/pan... Unless there is some trick to getting KB effect to start or end with a FITted picture?
    There isn't. iMovie '08 automatically scales the content to make the smallest dimension "fit within" the display area and, therefore, does not allow the "over-zoom" effect of "fitting" the larger dimension within the display area. You can however do this in iMovie HD. So if you want the "built-in" capability, this is a case where you should be using the the older application -- otherwise you will have to letterbox/pillar the content to get iMovie '08 to "Fit" your image as you wish.

  • My menu for "file" "tools" ,etc. has disappeared and I don't know how to get it back and keep it there at the top. Also, my e-mail (gmail) has disappeared and when I try to get a new gmail account, it doesn't "take". What to do????

    I thought that my account had been hacked and that might be the reason I could not get my 2 different e-mails. Also, at the same time this happened, I could not get into Internet Explorer. I could still get into and use Open Office during the above problems

    Thank you for the info re. the main menu. Your answer I used worked; however, the menu bar all the way across is solid black. The only way I can find out the names on the menu is to point the cursor from left to right over the black bar to find "file" "edit" tools", etc. What do I need to do to get these menu titles to be seen?
    As regarding the GMail --the menu bar used to have an envelope symbol which was white and outlined in red. That disappeared. I googled "mail.google.com" to try to get back my email. This didn't work. I then tried to get a different email address and password--after 8-19 attempts, this never worked. My other email (sbcglobal.net) has never returned. So I don't know where that went or how to get it back

Maybe you are looking for

  • "Number of Plays" Incorrect

    Hi, Query about IPod Touch. Thw number of plays on my iTunes library is being shown incorrectly. For instanct if I play a song on my IPod once, the number of plays for that song will be shonw as 160 or 180 times. Is there a  fix for this. Regards, Su

  • My I Mac 10.5.8 osx is running so slow a snail could beat it

    My I Mac is so slow it's driving me nuts, it loads anything from Excel, Internet absolutely anything I try to do. The little spinning wheel comes on and I have to sit and wiggle my thumbs while I wait.

  • Accessing HOTMAIL from my IPHONE.

    There has been a problem with accessing hotmail in the last few days.  I'm seeing that as of today, the problem is supposed to be fixed, (says that on Microsofts website) but i STILL cannot access hotmail from my iphone!  HELP!

  • How to set up composition in cm?

    I've been given an assignment that requires me to make a motion graphic in After Effects. However, it reads that I should create the graphic in a 25x14 landscape format. The asssignment doesn't mention pixels at all, so I'd like to know, if it's poss

  • Re: BT - Your customer service for the bereaved st...

    My brother died 24th Feb 2014. I contacted BT to let them know this and that i would clear any arrears before taking over his account to keep the BT services we have. I am now his childrens guardian, they lost their Mum 4 years earlier, so wanted to