How to call a function with parameters in jsf managed Bean


1. I created a Bean managed to manage chains of jsf to WebCenter spaces:

public class ManageStrings {}

/ * Converts all characters in a string to uppercase. */

public String getToUpperCase (String str) {}

Dim retVal = str.toUpperCase ();

Return retVal;



2. I registered managed Bean:

" < managed-bean id ="swc_3"xmlns =" "> "

< id managed-bean-name = "swc_2" > tools < / managed-bean-name >

< managed-bean-class id = "swc_1" > cat.badalona.webcenter.utilities.ManageStrings < / managed-bean-class >

< managed-bean-scope id = "swc_4" > backingBean < / managed-bean-scope >

< / managed-bean >

3 to code jsf, I tried different options, but they do not work

" < = xmlns:af af:outputText ' "value="#{backingBeanScope.utilities.getToUpperCase['hello']}"/ > "


" < = xmlns:af af:outputText ' "value="#{backingBeanScope.utilities.toUpperCase['hello']}"/ > "


" < = xmlns:af af:outputText ' "value =" #{backingBeanScope.utilities.getToUpperCase ('hello')} "" / >

What I am doing wrong?

Thaks in advance


Hello Carles,

I did it with the content presenter where I need to pass the ID of the component selected in backing bean. Please try below option

Now add following code in your binding

Private RichOutputText outputText1;

then the getter for this outputtext set.

and in your action method to read the value of the output text.

Hope this helps with your problem.

Thank you


Tags: Fusion Middleware

