How to get the value of the user interface component in managed Bean

Hi people,

How to access the value of a component managed bean?
<af:inputText value="#{bindings.Name.inputValue}"
                        label="#{bindings..Name.hints.label}"
                        required="#{bindings..Name.hints.mandatory}"
                        columns="#{bindings.Name.hints.displayWidth}"
                        maximumLength="#{bindings..Name.hints.precision}"
                        shortDesc="#{bindings.Name.hints.tooltip}"
                        id="Name"
                        partialTriggers="Type">
            <f:validator binding="#{bindings.Name.validator}"/>
          </af:inputText>
I want the input value of the component name.

thnks

You can use this in your managed bean

...
// get the binding container
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();

// get an ADF attributevalue from the ADF page definitions
AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Name");
String val = attr.getInputValue();

...

Timo

Tags: Java

Similar Questions

  • How to bind the user interface component to a display object that is created from a SQL query

    I use JDeveloper 11.1.1.2.

    I created a method in my ApplicationModule to create a dynamic ViewObject instance based on a 'voCode"passed in:

    public loadVO (String voCode) {} ViewObject

    ViewObject viewObject = findViewObject (voCode);
    If (viewObject == null) {}
    viewObject = createViewObject (programCode);
    }
    return viewObject.
    }

    I created a Client interface for this method and updated the control data of the ApplicationModule.

    The "Oracle JDeveloper 11g Handbook", I should be able to create a link from the tree and an executable methodIterator to the method of "loadVO" through the control of AOS data.

    I tried to manually add the binding to the definition of the page my page jspx, I like to see if I can replace an existing binding with this new binding.
    I was not able to add the link under "tree to create binding" 'Root Data Source' both 'Tree level rules' must be specified.
    I was able to specify the root 'Data Source' to point to the "loadVO" and the corresponding parameter, but not able to add a rule.
    When I clicked on the icon "+" to add the rule, anything that allowed me to clarify the rule (if I know which rule I should add).

    How can I bind the module of the application 'loadVO' method while it is exposed in the data control to provide data to a UI like PivotTable component?

    On the other hand, I was able to create the "methodIterator" first for the method 'loadVO' AM but I wasn't able to create a tree link to refer to the "methodIterator".
    Is it possible to call the method loadVO with the value of specific setting via the "methodIterator" of a bean method?

    Published by: pyin_amec on January 25, 2010 15:57

    I've corrected the subject line and change my question to better reflect the problem I tried to solve.

    Published by: pyin_amec on January 26, 2010 07:41

    Hello
    It worked for me... I created an inputtext area where I can enter a query and run...
    It could be that useful...

    AM Impl

         public void createVoWithQuery( String pQuery )
         {
    
              ViewObjectImpl vo = null;
              if( findViewObject( "DemoVo" ) != null )
                   findViewObject( "DemoVo" ).remove();
    
              vo = ( ViewObjectImpl )createViewObjectFromQueryStmt( "DemoVo", pQuery );
              //  vo.setKeyAttributeDefs( new int[]{0} );
              vo.executeQuery();
         }
    
         @Override
         protected void prepareSession( Session session )
         {
              super.prepareSession( session );
              if( findViewObject( "DemoVo" ) == null )
                   createViewObjectFromQueryStmt( "DemoVo", "Select 1 from dual" );
         }
    

    Page Def

    
        
          
        
        
      
      
        
          
    
          
        
        
          
        
        
          
            
          
        
      
    

    page

    
              
                
                  
                    
                      
                    
                  
                
              
              
              
                
                  
                    
                  
                  
                
              
            
    
  • How to change the size of the user interface component

    Hello

    How can I change the size (width and height) of the user interface component?  For example, I want to set the width of a ListField and add a scroll bar (horizontal). Thank you.

    Young

    GetPreferredWidth and getPreferredHeight methods can be rewritten to change the requested dimensions of a field.

    However, this does not mean that a field will support horizontal scrolling with only this change and can vary depending on the field.

  • How to get the user input to dynamic Action confirmation message?

    Hi guys,.

    I use apex 4.1.

    I added a page dynamic Action confirmation message box. How can I get the user input to the confirmation pop up?

    Thank you

    Hello

    you do not directly get user input. But you should still be able to get what you want. Suppose you have a dynamic action which fires for a 'change' (or other) and who has two or more actions

    (1) confirm
    (2) execute the PL/SQL Code

    If the user clicks Cancel/no in the confirm dialog box, APEX stops execution of this dynamic action and not run "run the Code in PL/SQL.

    Hope that helps
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How can I get the user interface in af:SelectManyShuttle

    Hi all

    I downloaded the screenshot of the user interface I have to build using af: selectManyShuttle in the URL below.


    http://www.freeimagehosting.NET/a5f7c


    Can you get it someone please let me know how I can achieve this or is this still possible using ADF.

    The more important thing to realize in the user interface is icon next to each list of items under certain conditions.

    Thank you
    Rajesh

    Published by: Rajesh on August 8, 2011 12:05

    As far as I know, there is NO direct support for hierarchical select several shuttles.
    But you can create a custom hierarchical select many shuttle tree/tree-tables on both sides and having some features/custom buttons to add/remove items.

    If you use tables of the tree, you should be able to place the icon.

    Thank you
    Nini

  • [MAF] How to get the user name and password after login?

    Hi Experts,

    I have a call to REST where it requires identification information of the user (uname and password) to identify the data that belongs to who.

    Authentication has been made with OAuth.

    I believe that there is an API to get the user name and password in the CRG

    See you soon,.

    Hendry

    Hello.

    You don't need to manipulate the credentials yourself in code. MAF will propagate the logon cookie or inject the identification information in the HTTP header if cookies are not supported.

    To do this, you must select the purchase option of cookie from the server connection Include in REST in the dialog box create a connection Login MAF , such as discussed here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-securing.htm#ADFMF23732

    In addition, you must attach the policy of security appropriate to the connection, as explained here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-Web-services.htm#ADFMF23697

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • How to get the user name during the execution of a workflow?

    Here's what I would do:

    Say that each user is allowed to have 4 instances QA, create a workflow when a user run from vCenter plugin, it must be able to get the user name of the SSO user jsmith, and then he questions if there is an existing virtual machine jsmith_qa1, jsmith_qa2,jsmith_qa4, etc., if there isn't one, then create one for him; If not, indicate to the user that there are already 4 cases.

    I found that I can use getCurrentLdapUser to get [email protected] , now I want to remove the domain.name (there are several areas):

    username = actionResult.userPrincipalName.replace ("@[a - z].") +","");

    This does not work. Anyone know where I can find the right document for the document script of vRealize Orchestrator?

    Thank you!

    Jack

    vRO uses javascript as its scripting engine.

    UPN var = actionResult.userPrincipalName;

    var username = upn.substring (0, upn.indexOf("@"));

    Something like this will give what you want. You could also do a replacement, but I think that you should remove the quotes around the regex and use "/" instead.

    username = actionResult.userPrincipalName.replace (/ @[a - z] "+ /," "");

    Paul

  • How to design the user interface of Indesign plugin cs6?

    Design of UI to the custom help c ++ library (SDK) for pluging is a work very tedious .so when I search on the net I found that we can do to help Adobe Creative Suite Extension Builder but I don't know how to use it to develop the user interface for the plugin and how to enable the management of events in this UI. I read a lot of document about it on the net, but they have all created a lot of confusion in my mind if someone can help me to know the steps I have to follow to develop the plugin using the this or whatever technology (action script, JavaScript etc)

    If you want to develop using Creative Suite Extension builder Extensions so I think that this is not the right forum for you. Thanks for posting your specific queries on the below mentioned link hotel

    http://forums.Adobe.com/community/creativesuites/cs_sdk

    To give a brief of how to develop the interface using JS ScriptUI user allows you to develop your user interface, it's a quick and an OS-independent approach to the development of the user interface. The user interface created using JS comes next. You can see the following link for more help on ScriptUI

    http://www.kahrel.plus.com/InDesign/scriptui.html

    I did not much info about the development of the CS SDK, but I can point you to one direction more than the dev called hybrid plugins that the user interface is created in CS SDK and appropriate methods are exposed plugin C++ (improve the script object model) to be called by the code CS for too and for communication between these two modules of code.

    Hope these pointer help you get started.

    Thank you

    -Manan

  • Workstation 9 - How to get the Web Interface

    As published in this thread: http://communities.vmware.com/message/2045995 but for VMW8, I can not access or find information in the manual on how to access the web interface of 'New' in VMW9?

    Any tips?

    Thank you!

    The WSX server for 9 Workstation is a separate download and install, see https://my.vmware.com/group/vmware/details?downloadGroup=WKST-900-WIN&productId=293&rPId=2920

    See also the configuration and usage WSX in VMware Workstation.

    -Andreas

  • createTextField() will not work with the user interface component

    I use ActionScript to create a TextField and it works very well.

    If I then add (button or checkbox) user interface component to the stage of the textfield stops displaying.

    If I remove just the button on the stage of the object TextField does not always display. If I then remove the button component symbol in my library, TextField appear again!

    Here's the script. It works as long as there is no UI component in the library.

    See Code attached. Displays text, it will stop the display if you put a button on the stage.


    Thanks for any help

    MRC06460CT

    Hello

    I thought I had fixed this problem, but you are right. If I put the arguments in the correct order, the text does not go far.

    Thank you very much

    Mike Cohen

  • How to get the user clicks SeriesName APEX 4.2 flash chart and defined on a hidden element?

    Hello

    I'm developing a graphic clickable flash of APEX, which should be linked to a specific set of data on another page using the SeriesName (clicked several sets of cards).

    (Returned by a function) sql for APEX chart is

    Select distinct null link, d. DNAME label
    , sum(e. SAL ) over (partition by e. ( DEPTNO salary ( )
    , sum(e. Comm ) over (partition by e. DEPTNO ) comm
    de d Dep. , emp e
    e. DEPTNO = d . DEPTNO

    Currently I am able to disply SeriesName (e.g. salary or Comm) on the 2D chart. This is done by including {% SeriesName} Custome XML.

    But I am unable to detect which series name, the user clicks on - pay is comm.  for example, I am not able to enter the name of the series clicked and set it to a hidden item (called P38_SERIES_NAME).  I have to use JavaScript to achieve this? If so, how?

    The reason why I want to use the unique sql is due to that I will have to call a function to return the dynamic and running sql code, I don't know how many series I. i.e. could be comm, average age, salary, bonus etc...

    What is the easiest way to achieve this?   I use APEX 4.2 and Oracle 11 g.

    Thanks for your advice.

    Concerning

    Susanna Su

    Susanna,

    What you experience is the difference between session state and the value of the element on the page. The URL you have is generated on the rendering of the page and use the value of current session state of the question right now. Then when the page is on the client side and that you set the value of the item through javascript this value is still next to the customer and not in session state. Put the value in session state would not matter, however, because the link has already been made. Your best option is to send the page, ensuring the correct value is set to session state and use a branch in present after the process to redirect the user to the correct page.

    I have also described this here: https://forums.oracle.com/message/11110579#11110579

  • How to get the user directory in HTML5 extension?

    Hello

    It may be too easy as well, but I am running with no luck here.

    I am beginner in developing extensions to HTML5. First time I'm developing InDesign CC extension in HTML5. Before that, I used it to develop in Flex (AS3). SE directory of the user with the AIR API was pretty easy with the File class as: (File.userDirectory.nativePath). But with the HTML5 extension I do not know how to get it with Javascript.

    I tried with two or three ways but no luck.

    I tried:

    var systemPath = new SystemPath();
      alert(systemPath.APPLICATION);
    

    It says no "defined."

    I also tried with a different API:


    var tmpDir = OS.Constants.Path.tmpDir;
    

    It says «Undefined OS»

    Can someone please advise on this?

    Thanks in advance

    Mac

    Try this,

    var csInterface = new CSInterface();

    Alert (csInterface.getSystemPath (SystemPath.user_data));

    You can follow this link,

    http://www.davidebarranca.com/2014/01/HTML-panels-tips-2-including-multiple-jsx/

    Thanks to M. Davide, his advice will help a lot of newbies (whose too)

    It will be useful,

    Best...

    AI

  • How to get the user name in "atfer serverror" trigger?

    Hi people;

    How do I get the name of the user who simply lack connection to the database in a trigger "after serverror"?
    The code of the trigger:
    create or replace
    TRIGGER TRG_LOGGON_FAILURES 
    AFTER SERVERERROR ON DATABASE 
    BEGIN
      IF (IS_SERVERERROR(1017)) THEN
      UPDATE utilisateur_ora SET UTO_STA='BLOQUE', UTO_DATE_STATUT=sysdate WHERE UTO_USR_GPL=<var_user>;
      COMMIT;
      END IF;
      
    END;

    11.2 you can use

    sys_context('userenv', 'authenticated_identity')
    
  • How to get the user name in a workflow?

    I have a simple request of what appears to be a basic workflow step.

    I create a workflow that has the user approve/reject their own review as the first step of the workflow. My question is, how do I get the username of each document as it comes in the workflow?

    I read on wfAddUser. If that's what I use, how to use it and where I can add it to the Workflow screen?

    Thank you.

    I don't know exactly what you are after all in a row. You want to get the original author?

    The document is checked and the user name is registered. It is the only name available at the moment where the document to enter the workflow, which would be the only user attached to the content so far.

    have you tried looking at the dDocAuthor variable?

  • "Changes Made" during the closing - how to get the user's response?

    When you press the close button after the change of some fields in text on a form, how can I find out what the user has selected? (Save, delete, cancel)

    Hey,.

    I found this link:

    http://www.BlackBerryForums.com/developer-forum/184021-save-discard-cancel-prompt-capture-button-SEL...

    After reading it, I wrote a little lil of the code.

    public boolean onSave()
        {
            Dialog.alert("Saved Data");
            return true;
        }
    

    It works for me and made the work of what I need. In my application, I want to save the data that a user makes when they leave the page. This code is called if 1) a change has been made on the page, and 2) if the user clicks on the "Save" option in the save/discard/Cancel dialog box.

    Hope that helps

    Mike

