AF:table on the JSF page

JDeveloper 11 g 11.1.1.2

Hello

I'm new to jdeveloper, I would like to add a table to a JSF page, I need to display data from an inner join query that is for example to two tables:

Select columnA, ColumnB, ColumnC to join internal of the tableX TableY on tableX.columnD = tableY.columnD where tableX.columnE =: bind_variable

I tried to add an object from view as follows: type of data source: only read through SQL query access, wrote the request, added a variable but there is no entry created under the section of data commands and so I can't drag and drop in the JSF page view to create the table , in addition, I don't know how to set a value for the "bind_variable" of the support bean which is mandatory since the value that I have to use the "bind_variable" depends on the user input.

Thank you.

The module app (check the checkbox) in the last step of the wizard you selected?

bacing bean, you can provide the value of the variable binding, and run the query.

DCBindingContainer bc = (DCBindingContainer) this.getBindings ();
DCIteratorBinding dcIb = bc.findIteratorBinding("yourvoIterator");
ViewObject vo = dcIb.getViewObject ();
vo.setNamedWhereClauseParam ("bind_variable", value);
vo.executeQuery ();

Tags: Java

Similar Questions

  • How do I reload the JSF page

    Hi all

    I'm working on an application where I have three tables linked together (master-detail-detail). I have created two forms and the table of the sources of data in the table of these master-detail-detail. I added corresponding createInsert
    and validate operations for each my form and table on the JSF page. The tables have 3 columns which is generated by a sequence in the database. I display as a text output in my page. When I created the new line of this table, it is not be displayed until I have reload the page by typing the url. based on this value, I should create the rows in other tables.

    The app should work the way below

    1. I should be able to create a row in the first table using CreateInsert operation. -> I am able to create and could see the line in the db

    2. I should be able to create a row in the second table, which is a child of the first table. Dynamically, it must take the value of one of the tables for the foreign key attribute. -> Is the case that if I reload the page manually by pressing

    the url... but not if I don't charge it. I guess that the iterator does not refreshsed.

    I need to reload the page, either programmatically or by using the Configuration of the ADF. Please help me in doing this.


    Thanks in advance

    You have configured a composite relationship between the master and detail?
    This should take care of automatically put in the id of this master in new records that you create in the part detail.
    http://docs.Oracle.com/CD/E16162_01/Web.1112/e16182/bcentities.htm#sm0150

    Also instead of do a reload of the entire page, it would probably be best to do a refresh of partial page for the section, you need to refresh.

  • Automatically, click a CommandButton in the JSF page after loaded the page

    I need to automatically, click the command button 'refreshPage' after loading of the JSF page below: (after trying the code in blue comment I'm unhappy. Please help!)

    <? XML version = "1.0" encoding = "UTF - 8"? >
    "< jsp:root xmlns:jsp ="http://java.sun.com/JSP/Page"version ="2.1"
    "xmlns:f ="http://java.sun.com/jsf/core"
    "xmlns:h ="http://java.sun.com/jsf/html"
    "xmlns:AF ="http://xmlns.oracle.com/adf/faces/rich"
    "xmlns:PE ="http://xmlns.oracle.com/adf/pageeditor"
    Cust ="http://xmlns.oracle.com/adf/faces/customizable" >. "

    < f: loadBundle basename = "oracle.webcenter.portalframework.sitestructure.resource.PortalAppPageResource"
    var = "portalResource" / >
    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document id = "d1" title = "#{portalResource ['home_title']}" >

    <!-< af:clientListener method = "callRefreshButton" type = "load" / >
    < af:resource type = "javascript" >
    function callRefreshButton()
    {
    var button = AdfPage.PAGE.findComponentByAbsoluteId ("refreshPage");
    ActionEvent.queue (button, true);
    }
    < / af:resource >->

    < af:messages id = "m1" / >
    < af:form id = "f1" >

    < af:pageTemplate value = "#{bindings.pageTemplateBinding.templateModel}" id = "pt1" "
    viewId="/oracle/webcenter/portalapp/pagetemplates/pageTemplate_swooshy.jspx" >
    < name f: attribute = "showNavigation" value = "#{true}" / >
    < f: facet 'content' = name >
    < af:group id = "g1" >
    < af:inputText label = "Label 1" id = "it1" / >
    < / af:group >
    < / f: facet >
    < / af:pageTemplate >

    <!-< af:commandLink id = "refreshPage" text = "refreshPage.
    action = "#{WangBean.reloadPage} '"
    rendered = 'true '.
    inlineStyle = "do-size: small;" color: white; »
    partialSubmit = "true" clientComponent = "true" >
    < / af:commandLink >->

    < af:inputText value = "#{bindings." Sdan8.inputValue}.
    columns = "#{bindings." Sdan8.hints.DisplayWidth}.
    maximumLength = "#{bindings." Sdan8.hints.precision}.
    shortDesc = "#{bindings." Sdan8.hints.ToolTip}"id ="it2.
    Visible = "false".
    inlineStyle = "do-size: medium;" make-weight: bold; ">
    < f: validator binding = "#{bindings." Sdan8.validator} "/ >"
    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " Sdan8.format} "/ >"
    < / af:inputText >

    < / af:form >

    < / af:document >
    < / f: view >
    < / jsp:root >

    Timo,

    I got it works!

    What happened is that I didn't notice that the system generated a method of PollEvent by default for me inside my WangBean after I created the af:poll component:

    {} public void reloadPage (PollEvent pollEvent)

    Add your code here

    }

    Once I pasted my code in the vote started working as expected and the inventory button. Component AF:poll solve my problem.

    Thank you very much and I have learned 2 new staffs ADF on your part, am really appreciated.

    Kind regards

    Yi

  • How to call "j_security_check" in the jsf page

    Hello

    with ADF security set up in Jdeveloper11.1.1.2, it automatically generates login.html and error.html for forms authentication.

    I found in login.html, the form action is "j_security_check" and I try to customize the page of connection with the jsf page, but do not know how to call "j_security_check" in the jsf page, there is no action attribute more within the af: form and I can't find the "j_security_check" in the action of Expression commandButton control build.

    Thanks in advance.

    Best regards
    Bill

    Hello

    you will need to add the login form to the JSf page wrapped in f: verbatim to show as part of the JSF page. JSF 1.2 using f: verbatim shoucl be no need, but in my experience, is best.

    If you develop and deploy on WLS, then Chapter 30 of the Fusion Developer Guide has a solution of God for you to build a form of connection in JSF completely

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/adding_security.htm#BABDEICH

    This requires any of j_security_check

    Frank

  • Update the table in a jsf page

    Hello experts

    I have a problem with refreshing table:

    I have an entity named "folder" of this entity, I select a few 'folder' special conditions:

    to exple table in the page 'A' shows all records where State = 'ongoing'

    and table b in the 'B' Page shows all the folder where State = 'TEMP '.

    the isssue here is when I change the State of a row in the second table, tha means when I select a line and State = 'in progress' with a merge feature, it has not appeare in the first tabe,


    I'm tempted to refresh it with iteratorbinding.excutequery () it works for the temp table record that designates the modified line is diseappeard but not there not appeare in the first table.


    I can't add a partial trigger table coz two are not on the same page, and I can't use the iterator to the first page (EXCEPTION of POINTER NULL)...


    I use jdeveloper 12.1.3.0.0, ejb and jpa and jsf pages for interaction with users and oracle for the database db11g

    Why don't you use a workflow?

    To allow the other iterator, you can drag from the data command and drop it onto the second page in the table. Once the table is visible on the second page, switch to source mode and remove the table tag. This will remove the table but leave the iterator binding available on page 2.

    Now, you can run the iterator again two page and when you navigate to a page it should show changes.

    However, this approach comes with certain costs. Add the iterator is available on page two, it is executed when you enter page two, even if you use it on the page. This could cause a delay when rendered, depending on the size of the data.

    Using the task flow will certainly be the best choice!

    Timo

  • Store the value of the client side in the .jsf page

    Hello

    I implemented the functionality of line selection using check box in an af:table paginated . The user can select a record by activating the individual checkbox at the level of each line or select all the records by selecting the checkbox "Select all" at the level of the table header. I added a client listener that fires on the box click and the javascript function I capture the unique value of each line and then invoke a server event and by passing all the unique values captured.

    I've also attached a server listener that calls a method in the managed bean. In the method I capture all the unique values (which went from java script) in the java collection and then storing the collection in the view range.

    On the page, I have a button 'Submit' who collect all values stored in the field of view and execute the necessary business logic. This full feature works very well.

    My requirement is to improve the flexibility of the page.

    When the user selects the check box, it takes around a second deal with the life cycle complete .jsf page.

    Is it possible to avoid the call Server to store the values in the field of view instead if I can store the decision-making value on the client side-side (which I believe will improve performance) and then finally when the user presses the button "submit" I'll enter the stored values on the client side and complete the rest of the business logic.

    Please let me know if this is possible in the page .jsf which is developed in the ADF with JDev 12 c (12.1.3) or please suggest another approach.

    Indications will be useful.

    Thanks in advance.

    Kind regards

    Gerard

    There are two ways to do this, consider for example the browser Local storage / storage of Session:

    http://blog.teamtreehouse.com/storing-data-on-the-client-with-localStorage

  • Onload event management to add business logic to the JSF page in ADF

    I want to know how to handle the onload event so that add us business logic once a view is loaded.
    In short, that's what I want to achieve-
    I have an entity object that I show as editable ADF table. Once the page is loaded and I want the table to show at least 4 tiers bit regardless of the number of lines now exist in the database table. For example, if the database table has 2 entries then table ADF should show these 2 rows and 2 additional lines in the table of the ADF. And if the database table has 6 ranks, it should show 6-row table of the ADF. How to programmatically manage this feature. What functions and methods, I need to replace or add. Any help is appreciated.

    Thank you.

    https://pinboard.in/search/u:OracleADF? query = onLoad

  • Searchable table on the product Page?

    So I'm in the middle of making a Web site, and I began with Adobe Muse. The site was almost finished, and then told me that the Web site must include a table that lists all of our products. A visitor will be able to search through the table, click all results and bring them to a page with more information about the product. Now the problem is that there are literally hundreds of products.

    So, after hours of research, I thought a list of spreadsheet will be done first of all products (including photos). On this basis, the table will be made. Using HTML, CSS and JQuery.

    Is there an easier way to do this in Dreamweaver? From my understanding, Muse is not really have this feature, so I plan on making it in Dreamweaver and its import in Muse by using "Import HTML.

    Now for the second part: each product must be clickable and keep the visitor produced a page with more information. Normally, it would be easy if it were not for the large number of products. Is there a way for me to make a model and have the code auto fill depending on what happens when the user clicks on?

    Since this is the first time that I am to tackle a problem like this, any help will be appreciated!

    I have access to the creative cloud together if this is useful.

    Close enough example of what I need:

    http://www.conciergerealty.com/sale-...price_value_1=

    A  visitor will be able to search through the table, click on any results and take them to a page with more information on the product. Now the problem is that there are literally hundreds of products.
    
    So after hours of searching, I figured a spreadsheet listing all the products (including pictures) will be made first. From this, the table is going to be made. Using HTML, CSS, & JQuery.
    

    Forget not on the use of Muse for all this.

    First of all, you need a database server like MySql side.  Then you must create the SQL tables to hold your product information.   Then you need such as PHP server-side code to join the tables of database of your server and pull content dynamically in the summary pages & product details.  In addition, you will probably want to create a back-end CMS for editing / adding new products to the database.

    If advanced programming is totally foreign to you, you can create your site in Adobe Business Catalyst with their purchase module. British Colombia is a unified platform that includes web hosting.   It has pretty much everything you need for the products in a database entry and sells items online.  No heavy coding experience is necessary.

    Nancy O.

  • Continue the table on the next page

    Is there a function in InDesign 5.5 which allows me to setup tables in a document as well when a table is continued on the next page, the first line of the next page says "table 1, suite" and then the rest of the table is displayed?

    Thanks for any help.

    Rayne

    N °

    (But you can do it manually do it automatically - the lines of header is repeated, and you can remove the a first.)

  • Hide a button in the header of the table on the following pages

    I have a button to add a line in the header of the table of a dynamic form of LiveCycle and want to hide this button once someone clicks on a button "Lock".  Individual array elements are fine as the elements in the master page.  But I see not where I hide the table elements that are repeated in subsequent pages (header/footer).

    Can anyone help?

    The button Add code app.alert (this.somExpression) is only a temporary measure to allow you to see the expression that you need to reference in your loop for. Now to make your form and have the table spread over several pages. Click on the button on a cup of different pages. It ill diosplay the somExpression for the button you touched. Note the similarities in name... you will see that the Expressions are the same except for the appearance of the Page Name marked by [n]. This scene reproduced occurance is what you need to know... then you can use the instanceManger, count to see how they are and to build your loop for loop through each instance and change the presence of the button.

    make sense?

    Paul

  • How do I top align the table on the Web page to the top of the browser?

    If you look at www.colonialstock.com, you will see that the Web page was made in a tabular format.  How do I best align the table, then the gray space above the table is removed?

    Add this to your body tag...

    LeftMargin = "0" marginheight = "0" marginWidth = "0" topmargin = "0".

  • How to put the table on the next page?

    Hello

    We have a requirement that there should be no table to split, if it continues on the next page.
    This set of the table should go to the next page.

    Thank you!

    Try to select the table, click right-> uncheck "allow splitting of lines on several pages.

    Is that what you want?

  • ADF Faces 11R2 - taskflow region discount table in the parent page

    Hello world

    I use 11R2 ADF Faces and ADF Jésus BC.

    I work with a project that consist of a page with a table and a region that is a workflow. The region contains only one button.

    The behavior is: ' whenever the user presses the button in the region, then the table on the page must be re-queryed and updated on the page.

    I use the parent action in the workflow to specify the result of the container page and page flow routera then to execute the method = "executeWithParams" and then return to the page to redisplay the it.

    It seems that the query is actually underway, but the page is not refreshed.

    Any ideas how to do this in a standard way?

    Kind regards
    Jan

    Hello

    You set the property to change policy in the file table to PPR binding PageDef?

    Frank

  • focus on something specific to the JSF page

    How we can focus on something specific to the JSF Jdev 11g page.
    In our use case user chose something of a radio button that he wanted to focus on a specific page element.
    Thank you.

    I don't think so. Another thing is to insert some JavaScript to code page (backing bean):

                    FacesContext facesContext = FacesContext.getCurrentInstance();
                    ExtendedRenderKitService service = (ExtendedRenderKitService)
                    Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
                    service.addScript(facesContext, "alert(\"Hello!\");");
    

    Pedja

  • Form and a report on a related table, on the same page.

    Hello.

    I use Apex 2.1 in Oracle Express on Windows.

    I have a table, SUPPLIERS, whose primary key is ACCOUNT_CODE, and an INVOICES table, which has a column also called ACCOUNT_CODE, and of course the idea is ACCOUNT_CODE can be used to join the two tables.

    I created an application, then a 'form on a table with the report' for PROVIDERS, while I have page 1; a report on the SUPPLIERS and page 2; a form for editing a particular record of SUPPLIERS.

    So far so good.

    Now, on page 2, I also want to have a summary of the invoices of the supplier which I am editing the record. So I created a region and in a report on the BILLS.

    The question is: How can I make sure this invoice report shows only the records where the BILLS. ACCOUNT_CODE corresponds to the value of SUPPLIERS. That is currently used by the form ACCOUNT_CODE?

    Thank you
    Nick

    Hi Nick,
    If I understand your question then for the report of the Bills on the second page. do the SQL code for the report of something like:
    Select * from invoices where Account_Code =: P2_Form_Item_Containing_Account_Code_From_Suppliers.

    If you do not have this code of behalf of the providers already in the form, you could do a hidden and protected field that contains the account_code of this provider. I hope this helps.
    -Marc

Maybe you are looking for