Displaying error mesages with params from ViewController project

Hi,
I am using Jdev 11.1.1.5.0.
I am showing warning/error messages on UI form manage bean using following syntax,
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,'ERROR_MESSAGE','ERROR_MESSAGE'));
ERROR_MESSAGE has its description in Bundle.properties file.
I want to show message description with parameters and parameter values will pass at run time.
eg: Product {productName} is not allowed for the customer {customerName}.
I know how to do it from ADF BC but I want same behavior from Managed beans.
Please help in finding the solution..
Thanks in Advance
Nag

Hi All,
I want to access Message bundle properties file in the Application-module Impl java file ,Can you pls anyone guide me how to proceed.
But Jabr suggested me the following approach,
steps
Assuming that the properties is present in com.subbanasolutions.samples.Bundle.properties
// Imports
import oracle.javatools.resourcebundle.BundleFactory;
// Constants
private static final String RESOURCE_BUNDLE_NAME =
"com.subbanasolutions.samples.Bundle";
// Code to get access to the resource bundle and get a value associated with a key
ResourceBundle resourceBundle =
BundleFactory.getBundle(RESOURCE_BUNDLE_NAME);
if(resourceBundle != null)
// Here, FOLLOW_UP_LABEL is the key found in the resource bundle
String ActivityName = resourceBundle.getString("FOLLOW_UP_LABEL");
this works fine,But I want to pass parameter to messages like the bellow code snippet for view-controller project ,Is there any possibility?
MessageFactory.getMessage(FacesContext.getCurrentInstance(), FacesMessage.SEVERITY_INFO, "reopen.sucessfully", new Object[]{documentName})
Looking for your Reply,
Felix
Edited by: Felix Andrew on Nov 15, 2011 10:07 PM