Similar Questions

  • How to call the function with arguments varray.

    I've got function like this:
    FUNCTION find_id(
          p_id            IN   VARCHAR2,
          p_special_columns     IN   varr_varchar,
          p_special_values      IN   e_varr_varchar,
          RETURN VARCHAR2;
    How can I build this function call (nvarchar data type is necessary) using the only pl/sql and can do with pure as sql select double f();?
    I'm on

    Select find_id (p_id, VARR_VARCHAR('1','2','3'), e_varr_varchar('1','2','3')) of double;


  • How to call external functions without one. DLL (just using a.) H and. LIB file)?

    Hi all

    in fact, I am facing difficulties on how to get an external function is called in CVI (Version 2009).

    I was delivered with a. H file and a. LIB file to call an external function of my project CVI. The. H file looks like this:

    void exportedFunction(double *parameter);

    As far as I know, the external function was written with MS Visual C++ 6.

    So, I tried to link statically to the al extern like this function:

    -Add the. H file and the. LIB file to the CVI project

    -#include the. Folder H when I needed to call the external function

    -do the external function call

    During construction I get unresolved CVI external function call error, so this seems not work.

    I did some research autour and stood up with two possible problems. Maybe one of you can help me get a bit further and do work things out.

    (1) of the code of the 'real' function inside the DLL file that was not delivered to me. Or y at - it a way to get concrete results (calling external functions) with just one. H and a. LIB file (with none. Included DLL file)?

    (2) the external function does not export according to the rules of Style 'C '. The signature of the function in the. H file shows some things don't like

    extern "C" __declspec(dllexport) void __stdcall ...

    Or maybe it's a combination of these two issues (missing. DLL + bad export style function)?

    I guess I could get around the incorrect service export style when I managed to write a wrapper around the original function that actually uses Style C exporters. But I guess I need to the. DLL file for this test as well.

    Thank you very much for your answers.

    Best regards


    There is no need for the stuff of dllexport. There is also the option of a static library without any DLL.  But the "extern"C"' is essential, because it forces the C++ compiler, which was probably used to compile the library to use the C calling convention.

    If you are unable to ask the library vendor to provide a version that was compiled using C calling convention is the way to write a wrapper with VC ++ 6 around this library that functions using C calling convertion reexports. Something like

    extern 'C' myfunc1 type0 (type1 arg1,...) {

    Back to func1 (arg1,...);


    for each function, you must use.

    BTW. "unresolved symbol" is the error message from the linker, you can expect if you try to bind the C code against a generation of library with the C++ calling convention.

  • How to call a function in class library?

    Hi all

    Anyone know how to call a function in a library project?

    I have to call using a resource file in a library of a CLDC project project.

    So I write a simple test library and tried to access a function in my CLDC application.

    I tested with 2 following projects.

    1. a library project: TivitFirm

    Sorry I can't answer this from the point of view of the eclipse, I use JDE.  But I suspect that the approaches are similar, even if the detail is different, so maybe this will help you.

    In JDE, you have two options:

    (a) use a jar

    (b) create a dependent project

    (a) I usually use a jar.  So to do this I have a workspace is the library, I compile this, then in my project that uses it, I add the jar to build settings

    (b) in this case, you have two projects in the space of a job, and you say the main project that it is dependent on the library project.

    I hope this helps.

  • How to call the function cascade BlackBerry

    I begineer in blackberry c ++.

    I do two class is testobject and second in test .i call the onther text function average () and nexttext();

    so please how to call this function.

    // Default empty project template
    #include "TestObect.hpp"
    using namespace bb::cascades;
    TestObect::TestObect(bb::cascades::Application *app)
    : QObject(app)
        // create scene document from main.qml asset
        // set parent to created document to ensure it exists for the whole application lifetime
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
        // create root object for the UI
        AbstractPane *root = qml->createRootObject();
        // set created root object as a scene
    void TestObect::test(){
        qDebug()<< "****************Naveen";

    I insert also declared in the header file.

    Q_INVOKABLE Sub test();

    then I create another test class.

     * test.cpp
     *  Created on: Apr 2, 2013
     *      Author: nksharma
    #include "test.h"
    test::test() {
        // TODO Auto-generated constructor stub
    void test:: nexttest(){
        qDebug()<<"***********Next test*********"
    test::~test() {
        // TODO Auto-generated destructor stub

    error in the file namespace,

    here in file herder

    the namespace error

     * test.h
     *  Created on: Apr 2, 2013
     *      Author: nksharma
    #ifndef TEST_H_
    #define TEST_H_
    class test {
        virtual ~test();
         Q_INVOKABLE void nexttest();
    #endif /* TEST_H_ */

    You have a space between the colon and the n in:

    void test:: nexttest()

    Another thiing, if you are using Q_INVOKABLE, you must declare Q_OBJECT in your front header file public:


    If you're still having problems, try to clean up the project with Project > clean...

  • How to call a function stored in ADF

    How to call a function stored in the ADF?

    Example of function:

    create or replace






    DBMS_OUTPUT. ENABLE (500000);

    DBMS_OUTPUT. Put_line (' Hello ' |) NAME | ", YOUR ATTEMPT IS SUCCESSFUL");




    ADF Code example:

    try {}

    System.out.println ("* beginning of the code *");

    String sql = "declare VARCHAR2 (2000) WISH;" begin to DESIRE: = SF_HELLOWORLD(:NAME); : WISH: = WISH; end; ";

    CallableStatement st = getDBTransaction () .createCallableStatement (sql, getDBTransaction(). DEFAULT VALUE);

    st.setObject ("NAME", "ABC"); replace the ABC with required param

    st.registerOutParameter ("WISHES", Types.VARCHAR);

    St.Execute ();

    System.out.println ("the output of the function DB is:" + st.getObject ("WISHES"));

    System.out.println ("* end of code *");

    } catch (Exception e) {e.printStackTrace () ;}

  • Call the function with the arguments in AS3

    I am a new in Flex development and cannot understand same code convention, im Java programmer.
    How I can write correct function in ActionScript, my call call: var goodsWnd:CreateGoodsWindow = PopUpManager.createPopUp (this, CreateGoodsWindow, true) as CreateGoodsWindow;
    I want call above function with argument, how do?
    Where my class: public class CreateGoodsWindow extends extends TitleWindow
    public CreateGoodsWindow(data:Object)

    Using PopUpManager.addPopUp () instead of of createPopUp(). addPopUp takes an object that has already been instantiated:

    var createGoodsWindow:CreateGoodsWindow = new CreateGoodsWindow (data);
    PopUpManager.addPopUp (createGoodsWindow);

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?


    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    > O_number RETURN;
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >

    Pro * C case:

    number of num1;

    : num1: = F_SAMPLE ('A');

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:

    Thank you.


    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    int num1;

    Then it will work very well.


  • How to call a form with splashing around by clicking on a record with a time where

    Hi all

    How to call a form with splashing around by clicking on a record with a time where clause. I mean when I dip, click current record I want to call another form with the details of the
    record with onetime where clause. Can someone help me in this regard.

    Now, I'll call you a form with parameter with where Jadi but this should be avoided.

    Thanks in advance


    Maybe this helps

  • How to call a function plugin with command line parameters

    I wrote a plugin that processes an open document. The treatment can be started by selecting a menu item in Acrobat. To start the processing of the command line, I also wrote a small Visual Basic executable file that currently a bit activates the menu command. However, I now have to pass some parameters to the plugin. I managed to call a function plugin with settings by loading the .api as a library file in the VB executable. But it seems that the entire Acrobat SDK functionality is not initialized in this way. So I can't work with the PDF file. How can I call my function plugin with settings in Acrobat? Thomas

    You must establish a form of IAC (communication monitor) of your VB application with your plugin.

    Whether COM, DDE, IPC, named pipes, shared memory files share, etc. is to you...

  • How to call a function of my html code to js created by animate cc, I had used 'exportRoot.functionName' and said this function in my document of flash pro with html5 canvas, but now on cc animate this way doesn't work.

    My html code created by animate cc was changed to php for me, because I send and received variables via get and catch the cookies and much more. the function that I used to call function on my .fla of the document is passId() and it worked before when animate was Flash pro with html5 canvas.

    Captura de pantalla 2016-09-27 a las 12.19.59 p.m..png

    And function of .fla, I frame_0 only assign to the variable "id_usuario", this is the feature on fla:

    Captura de pantalla 2016-09-27 a las 12.20.12 p.m..png

    First of all, the title of your thread is horrible. Titles are supposed to be securities, not paragraphs.

    As for your problem, you are probably trying to call catchIdUser before it is defined. handleComplete() is raised when the content is ready to run. He did not actually yet. I guess you should have script code call the function of window parent, not the other way around.

  • How can I call a function with parameter out of sql

    Hello world
    I'm calling a Sql statement function and I get this error ORA-06572: XX function has arguments.

    can you offer any solution on this workaround.

    Thank you


    Sorry, you cannot call functions with OUT arguments (or arguments, but I'll just say in the future) SQL statements.
    This is one of the reasons why many people avoid having arguments in functions.
    THE arguments are never optional. If the function expected of them, you must pass to them.

    Depending on your needs, you can write a Wrapper function that has no arguments.
    For example, if you want to call this function:

    fun1 ( in_out_str      IN OUT  VARCHAR2
         , in_num          IN      NUMBER

    you don't need really the value changed to in_out_str, then you can write a function like this:

    fun1_wrapper ( in_str          IN      VARCHAR2
                   , in_num          IN      NUMBER
        in_str2     VARCHAR2 (32767)  := in_str;
        RETURN  fun1 ( in_str2
                       , in_num
    END  fun1_wrapper;

    You can use fun1_wrapper in a SQL statement, even if you cannot use fun1 in the same statement.

    Published by: Frank Kulash on February 27, 2013 09:42

  • How to handle a function with struct return of dll?

    I have a dll 'SCTSCTL_OPEN' function returns a structure like

    typedef struct _sctsctl_t {}
    HANDLE hDevice;
    unsigned char ctl [2];
    unsigned long necessarily;
    unsigned long data_diff;
    HANDLE IsrThread;
    HANDLE IsrEventHandle;
    PVOID can't;
    void (* Manager) (struct _sctsctl_t * board, int intvec);
    } * sctsctl_t;

    SCTS_API sctsctl_t __stdcall SCTSCTL_OPEN (DWORD instance);

    I have imported this dll with LabVIEW and vi returns an unsigned long integer shown as follows.

    How to make a comeback with structure? Any help would be appreicated.

    Kind regards


    LV 8.5.1

    Normally I would be tempted to do a wrapper function and call it with LV LV. handles structure not so naturally.

  • How to call a function in c ++ QML?

    Hi all

    In my application, I saw two QML and a class of CPP.

    Saying one of my root qml: main.qml is a root page, which displays a list. And the line of the list is an another qml (Customrowlist). And I put the contextProperty for main.qml in the PRC and I need to call a function in the PPC of


    I want to call the deleteAccountData(..,..,..) function. Customrowlist.qml, so how can I do.

    Here is my code

    hand. QML

            TabbedPane {
                //property Page about
                id: tabbedPane
                showTabsOnActionBar: true
                Tab {
                    title: "Manage Accounts"
                    onTriggered: {
                    imageSource: "asset:///images/list.png"
                    NavigationPane {
                        id: navPane
                        Page {
                            Container {
                                background: back.imagePaint
                                layout: StackLayout {
                                ImageView {
                                    imageSource: "asset:///images/head.png"
                                    scalingMethod: ScalingMethod.AspectFit
                                    opacity: 1.0
                                ListView {
                                    objectName: "savedaccount"
                                    listItemComponents: [
                                        ListItemComponent {
                                            type: "item"
                                            CustomListRow {
                            actions: [
                                ActionItem {
                                    id: about
                                    title: "About"
                                    imageSource: "asset:///images/info.png"
                                    ActionBar.placement: ActionBarPlacement.InOverflow
                                    attachedObjects: [
                                        ComponentDefinition {
                                            id: aboutPageMA
                                            source: "about.qml"
                                    onTriggered: {
                                        var profilePage = aboutPageMA.createObject();
                                ActionItem {
                                    id: help
                                    title: "Help"
                                    imageSource: "asset:///images/help.png"
                                    ActionBar.placement: ActionBarPlacement.InOverflow
                                    attachedObjects: [
                                        ComponentDefinition {
                                            id: helpPageMA
                                            source: "Help.qml"
                                    onTriggered: {
                                        var profilePage = helpPageMA.createObject();
                                ActionItem {
                                    id: settings
                                    title: "Settings"
                                    imageSource: "asset:///images/settings.png"
                                    ActionBar.placement: ActionBarPlacement.InOverflow
                                    attachedObjects: [
                                        ComponentDefinition {
                                            id: settingsPageMA
                                            source: "Settings.qml"
                                    onTriggered: {
                                        var profilePage = settingsPageMA.createObject();
                attachedObjects: [
                    GroupDataModel {
                        id: feedsDataModel
                        sortingKeys: ["text"]
                        sortedAscending: false
                        grouping: ItemGrouping.None
                    DataSource {
                        id: feedsDataSource
                        source: "mydata.json"
                        type: DataSource.Json
                        onDataLoaded: {
                        onError: {
                            console.log("Error Occured" + errorMessage);
                    ImagePaintDefinition {
                        id: back
                        repeatPattern: RepeatPattern.XY
                        imageSource: "asset:///images/bg.jpg"

    My Customlistrow.qml

    import bb.system 1.0
    import bb.cascades 1.0
    import 1.0  
          Container {
                layout: AbsoluteLayout {}
                    id: usr
                    layoutProperties: AbsoluteLayoutProperties {
                        positionX: 0.0
                        positionY: 0.0
                    background: Color.create ("#ffffff")
                    preferredWidth: 768
                        layout: AbsoluteLayout {}
                        ImageView {
                            imageSource: ListItemData.account
                            preferredWidth: 78
                            opacity: 1.0
                            layoutProperties: AbsoluteLayoutProperties {
                                positionX: 10.0
                                positionY: 16.0
                        Label {
                            id: username
                            text: ListItemData.username
                            textStyle.base: SystemDefaults.TextStyles.TitleText
                            multiline: true
                            textStyle.color: Color.Black
                            textStyle.textAlign: TextAlign.Left
                            layoutProperties: AbsoluteLayoutProperties {
                                positionX: 110.0
                                positionY: 25.0
                        ImageButton {
                            defaultImageSource: "asset:///images/delete.png"
                            pressedImageSource: "asset:///images/deletepressed.png"
                            preferredWidth: 78
                            opacity: 1.0
                            layoutProperties: AbsoluteLayoutProperties {
                                positionX: 680.0
                                positionY: 16.0
                            attachedObjects: [
                                SystemToast {
                                    id: myQmlToast
                                    body: username.text
                            onClicked: {
                        Divider {
                            layoutProperties: AbsoluteLayoutProperties {
                                positionX: 0.0
                                positionY: 118.0
                    gestureHandlers: [
                        LongPressHandler {
                            onLongPressed: {
                                secondcontainer.visible = true;
                    onTouch: {
                        if (event.isUp ()){
                            secondcontainer.visible = false;
                    animations: [
                        FadeTransition {
                            toOpacity: 0
                            duration: 300
                        FadeTransition {
                            toOpacity: 1
                            duration: 300

    in my PPC

    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    void AccountManager::deleteAccountData(QString user,QString pass,QString imgSource){
    SystemToast *toast = new SystemToast();
    toast->setBody("Entered delete account!!!");

    I got your problem. Your CustomListrow does not receive the reference to your context "objectAM".

    Please update your main.qml with the following... function and store the reference to the global object and then from your call of customListRow as "Qt.objectAM.deleteAccount ();

    In the hand. QML on finished creation

    onCreationCompleted: {}
    Qt.objectAM = objectAM;

    In CustomListRow...

    onClicked: {}
    objectAM.deleteAccountData (username.text, password.text, "asset:///images/twitter.png");
    Qt.objectAM.deleteAccountData ("Me", "pwd", "asset:///images/twitter.png");

    Hope it will work.

    Thank you

  • How to call a function within a movieclip on the main timeline in CC animate canvas?

    Hello world...

    In AS3: Function (fnc name: myFunction) inside a Movieclip (mc1). I'll call you timeline mc1.myFunction ();

    But how to call AnimateCC canvas?

    If you have an instance of MovieClip named "mc" with the following code in to:

    This.Fun = function() {}

    Alert ("Hey!");


    You can call this function (increased to 'this' within the MC) using the oon following the main timeline:

    var root = this; ("click", function() {}

    Console.log ( ());


Maybe you are looking for