Why "{0}": befor message?

Hi guys,
please help me with this problem.
I've create 2 methods that performs application message creating.
protected void message(String clientId,String key){
          // cerca il testo del messaggio richiesto
          String text=null;
          try{
               ResourceBundle bundle=ResourceBundle.getBundle("microarray.bundle.messageResource",getFacesContext().getViewRoot().getLocale());
               text=bundle.getString(key);
          catch(Exception e){
               text="???"+key+"???";
          getFacesContext().addMessage(clientId,new FacesMessage(text));
     /* metodo per la ricerca dei messaggi dei bean dell'applicazione, cio� i messaggi della logica*/
     protected void appMessage(String clientId,String key){
          // cerca il testo del messaggio richiesto
          String text=null;
          try{
               ResourceBundle bundle=ResourceBundle.getBundle("microarray.bundle.application",getFacesContext().getViewRoot().getLocale());
               text=bundle.getString(key);
          catch(Exception e){
               text="???"+key+"???";
          getFacesContext().addMessage(clientId,new FacesMessage(text));
     }I have 2 bundles,one for application message (like authentication),another one for text in the pages.
Message method create message in the pages, appMessage create message for the logic.
My question is:
Why when my application gives me a message, like for example User not found,it gives me in this way
"{0}":User not found!I have two bundle(application and page text), each one in 2 version, italian and english. Thanks very much

Actually, I have had the same problem.
You can override the original validation messages (that you can find in the javax.faces.Messages.properties of your myfaces lib).
Create your own validation file (for example : validation.properties) in the /src/main/ressources directory of your web application. In this file you can override the "javax.faces.component.UIInput.REQUIRED" and "javax.faces.component.UIInput.REQUIRED_detail" properties :
javax.faces.component.UIInput.REQUIRED        = Validation error
javax.faces.component.UIInput.REQUIRED_detail = This is a required field.Then, add this in your faces-config.xml to tell JSF to look in the validation.properties before looking into the original Messages.properties :
     <application>
          <message-bundle>validation</message-bundle>
     </application>(maybe I misunderstood your question and you have already done all those things... :p )

Similar Messages

  • I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first

    I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first phone?

    it's meant to work like that
    so if you receive a message on your iphone you also get it on your ipad or ipod touch
    to avoid it use separate appleID for each device
    or turn off imessage on 1 or both devices in their settings
    but that will not fix the issue that 2 devices using the same appleID will never be able to facetime eachother
    the appleID is a unique handle for 1 user only

  • Why do text messages from my iPad appear to some people as if they came from my email address instead of my phone number? This does not happen when I send text messages from my iPhone.

    Why do text messages from my iPad appear to some people as if they came from my email address instead of my phone number? This does not happen when I send text messages from my iPhone.

    You need to link your iPhone number to Messages - and Facetime if you use it. For Messages go to Settings>Messages>Send and Receive at>You can be reached by iMessage at. If your phone number is showing there, select it as your Contact address. If it doesn't appear in there, take a look at the end of this article for help.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support

  • RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESSING

    hi.
    just i want to know what is the purpose of run operating system command before message processing,after message processing under file sender adapter.
    waiting for your great answer.
    bye.
    regards.
    seeta ram.

    Hello Seeta,
    let me see if I give it using a simple scenario that I implamented : i nedd to transfer a very large file from one server to the other by XI.
    to save space and network traffic I use an OS command before picking up the file to run a zip command to zip the file.
    after I transfer the file to the target server I run another OS command after the transfer to unzip the file.
    now to your second question:
    the before Os command on the target server is used mostly for checks (make sure there isn't a file by that name or backing up existing data)
    and the after sender OS command is usualy for backing up or erasing existing files (cause it is done only after the first part was finished succesfully).
    Uri Lifshitz.
    p.s.
    there was a blog obout this titled "XI as a huge file mover"
    and you can see a description and my scripts at https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/03/additionaltipsforusingXIasahugefiletransfer%28withbatchscripts%29&

  • OS level command before message processing

    Hello
    I am getting the files from the SFTP server through the shell script and expecting to be processed by my File sender adapter.
    I have configured my File adapter which will poll the directory into which the shell script gets the file and it is scheduled at say 60 sec duration and i had configured OS level command before message processing.
    But when i monitored my communication channel and also my directory I found out that its not executing the OS level command. I tried dropping the dummy file into the directory. This time when checked in comm channel monitoring, it executes the OS  level command and gets the file from the SFTP server and adapter polls the SFTP file as well. But i don't want to use dummy file each time.
    Is there any way by which we can always make adapter to execute OS level command. I tried various options like Process Empty files etc etc but no luck.
    Thanks in advance.
    regards
    rajeev

    Rajeev
    How about placing a dummy file of 0 bytes, setting up the 'Handling of Empty Files = Don't create message', Processing mode = 'Test' and then writing a post operating command script as well, to move all the files to archive directory except the dummy file.
    Not a clean solution but just a thought.
    http://help.sap.com/saphelp_nw70/helpdata/en/e1/69a740aa053a13e10000000a155106/frameset.htm

  • Why does this message keep appearing when i try to instal windows 7 through bootcamp? - "something went wrong and the USB cannot be configured for the installation"

    Why does this message keep appearing when Itry to instal windows 7 through bootcamp? - "Your bootable USB drive could not be created. An error occurred while copying the Windows installation files."

    Found a solution!
    Follow the extended version of these directions here:
    https://discussions.apple.com/docs/DOC-3581
    Worked like a charm!

  • FTP Adapter with Runtime OS Command before Message Processing

    Hi PI Techies,
    I have a confusion in using Sender FTP Adapter with Runtime OS Command before Message Processing.
    Scenario is like this:
    Ftp Adapter has to pick a file from FTP server after it checks that a Blank Marker file exists on PI server AL11 directory say "tmp directory".
    For this I am using Runtime OS Command before Message Processing where a shell script will check the existence of Blank Marker file on PI server AL11 and if found , it exits the script and FTP Adpater will then pick the Actual Data File and Process it.
    Now Confusion:
    I am confused in technical execution of steps by FTP Adapter..
    Whether FTP Adapter polling initiates the Interface or Runtime OS command checking the File existence will initiate the Interface?
    May be its follish to you guys... but please answer ..
    Regards,
    Anurag

    Hi,
    I will take it other way as we need to process the Data File not Marker File ( its just for checking the Data File is completely written on FTP server).
    Other way mean " Will Poll for Data.txt File and if  found then Runtime OS Command will do connect to FTP and check if Marker File exists, if yes then delete the marker file and read the actual Data File for processing.
    Please let me know, if Marker File does not exists on FTP folder, will it still read the Data File or will it exit the Adapter execution?
    Your help is much appreciated.
    Regards,
    Anurag

  • OS command on sender channel before message Processing

    Hi all,
    I am trying run unix script on my sender CC before message processing it's not working ,but If I use the same command in the program RSBDCOS0,I can see shell script is working.
    I am just providing the path of the script and  and shell script name.Tried below option to check it runs but it  is not.
    /home/pd1adm/concur/get-concur.sh
    sh /home/pd1adm/concur/get-concur.sh
    Please help me out.
    Thanks,
    Madhu

    Please check the FILE permissions.
    I had the same problem long back at that time there was some file permission missing.
    Please ask your BASIS or UNIX team to check the permissions.
    Thanks
    Naresh N

  • Runtime OS command before Message processing

    Hi all,
    I have a scenario where the input file from a particular FTP server has to be moved to XI server and then process the message from there. For this I am trying to use "Runtime OS command before Message processing" My problem is that how do I define it in the normal adapter configuration i.e. File access parameters for the sender.
    My Query is:
    Now should I use the NFS protocol or the FTP protocol ie.in the File access parameters should I specify the directory from which the file needs to be processed after movement to the XI server or should I specify the FTP server details choosing the FTP protocols.
    Also provide me some links on how to configure using OS commands.
    Thanks & Regards,
    Nithiyanandam

    Hi,
    U can use NFS ...also for RUN Operating sysyrm command
    Try using RUN OPERATING SYSTEM COMMAND AFTER MESSAGE PROCESING and RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESING.
    You just post ur output file in some folder(Target) , lets say /usr/sap/sapout/test/.and the shell script in this path /usr/sap/bin/convert.sh (use ur Rename logic here).
    Inside the File access parameters put target directory and filename scehme and for shell script give processing parameters as File construction mode , File type and OS Command and use a space after the shell script name and the %F.
    And for input can use it directly.
    For the shell script (which u will use to rename the file after processing) you can put anywhere inside /INTERFACE/XI/ but athe time you provide the pat it will be exactly matching as from where you are using the Shell Script and the file at the coressponding places. It shud be in XI. Thats it and u r done.
    Check out these links. First one will help you in acheiving want you want.
    /people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    I hope this will solve your problem
    thanq
    krishna
    Edited by: krishnachitanya siddavattam on Mar 10, 2008 5:38 AM

  • File-FTP command before message processing

    Hi experts,
    my requirement is as follow :
    i have 5 files on my FTP server. All are named FILE_hhssmm.xml
    In the configuration of my CC out, i have put as specific file name to get picked 1*.xml
    I need a command line in the 'run operating system command before message processing' that renames one of the files as 1FILE_hhssmm.xml so that the files get picked one by one.
    I can not manage to do that, i only managed to write a batch file but i only can run it locally...
    please, any help would be greatly appreciated...
    Kindly,
    Jamal

    Hi
    I have been following this for a while (from other posts as well), you are trying quite hard to get this done
    I have couple of ideas...
    If you think that this is not going to work, then you can try another solution,
    - let the .bat file be scheduled by the scheduler of your OS (this is quite simple) say every 30 mins
    - make the .bat file move your input files from your current folder to a child folder
    - let XI poll the child folder, every 5 secs or so... anyway your scheduler will send the file only after every 30 mins
    - Now you need not rely on the OS command from the Fileadpater of XI
    My suspicion (though it is not documented anywhere in help, as far as I know) is that the OS command executes only if there is proper reading of the file (or its presence as per the configuration in adapter settings) & not per polling of the adapter. I infer this from your previous post. but your requirement is peculiar that though the file is present that itself has to have a different name - to be read by adapter...some kind of clashes ??!!.
    The problem could be something else also, but the above is a possibility as well..
    all the best
    Regards
    Vishnu

  • The synchronisation of my iphone on my mac is during so long, why? before it was not so long but now the 3rd step is very long (it's synchronisation of buys)

    he synchronisation of my iphone on my mac is during so long, why? before it was not so long but now the 3rd step is very long (it's synchronisation of buys).
    thank you

    Contact the carrier... ability to receive government alerts is controlled by the carrier settings.
    Does TMO even officially support the iPhone 4?

  • SUP 2.0 Why the sybase Messageing Service doesn't start?

    Hellow experts,
    SUP 2.0 Why the sybase Messageing Service doesn't start?
    When I start the service, it starts and ends indicating "if they are not in use by other services or programs; it will end automatically"
    What should I do for this?
    Thanks
    Prabakar

    sometimes you only have to restart your pc. STOP SUP SERVICE ( AS ADMINISTRATOR ) and START SERVICE ( AS ADMINISTRATOR AGAIN ) ...
    That happens to me very often!

  • I need to sort the incoming file contents before message mapping

    Hi All,
      I have requirement like i have to sort the file contents before message mapping in Xi. is there any option please suggest me with your value information.i dont want to sort in message mapping before that i want file contents to be sorted order.waiting for your quick reply.
    Thanks,
    seshagiri

    Hi,
    You can do this in one scenario.
    Lets say you have MT_Source and MT_Target as two message types.
    Now your MM1 will be between MT_Source & MT_Source, that is same message type. Here you built your sorting logic.
    Now create MM2, between MT_Source & MT_Target. Here your actual mapping logic will be implemented. The input payload for MM2 will be sorted data.
    Now in operation mapping, first call MM1 and then call MM2 (You have a plus + sign to add multiple mapping programs). Due to this sequence, at run time first MM1 will be executed and after that its oupt will be given to MM2 as source payload.
    Hope its clear. Plz let me know if you have any doubts.
    -Gouri

  • Obtain a controlling object substitution before message error KI235 appears

    Hello!
    I' m in trouble... I'd like to define a substitution rule that works out before message error KI235 appears in posting a document by using FB01 or FB50 trx. I've tried to do it by using OKB9 trx and inserting a default cost center. It is not a good solution for me because OKB9 does not let me choose among different cost centers for the same cost element and bind me to use a fixed business area.
    Could you help me please?
    Many Thanks
    Giovanna

    Giovanna,
    You could reconcider to change the field status group and have the cost center set to "required" in stead of optional. FB01 and FB50 offer the oppertunity via Fast Entry Screens to enter a cost center immediately, before KI235 is issued.
    Kind regards.
    Roy

  • TS2755 Why are SMS messages being undelivered?

    Why are SMS messages being undelivered?

    some detail?  to you - from you?  to another i message user?   the pad is not a phone, and will only message to other i message users.

Maybe you are looking for

  • Kodo 2.3.0 is painfully slow

    Kodo 2.3.0 is painfully slow with Oracle database. It is doing left joins repeatable reading the same data over and over again. It is so slow that it is virtually impossible to use. kodo 2.2.x was lightning fast to compare with 2.3

  • How to calculate value from perticular column and row in pivot table

    Hi all, I am having following pivot table. Country A B C D F G H J K L M Grand Total Canada 1 1 3 3 12 14 13 97 China 8 4 3 19 India 2 47 448 176 395 3656 1964 1360 8077 USA 1545 352 380 26 10 4 8 32 2054 1023 758 4624 UK 12 19 13 23 33 298 Grand Tot

  • Export DB from one server to another.

    Hello I have big p problem to find the way how to move database from one server to another. The database is 10g R2. The both server are on windows server system and they are in the same network. I have one weekned to do this. I have found 4 ways: - C

  • Objects, Textures & Effects all not showing up properly...

    Hello, I've been trying to apply objects, effects, and textures, and they're all showing up in the canvas, and when I export, as 'all white'. I had taken a screenshot, but don't see how to import it here. But for example, under the Objects tab, I app

  • Tiff format error

    Hi All, I am trying to upload a TIFF image using RSTXLDMC . while trying to do so ,I am getting an error  "TIFF format error: No baseline TIFF 6.0 file ". I had look to find solution in SDN and internet,however this will NOT help me to solve this pro