ADF BC, RC, 11g - af:clientListener in af:table contextMenu popup

Hi all

I'm having some trouble displaying an af:popup within the contextMenu to an af:table facet.
This only happens when I have an af:clientListener in an af:commandMenuItem or any other control device.
<f:facet name="contextMenu">
                        <af:popup eventContext="launcher"
                                  contentDelivery="lazyUncached"
                                  partialTriggers="::table1">
                          <af:menu text="menu 1">
                            <af:commandMenuItem text="Edit"
                                                partialSubmit="false"
                                                action="#{backing_users.edit_action}">
                            <af:clientListener method="launchPopup(e)"
                                               type="action"/>
                          </af:commandMenuItem>
                        </af:menu>
                        </af:popup>
                      </f:facet>
When right click on one of the rows in the table does not display the contextMenu popup.
I tried this in IE7 and FF3 with no luck.

Any help on that would be great

-chris

Chris,

In fact, I ran the same code as you have provided simply by changing the call to the JavaScript function. The context menu came and the popup can be called. I tried with FF2. How did you add JavaScript code to the page? Chances are that it breaks the functionality (JavaScript seems to be a silent killer sometimes)

Frank

Tags: Java

Similar Questions

  • Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?



    I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through

  • Read a value of input to a javascript function ADF area in 11g?

    How can you read a value ADF of the input to a javascript function in a jsf (jspx) Jdev 11 g page area?
    Thank you.

    You use the Javascript API for components.
    Here's a nice intro:
    http://technology.amis.nl/blog/2773/adf-11g-rich-faces-using-clienttriggers-and-javascript-api-to-implement-client-side-logic-in-adf-faces-pages-client-side-programming-in-adf-faces-rich-client-components-part-3

  • Presentation in ADF Faces - Jdev 11g problems

    Hello

    I have a page where I have to show me user LoggedIn details like-> Label Jane Taylor | Logged in as JTaylor | Close the session in the upper right corner of the page.
    I can't use the navigation pane, because he does not accept PanelLabelMessage or component output Label.

    I will have a model where I use decrorative box and including the construction of Page below the model

    < af:panelGroupLayout layout = "horizontal" styleClass = "AFBrandingBarItem" halign = 'end' >
    < af:panelLabelAndMessage label = 'Label' id = 'plam1' >
    < af:outputLabel value = "Jane Taylor" id = "ol1" / >
    < / af:panelLabelAndMessage >
    < af:panelLabelAndMessage label = "logged in as" id = "plam2" >
    < af:outputLabel value = "Jtaylor" id = "ol2" / >
    < / af:panelLabelAndMessage >
    < af:commandLink text = 'Log Out' id = 'cl1' / >
    < / af:panelGroupLayout >

    I get a strange problem, if I use no space between the value as JaneTaylor everything looks very good. But if I use the space between values, that is breaking and page looks terribly strange.

    Please suggest how to proceed

    If the problem is that the name falls on two lines, you can try to prevent it from CSS, for example:

    
    

    You can also use instead of , because the tag has a special attribute called 'noWrap '.

  • [ADF, JDev12.1.3] A loop on af: table through "dcIteratorBindings.getAllRowsInRange" takes only 25 lines. Why?

    Hallo,

    I would like to export an af:table in Excel and I tried to apply the method described here http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html#sthash.VSEYBrdd.UPOaYZ... by vinaykumar2.

    I noticed that the return Excel file contains max 25 rows.

    The VO behind af: table has the default configuration.

    The RangeSize of the iterator property is 25.

    oracle.jbo.Row[] rows = dcIteratorBindings.getAllRowsInRange();
    

    If I put it at 100, the return Excel file contains 100 rows max.

    I would always that all af:table are exported, so I guess I have to settle RangeSize on a very high value (e.g. 100000).

    Is RangeSize property to play with to solve the problem? Or there is a setting/alternative code to use? It affecting a high value will have an impact on performance?

    Thank you

    Federico

    Hi Federico,.

    The RangeSize - 1 value property. You will get all the lines.

  • [ADF, JDev12.1.3] How to resize and style default popup of the message of faces?

    Hallo,

    popups messages of faces that I take the floor in managed beans or auto-affichent by the application to show errors (e.g., https://dl.dropbox.com/s/hsje8m0meci2wai/FacesMessage.png?dl=0) do not adjust automatically based on the content.

    I would like to know how I can fix this problem and:

    Thank you

    Federico

    Well, for automatic resizing, you can use this workaround: https://agungor.wordpress.com/2014/05/14/handling-un-resizable-facesmessage-popup/

    Also, if I remember correctly, you can download the fix for this problem for Oracle Support(if you have support contract).

    Inline messages you must provide the id of the component when you create messages of faces.

    For global inline messages you need to af:messages component.

    As an alternative, you can use something like this: Awasthi (Jdev/ADF) Ashish Blog: better interface user-display the notification message of jQuery (for error, warning, info) to Oracle ADF

    Dario

  • ADF security with identification details &amp; role of database table

    Dear experts,

    I have developed web applications by ADF with JDeveloper 12.1.3.0.0

    I want to apply the ADF security for authentication and authorization process.

    I mentioned several blogs that associated with example ADF security with the database table, but unfortunately I couldn't reach my task of them because all the blogs that make reference to the roles of username, passwords, and user to hardcode.

    In my web application, there are 3 database table (users, roles, User_Role).

    A user can have one or more roles.

    I was able to accomplish this task using spring-mvc + Hibernate + sprig security. Its code of even below.

    <>Authentication Manager

    <>authentication provider

    < jdbc-user-service data-source-ref = "dataSource".

    users by name of user-query =

    "username, password, enabled users to select where username =?"

    authorities-by-name of user-query =

    "" Select username, role of user_roles where username =? ". / >

    < / authentication provider >

    < / authentication manager >

    Pls guide me to solve this problem.

    Thank you

    Mauricette

    User, your question is not clear. You have implemented the safety with the spring? So, what's your question?

    The ADF security can be combined with a sql authentificator that reads users and roles of the DB tables. See Java / Oracle SOA blog: the use of tables of database as in WebLogic authentication provider and anything on the Fusion Middleware: Tables of database user to implement authentication in ADF and http://soadev.blogspot.de/2010/04/sqlauthenticator-simply-best.html.

    All of these solutions do not use users coded hard and rolls.

    Timo

  • ADF Mobile | to view the results in a table


    Hi all

    I use Jdeveloper with ADF Mobile 11.1.2.4.39.64.62 extensions 11.1.2.4

    I must displya quesry results in the form of a table (I'm developing of application for tablets and iPads).

    I don't see any compont to Datacontrols table to remove it as a table on page amx.

    Is it possible that I can display the data in a table in ADF Mobile?

    Help, please.

    Thank you

    Vieira

    Hi Vinay,

    Yes, I understand that the table showing in the window is not the best, but we develop this for the cushions and with highest 7-inch screen tablets.

    I am able to achieve by droping inside the Table list item > row > component cell Format.

    Don't you see the disadvantages of this approach?

    Thank you

    Vieira

  • JDeveloper 11.1.2.3, ADF Faces: need idea of component declarative for table

    Some information:

    I am trying to create a reusable toolbar for the behavior of af: standard table, see screenshot

    http://wesfang.files.WordPress.com/2013/05/DC.jpg


    I had the idea of documentation, Frank has published in the past by
    1. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/001-access-declarative-comp-attr-169113.pdf
    2. Add a new line by programming

    The page of the subsystem of your past in a "MyPageBean" which is a subclass of a 'ArchBean' where all actionlistener operations are defined. The idea here is to minimize the developer customizing when using this component.

    ... <f:facet name="toolbar">             <af:toolbar id="t2">                 <mskcc:basicTransactionToolbar id="btt1" pageBean="#{MyPageBean}" tableId="t1"/>             </af:toolbar> </f:facet> ...

    The table on the page of your default is filed "editable" tabular The developer must change the attribute 'disable' true for all fields of seizure and control components in the table. I would like to remove this step of developer and have rather in an architectural element. All ideas are welcome.

    Hello

    If the table is added in a facet of the declarative component toolbar, then you can access them in your component code declarative. The table has columns as his child, and each column has UI components such as child components. You can access these UI components and programmatically set the disabled property. All you need to know is the 'trigger' of this deactivation point. Can you try and create a custom declarative component impl class and use the method encodes?

    Frank

    Published by: Frank Nimphius, May 16, 2013 09:01

  • error after using a servlet in ADF - unable to choose another line in the table

    Hello

    I print a button and when I select a row in a table call a servlet to download. After I open or save the document, I can't make another selection from the table or another action.
    The table has a row selection active.
    The servlet are part of a workflow.

    Here's the code for the sevlet and my version of jdev is 11.1.1.2.0

    SerializableAttribute public class DownloadServlet extends HttpServlet {}

    @Override
    Public Sub init (ServletConfig config) throws ServletException {}
    Super.init (config);
    }

    public void doGet (HttpServletRequest request,
    HttpServletResponse response) throws ServletException,.
    IOException {}


    String ID = null;
    Den String = null;

    InitialContext ic;
    try {}
    IC = new world;
    } catch (NamingException e) {}
    }
    DataSource ds = null;
    Connection Conn = null;
    PreparedStatement cStmt = null;
    ResultSet rset = null;
    Byte [] bdata = null;
    String rezult_null = "";
    id_fisier_lcl = request.getParameter ("id");
    den_fisier_lcl = request.getParameter ("fileName");



    rezult_null = ' <? XML version=\"1.0\" encoding =------"UTF - 8\ '? "> \n ' +.
    "a fost arhivat Fisierul < body > < / Body >";



    try {}
    IC = new world;
    DS = (DataSource) ic.lookup("jdbc/ConnDS");
    Conn = ds.getConnection ();
    cStmt = conn.prepareStatement ("commit");
    cStmt.execute ();
    Conn.Commit ();
    cStmt = conn.prepareStatement ("SELECT a.item FROM table a WHERE = a.id" + id);

    RSet = cStmt.executeQuery ();
    If (rset.next ()) {}
    clob = weblogic.jdbc.wrapper.Clob
    (weblogic.jdbc.wrapper.Clob) rset.getClob ('content');
    oracle.sql.CLOB oclob = (oracle.sql.CLOB) clob.getVendorObj ();

    bdata = new byte [(int) oclob.length ()];
    InputStream is = oclob.getAsciiStream ();
    is. Read (bdata);
    RSet.Close ();
    cStmt.close ();

    } else {}
    bdata = new byte [(int) rezult_null.length ()];
    bdata = rezult_null.getBytes ();
    RSet.Close ();
    cStmt.close ();

    }
    } catch (NamingException e) {}
    } catch (SQLException e) {}
    }

    String username_lcl = null;
    username_lcl =
    ADFContext.getCurrent () .getSecurityContext () .getUserName ();





    OutputStream outputStream = response.getOutputStream ();
    String mimetype = "";

    FacesContext facesContext = FacesContext.getCurrentInstance ();
    response.setContentType ((mimetype! = null)? mimetype: "application/x-download");
    response.setHeader ("Content-Disposition", "attachment; filename =------"' + den_fisier_lcl + '. '" xml\' ");

    try {}
    outputStream.write (bdata);
    outputStream.flush ();
    outputStream.close ();
    }
    catch (Exception e) {}
    e.printStackTrace ();
    FacesMessage msg =
    new FacesMessage (FacesMessage.SEVERITY_ERROR, e.getMessage (),)
    "");
    facesContext.addMessage (null, msg);

    }

    }


    }

    How can I solve this problem?

    Thank you.

    Hello

    have you seen this?

    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_fileDownloadActionListener.html

    If you want to continue with your approach, then a way out of your problem might be to add an af:clientListener on the command button. The JavaScript function would be

    function onDownload(evt){
    
      evt.noResponseExpected();
    
    }
    

    Frank

  • ADF Faces 10g: how to clear a &lt; af:table &gt; component?

    Hello

    I use JDeveloper/ADF 10.1.3.

    I have a page with 2 iterators on the same point of view (always in search mode), a search form and a table of results. As there are many rows in the view and I don't want to interrogate him without search criteria in order to avoid all the results, I put the refresh of the iterator property to ${adfFacesContext.postback == true}.

    I did a search button linking the Execute action and a reset button, forcing the find action. Now, when I hit the reset button, I also want to reset the table (query results) empty. How to do this? I couldn't find any method to empty all lines in lavel, nor to the iterator, table or view.

    Thanks in advance for your answers.

    Hello
    I don't have a declarative solution for you, but a few possible solutions or ideas to do.
    1 put a method in end of request module show the method to the client (data control). This method can either remove all the lines of the VO (call removeCurrentRowFromCollection() for each line currently in the t, but keep them in the DB).
    2. you can try to use executeEmptyRowSet() (I'm not sure that it is available in 10.1.3).) and hope that it deletes all rows of the rowset (the method is not documented, so I'm olny guess its function).
    3. run your search with parameters, you are sure that they will not return any result. This can be made from a bean to support.

    Timo

  • ADF: How to get all rowKeys for the table displayed in the page

    Hello

    I have table "COMPANY" where the 'COMPANY_ID' column is the primary key. I created a page simple jspx with:

    (1) a text entry to accept new IDs of company

    (2) Insert button.

    (3) af:table which displays all available in "SOCIETY" company ID

    When the user tries to enter a company code that is already present in the table I want to compare with the keys of the row of the table displayed below and if it's an already existing, I would like to send a friendly message for the user and put an end to the movement.

    So, how to extract all line keys to compare?

    Thanks in advance.

    Here's a way to check if you use the OperationBinding exception class:

    operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ()) {}

    There is an error

    List errors = operationBinding.getErrors ();

    Browse the list of hollow and see if there is an exception of your restrictions

    }

  • ADF: Partial trigger in one column of a table

    Hello people!
    I have a master - form detailed with departments - employees (HR diagram).
    In the VO of departments, I have a column transitional 'TotalSalary"calculation of the amount of the salary of all employees by the Department. I use the expression Employees.sum ("(salary is nothing)? 0: salary ").

    In the column .jspx Salary is AutoSumitted and partial target runs 'TotalSalary' salary.
    The result is fine, but the issue I'm having here is how NOT having all the Department table refreshed with every single change in detail, but only the TotalSalary column.

    Suspicion. I dragged once more the transitional column outside the table, and I noticed that the outfield is updated immediately, but the field within the table NO (because the table does not update).

    Could you please provide any help!

    Thank you very much!

    I had a similar problem. The only way is to update the table. The partial relaxation for a single column in a table works only if the trigger is also a column to the table.

  • ADF: How to fill a column in a table with a specific color

    Hi all
    I want to fill the cells of table with different colors based on the value (for example: 10, 40...) in this cell output text area.
    Help, please.

    Rognard

    Hello

    You can use the same code for the inlinestyle column: but it will color the entire column


    headerText = "#{bindings." EmployeesView1.hints.Salary.label}.
    ID = "c9".
    inlineStyle = "#{yourconAttr > 10?'" background-color: Red;': ' background-color: Orange ;'} ">}"

  • ADF business components

    Hello

    In Jdeveloper 11g from, we have many ways to create models and objects of the base entity.

    For example new slot > > ADF components we have two choices a) create table Table b) ADF entity objects ADF business components

    My question is: what is the difference between the two and which is more standard and recommended method of creating CRUD application?

    Thank you

    Rubi

    Hello

    It's like asking which way in Rome. The result is the same that you find yourself in Rome.

    The business components of table creates EO, VO, and AM only once and it is easy to start (a beginner option).

    Table OS, this is for when you want to create the template manually. If you are a developer experienced ADF BC who knows how to build from VO of entity objects, but also associations and view links manually then this option more puts you in control, so to speak. (option expertise and probably my choice)

    But as said, the end result is the same, you find yourself in Rome.

    Frank

Maybe you are looking for