data control - list is displayed before the method assigns the value

Hello

I have a page of the adf, which displays buttons in a table - a button by rank.

by clicking on the button, I open a pop up that displays content specific to this button.

That's what I have in my adf page:

"< af:commandImageLink icon="/images/button.png ".

ID = "cil1".

partialSubmit = 'true '.

action = "click on" >

< name f: attribute = "id" value = "#{row.ID}" / >

< af:clientListener = "clientAction" method

type = 'action' / >

< af:serverListener type = "serverAction".

Method = "#{ContentGenerator.ButtonClicked}" / >

"< popupId = af:showPopupBehavior": myPopup "/ >"

< / af:commandImageLink >

clicking this button opens a pop up, and it calls the buttonClicked() and ContentGenerator of class-

public class ContentGenerator {}

private list < String > contentList = null;

getter and setter for contentList

private String id = null;

public ContentGenerator() {}

System.out.println ("id->" + id);

generate content based on id and defined in the contentList parameter list

}

{} public void buttonClicked (ClientEvent actionEvent)

ID = (String) actionEvent.getComponent () .getAttributes () .get ("id");

System.out.println ("id->" + id);

}

}

I dropped a table in the popup for this contentList data control parameter (ClassGenerator is a data control).

the issue I'm facing is:

I get the good method of buttonClicked() id. However the ClassGenerator constructor is called before and I get null so my list of content does not get generated.

I tried to generate content in the buttonClicked() method and updated list in contentList parameter but always popup does not appear anything in the table. probably contentList is already read by popup, and it is set to null.

public class ContentGenerator {}

private list < String > contentList = null;

getter and setter for contentList

private String id = null;

public ContentGenerator() {}

System.out.println ("id->" + id);

}

{} public void buttonClicked (ClientEvent actionEvent)

ID = (String) actionEvent.getComponent () .getAttributes () .get ("id");

System.out.println ("id->" + id);

generate content based on id and defined in the contentList parameter list

}

}

my version of jdeveloper is 11.1.1.7.

Please suggest what should I change?

Thank you.

Here you have the solution.

https://DL.dropboxusercontent.com/u/46128268/OTN-samples/OTNPopup.rar

The main elements are:


                      
                        

clientComponent = 'true' and clientAttribute to send values to af:popup


In af:popup:


                  

eventContext to Launcher and launcherVar to get the attributes sent.

Scope of the variable to viewScope in a listener of type popupFetch.

If you take a look in the methodAction of home.jspx binding, the name parameter has the value viewScope.dogname.


We must also change the iterator binding refresh to IfNeeded if deferred to re-run the iterator when the setting is changed.

I hope that with the sample, you can realize you're objective.

Sorry if I confused you before but I need refresh my ADF.

Kind regards.

Tags: Fusion Middleware

