Problem of passing parameters to commandLink in a column

Hello.

I use JDeveloper 11.1.1.7.0

I have this problem and I do not understand what I am doing wrong.

I have a table like this:

<af:table value="#{bindings.myView.collectionModel}"
            var="row"
            rows="#{bindings.myView.rangeSize}"
            emptyText="#{bindings.myView.viewable ? 'No data to display.' : 'Access Denied.'}"
            fetchSize="#{bindings.myView.rangeSize}"
            rowBandingInterval="0"
            binding="#{backingBeanScope.myBean.t1}"
            id="t1" 
            rowSelection="single"
            contentDelivery="immediate">
    <af:column sortProperty="#{bindings.myView.hints.PrId.name}"
               sortable="false"
               headerText="Nro. Proc."
               id="c2" width="50">
      <af:outputText value="#{row.PrId}" id="ot5"/>
    </af:column>
    <af:column id="c8" headerText="Check" align="center" width="70">
      <af:commandLink text="rowCheck" id="cl1" partialSubmit="true">
        <f:attribute name="rowKey" value="#{row.rowKey}"/>

        <af:serverListener type="serverAction" method="#{backingBeanScope.myBean.linkEvaluacionServerAction}"/>
        <af:clientListener type="action" method="clientAction"/>
      </af:commandLink>
    </af:column>
</af:table>

After a lot of tests, serverListener + clientListener is the only way to run code after clicking on the link. I don't know why, but actionListener in the link doesn't work the first time. The second time and so on, actionListener doesn't not fire.

My problem is how to pass rowKey parameter to the linkEvaluacionServerAction method:

  public void linkEvaluacionServerAction(ClientEvent ce){
    Object key1 = ce.getComponent().getAttributes().get("rowKey");

     // actions with key1
}

I don't know why, but the link rowKey attribute takes the value associated with the first time I clicked on a link.

The second and so on, key1 null values

How can I solve this? Any help is very appreciated.

Concerning

Well, I think (yet) the approach and solve it in this way:


                  
                

Setting of setCurrentRowWithKey is #{row.rowKeyStr}

In my linkEvaluacionAction method I do additional checks.

I hope this helps. Concerning

Tags: Java

