How to get the value of the outputtext in javascript and send it to backing bean

Hi Experts ADF,

JDev Version 11.1.1.7.0

I have the following: the value of the outputtext must be treated in javascript and the serverlistener method has the same value. I founded this value returns a string that wshould see the mouseover NIJ.

Help, please. Thanks in advance.

< af:column sortProperty = "#{bindings." OrderProposalReadClient.hints.exceptions.name}.

filterable = "true" sortable = "true".

headerText = "#{suiviewBundle.EXCEPTIONS} '"

ID = "c16" >

< af:outputText value = "#{row.exceptions}" id = "ot32" clientComponent = "true" > "

< af:clientListener type = "mouseOver".

method = "customJsFunction" / >

< af:serverListener type = "mycustomserverEvent".

Method="#{pageFlowScope.ChangeOrderProposalBean.handleServerEvent}"/ >

< / af:outputText >

< / af:column >

JavaScript

< af:resource type = "javascript" >

var customJsFunction = function (event)

{

var exceptiondata = AdfPage.PAGE.findComponentByAbsoluteId ('ot32');

AdfCustomEvent.queue ();

Returns true;

}

< / af:resource >

BackingBean

public String handleServerEvent(EC ClientEvent)

{

Please let me know how to get the value that javascript code sends here.

Let's say javascript sends the value of outputtext as "001".

So, I have to check "001" in my list and return a value that appears on mouseover.

}

Kind regards
Roy

Hello, Roy.

To use the value on another component of the user interface, I shows an example:

-code of the page

shortDesc = "shortDesc" >

method = "customJsFunction" / >


-the javascript code

var customJsFunction = function (event)

