H:messages and Ajax4JSF
Hi,
I have a problem with displaying error message after sending an ajax request.
Facelet:
<a4j:form ajaxSubmit="true" reRender="data">
<a4j:outputPanel ajaxRendered="true">
<h:messages></h:messages>
</a4j:outputPanel>
<a4j:commandButton value="Test" action="#{bean.command} />
</a4j:form>
Bean Class:
public void command() {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("test"));
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.ERROR, "test", "test"));
// Test
Iterator i = FacesContext.getCurrentInstance().getMessages();
System.out.println(i.hasNext()); // returns false
Is there sth special I am missing about adding messages to the FacesContext with Ajax? Is it possible at all?
Thanks in advance!
You should better to commit your question to Ajax4jsf specific forum:
http://jboss.com/index.html?module=bb&op=main&c=27
Similar Messages
-
I am trying to import developed images from LightRoom 5 Photoshop 6 for further editing. I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, or you do not have necessary access permissions or another program is using the file. Use the 'Properties' command in the Windows Explorer to unlock the file. How do I fix this? I would greatly appreciate it if you would respond with terms and procedures that a computer ignorant user, such as me, will understand. Thanks.
Have you tried restoring the Preferences yet?
-
The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music etc back into my laptop , how can I do that. Also let me know how I can transfer the contacts into Windows contacts from I phone. Pl help
Your content will only be where you put it. It has always been very basic to always maintain a backup copy of your computer.
You can transfer itunes purchases from your iphone: File>Device>Transfer purchases.
You can import your pics taken with the iphone as you would with any digital camera.
You can e-mail the other pics to yourself, they will never be of the original quality.
You can out a unique contact and calendar entry on the computer. You should get the option to merge the data when you sync. -
my daughter has changed her phone from an iphone to a nokia but kept the same number but when i send her a message from my iphone it still comes up as an i messsage and she doesnt receive it can anybody tell me how to fix this please
She needs to remove that device from the iMessage database, or if she still has the phone, she can go into Settings, Messages and turn off iMessage. If she still has the phone, she just needs to put the SIM back in for a couple of minutes to turn that off.
If she does not have the phone any more, she will need to go to her Support Profile, if she registered the phone and delete the phone from the profile. -
What is difference between I-mesage and Text Message, some timeI want to send I-message and but I send text and it's charge to me.
Thanks Wj,
another question, how I got to know, my I-message is activated, I put as ON, but I am not getting mesage it's activated, there is link showing to me, learn more abount I-message. do it will take time? please advise how I can activate my I-message. Please advise. -
I have just bought an iPhone 5 and it won't sync to iTunes. It says it needs iTunes 10.7, which I have downloaded and installed. I still get the error message and looking at "about iTunes" it says 10.6.3. What do I do??
Perhaps check to see if you're accidentally running two different versions of iTunes. There's some information on troubleshooting that in the Opening iTunes section of the following document:
Troubleshooting iTunes installation on Mac OS X -
My husband and I both have iphones and both are linked to the app store and i cloud. Now my husband is receiving all of my text messages and has all my contacts. How can we get it to where he does not receive my messages anymore? Any help is appreciated!
Best way is to get your own Apple ID, but until then have him go to Settings > Message > Receive at and remove your phone number.
-
Why cant I add contacts on the iphone4? the mail contacts calendars button unders settings, the contacts button, the add a contacts button under message and the phone button will not work to add a contact.
Have you attempted a restore?
-
I have lightroom 5.7 and a macbook pro 10.9.5. Occasionally when I am editing a photo in the develop module, I suddenly get a "file not found" message and the editing ceases to work. There is no "exclamation" icon below the histogram box in the Library module or on the photo in grid view, and the histogram is gone. What is going on? Trying to find it using the "find missing photos" in the library menu does nothing.
-
How do i get to text messages and pictures in icloud
how do i get to my texts and pictures on my icloud i only see contacts and notes and a few others
Not a good idead to share IDs
Read http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
Read Sharing an Apple ID with your Family
Does your father have a recent backup of his phone? If so restore his phone from that. Please not that everythign created on th ephone since the backup was made will be lost -
Blackberry 8310 Curve randomly deletes text/sms messages and phone logs
Why does this keep happening to me?
There are times that my phone goes over a week without it happening and then there are times like today it has happened three times.
I will have maybe 5 ot 6 text messages in my inbox and maybe 2 or 3 emails and I get a phone call and POOF the text messages and phone logs are gone!
I have repeatedly lost important text messages and numbers from my call log.
The tech support excuse for it is that I have too many messages in my inbox which causes it, but 6 sms messages and 3 emails is too much?
I have tried everything (updating the desktop software, updating all of the settings NOT to delete messages until i delete them, hard booting my phone once a day, etc..) and it still does it.
This also used to happen with my Blackberry Pearl.
If I can't get it resolved, I will just switch to the iPhone. I can deal with the randomly dropped calls, but constantly loosing my call logs and text messages is BEYOND frustrating and Blackberry tech support has been no help!.
Solved!
Go to Solution.DCmuseum,
Hi,
You have low free memory left on your device.
Do you have a lot of third party applications on your BB weather, icall,bbalerts etc?
I do not know your experience level, so if you know this I'm sorry but please read and let me
know if this applies.
Most people close the applications by pressing the escape or red key. This does not close the applications.
Each application has a CLOSE option. For instance if you are in the calendar hit the menu key (spotted key) and scroll down to the bottom CLOSE is listed. Go through each application and press close. Go into the browser press menu and options select cache operations clear all categories and hit escape it will say cleaning memory.
Go to options - security - memory cleaning - enable it. The BB will now clean memory when idle for 5 minutes.
you will have an icon on you screen for memory cleaning make sure you press it. Make sure you use the CLOSE button each time you are done with an application.
Read the link below and follow each step that Tanzim outlines,
http://supportforums.blackberry.com/rim/board/message?board.id=8300&message.id=9225#M9225
If you follow these steps and keep up with your memory your phone will operate smoothly.
Please let us know if you need help with any of the steps.
Thanks
Message Edited by Bifocals on 09-07-2008 11:58 AM
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
Anyone know how to remove your own picture that is now attached to all text messages? Since the software update (assume KitKat) my LinkedIn photo is now attached to all my text messages and I never set that up, nor can I figure out how to remove it!
How do I remove my photo from my text messages? Android RazrM.
Help! It is driving me crazy. Thank you.Thanks, but this information was not useful. First it was outdated (2012 and the software is 2013/2104) in the Settings/Apps/All section there was no "Text Messaging" icon. Under "Phone/Messaging" the clear cache was not possible, it was not available, an active option.
VERIZON/GOOGLE - I am still hoping to learn how to remove my photo from my text messages - why is this so difficult? Why is something like this added without my permission or at my request? May be a reason to jump ship to iOS. -
I've been texting my friend with iMessage with wifi on and all of a sudden it changed to text message and won't let me send messages. My wifi is still on and working but it won't switch back to iMessage. Please help
What I recommend you try doing first is to turn iMessage off then back on. If that doesn't work, make sure that your Apple ID and password are correct. If everything seems correct and you still can't send out messages using iMessage instead of text message, I think you should either try calling AppleCare at 1-800-MY-IPHONE (1-800-694-7466) and/or scheduling an appointment at the Genius Bar at an Apple Store (that is, if there's one close to you).
Hope this helps! -
I have deleted all photos, messages and apps but I still have no available space on my phone even though the applications don't add up to 12 GB.. Please help!!!
You have data corruption. restore your phone and set it up as a new device. Not from backup
-
I AM A CREATIVE CLOUD MEMBER FOR SOMETIME BUT NOW WHEN I LOGIN WITH THE CORRECT PASSWORD I STILL GET SIGNED OUT MESSAGE AND THEN WHEN TRIED THE SOLUTION GIVEN BY HELP THAT IS TO DELETE OPM.DB FILE OR SECOND SOLUTION INSTALL A FRESH CREATIVE CLOUD FOR DESKTOP APP OR EVEN SOLUTION OF RUN OF IMSLIBREPLACER IM STIILL NOT ABLE TO LOGIN TO MY CREATIVE CLOUD FOR DEKTOP APP . PLEASE HELP ME AS I NEED TO GET IN AND EXPLORE MORE OF MY DOWNLOADED S/W
I HAVE TRIED ALL POSSIBLE SOLUTION BUT AM AMAZED HOW THIS IS HAPPENING TO ME.
PLEASE PLEASE HELP ME .Creative Cloud ConnectionHi Alfred,
I would like to know the exact error message when you sign in, in the meanwhile please try the following steps assuming its Windows, let me know if its a MAC:
1) Go to Start button>> Control panel>> Uninstall a program.
2) Check if you see Browser safeguard there, if yes then uninstall it.
3) Open Internet explorer>> Tools>> Internet options>> Connections>> Lan Settings>> and it should be like this.
-Ankit
Maybe you are looking for
-
HT2534 why do i need to enter credit card for free app purchases when i already set up itunes id
please HELP me .I want to install the free apps on my ipod touch but after i enter my id login to apple,it wants to ask for credit card .I never had this problem before with my other ipod touch to install apps that r free.Thanx
-
I can't create an instance for BPF (BPC Netweaver 7.5)
Hi experts: I am trying to create a Busines Process Flow. I am following steps according to the "how to" that explains the proccess. I firstly created the BPF template and, then, when I am creating an instance, identity dimensions are blank. Theorica
-
What's the most efficient way to fade titles on & off
using the basic text generator. wondering if it's more efficient to fade a title on & off using opacity in the motion tab or using a dissolve from the effects menu applied to to the in & out point of the title. it's certainly a lot quicker just addin
-
Internal Working of Indexes?
Greetings All, I followed following link - http://docs.oracle.com/cd/E11882_01/server.112/e16508/indexiot.htm But did not proper idea of how actually indexes works for update/insert/select queries. For example, lets say there is a table employee (the
-
Remove load balancing...
Oracle 10gR2 RHEL 4 AS 64bit I wanted to know is there a way to remove load balancing in RAC? Would I just set the LOAD_BALANCE parameter to OFF in the TNSnames.ora file? Would that take care of it? The problem is occurring because developers are try