Add a FacesMessage and then navigate to another page

Hello

I have a grain of support which adds a message of faces and then returns a result as:
  FacesContext.getCurrentInstance().addMessage(null, infoMessage);     
  return "back";
I found the message is displayed, even if the target of jspx fact include the tag of af: messages. It seems that the new page operates in a completely different context and the messages are lost. If I return null from the bean of the support in place so that no navigation will occur, the message is displayed correctly.

Is there a way to add a message and navigate to another page? (i.e. If the message on the target page).

I use ADF Faces 11.1.1.2.0.

See you soon!

Hello

I've never tried in 11g, but it should work, especially with JSF 1.2. Is the case of the navigation using redirection?

Kind regards

~ Simon

Tags: Java

Similar Questions

  • Make the button submit, and then redirect to another page

    Hello!
    I have a button of the region, when you press on "should" launch the Multi_row_update, then redirect to another page. I can't make it work well.

    I have the button BUTTON_1, I have the "after-submit' process that performs the MRU after this button is pressed.» I then created the conditional branch that is supposed to redirect. But it does not work. The page is not redirected. I tried to change the button to a redirect button, but then sending does not. How can I do both?

    Thank you!
    Jodie

    What is the sequence number of the one who is unconditional?
    I think that your unconditional branch on the same page may be taking over your conditional branch on page 55.

    -Chris

  • How do to navigate to another page when press the 'OK' button to confirm the dialogue?

    Hello
    In a detail of the page, I have a "Delete" button, and when you press this button, it will appear a confirmation dialog box, if the user click on 'Cancel', the dialog box is missing stay and still on the current page, if the user presses the "OK" button, it calls a method in the class ViewImple (do remove and other business process logic) and show a different page. The extract of the JSF page as follows:

    < text af:commandButton = 'Delete' action = 'delete' id = "cb3" >
    < af:showPopupBehavior popupId = "p1" triggerType = 'action' / >
    < / af:commandButton >
    < af:popup childCreation = autoCancel "delayed" = "disabled" id = "p1" contentDelivery = "immediate" >
    < af:dialog id = "d2" type = "okCancel" title = "Confirm deletion?" resize = 'off '.
    dialogListener = "#{scheduleBean.deleteScheduleDialog} ' contentWidth ="200""
    contentHeight = "50" >
    < af:outputText value = "Are you sure you want to delete this report?" id = "ot1" / >
    < af:clientListener type = "dialogue" method = "dialogAction" / >
    < / af:dialog >
    < / af:popup >
    < af:resource type = "javascript" >
    function dialogAction (evt) {}
    result of the var = evt.getOutcome ();
    if(Outcome == AdfDialogEvent.Outcome.Cancel) {}
    evt. Cancel();
    }
    }
    < / af:resource >

    Now the question is when I click on "OK" button confirm dialogue, dialogue is missing, but he can't get into the business logic in ViewImpl class method (the "delete" action value you access method adfc-config.xml file, and then navigate to another page), also click on the button 'Cancel' to stay on the current page.

    All tips will be of great help!

    You can use it as

    Navigate ("deletePage"); the adfc-config. XML

    public static navigate (String taskFlowName) Sub {}

    > FaceContext.getCurrentInstance () .getApplication () .getNavigationHandler () .handleNavigation (FaceContext.getCurrentInstance (), null, taskFlowName);

    }

    or for isnde action to propagate a method you have to use
    > MethodExpression exp =
    > (MethodExpression) ADFUtils.getMethodExpression ("deletePage");
    > getRegAgentNextBtn () .setActionExpression (exp);
    I hope that you ADFUtils with you

  • Hello everyone, I want to be able to create forms to fill out that can be signed online and then sent to another Department, what product would you recommend?

    Hello everyone, I want to be able to create forms to fill out that can be signed online and then sent to another Department, what product would you recommend?

    Hi Don,.

    Please see:

    Plans and prices: compare the versions. Adobe Acrobat DC

    FREQUENTLY ASKED QUESTIONS | Adobe Acrobat DC

    To subscribe: https://acrobat.adobe.com/us/en/pricing/pricing.html?promoid=KSMON

    I hope this helps.

    Concerning

    Megha Rawat

  • When I click on add to cart, and then on the shopping cart page I show quantity 2 even I select 1 .so wha

    Hi all

    in the list of products or the details of the product page when I selct 1 quantity and click on add to cart, and then page Shopping cart in the quantity text box shows even 2, I enter quantity 1. what question would you please tell me.

    Thank you

    Hello

    When you add to cart, you can see the quantity is added two times (for example if I add 3 the wagon goes to 3 then 6) and looking at your code it seems that you have onclick action

    for example (onclick =AddToCart(275761,5662250,'',3,true))

    attached to the time the tag and the tag where it adds the amount twice more that one tag and image tags are clicked.  Remove the onclick of one of them - I did it in Firebug for a tag and it worked.

    Hope that helps

    Steve

  • When I open a web page any using firefox, its ok for a few minutes, then he opens another page saying it is redirected for no reason at all

    When I open a web page any using firefox, its ok for a few minutes, then he opens another page saying it is redirected for no reason at all, the homepage remains open, but the other page start for no reason at all in another tab

    It's very consistent, he arrives a few minutes? In this case, I suggest this test:

    To find out if one of your extensions is the culprit, could you test mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    Not all add-ons are disabled: Flash and other plugins still works

    After stops in Firefox, a small dialog box should appear. Click on 'Start mode safe' (not reset).

    Any difference?

  • creation of delay before you navigate to another page

    All,

    I am trying to create a popup with image on a page load such as if you load this page the "loading... image into small div is displayed as for 2-3 seconds then the page automatically navigates to another page and pass a parameter value.»

    Here's what I did:

    1 added a popup div in my header page and within iam referencig < img src = #WORKSPACE_IMAGES #loading.gif / > it works correct loading pages

    2 created DA to present the button "NEXT"

    the problem is that #2 off so quickly before the iamge is paid or given,

    How to make changes for #1 works for 2-3 seconds then #2 then runs to go to the target page?

    Apex 4.2.

    Thank you.

    I made this another way.

  • I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    Can do in muse and I tried to use dreamweaver like the code below:

    <! doctype html >

    < html >

    < head >

    < / head >

    < body >

    < style >

    {#video_background}

    position: fixed;

    Bottom: 0px;

    right: 0px;

    min-width: 100%;

    min-height: 100%;

    Width: auto;

    height: auto;

    z index:-1000;

    overflow: hidden;

    }

    < / style >

    < video id = "video_background" preload = "auto" autoplay no Cup >

    < src = "source opening.webm" type = "video/webm" > "

    < src = "source opening.mp4" type = "video/mp4" > "

    This browser does not support video

    < / video >

    < script type = "text/javascript" >

    {document.getElementById('video_background').addEventListener ('ended', function ()}

    window.location.href = ' http://www.xxxx.com';

    (}, false);

    < /script >

    < / body >

    < / html >

    adeletsang wrote:

    Thanks for your reply.

    I just need to click on "object > insert html ' muse and paste the code there?

    My video ID is video_background which is defined by the widget by default, I should change the code below:

    The site I posted has no video in there and I don't have the widget that Peter sugested however, you can replace the startup code Nacy O made (the black with bit blob going around it) and it should work... understand that a ve\ideo will have to be downloaded by your browser clients before they can see it, so it's another delay for them.

    The code you posted is the code of downtime and that seeks a DIV not called "intro" so no do not change his name...

    A mandatory opening text

    After 5 seconds, this block will disappear.

    Everything between the two div tags is startup code and replace you it with you video and then use the muse "object > insert html" tool to place on your page.

    The demo includes three bits;

    • the body or the div tag is the code shown above and goes into the tool "insert html".
    • a header code that defines styles i.e. the yellow background and text... cela goes in your location of metadata page

    • The final code is the timeout in jQuery you had but do not change the name to the background image unless you also change the name of your div to match... Nacy O put it in its footer code that is correct for DW, but Muse has no footer as such area so I used a master metadata slot to the same effect. The important point is that it descends UNDERNEATH other codes.

    Have a play with it and see how you go...

  • How can I move these indicator and the control to another page?

    How can I move these indicator and the control to another page? I page Kontrol and those on Installningar page, move!

    Or I want to hide them Kontrol page, how can I do

    Thank you

    Hi q8.

    move: select the controls, move them out of the container tab, drag them into the appropriate page of the tab container

    Hide: Terminal controls (!) right click, select "hide"...

  • Oracle of the MAF: How get text of a page from the amx and show them in another page of amx

    I created a simple form using amx as below:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < amx:view xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    ' xmlns:amx = ' http://xmlns.Oracle.com/ADF/MF/AMX "xmlns:dvtm =" http://xmlns.Oracle.com/ADF/MF/AMX/DVT ">

    < amx:panelPage id = "pp1" >

    < amx:facet name = "header" >

    < amx:outputText value = "Header" id = "ot1" / >

    < / amx:facet >

    < amx:facet = "primary" name >

    < amx:commandButton id = "cb1" / >

    < / amx:facet >

    < amx:facet = "secondary" name >

    < amx:commandButton id = "cb2" / >

    < / amx:facet >

    < amx:panelFormLayout id = "p1" >

    < amx:inputDate id = "i1" label = "Date" / >

    < amx:selectBooleanCheckbox id = "s1" label = "CheckBox" / >

    < amx:selectBooleanSwitch id = "s2" label = "Switch" / >

    < amx:selectOneRadio id = "s3" label = "Radio button" >

    < amx:selectItem id = "s4" / >

    < / amx:selectOneRadio >

    < amx:inputText id = "i2" hintText = 'enter something '.

    Label = "Edit Text" > < / amx:inputText >

    < amx:inputText id = "text1" label = "" enter password: ""

    secret = "true" / >

    < / amx:panelFormLayout >

    < amx:commandButton id = "c1" text = "Send" action = "getFormDetails" > < / amx:commandButton >

    < / amx:panelPage >

    < / amx:view >

    I want to extract the text entries, check box, option button, and display them in another page of amx. Please help me.

    Hello

    Here is an example.

    Assuming that there is a taskflow (as feature) which uses two activities with the name View1 and view2, with a case of View1 to View2 control flow is getFormDetails.

    code View1.AMX:

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    value="#{pageFlowScope.TestBean.userNameValue}"/ >

    code View2.AMX:

    "http://www.w3.org/2001/XMLSchema-instance" xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    TestBean.java (which is located in pageFlowScope).

    mobile plan;

    public class TestBean {}

    private String _userNameValue;

    Private boolean _checkboxValue;

    public TestBean() {}

    }

    {} public void setUserNameValue (String _userNameValue)

    This ._userNameValue = _userNameValue;

    }

    public String getUserNameValue() {}

    Return _userNameValue;

    }

    {} public void setCheckboxValue (boolean _checkboxValue)

    This ._checkboxValue = _checkboxValue;

    }

    public boolean isCheckboxValue() {}

    Return _checkboxValue;

    }

    }

    Arun-

  • Display prompt then navigate to another report

    Hello

    I have a first report that display values. When I click on the value I navigate to another report. I have a problem. When the second report is open, guests are not display so my second report is too long and irrelevant.

    Can you help me to find a way to do it. The best would be to show the second report, based on the value of the first report. (the value of the first report is considered to be a command prompt).

    Kind regards

    When you create the second report, you want to create a filter on the column with the value "is invited". Then when the user navigates on the second report, it will be filtered according to the value that drill down on a user.

    For example, if the user explores the activity Id, the second report would have a filter on the activity Id and the operator is set to "Is invited".

    Good luck
    Thom

  • How to export the images from the Collection as a catalog and then merge with another catalog?

    How to transfer a version edited photo in a single LR catalog to a new LR catalog that has no editing.

    Tip! The Lightroom Catalog is a database file and contains no actual photo files, all it contains is information about the files that you have imported and info on the work you have done with the original image file.

    Please provide information on what you are trying to reach.

    The normal workflow is to create a catalog of the original files and then you can have virtual collections, smart Collections, Copies to make alternative options.

  • Button to navigate to another page does not not work properly all the time.

    Hello

    I'm just starting to explore the ADF, I use Jdeveloper 12.1.3.0.0 and integrated weblogic server that comes with the IDE.

    I just created a simple application with a welcome page called Main.jsf and then 2 task bounded, streams called SearchStudentsFlow and Studenloansflow, each workflow has a jsf page. The home page has a single button that sends me to the first task flow, SearchStudentsFlow and I can see is the page in that workflow, AwardsSearch.jsf. Also in the AwardsSearch.jsf page I have a button that takes back me to the home page.

    The first problem I have is that when I run the application starting at the home page button in the works of the great homepage the first time, the button send me to the AwardsSearch.jsf , but once I decide to go back to the homepage and then click on the button to go to the first task flow the button does nothing. This happens whenever I decide to return to the home page of any page in my project.

    Also, I copied the entire previous project into a new project and I decided to use the ADF security infrastructure in this new project to create a log in page create users and give them different roles and levels of access.

    I created some users who have access to all pages and all the streams, but when I run the application starts the login page and I login successfully and go to the home page, the button on the home page does not work.


    I don't know why the button sometimes works, but not of others and also I do not know why when I use the login page, the button doesn't work. I don't know if these 2 problems are related or not.


    This is my code in the homepage:

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="Main.jsf" id="d1" binding="#{backingBeanScope.backing_Main.d1}">
            <af:form id="f1" binding="#{backingBeanScope.backing_Main.f1}">
                <af:panelGridLayout id="pgl1" binding="#{backingBeanScope.backing_Main.pgl1}">
                    <af:gridRow marginTop="5px" height="20%" id="gr1" binding="#{backingBeanScope.backing_Main.gr1}">
                        <af:gridCell marginStart="5px" width="34%" marginEnd="5px" id="gc1"
                                     binding="#{backingBeanScope.backing_Main.gc1}">
                            <af:image source="/images/NU_Logo_purple.jpg" shortDesc="Northwester University" id="i1"
                                      binding="#{backingBeanScope.backing_Main.i1}"
                                      inlineStyle="width:293px; height:197px;"/>
                        </af:gridCell>
                        <af:gridCell id="gc3" binding="#{backingBeanScope.backing_Main.gc3}" width="33%"/>
                        <af:gridCell id="gc4" binding="#{backingBeanScope.backing_Main.gc4}" width="33%"/>
                    </af:gridRow>
                    <af:gridRow id="gr3" binding="#{backingBeanScope.backing_Main.gr3}" height="10%">
                        <af:gridCell id="gc5" binding="#{backingBeanScope.backing_Main.gc5}"/>
                        <af:gridCell id="gc6" binding="#{backingBeanScope.backing_Main.gc6}">
                            <af:button text="Search Awards" id="b1" binding="#{backingBeanScope.backing_Main.b1}"
                                       action="goSearchAwards"/>
                        </af:gridCell>
                        <af:gridCell id="gc7" binding="#{backingBeanScope.backing_Main.gc7}"/>
                    </af:gridRow>
                    <af:gridRow marginTop="5px" height="70%" marginBottom="5px" id="gr2"
                                binding="#{backingBeanScope.backing_Main.gr2}">
                        <af:gridCell marginStart="5px" width="100%" marginEnd="5px" id="gc2"
                                     binding="#{backingBeanScope.backing_Main.gc2}"/>
                    </af:gridRow>
                </af:panelGridLayout>
            </af:form>
        </af:document>
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Main-->
    </f:view>
    

    And this is my code in the adfc-config. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="Main">
        <page>/Main.jsf</page>
      </view>
      <task-flow-call id="SearchStudentsFlow">
        <task-flow-reference>
          <document>/WEB-INF/SearchStudentsFlow.xml</document>
          <id>SearchStudentsFlow</id>
        </task-flow-reference>
      </task-flow-call>
      <control-flow-rule id="__3">
        <from-activity-id>Main</from-activity-id>
        <control-flow-case id="__5">
          <from-outcome>goSearchAwards</from-outcome>
          <to-activity-id>SearchStudentsFlow</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
      <managed-bean id="__4">
        <managed-bean-name>backing_AwardsSearch</managed-bean-name>
        <managed-bean-class>view.backing.AwardsSearch</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1AwardsSearch.jsf-->
      </managed-bean>
      <managed-bean id="__2">
        <managed-bean-name>backing_Main</managed-bean-name>
        <managed-bean-class>view.backing.Main</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1Main.jsf-->
      </managed-bean>
    </adfc-config>
    

    No idea why the button does not work correctly all the time?

    Thanks in advance

    Play well!

    Now, we understand the problem and can help you solve it.

    The problem is that you dropped the home page in the flow of student loan and place you thinking that you must return to the point of departure, the unlimited workflow. Actually, you don't the sheet flow loan student but simply see the homepage as part of the loan flow. The navigation rules remain those defined in the flow of student loan. Now, when you click on a button to jump to the stream of research, the target is undefined zed you simply stay on the same page, the home page.

    To make your work use case, you set a return action in the flow of student loan that return to the caller, the flow of research which, in turn, will return to his name the workflow without terminals that hold the homepage. Remove the homepage of flow of charge to students. The case of navigation allows to navigate between the button and the new return action.

    In the adf of flow research a wild-card rule that accesses the return operation sends the return flow to the home page. You must remove the sailing time pointing to research prices for the return operation because it can use the same rule of navigation of wild-card then. Then, you add a Bach student load flow navigation rule to the scholarship search page. This navigation is used for the return actionto_searchStudents.

    Timo

  • How to navigate to another page?

    Hello

    I want to navigate through my page to another when I click the button, here is my code:

    SerializableAttribute public class Page1 extends Sprite
    {
    public var page2age2.
    public void Page1() {}
      
    var btn:Button = new Button();
    var lab: Label = new Sun;
       
    Lab.Text = "Click";
    btn.addChild (lab);
    btn.setPosition (10.50);
    btn.addEventListener (MouseEvent.CLICK, dothis);
    addChild (btn);
    addChild (log);
    stage.nativeWindow.visible = true;
       
    }
    public void dothis(event:Event):void {}
    Page2 = new Page2();
    addChild (log);

    }
    }

    But it has not worked out. Help, please?

    OK there was some compile errors in your class page 2. but no worries, I got em. Here's the code corrected for class Page1:

    package
    {
        //Remember to import all of the classes that you
        //are using
        import flash.display.Sprite;
        import flash.events.MouseEvent;
    
        import qnx.ui.buttons.LabelButton;
    
        // The following metadata specifies the size and properties of the canvas that
        // this application should occupy on the BlackBerry PlayBook screen.
        [SWF(width="1024", height="600", backgroundColor="#FFF000", frameRate="30")]
        public class Page1 extends Sprite
        {
            private var page2:Page2;
    
            public function Page1()
            {
                //initiate new object here to use later
                page2 = new Page2();
    
                var labButton:LabelButton = new LabelButton();
    
                labButton.label = "Click";
                labButton.setPosition(10,50);
                labButton.addEventListener(MouseEvent.CLICK,dothis);
    
                addChild(labButton);
    
                //addChild(log); //dont know where you declared this so commented out
                stage.nativeWindow.visible = true;
            }
            //change the event to MouseEvent since that is what you
            //are listening for
            public function dothis(event:MouseEvent):void {
    
                addChild(page2);
                //addChild(log); //dont know where you declared this so commented out
    
            }
        }
    }
    

    and here's the code fixed to your class page 2:

    package
    {
        import flash.display.Sprite;
    
        import qnx.ui.buttons.LabelButton;
    
        public class Page2 extends Sprite
        {
            public function Page2()
            {
                var label:LabelButton = new LabelButton();
                label.label = "Welcome to Second Page";
                addChild(label);
            }
        }
    }
    

    in your first class Page1 I combined the label and the button in the class LabelButton() of QNX. This code should now work correctly (tested and it went well).

  • Save, and then click on new page

    It's not that difficult... I mean, tons of other people must have the same need, but I can't seem to make it work. I'm positive, I fell on this topic before, but I can't find the thread with the resolution to my problem!

    I have a form, then the form below is a report that contains a column of link that goes to another page. If a user makes changes to the upper part of the form, and then clicks on a link to the column in the report, I need to save the page first, then go to the page on which the link of the column points.

    Someone at - there a solution to my problem?
    Thank you
    Tammy

    O.K. I see the difference. Just I've updated the example you can see the code you need:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:254

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • Portege M750 - Volume knob does not control the sound

    Hello: Just made a new intall of Windows 7 (32 bit). Made from scracth with CD from Toshiba. The drivers that I downloaded from the site Web of Toshiba. Everything is ok, except the volume knob does not control the sound. Does anyone know driver I'm

  • File txt to ASCII binary (MATLAB equivalent?)

    Hello I just started using LabView two days ago and need help with which is probably very basic. My goal is to take a .txt file that contains some message (letters, numbers, etc.) and convert it to a stream series of bits. In MATLAB, I would do it li

  • Data serialisieren / String deserialisieren in LabVIEW7.1 nachbauen

    Hallo, Wie kann ich den in LabVIEW8.0 shipping block 'in the string if"&" String in data if "(en 8.5.1 Daten serialisieren/deserialisieren) in LabVIEW7.1 nachbauen?"» Email sharp für Kommunikation CAN-Bus(betrifft die PCAN WRITE.vi und READ.vi), im I

  • type defination

    Hi all I need a little help with type definitions with the constant of type listed... how to create their thnx

  • data post to httpconnection http 302

    I am tryind to send settings via the post for an httpconnection, but always get http 302 response code This is my code: HttpConnection conn = conn = (HttpConnection) Connector.open(url, Connector.READ_WRITE, true); URLEncodedPostData encoder = new UR