{

var exceptiondata = event.getSource ().findComponent("ot32").getValue ();

AdfCustomEvent.queue (event.getSource (),

"mycustomserverEvent,"

{param1:exceptiondata},

(true);

Returns true;

}

-OutputTextCase11.java

public void handleServerEvent (EC ClientEvent)

{

String param = (String) ce.getParameters () .get ("param1");

RichOutputText outputText = (RichOutputText) ce.getComponent () .findComponent ("ot1");

outputText.setShortDesc (param);

outputText.setValue (param);

AdfFacesContext.getCurrentInstance () .addPartialTarget (outputText);

}

I hope this helps you.

RFH.

Tags: Java

Similar Questions

  • Chart WPF: How to get the limits of PlotArea and axes

    I can't find explicit methods to get limits of PlotArea and axes.

    Please let me know workarounds if they are available. Actually a post explains how to get the PlotArea limits using RangeCursor. Are there alternative means for shafts?

    The photo below shows what I did in WinForms with the methods GetBounds and HitTest. I would like to draw the ornaments on the chart in WPF.

    I have attached a code example of this look ornaments around the plot area and the scales.

    Note that this relies on implementation details of the current version of WPF controls for the ornaments of the scale, as it was more effective than gradually points to test in the graph using the GetScaleAt method. We have intentionally left much of the underlying primitive types with a minimum documentation, like us they have changed in the past and may change in the future. Although these exact members can be removed in a future release, we do not expect to provide an equivalent function and stabilize the primitive API over time.

  • How to get the element selected listfield and goto next page?

    Assalaamualikum

    I try parsing the XML from a url and show in listfield.

    problem:

    How to get the selected item and passing the variable and than goto next page?

    my code:

    package parsepack;

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Vector;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.StreamConnection;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.DrawStyle;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.FieldChangeListener;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;
    Import net.rim.device.api.xml.parsers.DocumentBuilder;
    Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;

    to import org.W3C.DOM.document;
    Import org.w3c.dom.Node;
    Import org.w3c.dom.NodeList;

    extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
    {

    Public Shared Sub main (String [] args)
    {
    xmlparsing app = new xmlparsing();
    app.enterEventDispatcher ();
    }

    public long mycolor;
    Connection _connectionthread;
    private static ListField _list;
    private static Vector listElements is new Vector();.
    public display display = new MainScreen();
    MainManager VerticalFieldManager;
    VerticalFieldManager subManager;

    public xmlparsing()
    {
    Super();
    pushScreen (screen);

    final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");

    mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
    {

    public void paint (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);

    Super.Paint (Graphics);
    }

    };

    subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
    {
    protected void sublayout (int maxWidth, maxHeight int)
    {
    int displayWidth = Display.getWidth ();
    int displayHeight = Display.getHeight ();

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }
    };

    Screen.Add (mainManager);

    _list = new ListField()

    {

    public void paint (Graphics graphics)

    {
    graphics.setColor ((int) mycolor);
    Super.Paint (Graphics);

    }

    };
    myColor = 0x00FFFFFF;
    _list. Invalidate();
    _list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
    _list.setRowHeight (50);
    _list.setCallback (this);
    mainManager.add (subManager);
    listElements.removeAllElements ();
    _connectionthread = New Connection();
    _connectionthread. Start();
    }

    protected boolean navigationClick (int status, int time)
    {
    Try
    {
    Here, go to another screen if you need.

    }
    catch (System.Exception e)
    {
    System.out.println ("Exception:-: navigationClick()" + try ());
    }
    Returns true;
    }

    private class login extends thread
    {
    Public connection()
    {
    Super();
    }

    public void run() {}
    Doc document;
    StreamConnection conn = null;
    InputStream is = null;
    try {}

    Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...

    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
    docBuilderFactory.setIgnoringElementContentWhitespace (true);
    docBuilderFactory.setCoalescing (true);
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
    docBuilder.isValidating ();
    is = conn.openInputStream ();
    doc = docBuilder.parse (is);
    doc.getDocumentElement () .normalize ();
    List of NodeList = doc.getElementsByTagName ("ID");
    for (int i = 0; i)< list.getlength();="" i++)="">
    Node node = list.item (i) .getFirstChild ();
    listElements.addElement (textNode.getNodeValue ());
    }
    } catch (Exception e) {}
    System.out.println (try ());
    } {Finally
    If (is! = null) {}
    try {is.close ();
    } catch (IOException ignored) {}
    } If (conn! = null) {}
    Try {conn.close () ;}
    catch (IOException ignored) {}
    }} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    _list. SetSize (listElements.Size ());
    subManager.add (_list);
    Screen.Invalidate ();
    }
    });
    }

    }

    ' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
    {
    Your string = (String) listElements.elementAt (index);
    int yPos = 0 + y;
    g.drawLine (0, yPos, w, yPos);
    g.drawText (, 5, 15 + y, 0, w);
    }

    public {get {Object (ListField list, int index)
    {
    Return listElements.elementAt (index);
    }
    public int indexOfList (String prefix, ListField list, int, string)
    {
    Return listElements.indexOf (prefix, string);
    }
    public int getPreferredWidth (ListField list)
    {
    Return Display.getWidth ();
    }
    public final void insert (String toInsert, int index) {}
    listElements.addElement (toInsert);
    }

    ' Public Sub fieldChanged (field field, int context) {}

    }
    }

    Thank you.

    I told you that replace the navigationclick() method where initialize you your listfield

    as I think that changing your code and then answer me

    _list = new ListField()
    {
    protected boolean navigationClick(int status, int time)
    {
      Dialog.inform("hi");
      return true;
    }
    
    public void paint(Graphics graphics)
    {
    graphics.setColor((int) mycolor);
    super.paint(graphics);
    }
    };
    
  • How to get the storage allocated profile and used the plugin vCloud 5.1 Vdc

    How can I get the storage allocated and used for a Vdc in vCloud 5.1 plugin?

    VCloud plugin 1.5, there was a property of VclVdc.storageCapacity give us the space allotted, limit, use (s) and overhead costs.

    VCloud plugin 5.1 we allways null VclVdc.storageCapacity. Then VclVdc.getStorageProfiles () but presents the objects, there is that the "limit value".

    ¿WHERE are the other values?

    I have attached two screenshots. vCloud console shows the data, but not vCloud plugin.

    Thank you very much.

    Damian

    Tell me if this work. This was written in a few minutes.

    var host = vdc.getHost();
    
    var queryService = host.getQueryService();// toAdminObject().getAdminQueryService();
    
    var profs = vdc.getStorageProfiles();
    
    for each (var prof in profs) {
    
        var expression = new VclExpression(VclQueryAdminOrgVdcStorageProfileField.HREF, prof.getReference().href  , VclExpressionType.EQUALS);
        var filter = new VclFilter(expression);
        var params = new VclQueryParams();
        params.setFilter(filter);
        var resultSet = queryService.queryRecords(VclQueryRecordType.ADMINORGVDCSTORAGEPROFILE,params);
    
        while (resultSet != null) {
            var records = resultSet.getRecords(new VclQueryResultAdminOrgVdcStorageProfileRecord);
            System.log(records.length + " records found");
                for each (var record in records) {
                    //obtain data from record
                    System.log("storageUsedMB : " + record.storageUsedMB);
                    System.log("storageLimitMB : " + record.storageLimitMB);
                }
        resultSet = resultSet.getNextPage();
        }
    
    }
    
  • How to get the count of UUTPassed and UUTFailed of c# ActiveX control

    Hello

    My operator interface use the TestStand ActiveX in c# control. I'll use the OP to a bench of EHR, which runs the same file in sequence. I would like to know the total UUT-tested, UUTPassed and UUTFailed count after each HAD tested. Is there built-in parameters does the work for me and how can I get it? If there is not, I have to create internal variables in c# to do the job.

    Thank you

    Kind regards

    No, there are no construction based on this. So either you have to implement something like this in on of the following:

    (a) the user interface

    (b) the SequenceFile (as long as it is not discharged in the meantime)

    (c) the process model

    (d) use an external tool for analysis

    If you already work with databases for reports, I suggest using d). If this isn't the case, you can choose. But change the process template is not recommended (if other, simple solutions are available), I would not recommend c).

    hope this helps,

    Norbert

  • How to get the Application Build Date and time?

    Hi guys,.

    I am developing application in Cascade.

    What is the API I can use to get the construction Date of the application and Tiime?

    These macros are expanded to C-strings at compile time. This is how/where to use it. Following an example would work I think:

    fprintf (stderr, "construction date is %s, construction time is %s\n", __DATE__, __TIME__);

  • How to get the difference of current and previous line for a column of the same table?

    Hello

    I have a table where there are 3 rows and say 2 columns only, as below

    Col1               | Col2
    --------------------- |----------------------------------------

    first_flag |  100

    second_flag |  104

    third_flag |  110

    Now, using sql, which accepts a parameter col1, how do I get the bottom o/p

    say that the entry is second_flag,

    output must be

    second_flag, 104, 4 (4 being the difference between 104 and 100)

    If I give the entry like third_flag, the output should be

    third_flag, 110, 6 (6 is the difference between 110 and 104)

    Any help?

    Hello

    Another way is to use the analytic LAG function:

    WITH got_diff AS

    (

    SELECT col1, col2

    , col2 - LAG (col2) over (ORDER BY col1) AS diff

    OF mydata

    )

    SELECT *.

    OF got_diff

    WHERE col1 =: flag_wanted

    ;

    This assumes that the lines are in alphabetical order by col1.  If the order is something else, then use it in the ORDER BY clause analytical.

  • How to get the double mono audio when sending prelude Roughcut to Premiere Pro?

    Can someone please tell me how to send a first Assembly of first mono audio with dual prelude?

    I have pictures with dual mono audio.

    I did my first editing of subitems in prelude.

    I right click and choose send to Premiere Pro.

    In Premiere Pro, I get my complete clips and the sequence.

    The sequence is stereo, but I need it to be dual mono.


    I can right click and change the individual clips in Premiere Pro in mono, but they do not affect the sequence.

    I got mono preferences Premiere Pro to import audio data regardless of the source. This does not seem to do anything.

    I can't find anything as a prelude to double mono audio export.

    Help, please!

    HI -.

    The only way I found to do what you ask for is:

    1. prepare your Rough Cut in the prelude and send it to the first

    2. once in the first, I copied my audio track 1 audio (stereo) and copied in 2 Audio and Audio 3 (in duplicate)

    • Note: I had to create two additional audio tracks to the sequence in PR. I upgraded them.

    3. right click on the Audio 2 clip and select "Audio channels...". "in the context menu

    4 uncheck the RIGHT way - so all you have is the LEFT channel enabled for this audio track

    5. pass Audio 3 and repeat steps 3 + 4 above, but this time clear the RIGHT channel in the dialog box "Audio channels...". ».

    6. cut the Audio track 1

    I realize that it is a manual process. We hope to provide a better solution, go ahead - be able to modify dynamically the Audio settings of sequence for example would have toured here - but of course that option does not exist currently.

    Kind regards

    Michael

  • How to get the customer name, UUID, and cluster comments

    Hello

    I was wondering if somone could show me how to tie somethings together. I can get a VM UUID, I can get the names of the virtual machines and the cluster on which they sit, but I'm having a hard time getting all 3 into a single csv report. All the world is that who could share? Thank you!

    Try this

    Get - VM | Select Name,@{N="UUID; E={$_. ExtensionData.Config.Uuid}},@{N="Cluster '; E={($_ | Get - Cluster). Name}}

  • How to get the current file name and &amp; or path

    How can I get the current path or the file name?

    I have really found the answers in the net. This.Path or app.path have been proposed, but I couldn't make it work.

    Thanks in advance for your answer!

    LiveCycle Designer ARE 8.2.1.3144.1.471865

    Hello

    event.target.path.toString ();  will give the full path, including the file name.

    event.target.documentFileName.toString ();  will give the file name only.

    Good luck

    Niall

  • How to get the old default profile and delete the new default profile?

    Due to the power cut, I was not able to shut down my PC (windows 7). When I started it again once I started it in safe mode as i had dialogue"Windows has not stopped correctly chosen what mode to boot your PC... »

    I chose safe mode and then restarted the PC normally. But when I started FF, he behaved as if it were the first time installed and all my settings were gone.

    Open the Profile Manager and he showed only 1 default profile where, as I have 2 (default and another profile). This new default profile is completely new.

    I found my profile folder. It contains 3 profiles. My previous default and the other that I had created. And the third profile is new default. How do you take the 2 earlier

    Hello! You can copy your old information in your profile again (and since you had two old profiles to be restored, you can also create a new another profile for the second). It's all about copy - paste between folders, more information here: recovery of data from an old profile.

    Information on how to create a new profile here: use the Profile Manager to create and delete profiles Firefox.

  • How to get the driver network card and on the use of the PowerCLI firmware version?

    Hi all

    I would like to know if anyone can help me in sharing the PowerCLI script to list the server NETWORK card driver and the firmware version?

    Note: I use the HP Blade Server and it's manual ESX - CLI command output:

    HP BL 465c G8
    ~ # ethtool-i vmnic0
    pilot: be2net
    version: 10.5.65.4
    firmware version: 10.2.340.19
    bus-info: 0000:04:00.0

    HP BL 465c G7
    ~ # ethtool-i vmnic0
    pilot: be2net
    version: 10.2.293.0
    firmware version: 4.9.416.7
    bus-info: 0000:04:00.0

    Any kind of help would be greatly appreciated.

    Thank you.

    PowerCLI Version

    ----------------

    VMware vSphere PowerCLI 6.0 Release 2 build 3056836

    ---------------

    Component versions

    ---------------

    VMWare AutoDeploy PowerCLI component 6.0 build 2358282

    VMWare ImageBuilder PowerCLI component 6.0 build 2358282

    VMware vSphere PowerCLI component 6.0 build 3052101

    It works for you?

    $esxName = "MyEsx".

    $esxcli = get-EsxCli - VMHost $esxName

    $esxcli.network.nic.list () | %{

    $esxcli.network.nic.get ($_.) Name) |

    Select Name,

    @{N = "Driver"; E={$_. DriverInfo.Driver}},

    @{N = 'Version'; E={$_. DriverInfo.Version}},

    @{N = 'Firmware Version'; E={$_. DriverInfo.FirmwareVersion}}

    }

  • How to get the selected tree node and its attributes

    I have a 'af:RichTree' on a page, which is linked to a support bean (session scope)

    Here is my selection Listener:

    {} public void groupTreeSelectionListener (SelectionEvent selectionEvent)
    RichTree tree = (RichTree) selectionEvent.getSource ();
    Model TreeModel (TreeModel) = tree.getValue (); / /--> this line causes a "pointer Exception zero."
    RowKeySet rowKeySet = selectionEvent.getAddedSet ();
    Key of the object = rowKeySet.iterator () .next ();
    }




    what I'll do is get the note selected and then get all the attributes of this node, perform other actions.


    Please advise,

    Thank you
    Shahab

    have not tried the tree component but cross chek well's Rowselection component of the tree. If so set to single or multiple

  • How could get the categories of items and Module-specific to the company?

    Could we make it point to organization and specific Module categories? At present, the same structure of flex 'Categories of elements' is used by management of orders (already implemented) and now the purchase of / iProcurement (executed). To make category and module-specific to the company, we need to attach a value based on a custom SQL?

    In the implementation of the OM, we used flex structure "Article catégories" for items of products finished. Thus, a finished good CEMBAG has CEMENT category. BAG attached to it. Cement bulk's CEMENT. In BULK which are related to it. In this phase, we create spare parts using the same category structure (I was wondering, if we should change it). But now, when we will implement an element, we see all categories, for finished products and spare parts in all of all businesses. So, we see Working CAPITAL. BALL.., ELECTRIC. AMMETER... OM alongwith categories. We cannot change the default category value for the management of orders or inventory (already implemented), but it looks like that we would have to change the default category for purchases of separate categories. Also need to separate the research as the reason Codes. Tell code for a reception various gives all reason codes, those created for the management of orders and purchases.

    You must make sure that the categories assigned to the entire old category also appear in the new category.

  • How do I get the analog input signal and send it to output analog (real time)

    Hello world

    I do a simple task in Visual C++ and I use PCI-6221(37 pin).

    Basically, I want to send the same signal of "analog input" to the "analog output".

    at the same time (or almost), to make real-time application.

    Can someone provide me with sample program please.

    I would be grateful if you could provide me with the great tutorial that explains

    step by step everything about NOR-DAQmx for C/C++ programming.

    Best regards

    Khassan

    This is my code in C++, you can optimize it if that seems too messy. This code reads the analog input signals and exports it through the analog outputs.

    To make this code additional work of the directories include and library directories must be added to OR.

    I hope it helps someone.

    #include
    #include
    #include "NIDAQmx.h".
    #include

    #define DAQmxErrChk (functionCall) {if (DAQmxFailed (error = (functionCall))) {goto error ;}}

    int main (int argc, char * argv [])
    {
    Int32 error = 0;
    TaskHandle taskHandleRead = 0, taskHandleWrite = 0;
    Read Int32 = 0;
    float64 context [1000];
    char errBuffRead [2048] = {'\0'};
    char errBuffWrite [2048] = {'\0'};
    bool32 done = 0;
    Int32 wrote;

    DAQmxErrChk (DAQmxCreateTask("",&taskHandleRead));
    DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandleRead,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleRead,"",100.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,0));
    DAQmxErrChk (DAQmxCreateTask("",&taskHandleWrite));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandleWrite,"Dev1/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleWrite,"ai/SampleClock",100.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000));

    DAQmxErrChk (DAQmxStartTask (taskHandleRead));
    DAQmxErrChk (DAQmxStartTask (taskHandleWrite));

    While (! fact &! _kbhit())

    {

    DAQmxErrChk (DAQmxReadAnalogF64(taskHandleRead,1,10,DAQmx_Val_GroupByScanNumber,dataRead,1000,&read,));

    DAQmxErrChk (DAQmxWriteAnalogF64(taskHandleWrite,read,0,10.0,DAQmx_Val_GroupByChannel,dataRead,&written,));

    }
    _getch();

    Error:
    If (DAQmxFailed (error))

    {
    DAQmxGetExtendedErrorInfo (errBuffRead, 2048);
    DAQmxGetExtendedErrorInfo (errBuffWrite, 2048);
    }
    If (taskHandleRead! = 0)

    {

    DAQmxStopTask (taskHandleRead);
    DAQmxClearTask (taskHandleRead);
    }
    If (taskHandleWrite! = 0)

    {

    DAQmxStopTask (taskHandleWrite);
    DAQmxClearTask (taskHandleWrite);
    }
    If {(DAQmxFailed (error))
    printf ("error DAQmx: %s\n",errBuffRead); ")
    printf ("error DAQmx: %s\n",errBuffWrite); ")
    }
    printf ("end of the program, press the Enter key to quit\n");
    GetChar ();
    return 0;
    }

Maybe you are looking for

  • my button send is not put in evidence

    When I send a new email, the button send is not put in evidence and you can't tap to send mail, what is wrong

  • Google and Wikipedia and possibly other search engines, have suddenly disappeared as a choice in the search bar

    I'm fairly certain that Google has always been my default search engine when you search using the address bar, but it has been switched to Yahoo Search. I tried to follow the suggestion to open the box to "Manage search engines" and clicking on the b

  • -17308; Specified value is not the expected type

    Funny, it is the piece of code works in the development system, but not in the deployment I use Locals.SelOutType (array to iterate on) a stage in ForEach bfore I do (PropertyExists ("Parameters.Result.AdditionalResults [\"Standard Output\ ""] ")?) (

  • Subvi questions

    I am very new to LabView, and I'm trying to chain several VI who wrote programmers better than me. I have problems, however some of them to work as the Subvi in my program, so I feel like I'm missing something. The joint "Hand Controller.vi" translat

  • BSOD on Y510

    Hi guys,. I have a recurrent BSODS after trying to install the drivers for the program "Alcohol 120%". Startup is not getting up to the Vista boot screen, and safe mode ends in the same dilemma. I was wondering if there is a way to fix this problem w