Similar Questions

  • Problem with passing parameters to an HTTPService on buttonclick within the grid

    I have a DataGrid where I use ItemRenderers to render components such as buttons n Images within the grid. Now, I need to pass parameters to an HTTPService on click of a button. If the button is directly on the form (not in the grid), is easy to call HTTPService. But given that the button is in a grid, it is not able to resolve the HTTPService and so I can't call the HTTPService on ' click on ' event of the button.

    I would like to know if anyone can help.

    You should probably use click = "outerDocument.myClickHandler ()" "

    The outerDocument allows you to access the methods outside of the rendering engine.

    If this post has answered your question or helped, please mark it as such.

  • Problem with passing parameters to an applet?

    Hello

    I have a page of the apex which is a popup page. I am passing the parameters of the cmdlet and then to read in my java code.

    Here's my applet code
    <SCRIPT>
      function getStatus(retStatus) {
        $s("P3_MESSAGE", ''||retStatus||'')
      }
    </SCRIPT>
    <APPLET ARCHIVE="/i/bin/offline_load.zip" CODE="offline_load.class"  STATUSMSG WIDTH=0 HEIGHT=0> 
    <PARAM name="username" value="&APP_USER.">
    <PARAM name="dbuser" value="&P3_DBUSER.">
    <PARAM name="dbpassword" value="&P3_DBPASSWORD.">
    <PARAM name="dbserver" value="&P0_DBSERVER.">
    <PARAM name="dbport" value="&P3_DBPORT.">
    <PARAM name="dbsid" value="&P3_DBSID.">
    </APPLET>
    P3_DBUSER, P3_DBPASSWORD, etc. are all defined on the page zero elements also hidden and protected

    My applet code
    public void init() {
    
        CallableStatement load_stmt = null;
        String userName = this.getParameter("username");
        String dbUser = this.getParameter("dbuser");
        String dbPass = this.getParameter("dbpassword");
        String dbServer = this.getParameter("dbserver");
        String dbPort = this.getParameter("dbport");
        String dbSid = this.getParameter("dbsid");
    
        try {
            
          System.out.println("init(): loading OracleDriver for applet created at " + created.toString());
          Class.forName("oracle.jdbc.driver.OracleDriver");
          System.out.println("init(): getting connection");
          conn = DriverManager.getConnection("jdbc:oracle:thin:@" + dbServer + ":" + dbPort + ":" + dbSid, dbUser, dbPass);
             
        } // end try
    The strange thing is that I got this job twice then it stops unexpectedly just work when I make a change to the java applet code.
    And the changes have absolutely nothing to do with the code above, it can be anything is the first, I added the error handling
    to another part and the second, I modified a stored procedure call.
    Anyone have any idea why this might happen as it drives me completely crazy :(

    Thanks in advance

    Hello

    In your init() code, you have a "try" block - you have a 'Finally' block to close the connection? Something like:

    finally {
      try {
        conn.close();
      }
      catch (Exception ignore) {
      }
    }
    

    If you have reached the limit of the number of connections open available?

    Your code looks OK I can see (based on examples at: http://www.orafaq.com/wiki/JDBC)

    In addition, in your new have pieces of code, you added try/catch/finally blocks? Is the compilation of code completely (IE, no warning)? Have you added new imports that could conflict with existing code such that you have to characterize completely the existing objects/classes (for example, you have now two DriverManager class or CallableStatement objects)?

    Andy

  • Problems with passing parameters to a dynamic theme

    Hello experts,

    I have been struggling with this for days now and can't seem to understand what is happening here. I don't think that it is difficult to understand and I don't know I'm not the only one who came through it, I just feel like I'm missing something.

    In short - I have a predefined theme called TEST_DYNAMIC_THEME_NEW2. Its styling rules are as follows:
     
    <?xml version="1.0" standalone="yes"?>
    <styling_rules caching="NONE">
        <rule>
            <features style="C.RED"> select geom, :1 FROM TRACT_CURRENT_GEO </features>
      </rule>
    </styling_rules>
    I try of course to pass a parameter to this theme, representing a column name. Maybe this is not possible, but I don't know why not.

    The error message that I do not get in Firebug is as follows:
    <?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:SQLException: ORA-01722: invalid number
    </oms_error>
    On the other hand, when I'm in mapbuilder and I saw the theme it works fine. He asks for a parameter value for: 1, I give him a column name, and a large red card is displayed in the preview screen (this is what I want to see [at least for now]).

    Ideas, people?


    Thank you all very much for your time,

    John

    The binding settings should be used for parameter values in your query condition. It is not intended to define column names in your selection list.
    Although it seems to have worked for you in MapBuilder, there is no guarantee that you will get good results with the server of the FAITH.

  • How to run and pass parameters to the exe file in the txt file.

    Hello

    I am facing problem with passing parameters in the .exe file, which is run by labview.firstly that I have script .txt with the settings that I have to go to the .exe file. This .exe file is also a software, and this script is written for her. And now I have to create program in labview which should satisfy the following points.

    1. I have to use a button named "Run script". If I pressed the button, it should open the browser where I can choose the script .txt file.

    2 .exe application is expected open(Path already chossen).

    3. After passing the .exe application settings should be closed.

    4 and labview should now update its parameter

    I just open using Exce.vi .exe file, but I didn't get any idea to do more than this.can someone please help me?

    Thanks norbert. CAN I love it? What should I change now? VI attached below...

  • problem in passing the parameters for dashboard invites you in the URL

    Hello

    We have created a dashboard on OBI has a few invited dashboard. We have a requirement that we open the dashboard of an external application. We do this by invoking a URL. We want the dashboard to turn guests already applied.

    I tried to open the dashboard with the following URL

    http:// < servername:port > /Analytics/Saw.dll? GB & PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance & Page = overview

    But when I use the URL above to see the dashboard is not coming. It shows the following error

    No column
    The request cannot be performed because it contains no columns.

    When I use the following URL (which has the keyword "Dashboard" not "Go") the dashboard is coming fine

    http:// < servername:port > /Analytics/Saw.dll? Table edge & PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance & Page = overview

    He invites dashboard in the dashboard. When I try to send the value of filter with URL (given below) it does not work. I just saw the upcoming dashboard.

    http:// < servername:port > /Analytics/Saw.dll? Dashboard & NQUser = Admin & NQPassword = SADMIN & PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance & Page = Preview & P0 = 1 & P1 = eq & P2 = provider. "" Provider % 20Name ' & P3 = 1 + AccessMicron

    When we use the keyword of the dashboard in the URL, can pass us the parameter for the dashboard proimpt... ? If we can do that... How to make... ? Is this the same way we do to go the URL. ..?

    Please let me know if you need more information on this.

    Thanks in advance for your time,
    Regnier

    Published by: Raja Kumar on January 22, 2010 03:29

    Hello

    You must also have '& Action = Navigate' clause too.

    You can pass parameters to the dashboard reports too.

    For syntax, see these sites

    http://download.Oracle.com/docs/CD/E12096_01/books/AnyWebAdm/AnyWebAdm_APIWebIntegrate6.html#wp1005251

    http://oraclebizint.WordPress.com/2007/07/30/customizing-Obi-EE-%E2%80%93-go-URL-parameters/

    Kind regards
    Rambeau

  • Problem of JSP Page 3-frame passing parameters to OASFRAME (Start Frame)

    Hello

    I put in work of a JSP Page from 3-framework like the Dev Guide in the chapter entitled 'tree '. Unlike the example of the doc, I need to pass parameters to my starting framework.

    I am specifying the URI of the destination for the link that goes to my page 3-Frame as follows:
    OAFrame.jsp? OAFunc = XXX_NBA_OBJ_NAV_TOP:XXX_NBA_OBJ_NAV_START:XXX_NBA_OBJ_NAV_CENTRE & OAFRDIM = 30 p: 15 p

    but I need to pass parameters to the page of the frame to start. When I try the following, only the upper frame renders:
    OAFrame.jsp? OAFunc = XXX_NBA_OBJ_NAV_TOP:XXX_NBA_OBJ_NAV_START & objectId = 1384253 & objectType = CLIENT: XXX_NBA_OBJ_NAV_CENTRE & OAFRDIM = 30 p: 15 p

    How to pass parameters to the function XXX_NBA_OBJ_NAV_START?

    All rated help. Thank you.

    Concerning
    Tessa

    Hi Tessa

    the only way you can get arround this is to change the standard page of OAFrame.jsp located in $OA_HTML on your server.

    You must add the parameters on this page in the following way

    Here is an article on the OAFrame.jsp page.

    String transactionid = request.getParameter ("transactionid");
    String sessionid = request.getParameter ("sessionid");
    String frameSources = request.getParameter ("OAFunc");
    String frameDimensions = request.getParameter (OAWebBeanConstants.FRAME_DIMENSIONS);
    //
    ADDING CODE
    String values = request.getParameter ("values");
    //

    StringBuffer baseUrl = new StringBuffer (50);
    (.append("://").append) baseUrl.append (request.getScheme ())
    request.getHeader("Host")).append("/OA_HTML/"); "

    StringBuffer parameters = new StringBuffer (100);
    Parameters.Append ("& DBC ="). Append (dbcName);
    Parameters.Append ("& TransactionId ="). Append (TransactionId);
    Parameters.Append ("& SessionID ="). Append (SessionId);
    //
    ADDING CODE
    Parameters.Append ("& values ="). Append (values);
    //

    Note that this page will now receive a parameter called the values of the request and forward it to managers overtime.

    so, you can call
    OAFrame.jsp? OAFunc = FWK_TBX_TREE_CENTERFRAME:FWK_TBX_TREE_STARTFRAME:FWK_TBX_TREE_CENTERFRAME & OAHP = FWK_TOOLBOX_TUTORIAL_APP & OASF = FWK_TOOLBOX_SAMPLE_BROWSE & OAFRDIM = 30 p: 15 p & values = 'Test '.

    for example

    and in the controller for the executives, you could use

    String value = pageContext.getParameter ("values");

    Hope this helps

    Concerning
    George

  • Passing parameters to the URL - availability in the new process of request

    Hello

    I am able to pass parameters in the URL of the APEX that defined the points of the application as below

    : http://application-tier server: port/pls/apexdev/f? p = 1001:1:APP_CLIENT_NUMBER, APPLICATION_NUMBER:0001285, 0000051:

    I would like to get and set other items based on elements of application passed as parameters. I would like to only enter once application.

    I found the best place for this action in a process of application with Point on new Instance of Process.

    The problem seems to be that the value of point of application has not been set at this point, and therefore the values are null.

    If I change the application process process Point to something that runs to each page as On Load: after the header, then the values are available. It is not suitable as only wish to run once at startup of the application.

    I can't find discussion of this documentation.

    1. I would be able to access URL parameters in the application process with Point on a new Instance of the process?

    2. are there any other equivalent task for access to URL parameters at the start of the application?

    Thank you

    Hello

    APEX runs only on the new process Instance when a new session has been set up. As you discovered, URL items are not yet saved in session at this point State. You can use a level app process before header instead, with a condition that makes that make it run when certain elements that you want to initialize are null.

    Kind regards

    Christian

  • pass parameters to the pop-up window using skillbuilder

    All,

    I have a request of dynamic content on page 1 and for some lines ive the pop-up link another page and pass the EMPID clicked on page popupped. Ive created the link and its popping up the second page correctly, but how I have the pass of the EMPID per second / page popup?
    part of query in page1 like this,
    htp.p('<td><a href="#" class="show-summary" onclick="return false;">'||cursor-id.EMPID||'< . . . . . 
    Thank you.

    Gor_Mahia wrote:
    Jorge,

    IAM but perhaps not very clear what you did ive tried it before, but it losses the modal pop-up window and navigate to this page, I really try to have my modal popup window. Look at my request below,

    You just described a completely different problem from that of passing parameters modal page.
    Just add a more real Action "Cancel the event" after the action of modal Page.
    What that will do is replace the click of the anchor who want to access the link HREF.

    Thank you
    -Jorge

  • Pass parameters in a DPS application

    I have an app from the DPS with 2 slots. A slot contains a built-in code that is supposed to show a list of goods. A slot contains code that launches an external site in a frame within the DPS app.

    In accordance with article API Marketing consumer news | Adobe Developer Connection, it is possible to pass parameters to an external application to a DPS application.

    I'm running a problem. In my external site, I try to call the DPS application like so dpsapp://v1/slot/storefront?path=/content/test.pdf via a button.  What I noticed is that when I do that, the soft switches on the side window but urlPath queryingthe or urlQueryString returns a null value.

    It seems that I can't pass a parameter to the DPS app within a single application. If I load the external website in Safari, I'm able to query for the parameters.

    Am I missing a step here or isn't it possible?

    Thank you

    You need manage paths... the first is when the application has failed.  In this case, just use the code in the previous post ('companyName' change 'path').  However, if the application worked, but it is backgrounded, so you must have annexed a listener for the event event.

    That is to say. adobeDPS.configurationService.applicationContextUpdatedSignal.add (this.updateContext, this);

    And then your method "updateContext" navigate the urlQueryString as previously indicated.

    Additionally, make sure that you have included "showcase" in the "name of the Goto link" when you set your custom button.

  • Passing parameters to the method call in expressions of value

    JDeveloper 11.1.2.1.0 does support the feature of passing parameters to method calls in expressions of value in JSF pages? AFAIK this is JSF 2 version it and it should support this feature. Unfortunately when I put in a JSF page the following tag
    < h:commandLink value = "#{row.employeeId}" action = "#{empBean.showDetails (row)}" / > "
    The page does not work. Any ideas on this point?

    Thank you to everyone.

    Hello

    The functionality you need is defined in JSR 245.
    If you need to wait for it to become part of the standard, it will be included in JEE6
    I don't know if 11.1.2.1.0 uses JEE6 standard...
    You can try this other thing,
    http://www.coderanch.com/t/213290/JSF/Java/why-JSF-calls-method-parameter

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • How to pass parameters to external swf with the loader?

    Hello everyone

    I am loading an external swf file using the charger. It's a pdf file converted to swf format.

    How do I pass parameters to the file so that I can highlight certain words in the file?

    Thank you

    Hello everyone

    I solved this problem.

    Thank you

  • Passing parameters in Director. Is this possible? Experience with Multipoint?

    I use Director for a series of educational applications. I have a single projector (start) where students can click on their name. When a name is selected, Startup Spotlight consults a database to determine which educational projector is expected to be launched. Based on the results in the database, I use the call of baRunProgram boyfriend to start the appropriate Director projector. Right now, I use a text file to record the student's progress in their work their way through the educational projector. All this works fine for a single user on a single computer.

    However, I am having a problem with a customer who uses Microsoft Multipoint. Using Multipoint, there are several students running the program to start in the same place. Therefore, the text file progress of all students instead of one student's progress. Startup Spotlight knows what student is active but the individual educational Spotlight do not currently have this information. I could identify a single student to the education projector passing a parameter. First of all, is it possible? If so, how could he do?

    Abstract of the passage of a parameter, is there another method that might work to accomplish the same thing?

    Everyone works in a Multipoint environment? I am interested in other experiences with Multipoint.

    You can pass parameters to a projector on the command line, but only at the launch of it. Check the documentation for "line of command" and also the function of baCommandArgs() of Buddy API

  • Pass parameters with a function that is a parameter to another function.  Is this possible?

    Hello

    I have some difficulty to pass parameters to a function that is passed as a parameter.  In the code for my application I am instantiating this class five times: they are buttons in a menu.  In this category, I had an onRelease handler that does a number of things when a button is released, which is to call a function defined in the level of enforcement of the code.  My problem is that I don't know how to send parameters to the functions.

    In my StandardButton class I:

    class StandardButton extends MovieClip
    {
         
         /* define properties */
         private var selected:Boolean = false;
         public  var btnMenu:MovieClip = null;
         public  var execFunc:Function;
         
         /* define constructor */
         public function StandardButton()
         {
              trace("Standard UI button created: " + this);
              this.onRelease = releaseHandler;
         }
         
         /* define methods */
         public function releaseHandler()
         {
              if (selected) {
                   
                   //this["bg"].gotoAndStop("normal");
                   //selected = false;
                   
              } else {
                   
                   //show the normal state of all other buttons in the menu set
                   for (var i:Number = 0; i < btnMenu.btnList.length; i++)
                   {
                        this._parent[btnMenu.btnList[i]].bg.gotoAndStop("normal");
                        this._parent[btnMenu.btnList[i]].selected = false;
                   }
                   
                   //show the select state of the button
                   this["bg"].gotoAndStop("select");
                   
                   //execute the function attached to this button
                   execFunc();
                   
                   //set the selected boolean for the current button
                   selected = true;
                   
              }
         }
         
         
         /* define accessors */
         public function set execFunction(instructions:Function)
         {
              execFunc = instructions;
         }
         
         public function set buttonMenu(menu:MovieClip)
         {
              btnMenu = menu;
         }
         
    }
    

    In my application .fla file, I have this

    //This is the function that will be executed when the user presses the button
    function autoModeHandler (param:String) {
         
              trace("You pressed the " + param + " button");
              
                                  
    }
    
    init();
    
    masterContainer.menuContainer.Auto.execFunction = Delegate.create(this, autoModeHandler);
    

    The function is successfully "sent" to the class of StandardButton, but without any parameters.  How can I send parameters for the instance of the class with the way I had it built.  Any help is greatly appreciated!

    Thank you for your time and help!

    You can pass parameters as you're passing that work.  you just need an instance of StandardBtn.

Maybe you are looking for

  • Satellite Pro A40: Lost CD-Rom - ide #1 error on initialize to top

    I lost the use of my cd-rom suddenely and can no longer play cd/DVD. It is not recognized in the 'my computer' screen either and when I went to "run" and looked in the MSINFO32 - cd it shows no drivers.Also showing an error ide #1 in trunk = upward.

  • BEWARE! Received phone scam 'PC online care'

    This isn't a question, it is a statement. BEWARE! I just got a phone call from 'Care of PC online' from a fellow calling himself Charles White who asked me to leave it on my computer to help me solve the slowness of Microsoft Word, INternet, etc.. DO

  • KB2656353 does not install

    It can not install KB2656353. He just said update failed to load. I'm not a power user but not able to figure out the next step. John

  • How can I synchronize mail windows with my blackberry

    I used Outlook but in upgrading my laptop (Vista) and desktop (7) I want to use mail and direct mail with my Blackberry. I can?

  • the HP 6100 printer cause a blue screen of death

    New printer HP 6100, randomly fails and causes the BSOD.  I have uninstalled and reinstalled and updated the drivers.  At the end of my mind, please help.  New Samsung Ultra, Windows 7 64-bit OS.