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.

Tags: Java

Similar Questions

  • How can I add reload the current Page in the toolbar Firefox 9?

    Once I have use customize toolbar, reload the current Page is not an option. I got this feature in previous versions of Firefox, and on another computer where Firefox has been updated to 9 the rest feature but I can't understand how to add to this new computer.

    Firefox 4 and later versions use a combined Stop/Reload/Go button that is placed at the right end of the address bar.

    During the process of loading page it shows as a stop button and once the charging button is replaced by a reload button.

    If you type in the address bar this button would then become a button go.

    Click the Reload button to duplicate the current tab in a new tab.

  • 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

  • Ripple Emulator - no way to update content without reloading the entire page.

    Dear Forums

    Ripple using 0.9.4 in Google Chrome Version 19.0.1084.53 for Mac OSX 1.7.4

    I have not found a way to reload the application in the emulator only, without having to reload the entire page.

    It would be great if we could only update the content of the device instead of the whole page.

    This also related in a problem with parameters for building waving-> passwords for the signature and the device reloading of the page down. (separate post for that)

    If it must be a problem in the incident handler, please let me know.

    Installed to ripple 0.9.5 (no sorry 0.9.6 according to the extension itself-> package shows only 0.9.5 but when he drag extensio nto chrome that lists 0.9.6)

    Pressing F5 refreshes perfectly content in the emulator.

    kind regards,

    Dennis

    -> Documentation on the keys taken in charge and how they funcion in ripple?

  • My computer crashed and I had to clean and reload windows 7 Professional. How can I reload the software from Adobe. I have connected on my Adobe account, but there is no record of my purchases.

    My computer crashed and I had to clean and reload windows 7 Professional. How can I reload the software from Adobe. I have connected on my Adobe account, but there is no record of my purchases.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • 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 ();

  • New HD - How can I reload the Vista Home premium OS

    My HD crashed, so I bought a new one.  How can I reload the Vista Home premium OS that was on the old HD?

    Hello TomNeumeyer,

    Your computer initially comes preinstalled with Windows Vista HP on this subject, the manufacturer?  If so, you will need to contact them to get an installation disc.  If you have a Setup for Windows Vista HP disk and a product key, simply insert the DVD and start the installation.

    Thank you

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • I am a beginner using Muse. Google shows all pages menu in the search results and all texts on these pages. How to just display the home page?

    I am a beginner using Muse. Google shows all pages menu in the search results and all texts on these pages. How to just display the home page?

    Thank you. I thought I created my Muse wrong site.

  • 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

  • When I open a pdf file. the document that I'm automatically redirected to page 3 of the doc. How can I open the 1st page?

    When I open a pdf file. the document that I'm automatically redirected to page 3 of the doc. How can I open the 1st page?

    Hi Monica

    Open the properties of the Document window (ctrl + d), click on "Display Initial" tab, check "Open page" option, type 1 in the text box.

    Kind regards

    Rahul

  • How can I reload the old version and uninstall Adobe DC?

    How can I reload the old version and uninstall Adobe DC?  I don't want to buy anything or get locked when I am offline and offline during updates may be required.  I will not enter my date of birth and credit card information.

    You must enter information date of birth or credit card. Using Acrobat Reader DC you don't need an internet connection.

  • How can I change the Home Page of Adobe to English? Happens to be french and I do not understand. I press the translator button but nothing changes!

    How can I change the Home Page of Adobe to English? Happens to be french and I do not understand. I press the translator button but nothing changes!

    Adobe - Choose your area

  • How to redirect to the previous page

    Hello

    I call you a personalized page of standard OA page when I click back to my custom page

    I want to go to the previous page

    I used pageContext.forwardImmediately ();

    but the page id is not valid error can someone suggest how to return to the original page

    page custom

    The example of tutorial wont support the situation go back to the previous page

    Concerning

    Krishna

    Hello

    Give the URL of the page and the page on the previous page function in the pageContext.forwardImmediately or pageContext.setForwardURL methods.

    Thank you
    Kumar

  • 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

Maybe you are looking for