Similar Questions

  • have we not back up our data to an external device before the update to windows 8.1

    have we not back up our data to an external device before the update to windows 8.1.

    update to windows 8 8.1 will affect the data in the laptop...

    @swati90

    If you upgrade from the Microsoft Store, your applications, data office and personal will not be deleted.

    If you're updating with an ISO will always give you the opportunity to register personal files.

    Error on prudence, I like so I will say that it is not a bad idea to back up important data to an external drive before the upgrade.

  • How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    While you can't remove individual documents, you can choose how much (if any) to show.

    Edit > Preferences > Documents > open settings. Everything you want to value "Documents in the recently used list".

  • FGA and 'before the value.

    Hello

    preparation for my OCP I reached the audit chapter.

    As far as I understand it FGA does'nt store the contents of 'before' the value changed, right?
    If I need to do, that meens, I write triggers, I guess.

    This brings me to another question to you guys working on the front:
    If I have as long as a DB administrator write triggers on the tables of a written request by a company 3, is this correct?
    I would feel a little uncertain, wether I can "fool around" with ther objects.

    Concerning

    Christian

    Yes, see the section "when the triggers are necessary ' week 10: Oracle Database 10 g features Top 20 DBA

    Do not know what is a '3' company, but I would like to know if anyone had wrong with my items.  If you mean a third-party application provider, some are very particular stuff, possibly cancelling the contracts supported.  Others are happy to wash their hands of it.

  • Search and replace values in the text field before the values are stored in DB

    Hello
    There is a question - answer and text box text field - in my application. Problem is, some of the answers are stored with the apostrophes to the DB and I have a problem while recovering in the DB. I need to replace the single quotes 1 with 2 apostrophes. The values are stored in the DB when you click on the submit button.

    So, I'm using the following javascript code:
    italics
    < script type = "text/javascript" >
    function test().
    {
    var str = "& P2_S1.";
    document. Write (Escape (STR));
    }
    < /script >
    italics
    I need to call this javascript function, when the user clicks on the button submit, but BEFORE the values are stored in the DB. How can I get this done?

    Please let me know.

    Hi Suzi,

    Just use

    begin
    update test set S1=replace(:P2_S1, '''', '''''') where name=:APP_USER;
    end;
    

    as you did in your SELECT statement.

    But I shake also why you want to do? Where do you have problems with the apostrophe?

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Data control does not display THAT POJO returned by the method

    Hello

    I am running JDev 11.1.1.7. In my AppModule.impl, I created a method that returns a simple POJO (which implements serializable) that has two fields of type string. I exposed the method in the client interface of appmodule. In the control of data, the method appears with an element of return instead of an object or any way to access the two fields of type string. I want to display two fields of type string in the output text components on my jspx page. I'm not find documentation on how to do it. Can someone point me to the documentation or tell me how to make this change to the method of control of the return data?

    Thanks in advance,

    Steve

    AM method can return the custom type, but as much as I know there is no support for introspection of object at design time.

    (so you can call it programmatically and cast to the appropriate type, but you can do component DND data control).

    So, option 1 is to bind the value property of your outputText managed bean fields, programmatically calling AM, fill these properties manually and update your user interface components (note that managed bean must be saved in viewScope or more in order to preserve the values)

    Option 2 is to create the Bean DataControl (with this you will have DND support)

    Dario

  • data not getting not displayed in the controls present in the tabs

    Hello

    I am facing problem in data binding to different controls existing in different tabs of a page of data. I can see the values of the controls on the first tab, but not in the other tabs. And at the same time, I can get the values of the same data if grid is present in the tabs later...

    Please guide me...

    To do what you want, set creationPolicy = "all" on the TabNavigator.

  • Data not listed is not in the desktop

    I have an old Clie SJ22, my wife just got a Centro. Uninstalled the old Palm desktop, installed the new version, who found my name of user account and filled in the address book. UNTIL...

    The next day, when we started the day. My account name is stil there, but the data does not appear. I can hotsync my pocket computer, but I don't see any of my data in the desktop application. I looked in the Palm OS Desktop folder and folder of my wife is here, so is a folder with my info, although the naming convention is different (my user name is "Pxxxx X. Jxxxxx', 'JP' says folder; its file is LastnameFirstinitial).

    Dates on files correspond to the dates and times of my hotsyncs. How can I get my data will be displayed on the screen? Thanks in advance.

    Thanks for the quick response, cygnus. It turns out that I could find and fix the problem, it is as described in this post:

    "Synchronization of PIM with Palm Desktop 6.2 Legacy databases"

    I executed the script that has been in the linked thread, and all my stuff keep popping up - it was sitting in the right folder, but the new office could not display until I executed the script. Phew.

    For reference, if it can help someone else, I am running XP, using Palm Desktop 6.2.2 (not Outlook). I only use the customer to the address book. The Clie and the Centro seem coexist peacefully (good thing, like the Clie SJ20 can't use only the original memory stick, Memory Stick Pro, I therefore had no other backup for this).

    Message relates to: Centro (Verizon)

  • How to control "lists to appear on the Homepage.

    Is there a way to control that contains the list should be included in the 'lists to appear on home page' users list account page to view command? From now on, users will see 40 + public different lists that I don't want them to see. I tried to change it in account settings list access & order of the relevant provision.

    I know that users can manually delete lists by transferring them to the available lists. But I would do this for all users.

    Kind regards
    Allan

    Hello Allan,.

    Try using manage list and one option is to set the security on this list, be it private or Public. If it is private owner it will access. Try it and tell me if you face any issues. But the main constraint when creating that only you should select this option. After the creation, it is not possible to delete or made it as private. It is not possible to delete or modify lists in R17. It will be useful.

    See you soon
    Olivier

  • List table displays all the tables in diagrams

    I think that this problem may be related to Re: unable to display the list of tables in sql developer .

    When connected to certain schemas using SQL Developer 1.5.4 (Build HAND-5940) not all tables are displayed in the list of the table in the Connections pane. The missing tables in the list cannot be retrieved by filtering or. The database is 9.2.0.8.0 and the PC operating system Windows XP 2002 SP3.

    For example, 'select count (*) from user_tables' returns an account of the 52 in a schema, but the unfiltered tables list shows only 35 of them. I am logged in as the owner of the table of all 52 paintings. It doesn't seem to be the number of tables that counts as in another schema, there are 127 paintings and all these are correctly displayed. Filtering help =, LOVE or NO LOVE does not cause the missing paintings to appear.

    This does not work on all databases, which are all the same version, nor in all schemas - even the most similar in other environments. I tried to disconnect and reconnect also close SQL Developer and have restarted - with the same results. I also close all other running programs and other connections, in which case it was a problem of memory, without success.

    Please add information about it if you have this problem, or something that seems to be related. Thank you.

    no sweat ;)

  • Page APEX control items are displayed using the APPS user!

    Hi friends,

    I am running an Apex Application of the Apps (E Business suite-> link to Application). When the user clicks on this link without asking the login of the APEX, the application is open based on credentials Apps. Now my problem is the customer requests to restrict the display of the elements of the page (i.e. buttons) in the Application of the Apps user login and accountability-based APEX.

    I know how to show the result as normal button: APP_USER = "ADMIN" for example. But I don't know how to control from APPS. As I am new to both I need help from you guys to get this functionality.

    I need the faster response because it is very urgent for me.

    Thank you
    Stéphane.

    When you call page APEX-separated values, you can set the Variable of APEX with comma

    For Ex.

    f? p = 102:1:F102_ORG_ID, F102_GL_SET_OF_BKS_ID, F102_RESP_ID, F102_USERID, F102_HOME_URL:' | vOrgId | ',' || vSobId | «, » || vRespId | «, » || vUserId | vURL

    Alternatively, you can pass these parameters as Cookies.

    Let me know if you need something more.

    HTH

    Dinesh

    Published by: DineshS on February 20, 2009 02:08

  • I used all the suggestions you have provided however the recently visited list still displays in the new tab of the browser... does anyone know how to get rid of it

    If I clear my history or delete cookies or show nothing it still DOES NOT hide the visit list when you click the + to open a new tab in the browser!

    Click on the Firefox Button in the top left then "Modules", then "Extensions" and take a look at the list on the right.

  • pl/sql profiler - data not listed is not in the Profiler tables?

    Hi all - just have a little problem with the pl/sql Profiler.
    Database Version: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    Database Version: PL/SQL Release 10.2.0.5.0 - Production
    I created a test procedure:
    SQL > create or replace procedure testme
    2 as
    3
    number of v_customer_count 4;
    t_number v_level_table 5;
    Number 6 v_std_code_id;
    7
    Start 8
    9
    10. select count (*)
    11 in v_customer_count
    12 customer_master;
    13
    14 select level
    collection in bulk 15
    16 in v_level_table
    17 of the double
    18 connection of level < = 5000;
    19
    20
    21 end;
    22.

    Created procedure.


    and I run the procedure as follows:
    SQL> declare
      2     run_id number;
      3  begin
      4  
      5    run_id := dbms_profiler.start_profiler(to_char(sysdate,'dd-mm-yyyy hh24:mi:ss'));
      6    
      7    testme;
      8    
      9    dbms_profiler.flush_data;
     10    dbms_profiler.stop_profiler;
     11  
     12    dbms_output.put_line(run_id);
     13  
     14  end;
     15  /
    2
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.08
    but:
    SQL> select * from sys.plsql_profiler_runs
      2  /
    
    no rows selected
    
    Elapsed: 00:00:00.00
    SQL> select * from sys.plsql_profiler_data;
    
    no rows selected
    What Miss me?

    Run proftab.sql in your schema, also compile in debug mode before the race.

  • Select the list with propose pulling the values of %

    Hi all

    I have a tabular presentation of data app and from views of the choices selected in the 'list of selection with submit' the post, it works very well for the chosen values, when I choose '%' I want to display all existing records in the form of tables, but instead he said: "no data found". How to solve this? Kindly help and advice.

    ex:

    Query tabular-

    Select a, b
    table
    When a type: POINT

    Agenda:

    Type: select the list to submit
    Named LOV:
    Select a d, a r
    from table_recherche by 1

    Receive your answer.

    Thank you and best regards,
    Senana

    Hello

    You have to check what is the value returned by the selection list when you select '%' in the select...
    There is a null value to display field where you can enter '%' and the return NULL value you enter 0

    then change your query in a table
    Select a, b from table when one like: POINT GOLD: ITEM = 0

    Kind regards
    Shijesh

  • corrupted image displayed when the value horizontal elasticity 'contract '.

    Hello.

    Using forms and reports 10.1.2.3.0

    I got a report where I'm trying to show the images centered horizontally in their surroundings.

    To do this, I created an image element within the framework (a rehearsal setting, because the images are extracted from the DB), manually it centered within the frame, attached with an anchor to his surroundings and define its horizontal elasticity of 'contract' (vertical elasticity is set to "fixed"). It is actually the preferred method to do this and some threads in this forum recommend it.

    What I got in the PDF file was an image corrupted in some circumstances.

    To refine what I've created three different images (width * height)

    1. 1000 * 666

    2. 1000 * 750

    3. 1000 * 800

    load in the DB and tried to run the PDF file. You can see the result in the following screenshot:

    garbage_example.jpg

    When I put the horizontal elasticity "fixed", the image is not damaged (this is not a solution because the image is left aligned then).

    Setting the OUTPUTIMAGEFORMAT to something different than default (JPEG) has not changed anything.

    Interestingly enough the Foxit PDF Reader it shows correctly, while AdobeReader X and XI and Inkscape even show the image corrupted (not only on my PC).

    We tried with multiple images/photos, and the only ones to be displayed correctly seem to be images with a 4:3 aspect or higher report. I was not able to determine exactly to what extent this behaviour.

    Anyone have any idea what may have caused this?

    Thanks in advance

    Markus

    Found a solution that is rather surprising for me: the value of the vertical elasticity of the image of "contract".

Maybe you are looking for