Maybe you are looking for

  • How to export Thunderbird email files on a Flash drive

    I finished my term as a Director of a charitable organization and you want to transfer my files of relevant email to another administrator by using a 'flash' player, I can't seem to find a way to transfer these files to e-mail on the stick or the dis

  • The satellite L40 BIOS message

    Hello I have a pretty annoying problem with my new laptop (Satellite L40 18W - model PSL4CE). Whenever I boot, I get > {Quote: title = / var/log/syslog :} {quote}}> PCI: BIOS Bug: e0000000 MCFG area isn't just E820> PCI: do not use MMCONFIG.> ACPI: e

  • How will I know if my phone is Bluetooth compatible?

    I want to use the Bluetooth on my laptop, but I would first find if it is already installed. How can I find and how do I use if it is installed?

  • USB - MP3 and Cam do not work on my Satellite A100-507

    I have problems with USB, 10 days ago everything was ok, but now does not work! I'm trying to connect my mp3 or dig.camera but it says it's problem, as there is no good driver for my mp3 or cam. I try to reinstall the driver CD (mp3, cam), but it can

  • Why the mathscript well below matlab performance?

    Hi all I do the signal processing on a signal acquired with an ADC. The flow of information is roughly 10,000 x 1000 int8 Matrix per second. I'm trying to process the data at the same speed. Signal processing is done in a ".m" matlab file. The treatm