ADF FACES: af:messages/ does not display my messages at all

I am having an issue displaying messages using ADF MyFaces EA20.
<af:messages />
Within all backing beans I call messages with the following method to conveniently display messages when needed.
// Add invalid email address message
JSFUtils.addMsgToContext(FacesMessage.SEVERITY_ERROR, "setEmail_error", MsgConstants.INVALID_EMAIL);
The method utilized can be seen below:
public static void addMsgToContext(FacesMessage.Severity severity, String msgKey, String descKey) {
    // Check the parameter, if either short desc or desc both are empty
    if (StringUtils.isEmpty(descKey)) {
        logger.error("Message description are empty. Do NOTHING just return");
        return;
    try {
        logger.debug("Add Message to Context");
        FacesContext context = FacesContext.getCurrentInstance();
        Application application = context.getApplication();
        // Add the message to the context
        context.addMessage(msgKey, getMessageFromBundle(descKey, severity));
    } catch (RuntimeException e) {
        * Supress RuntimeException.
        logger.error("Error occured when add message to context", e);
With the first login page when validating username and password, the messages I send to the context display correctly, for example, “incorrect password please try again” and this uses exactly the same code as above in the backing bean.
However once a session has started the messages simply do not get displayed and are not included in the HTML the <af:messages /> is replaced with nothing.
No runtime exception is thrown.
If anyone has any idea of why the messages are not being displayed I would be very grateful to hear them.
Finally if I may add that I used this method of displaying messages in a previous project and it was fine. This time the only difference is that I am using Hibernate.
The closest answer I could find to a similar issue with Oracle Forums was:
The messages have to be added before the Render Response phase. It's generally very unusual to add messages in a bean getter/setter. I'd restrict yourself to adding messages in event listeners and actions.
I do put messages in my setter methods as this is where I perform validation, but I have tried moving them to the main method called by the action button and this still does not display my messages.

Frank
There is a standard way? Next time you can simply tell me to RTFM ;-) . I am working on a project and was assigned my particular section and was told that the messaging aspect and validation was not urgent, until now near the end of the project when it has become urgent. Rather then listen to my colleagues answer of "this is the way to do it" your answer suggested that we working in a non-standard way.
Having looked at Oracle JDeveloper 10g (10.1.3) Documentation, Validation, Conversion, and the Application Lifecycle section I noticed:
Render response:
Either display new page based on invoked navigation rules, or displays same page with errors.
I was providing a new navigation String to the same page under all conditions, which I guess gives a new context and so does not display the messages. Under error conditions I now return an empty navigation String and now it displays my messages.
Thank you for your help with this and I promise to read the manual next time.
Andrew

Similar Messages

  • JDeveloper 11.1.2.3, ADF Faces: declarative component does not support af:clientListener?

    I am trying to create a declarative component with the following code:
    <?xml version='1.0' encoding='UTF-8'?>
    <af:componentDef xmlns:af="http://xmlns.oracle.com/adf/faces/rich" var="attrs" componentVar="comp" definition="private"
                     xmlns:afc="http://xmlns.oracle.com/adf/faces/rich/component">
        <af:xmlContent>
            <afc:component>
                <afc:display-name>DoubleClickTableDialogClientServerListener</afc:display-name>
                <afc:component-extension>
                    <afc:component-tag-namespace>org.mskcc.crdb.common.declarativecomponent</afc:component-tag-namespace>
                    <afc:component-taglib-uri>http://www.mskcc.org</afc:component-taglib-uri>
                </afc:component-extension>
            </afc:component>
                <af:clientAttribute name="serverListenerType" value="TableDoubleClickEvent"/>
                <af:clientListener method="handleTableDoubleClick" type="dblClick"/>
                <af:serverListener type="TableDoubleClickEvent"
                                   method="#{EditAddDialogTemplateBean.handleTableDoubleClick}"/>
        </af:xmlContent>
    </af:componentDef>
    At runtime I recieve the following error:
    javax.faces.view.facelets.FaceletException: ADF_FACES-60023:Component: DoubleClickTableDialogClientServerListenerComponent[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@7170a7, id=dctdcsl1] does not support client listeners.
      at oracle.adfinternal.view.faces.facelets.rich.BaseClientListenerHandler.apply(BaseClientListenerHandler.java:53)
    This component was intended to be dropped off within an af:table component. I would like to hear suggestions on workarounds, one other way I thought about was to create a code template for the three tags, however, the con to this approach is each developer would need to configure this template within jdeveloper. Ideas are appreciated.
    Also a side question, how can I embed code properly with the new forum? [code] tag does not seem to work now.

    Wes, can't help with the real question, but can tell you how to format code
    Change to the advanced editor (top right over the editor field), then you get more options. The one you are looking for is behind the blue '>>'. Here you select the language you want to insert and you get nice code formatting and color.
    Timo

  • Messages Does Not Display Contact Card

    When I message someone or they message me to/from my Messages App on my MBP Messages will not fill in their contact information from my contacts. The only exception to this is when I am messaging someone who uses their email as their iMessage/Messages primary address.
    For example, if I am messaging my friend who has an iPhone and their primary form of contact is their phone number then they show up as a phone number in my Messages app on my computer. However, on my phone they show up with their contact information filled in and the messages usually sync (sometimes there is issues where my computer will take me back to the last place I sent a message on the computer even though it has synced all of the messages I have also sent from my phone that day.) *See Screen Shot 1 Below*
    The opposite example is if I am messaging someone who has set their primary contact information to be their email address. In this case, Messages will add their contact information and picture to the message thread similar to "Brent" and "Mom" in Screen Shot 2  below.
    I don't know what else to do. I've tried restarting the app. Deleting message threads and restarting them. I cannot find other people who are having this issue as well. I'm just trying to figure out why my messages won't sync contact info. It all started when facebook updated their syncing with contacts. And yes, all of these phone numbers are in my contacts and assigned to contacts with pictures both on my phone and synced to my MBP.
    Screen Shot 1
    Screen Shot 2
    Screen Shot 3 (My current system Settings)

    Hi,
    Not sure I would have got that one.
    Can't say I have seen it before.
    Custom in Language and text can mean two things.
    1) You have either added things to particular Displays  (such as day and Date to the Time display)
    2) You can changed something like a Measurement setting from British Imperial to Metric
    There are other "tweaks" such as using a Chinese Calendar whilst saying you are in the US.
    I have mine set to United States so I can use the AIM SMS "feature"  in Messages.
    8:45 PM      Friday; July 19, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Build and Extend an ADF Faces Application (ADFDialogFwk-does not compile)

    Has anyone upgraded the "ADFDialogFwk" application to work with Jdeveloper 10.1.3 Early Access 1 ?

    It requires a specific version of ADF Faces ea17 to be downloaded from oracle... of course as of today this version is upgraded to ea19 when you check for updates
    maybe this is the problem with my Jdeveloper..
    Did you try to compile it with Jdev 10.1.3 AE ?
    Regards,
    Maira

  • PIX-FLIX Text sent to phone, but actual video message does not appear in messaging area online.

    I received a text message saying I received a Flix message. However I must access it by going online to vzwpix.com. So I went online right after and the website said it was down for maintenance. So I checked back a few hours later. I logged in. Went to Send Picture and Video Message. Then went to the Messaging Tab. However there was no message.
    A few things come to mind why I might not have received my message. Since the person who sent the message had sent it during the time when the website was down, the message never went through?!
    Another thing I noticed. When in my Picture & Video Messaging I see the Folders "Drafts" and "Sent Messages" however when I put my cursor over the "?" next to Folders it mentions a "Received Messages" folder should be included. However under the actual Folders the "Received Messages" folder does not exist. So maybe the message I was sent never had a default folder to be sent to?!
    My phone was notified I was sent a message. I followed the directions. No message appears where it should be. Please help!
    On a side note. I tried going to the "Contact Us" link at the top right of the page to get help. However, everytime I click it, refresh, etc. I get sent to the page "http://www.verizonwireless.com/backbutton.html". This is obviously a broken link.
    Frusterated Customer seeking help ... Thanks in advance for help on this issue.

    Still no answer to the question. Is this bogus or what?! I get a message from my Daughter-in-Law asking if I got my Mothers' Day song my grandkids sent this morning. No, I get this Flix message at this website text. Here I am now, registering and changing passwords I've never had to this 'forum' with no help and now Flix message. I''ve ignored these messages that I have received before now because of the drama. This time I follow through because of Grandkids for this.
    I'm so frustrated that I've wasted so much of my time for naught. What do I tell the grandbabies? How can we avoid this from happening in the future? Was their song too long to send as picture/video message directly to my phone?
    Why are their no answers anywhere? You've got to be kidding me.
    Sore customer!

  • IPAD email message does not show in message  part of email will only show when you hit the reply button, portion of message shows in thread only

    I can not view email message in the message frame, this is new, email always worked until yesterday . A portion of the message shows in thread column, but blank space shows in email column. How do I remedy this? I can only read my email when I go to the forward/reply button.

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • New iPad does not display sent messages

    i set up the mail, send mial happily. but when i go to sent mail folder, it displays sent e-mails form last year, and all the wya back to 2011, but not the ones i sent this week since getting the new iPad.  anybody have any ideas?

    The model number that you listed is a WiFi only iPad (original, not iPad 2) so it will not connect to 3G data as I think you already know. 
    Doesn't one have to have an AT&T account to connect to attwifi?  If they do have an AT&T account and are trying to connect do they ever get to a logon screen (best way to bring it up is to try and access any site over the web, you'll get redirected to a sign-in page).
    Other question is how strong is the signal, I have lots of issues with public WiFi being strong enough for my device to see it, but not strong enough to actually connect and do anything.

  • Picture messages does not display

    When I receive a picture message and I try to open it, It open up a grey sceen with IMG_12345. It allows me to save the picture and view it in my camera roll. How can I fix this?
    iPhone4 running 6.1OS Jailbroken

    probably something to do with jailbreaking your phone, which can't be discussed here. try google.

  • Warning messages are not displayed in confirmation

    Hi,
    We are working with SRM 5.0 classic scenario. Our issue is warning messages are not displayed whenever we press the CONFIRM or DELETE button in the confirmation, however warning messages are displayed if we press CHECK button in the confirmation.
    Please suggest the solution to display the warning messages while clicking CONFIRM or DELETE button in the confirmation.
    Thank you
    Natarajan

    Hi Muthu,
    Thanks for your reply. We raised the OSS message for this issue. As per  the standard system behaviour, warning messages will not be diplayed when " DLETETE" button pressed.
    In the DELETE mode, the system will display only the first EXPRESS
    ERROR message and not WARNING messages.
    Inorder to maintain an error message as EXPRESS, the FIELD_NAME
    (i.e ls_message-field_name) has to be assigned with the value
    EXPRESS.
    For example,
    ls_message-msgty = 'E'.
    ls_message-msgid = 'ZF'.
    ls_message-msgno = '000'.
    ls_message-field_name = 'EXPRESS'
    Kindly note that in the DELETE mode, the system does not display
    EXPRESS message with msgty = 'W'.
    Only EXPRESS message with msgty = 'E' is recognised and displayed.
    The Warning messages will be displayed only during the CHECK mode.
    Thank You
    Natarajan

  • My messages are not displaying, in the body of the message?

    When going to mail I see messages but the body of the message does not display.

    Try closing the Mail app completely and see if they show when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Nokia communication center does not display persia...

    nokia communication center does not display persian message correctly

    My n85 got the same problems I got 3573 message in my inbox.. i am thinking to store the msg and reformat my phone.. but the NCC just show my MMS..
    Solution:
    I unplug the cable n restart the NCC connected with bluetooth. It show me text message.
    New problems:
    It only show up to 3252 message.
    I want to store the message. I tried to store it in cvs form, but it doesn't record the time. vmg file does record the time But it need to store one by one
    Is there any software can allow me to store all message to vmg, or other format that contain data like contact name, contact number, date and time?
    Hydra..

  • R/3 Warning Messages are not displayed

    Hi experts!!!
    I have the following issue:
    Credit Limit Check works in ERP and displayes warning message during order creation. I need the same message to be displayed in B2B application.
    How can i achieve this???

    Hi Muthu,
    Thanks for your reply. We raised the OSS message for this issue. As per  the standard system behaviour, warning messages will not be diplayed when " DLETETE" button pressed.
    In the DELETE mode, the system will display only the first EXPRESS
    ERROR message and not WARNING messages.
    Inorder to maintain an error message as EXPRESS, the FIELD_NAME
    (i.e ls_message-field_name) has to be assigned with the value
    EXPRESS.
    For example,
    ls_message-msgty = 'E'.
    ls_message-msgid = 'ZF'.
    ls_message-msgno = '000'.
    ls_message-field_name = 'EXPRESS'
    Kindly note that in the DELETE mode, the system does not display
    EXPRESS message with msgty = 'W'.
    Only EXPRESS message with msgty = 'E' is recognised and displayed.
    The Warning messages will be displayed only during the CHECK mode.
    Thank You
    Natarajan

  • SMS text message header does not display sender information

    When I receive a text message the only header information that displays is the date and time.  The senders information does not display.  The lines are not even there.  There is no way to reply to a text message or tell who the sender is.  This problem is only with SMS messages.  Regular email headers display just fine.  I have done a wipe, reset, reload, everything possible with no luck.  I am the only one in my office with this problem.  I have not been able to find any information or postings from anyone having the same problem.  I can read the text message, but there is no header (except for the date and time).  Any thoughts?
    Blackberry Curve 8350i

    I was able to resolve the problem by uninstalling the Blackberry desktop manager software and reinstalling it selecting Internet Email vs. Blackberry Enterprise Server.  If you get to the screen that asks you to choose which type of email service you use and you accidentally choose the wrong one your phone will work but will do strange things, including sending all sorts of redirect emails.  For me, this seemed to do the trick.

  • The control of adf media does not display even the Control attribute is set

    Hi
    I am trying to play a clip in a jspx page. I use an ADF media to embed the file and play the file by quicktime. I set the control display attribute to "all" or "typical" but the control does not display when the browser(FF) display the clip.
    Can anyone help me?
    Thanks

    try adding mime-mapping in web.xml. Just a suggestion and I haven't tried this control.

  • ADF swing: JTabbedPane does not display column names.

    Hi all,
    I have created an ADF Panel, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    From the data control area I drag and drop a view link containing a query into a JTabbedPane. But when I run the ADF panel, JTabbedPane does not display the column headers from the SQL as opposed to JScrollPane which does.
    Suppose you do a select * from departments(dep_id, manager, state_cd), you will see all column headers meaning dep_id, manager, state_cd, and under each column the corresponding data which was retuned by the SQL if you use JScrollPane. But if you use you use JTabbedPane then you would only see the data which was retuned by the SQL without seeing the column header names meaning dep_id, manager, state_cd.
    What do I need to do to make JTabbedPane display columns headers?
    I would appreciate your input.
    Thanks.
    Bobby A.

    Hi,
    JScrollPane should be used. You can add this into a JTabbedPane if you like. Not all Swing panel show table headers
    Frank

Maybe you are looking for