Similar Messages

  • ADF Faces & BC: Remove unwanted 'model' dir from viewcontroller project

    Hi all,
    I would like to know how to remove the 'model' directory from our ViewController project.
    Steps to see this config:
    1. right click on your "ViewController" project from the application navigator pane
    2. Select 'Project Content'
    3. Select 'Modelers'
    You can see that there is a default 'model' directory under your ViewController directory. When I try to remove it then save, I get "Error parsing the path: The ContentSet is empty" message.
    Does anyone have any ideas on how to remove this value?
    Thanks,
    Wes

    /bump

  • Display error message in forms from function "verify_function"

    Hi,
    We have a number of users with our own created profile attached to them.
    We have enabled the 'PASSWORD_VERIFY_FUNCTION' for our own profile.
    Function "verify_function" is used to validate a user's password.
    In "verify_function" we have used "raise_application_error" message in case password validation fails.
    Example:
    raise_application_error(-20001,'Password must be minimum 8 characters in length and maximum 30 characters long');Question) "raise_application_error" displays the error message only in SQL Plus prompt. How do I display the same message from Oracle forms?.
    I have used DBMS_ERROR_TEXT & DBMS_ERROR_CODE in ON-ERROR trigger. This is not displaying the error message in forms in case validation failed in "verify_function". Oracle simply clears the username/password field with a new window. We want to display the error message that occured in "verify_function".
    Thanks

    use the following code in validating the item, e.g when-button-pressed
    begin
    verify_function;
    exception
    when others then
    message(sqlerrm);
    raise form_trigger_failure;
    end ;
    OR
    instead of writing a procedure rewrite it as a function to return 1 if password is correct or 0 if password is wrong
    Regards
    Jihad

  • How to display Error Message in APEX from Database Stored Procedure

    Hello,
    Using APEX version 3.2
    DB version 9.2.0.8.0
    Internet Explorer version 6
    I have an After Submit Page Process that calls a stored procedure. In the exception section I'm using dbms_output.putline to display an error message, but the error message is not displayed in APEX. How can I have the error message generated from the stored procedure display in APEX?
    Thanks so much.

    Hi Apex_Noob,
    I created On Load - Before Header process that uses apex_application.g_notification := :P3_ROLE;I'm sorry but I'm not sure what you mean by "instead of using dbms_output.putline use :P1_ITEM"
    I have the following code in my stored procedure
    EXCEPTION
         WHEN OTHERS THEN
         dbms_output.put_line('Role does not exist');Thanks.

  • How to display error message with some variable

    Hi
    I want to display errror message along with material number which is thr in d LOOP .
    Basically i want some variable to display along with error message .
    Can anybody suggest me how can i go about it?
    Edited by: sonal musale on Apr 14, 2009 12:06 PM

    Hi,
    In the message class, suppose  you use 001 for invalid material message.
    So keep it like:-
    Invalid Material : &1
    in the message class for 001.
    Now in loop use as:-
    loop at itab into wa.
      "perform validations
      "if validation fails for current material
      MESSAGE e001 WITH wa-matnr.
    endloop.
    Similary you can use more variables:-
    Invalid Material : &1 &2 &3
      MESSAGE e001 WITH <variable1> <variable2> <variable3>.
    Hope this helps you.
    Regards,
    Tarun

  • Duplicate class definition error while invoking EJB from ADF project

    Hi,
    I am using Jdeveloper TP3 and facing the following problem.
    I have built an EJB project and am ran them successfully in the embedded OC4J via a standalone java program.
    Now I created another project with ADF capabilities and when I tried to ping the EJB i get the following exception
    The application named, current-workspace-app, could not start due to an error.
    duplicate class definition: javax/faces/context/FacesContextFactory Invalid class: javax.faces.context.FacesContextFactory Loader
    This is happenning due to class conflicts between javaee.jar and trinidad-impl.jar/adf-richclient-impl.jar.
    Is there any way of bypassing this class loader issue?

    Hi,
    actually I didn' try the JNDI lookup but used resource injection instead
    In a JSF managed bean I use
    @EJB Ejb30SessionFacadeLocal myLocalInterface;
    public SortableModel getTableModel() {
    List rows = new ArrayList<Employees>();
    rows = myLocalInterface.queryEmployeesFindAll();
    this.tableModel = new SortableModel(rows);
    return tableModel;
    Its a EJB 3.0 session bean that accesses a Local interface. However, if the remote is on the same server then I would think that using @EJB Ejb30SessionFacadeRemote myRemoteInterface; does similar
    Frank

  • Slide size issues with copy from another project

    Working with Captivate 4.  I have a completed project where I have a slide I would like to re-use in a new project.  The recording options for each project are the same - full screen recording.  The image is being cut off all the way around the when I 'Copy Slide' in Project A and 'Paste Slide' in Project B.
    If the layout size is the same, why is the image being cropped/adjusted in the Paste?  Is there any way to adjust the size of the image when pasting an entire slide into a project?
    Thanks in advance,
    D

    Hi again
    Seems odd. But I may have a workaround. What if instead of copying the slide, you simply insert a Blank slide in the new project? Then you copy the background of the slide from the older one and paste as background into the newer? Results the same then or what?
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to display error messages and output from Matlab (which Matlab would typically send to its command window but no longer does when called by Labview) into Labview or allow it to be dumped into Matlab Command Window?

    Using Labview 6i and Matlab 6.1. I want to be able to see Matlab warnings and error messages either in the Matlab Command Window or in Labview itself. Currently Matlab is called by Labview (which is working). However I would like to debug and/or modify my Matlab script file to better understand how the two programs are interfacing. It is difficult since no data or messages can be displayed currently to the Matlab command window. I would like to change that if it is possible - Labview is suppressing that from happening. If not possible to send these
    messages to Matlab Command Window can I make it at least possible to see Matlab's actual warnings and/or error messages in Labview?

    I don't think you can debug your Matlab script from labVIEW. The following webpage talks about this:
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/19106e318c476e608625670b005bd288?O​penDocument
    My suggestion would be to write a script in Matlab and thoroughly test it before calling the script from a Matlab script node in LabVIEW.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Error Message with Downloads from Software Update

    Today I ran Software Update, and downloaded these two updates: one that applies to printers & scanners, and one that is an update to iTunes. After completion, each download gave the same error message as follows:
    The system extension "/System/Library/Extensions/SymOSXKernelUtilities.kext" was installed improperly and cannot be used.
    How do I correct this error?

    That error typically only occurs when the computer has been restarted, although that's not universally the case. What I would try is navigating to /System/Library/Extensions/ and deleting the reference .kext file (you need to CTRL- or RIGHT-click on the file then choose Move to Trash from the contextual menu. You will be prompted for your admin password.)
    I would then go to support.apple.com/downloads/ and download the updates in question and install them manually.

  • Error Installing with Package from CCP

    Hi,
    Apologies if there's a CCP board; I didn't see it in the menu.
    I used Creative Cloud Packager to make a package of apps for Mac.
    Installing the package using Apple Remote Desktop returns ".. could not be installed.  Error message: "Running package scripts...""
    When I run it locally on any machine (10.6 or 10.9), it responds with this error:
    The installation progress slows to a crawl about 3/4 of the way through "Running package scripts..." then after a few minutes returns "The installer encountered an error that caused the installation to fail.  Contact the software manufacturer for assistance."
    Nothing relevant seems to appear in the console log.
    Anyone have any ideas?
    Thanks,
    Jeff

    Im having EXACTLY the same problem
    After installing a new package ONCE, if I then try to re-install the same package again it fails half way through the install on second install atempts on a new Mac
    its a nightmare because I REALLY need a stable package to deploy accross many macs in our business,
    ADOBE PLEASE sort this out this is a MAJOR problem for your customers

  • Enterprise Project Management with Empty (from tasks) Projects

    Project Management is not only about Gantt and schedule. It's about collaboration, status reporting, resource requirements risk management and budget management.
    Project Server supports us with all of that with features like resource plan, status reports, team sites and risk list. You can also manage budget and progress with unscheduled tasks
    Have any of you gone this way of managing the non-schedule project information on either empty projects (without tasks) or "grocery-list" projects (with tasks as budget/effort entries, but no schedule)?
    Thanks,

    Yes, I know clients that do this. Project Server has many uses :)
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • How to Display RTF data with images from SQL database in Crystal Report

    I am using Crystal report in my WPF application, I have generate Question Paper Report, in which have Question with images. Question with images are stored in SQL Server in rtf format, I want to generate Question report with RTF Text and Images in report

    Hello Sir,
    I am still Facing problem in Crystal report generation with RTF Data (Text + Images),
    I am storing Questions in SQL Server which are RTF Format, Questions have Text + Images..
    I changed field data type then also i didn't get image in Crystal report
    if i browse an image n stored that in DB then its displaying in Crystal report, but when i pasted that image in RichTextBox and saved that in DB then no data displayed in Crystal report.
    My Table Structure is
    Table Name: tblQuestions
    field :    Questions Varbinary(max)
    I tried with nvarchar(max) also but its aslo not working

  • Making ADF Search case insensitive without using Execute with Params??

    I have a ADF search page baed on VO. I'm not Execute with Params form, instead i'm using normal ADF search page. Is it possible to make the search case insensitive?? if yes, how to do that?

    Ok, i'll try to find out the SRDemo application using ADF BC.
    And In Execute with params form,i'm already using UPPER on both the sides of where clause.
    Say my VO query is like
    select <table name>,...
    from fnd_tables t,fnd_applications a
    where a.application_id = t.application_id
    and upper(t.table_name) like upper(:EntityName) || '%'
    Then i created the ADF paramaters form by dragging and dropping the Execute with param from data control pallette.. when i run this page and do the search, it throws the error given in my second update...Any clue why that error is coming?
    Thanks
    Senthil

  • Managing stock footage from different projects

    We're trying to figure out how to manage our stock footage. What we want to do is take stock clips out of a finished project, move them into a project that contains only stock footage, and then delete the project they originated in. That way we have all our stock footage in a single project that we can call up whenever we need to use it. Of course, we can do this manually by selecting the clips, copying them into our Stock project capture scratch and then re-connecting, but this is hugely time consuming. Any suggestions on a faster way to do this? We've thought about using Media Manager, but it seems that would only work the first time we created the Stock project. After that, with stock from other projects, it seems like we'd have to import and re-connect from whatever file Media Manger puts the clips into.

    Whoops. Didn't realize that. New forums got me all confused. Thx Tom.

  • Running Firefox 10.0.2, cannot add new search engines from Mycroft Project. Error message: "you will need a browser which supports opensearch to install this plugin" Please help with steps on how to fix this issue in Firefox, thank you

    Can't add new search engines from Mycroft Project in FF 10.0.2. Error message states: "you will need a browser which supports opensearch to install this plugin"

    You're welcome.
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • Error after installing tape drive

    Hi, I am a newbie to Solaris, I have a SunFire V120 box, i was trying to install a tape drive(HP SureStore DAT24), i did the install in this manner. # rm -rf /etc/path_to_inst # init 6 later at the "ok" prompt i gave "boot -ar" after doing that it as

  • Pages 5.5: app doesn't appear in dock or tab bar when open

    We are seeing this issue on the two macs in our office we tested (mine and a coworkers). To reproduce it: Open pages Click "Done" on the open/new document window (or simply close all documents you have open) Click the desktop to send Pages to the bac

  • Scheduling Agreement with Delivery Orders

    Hi, When i create (LZM)scheduling agreement(Qty 10) with Delivery orders, when i create deklivery schedule ie Date                Qty 25.10.2008      1 26.10.2008      1 27.10.2008      1 in MD04 for that particular material i can see only requiremen

  • Problem with Photo Elements 4 and Scanning

    I have an HP Photosmart C-4180 All-In-One printer. I can print and scan. I can scan into the HP software or iPhoto but when I try to scan into Photoshop Elements, Photoshop closes down on me and the HP scanning software freezes. Does anyone have any

  • Report Help------------PLZ really Urgent

    Hi we are having 2 DIM in row Job Category and Cost Center,there are around 10 Job Categories and 5 Cost Centers and thesetobe selected Dynamically now the requirement is - After 10 Job Categories in 10 rows in 11th row Cost Center Member shoud displ