F:selectitems problem with Faces message

Hi,
i have a JSF page which has f:selectitems tag which IS BINDED to the managed bean as mentioned below
<af:selectOneChoice label="snapshot"
required="true" value="#{SMB.environment}"
requiredMessageDetail="Select an Environment to Create Snapshot"
valueChangeListener="#{SMB.environmentSelect}"
autoSubmit="true" id="environment"
binding="#{SMB.environment_Binding}">
<f:selectItems value="#{EM.environmentNames}"/>
</af:selectOneChoice>
Managed bean bound to environmentsnames is as follows
public ArrayList getEnvironmentNames() {
ModelHandler mh = ModelHandler.getInstance();
ArrayList environmentNames = new ArrayList();
try{
List envlist = mh.getEnvironments();//this may throw exception as it connects to database and do some processing
for (int i = 0, size = envlist.size() ; i < size; i++) {
EnvironmentVO en = (EnvironmentVO)envlist.get(i);
environmentNames.add(new SelectItem(en.getEnvironmentName()));
}catch(Exception e){
FacesMessage facesMsg =new FacesMessage(FacesMessage.SEVERITY_ERROR,"",e.getMessage());
FacesContext.getCurrentInstance().addMessage(null, facesMsg);
return environmentNames;
whenever exception is thrown list is shown empty and no Error messages are displayed even though messages are added to the Facesmessages. when i refresh the page by clicking some other button.it is showing properly.
do i miss something here?
is this the best way to do it[connecting to database e.t.c]
regards,
Harsha

yes ,what you said is true i have included theh:messages JSF code. whenever exception occurs in ModelHandler i am using the FacesMessage to store the exception .
but these messages are not displayed on the screen immediately. but when i refresh the page i am able to see the error message.
say for example
i have selected one combo box which shows no of employees based on company name
say
1. i have selected microsoft
it displays 1xxxx //no database error
2. i have selected ibm
it displays nothing//because of exception . but it doesn't show the exception in UI eventhough i catched the exception and put the exception in FacesMessage [i figure out that exception is thrown using debugger tool].
3. i have selected oracle
it displays 1xxxxxx . UI shows the exception catched before[exception in ibm   selected ].
can you please help me on this issue

Similar Messages

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • I have a problem with face time

    I have a problem with face time as the mobile is sending messages to a no in UK which is 00447786205094 and this charges me a lot and I notice that it is sending this message to activate face time

    That's what happens when you buy an iPhone intended for a different market. If you want to avoid this, sell it and buy a phone intended for your market.

  • Face time fades out and then tries to reconnect on new ipad retina display on WiFi.  Iphone 4s has no problem with face time from exact same location and same contact.  WiFi signal strong on both devices.  What gives?

    Face time fades out and then retries to connect (new Ipad Retina Display) on WiFi. Iphone 4s has no problem with face time from same location and same contact.  What gives?

    rdallas001 wrote:
    Is the router to small?
    Not necessarily, if you are using Facetime all the data goes through your WiFi router, your cable/DSL modem, your ISP and the internet to Apple's Facetime servers and then, in reverse, down to the Facetime recipient. If your ISP connection is too slow or there is excessive traffic on the internet you can have Facetime problems.
    Most WiFi routers can handle this unless others in the house are also using WiFi at the same time. The problem may be your ISP connection or congestion on the internet, etc.

  • Problem with Nokia Messaging on my N97 (V22)

    Since afew weeks I have a strange problem with Nokia Messaging on my N97.
    I receive emails using Nokia Messaging (V10.2.26) with a date shown incorrect as 01.01.0000 and the email then can’t be opened/read.
    This happens either on 3G connection as well as WLAN and it seems to be by random, not only HTML-emails or emails with text only.
    I have uninstalled Nokia messaging already and reinstalled V10.1.24 but the problem still remains.
    Is there any idea how to fix this issue because it is quite annoying and I can’t use the full functionality of my cell phone?

    millic wrote:
    ceroberts75,  I remember from your other posts somehow server thinks you already have an account with the email you are trying to configure and you/nokia support is not able to get access to it. Different people have resolved this issue in different ways. For me it was just another way. Thought it might help someone.
    absolutely m8.  thats why i gave you a kudos.
    the challenge is that NM has been unruly as of late...and believe when i say that i have literally been on the phone teching nokias support up to tier 2 and creating, canceling, trying new acounts with different email, different ways of creating them, with wifi, gprs...and praying for hours accross mutliple phone calls
    but to no avail, are the devices we are using connecting and syncing...even with thier n900 specialist which i had to help him!   lmao. 
    another option for a solution is alwayhs welcome as there are more then one way to skin a cat.
    i hope it works for him and others as i kno9w thesome that are just giving up on it.

  • Problem with instant message in clustered environment

    Hello, I have some problem with Instant Message service.
    We need to use it in our Production Environment (a clustered emvironment with a central instance, two dialog instances and two web dispatchers), some months ago we tested it in Development Environment (not clustered emvironment, just a single system) and it worked fine.
    So I did the same configurations on Production Environment but it did not work.
    But if I access on my portal (Production Env.) by the central instance (avoiding the dispatchers) the instant message service works.
    I think it can be a web dispatcher's configuration problem, in its logs I found the message :
    "<i>[Thr 3700] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]</i>"
    I' ve repeated the same configuration done in Dev.Env. (no dispatcher) on the Prod.Env. (with 2 dispatcher), is possible that I'm missing some configurations??
    Could someone helps me?
    Best Regard
    null

    Hi Alessandro,
    unfortunately I got the same problem but I haven't found the solution yet.
    Hoping someone will help us.
    Regards  Nicola

  • I recently downloaded Aperture 3 from itunes. I have a problem with faces.

    I recently downloaded Aperture 3 from itunes. I have a problem with Faces.
    In Faces Mode when a particular face is selected it is wrongly including, from the 11.5k photos in my Aperture library, people with different names and photos where people have deliberately not been named. This happens every few photos between the correctly named ones and makes Faces virtually unuseable.
    I took my 27" imac 2.8 GHz Intel Core i5 to Apple in the Trafford Centre where a patient assistant, Andy spent 2 hours trying to resolve the problem to no avail.
    In his attempts, he consolidated my iphoto library into Aperture and even reinstalled Aperture. He confirms I am using the programme properly.
    Iphoto Faces works perfectly and is used regularly by family, grandchildren etc,. I want to move away from iIphoto and use just Aperture as it is intended.
    Can anybody help.

    I have tried all aspects of the troubleshooting basics including the 1st aid section except the rebuild data basis.
    The Apple assistant at the shop suggested I contact Apple as he couldn't resolve this issue.
    His laptop also suffered a snag I also experience where the left & right hand pointers intermittently stop moving through the photos. I have to come out of Faces and back again for it to resume operating correctly.

  • When attempting to use Firefox email, I get a yellow background popup headed ' There is a problem with this message.

    when i attempt to open Firefox Mail, I get a popup (yellow background) with the heading "There is a problem with this message". We are sorry, but Yahoo Mail has encountered a temporary problem, referring to Temporary Error 4. It goes on to suggest that I might solve the problem by going to Yahoo Help Page. I tried this to no avail. Can you help? Please keep it simple as I am sort of computer impaired. Thanks, Bob Mayfield

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/kb/clear-cache-history-and-personal-information

  • I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    Dear Tomarshe
    I had the same problem a couple of weeks back.
    What I did was that I restarted that Ipad of mine and voila!
    Problem solved!
    hope this helped!
    - DASHdotDASHdot

  • TS3276 Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Not sure if this is a fix, but I tried sending myself a test email from only  the Bcc field, and lo and behold it now shows the Bcc field in all sent item previews;
    ...maybe leaving the 'To' field blank on purpose forced Mail to show it.
    Rebooted the Mail program, still there - rebooted the machine, still there. Hope this is still relevant and it works for you too - J.

  • Having problems with a message saying a script in this movie is causing adobe to run slowly if it continues to run, your computer may become unresponsive

    Having problems with a message saying,A script in this movie is causing adobe flash player to run slowly if it continues to run, your computer may become unresponsive. Do you want to abort script. And my system seems to freeze. What can I do

    Here is the download page for Click-to-PlugIn:
    http://hoyois.github.com/safariextensions/clicktoplugin/

  • Iphoto migration problems with faces

    I recently attempted to migrate my iPhoto Library from my old iMac to my new MBP by copying it to an external drive and then copying that to the MBP hard drive.  The iMac was running iPhoto 9 (couldn't upgrade the OS due to RAM limitations) and the MBP is running iPhoto 11.  The original library had a minor problem with Faces in that it would always identify a few faces for certain people but even after hitting "confirm" it would still leave those as unconfirmed.  A minor annoyance and I didn't really care.  Since transferring it however, Faces on the MBP takes literally 5-10 minutes to close once I hit "save" after confirming faces.  If I click on the icon in the dock during that time it says "Application Not Responding."  In addition, some of the faces are now blank boxes with dashed lines around them. 
    I've run through all the repair options within iPhoto (via the command-option menu when starting it) including a rebuild.  When that didn't help I rebuilt the library with iPhoto Library Manager.  Now it doesn't recognize any unconfirmed faces as belonging to anyone whom I've already categorized.  I did upload new photos, tagged a couple faces and it didn't recognize that the same face in the same scene in another photo was likely the same person as in the previous 4 photos.  Weird.  Stranger still is that Faces now has tagged a bunch of people with the wrong names.  So I open up Aunt Jane's Faces folder and there's the faces of Uncle Mark, Cousin Pete, etc.  Clearly something is corrupted.  I could just go back to using the old Library on the iMac and hope it doesn't totally kick the bucket but it's never been the same since I upgraded it to Mountain Lion and I'd really like to have access to my photos on my MBP.  Any suggestions?  TIA. 

    Hi, can't be on 10.3, what is the OSX version you're on?
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Reboot & hold option or alt key when opening iPhoto.
    Any change?

  • WLS 7.0 sp2 - Servlet Problems with SOAP messages

              I'm using Weblogic 7.0 SP2 and trying to create a Servlet to receive SOAP wrapped
              XML messages. I'm getting the following error. Is this a problem with WLS7.0sp2's
              support of JAXM? The System.out.println's indicate I have successfully received
              the incoming SOAP request and then successfully formatted the SOAP response, but
              upon returning saving the response it appears to blow up. Does anyone have any
              suggestions?
              I need to do the following in a servlet:
              - receive an incoming SOAP request with an embedded XML message
              - perform some processing
              - return a SOAP response with an embedded XML message
              Should I be using JAXM? Or can I do this same task easily with JAX-RPC?
              <Feb 24, 2004 4:10:42 PM AST> <Error> <HTTP> <101017> <[ServletContext(id=260434
              7,name=isd.war,context-path=)] Root cause of ServletException
              java.lang.Error: NYI
              at weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessag
              eImpl.java:360)
              at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
              (ServletStubImpl.java:1058)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:401)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:306)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
              n.run(WebAppServletContext.java:5445)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
              eManager.java:780)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:3105)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2588)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              >
              I've stripped the code down so that all it does is verifies the incoming SOAP/XML
              request and creates a hard-coded response... be gentle... I'm a novice at this
              import javax.xml.soap.*;
              import javax.servlet.*;
              import javax.servlet.http.*;
              // import javax.xml.transform.*;
              import java.util.*;
              import java.io.*;
              public class RegisterServlet extends HttpServlet
              static MessageFactory fac = null;
              static
              try
              fac = MessageFactory.newInstance();
              catch (Exception ex)
              ex.printStackTrace();
              public void init(ServletConfig servletConfig) throws ServletException
              super.init(servletConfig);
              public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException,
              IOException
              try
              System.out.println("** Note: doPost() Entering req = " + req);
              // Get all the headers from the HTTP request
              MimeHeaders headers = getHeaders(req);
              // Get the body of the HTTP request
              InputStream is = req.getInputStream();
              // Now internalize the contents of a HTTP request
              // and create a SOAPMessage
              SOAPMessage msg = fac.createMessage(headers, is);
              System.out.println("** Note: doPost() Step A");
              SOAPMessage reply = null;
              reply = onMessage(msg);
              System.out.println("** Note: doPost() Step B reply = " + reply);
              if (reply != null)
              * Need to call saveChanges because we're
              * going to use the MimeHeaders to set HTTP
              * response information. These MimeHeaders
              * are generated as part of the save.
              if (reply.saveRequired())
              System.out.println("** Note: doPost() Step C reply.saveRequired()");
              reply.saveChanges();
              resp.setStatus(HttpServletResponse.SC_OK);
              putHeaders(reply.getMimeHeaders(), resp);
              // Write out the message on the response stream
              OutputStream os = resp.getOutputStream();
              System.out.println("** Note: doPost() Step D os = " + os);
              reply.writeTo(os);
              os.flush();
              else
              resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
              catch (Exception ex)
              throw new ServletException("** Error: SAAJ POST failed: " + ex.getMessage());
              static MimeHeaders getHeaders(HttpServletRequest req)
              Enumeration enum = req.getHeaderNames();
              MimeHeaders headers = new MimeHeaders();
              while (enum.hasMoreElements())
              String headerName = (String)enum.nextElement();
              String headerValue = req.getHeader(headerName);
              StringTokenizer values =
              new StringTokenizer(headerValue, ",");
              while (values.hasMoreTokens())
              headers.addHeader(headerName,
              values.nextToken().trim());
              return headers;
              static void putHeaders(MimeHeaders headers, HttpServletResponse res)
              Iterator it = headers.getAllHeaders();
              while (it.hasNext())
              MimeHeader header = (MimeHeader)it.next();
              String[] values = headers.getHeader(header.getName());
              if (values.length == 1)
              res.setHeader(header.getName(),
              header.getValue());
              else
              StringBuffer concat = new StringBuffer();
              int i = 0;
              while (i < values.length)
              if (i != 0)
              concat.append(',');
              concat.append(values[i++]);
              res.setHeader(header.getName(), concat.toString());
              // This is the application code for handling the message.
              public SOAPMessage onMessage(SOAPMessage message)
              SOAPMessage replymsg = null;
              try
              System.out.println("** Note: OnMessage() Entering msg = " + message);
              //Extract the ComputerPart element from request message and add to reply SOAP
              message.
              SOAPEnvelope reqse = message.getSOAPPart().getEnvelope();
              SOAPBody reqsb = reqse.getBody();
              //System.out.println("** Note: OnMessage() Step B");
              System.out.println("** Note: OnMessage () Step A Soap Request Message Body = "
              + reqsb);
              //Create a reply mesage from the msgFactory of JAXMServlet
              System.out.println("** Note: OnMessage () Step B");
              replymsg = fac.createMessage();
              SOAPPart sp = replymsg.getSOAPPart();
              SOAPEnvelope se = sp.getEnvelope();
              SOAPBody sb = se.getBody();
              System.out.println("** Note: OnMessage () Step C Soap Reply Before Message Body
              = " + sb);
              se.getBody().addBodyElement(se.createName("RegisterResponse")).addChildElement(se.createName("ErrorCode")).addTextNode("000");
              System.out.println("** Note: OnMessage () Step D Soap Reply After Message Body
              = " + sb);
              replymsg.saveChanges();
              System.out.println("** Note: OnMessage() Exiting replymsg = " + (replymsg));
              catch (Exception ex)
              ex.printStackTrace();
              return replymsg;
              

    Michael,
    I got the same error on WLS8.1/Win2K professional and apache FOP (old version).
    After digging into the WLS code and FOP(old version). i found the conflict happens
    on
    the "org.xml.sax.parser" system property. In WLS code, they hard coded like the
    following when startup weblogic server:
    System.setProperty("org.xml.sax.parser", "weblogic.xml.jaxp.RegistryParser");
    But the FOP code try to use the "org.xml.sax.parser" system property to find the
    sax parser then conlict happens.
    Here is the response from BEA support :
    "I consulted with our developers regarding the question of whether we can change
    the hard-coded value for the java system property: org.xml.sax.parser by using
    a configuration parameter and I found that unfortunately there is no specific
    setting to change the value. As you had mentioned in your note the org.xml.sax.parser
    system property can be changed programmatically in your application code."
    I solve my problem by using newer apache FOP (it never use the system property:org.xml.sax.parser
    any more) and XML Registy for WLS8.1.
    Good luck.
    David Liu
    Point2 Technologies Inc.
    "p_michael" <[email protected]> wrote:
    >
    Help.
    When we migrated from WLS 6.1 to WLS 7.0 SP2 when encountered a problem
    with XML
    parsing that did not previously exist.
    We get the error "weblogic.xml.jaxp.RegistryParser is not a SAX driver".
    What does this mean? And, what should we do about it.
    p_michael

  • PROBLEM with iMessage (Messages) on iPod touch HELPPP

    We had a problem with iMessage. We're both using iPod touch with iOS5 version.
    but we can't send messages. It says our emails/apple ids are not registered on iMessage.
    I checked it on already on the Settings>iMessage> ON .
    but still we cant use it. HELP PLEASE THANKS

    Same isue when tryn to change advanced setting :
    +Mon Jul 5 15:51:39 iPhone profiled[266] <Warning>: profiled|Service starting...+
    +Mon Jul 5 15:51:39 iPhone profiled[266] <Warning>: MC|Profile MCConfigurationProfile 0x113b30 has no friendly name.+
    +Mon Jul 5 15:51:41 iPhone ReportCrash[267] <Notice>: Formulating crash report for process profiled[266]+
    +Mon Jul 5 15:51:42 iPhone com.apple.launchd[1] (com.apple.managedconfiguration.profiled[266]) <Warning>: (com.apple.managedconfiguration.profiled) Job appears to have crashed: Bus error+
    +Mon Jul 5 15:51:42 iPhone ReportCrash[267] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/profiled2010-07-05-155139iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0+
    Did you solved this issue ?
    Message was edited by: lbarbisan

  • Problem with Text Messages

    Hi,
    I have a 5530 XpressMusic phone with around 4000+ text messages saved on the memory card.
    Whenever the number of text messages increases above approximately 3500+ messages, the new text message alert stops appearing, no tone or vibration alerts. Even delivery reports refuse to appear. 
    Nokia PC Suite (Latest version) has a lot of trouble displaying those texts as well (So that I could backup the data) and nothing appears in Communication Center.
    I had the exact same problem with the older N70 ME and had to delete texts to get back to normal. Its going to be very cumbersome to go through all those messages and pick and prune to a size that the phone/Suite can handle.
    I have the latest firmware. Any help with this? 

    ok this isn't any help sorry,but can't find anywhere to post a new thread,so this is the closest post i've found so hopefully i can get some help here :robotmad:
       when i have "backed up" my messages from the phone to my memory card AND picked my memory card as the place where my messages are stored,i put the memory card into my pc to browse the memory card i cannot find anything on there relating to the back up or my messages,i've gone through all the folders i can see,even the empty ones(btw do i need keep the empty folders or can i delete them),now this is really "bugging" me as my little lad sent me a merry christmas text message so i wanted to do the above action so i could save the message on my pc as a keeps sake
             hope you guys can help
              thanx a lot

Maybe you are looking for

  • Error generating report job with the task name 'FSRM_Report_Task

    Since this morning we have been having a problem with FSRM on Windows Server 2008 R2, it is no longer running storage reports (both scheduled and on-demand). We get the following in the event logs: Log Name:      Application Source:        SRMREPORTS

  • Primary keys and resultSet .insertRow()

                artistsResults.moveToInsertRow();             artistsResults.updateString(1,newName);             artistsResults.updateString(2,newGroup);           //  artistsResults.updateString(3,newCV); // THINK ABOUT USING BLOB.             artistsR

  • Saving photos in the cloud

    I would like to save some of my photos in the cloud.  What exactly do I need to do this?  How do I do this?  I am fairly new at this and would appreciate some help.  Thank you!

  • Forms Error and How to suppress browswer in forms 9i

    Hi, I am getting the following Error during the execution of forms 9i: FRM-90928: Positional Parameter after key on command line Why this error come? It is cumbersome to start OC4J instance everytime when I open and run the forms 9i. Is there any way

  • Bug in Firmware v5.0616.2.0.3 of N70

    I don't know, if the firmware-engineerings of Nokia also reading this forum . . . Since v5 of the firmware of the N70, i discovered 2 problems: 1. When sending a portrait-picture via mms, de picture is crippled to landscape ! :-( 2. The "Series60Skin