Error msg for UIComponent and correct style/icons for associated label

I am using the "error(UIComponent component, String summary)" method on a page bean to set an error message for a specific UI component from a submit event handler, which is great because that shows an error message next to the component that caused the problem in the first place. For instance, if I get a data integrity error such as duplicate key from the data layer, I can use this approach to tell the user which UI component is causing the problem.
However, the "error" method does not set the error icon and the correct style (e.g. bold and red) for any associated labels in the same way a validator does. Does anyone know a way to achieve this from an action event handler. Keep in mind that I am referring to errors such as data integrity errors which can only be detected when you are already running the action event handler, which means the validation phase has already been done.

Error(), fatal(), info() and warn() issue FacesMessages that get picked up by the MessageGroup component.
By adding in the uicomponent you can target the facesMessage so that it gets picked up by the Message component associated with the field causing the error.
But, to get the label to show the error as well, you need to throw a validationError. See this tutorial for more informaiton:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/customvalidator.html
Lark

Similar Messages

  • TS3694 Trying to install new version of I tunes. Get the following error msgs:Itunes not installed correctly reinstall (Windows error 126), and missing file MSVCR80.DLL?

    Trying to upgrade Itunes get the following error msgs: Itunes not installed correctly reinstall (Windows error 126) and missing file MSVCR80.DLL?

    Click here and follow the instructions. If they don't work, perform a complete reinstallation (Windows XP, Windows Vista and newer).
    (98972)

  • Hide the error msg for the mandatory fields

    hi
    how can i hide the error msg for the mandatory fields when they are not entered?? when i don't put a value in a mandatory field and commit the form, an error msg occurs teelling to enter the value for that mandatory field, but the error msg is not friendly at all and i want to hide it.
    thnaks

    User,
    I'll assume you are talking about ADF Faces + ADF Business Components application, since you don't mention it.
    If you are talking about the pop-up Javascript dialog box that pops up, you can do the following:
    1). Set required=false on those fields in your JSP.
    2). Set showrequired=true on those same fields so that there is a visual indication that the fields are required
    3). Ensure the attribute to which the fields are bound have "mandatory" set to true in the BC's
    Now, when you commit the form, you will not see the Javascript pop-up, but you will see a message in the af:messages component.
    Best,
    john

  • SBL-DAT-00398 error msg for User Field Validation

    Hi All,
    I have created the following field validation on the User field "Division": Len([<Division>])>0 AND InStr([<ltValidation_OU_ITAG>],[<Division>])>0, As the "Division" field is free text, the porpuse of the validation is to prevent the user from entering in this field any value that is diffrent from the ones available in the custom field "Validation OU" via the User Owner Page Layout. The validation works OK for Admin Role via the User Admin Page Layout but a SBL-DAT-00398 error msg stating " Field '<Division>' does not exist in definition for business component 'Occam Current Employee' " appears when users with other roles are trying to update this field via the User Owner Page Layout.
    I have contacted OD Customer support and they validated this in several POD saying this "is most likely a defect in the application" and a CR will be submitted to dev team to fix it sometime in the future.
    I am wondering though if support isn't making life easy here stating the above...:
    1. Anyone encountered this error before? (couldn't find any trace for this on My Oracle Support)
    2. Anyone aware of field validation limitations for the 'User' entity?
    3. Workaround suggestions are welcomed
    10X for you help!
    Alex.

    Error(), fatal(), info() and warn() issue FacesMessages that get picked up by the MessageGroup component.
    By adding in the uicomponent you can target the facesMessage so that it gets picked up by the Message component associated with the field causing the error.
    But, to get the label to show the error as well, you need to throw a validationError. See this tutorial for more informaiton:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/customvalidator.html
    Lark

  • Sending error msgs through email and sms

    Hi,
    does anyone done on sending error msg file through email and sms.
    if so share some knowledge with me.
    thanks in advance

    Hi
    MAIL:
    SORT t_receivers BY receiver.
      DELETE ADJACENT DUPLICATES FROM t_receivers COMPARING receiver.
      IF NOT t_receivers[] IS INITIAL.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
             EXPORTING
                  document_data              = wal_docdata
                  put_in_outbox              = c_check
             TABLES
                  packing_list               = t_objpack
                  contents_txt               = t_content_txt
                  receivers                  = t_receivers
             EXCEPTIONS
                  too_many_receivers         = 1
                  document_not_sent          = 2
                  document_type_not_exist    = 3
                  operation_no_authorization = 4
                  parameter_error            = 5
                  x_error                    = 6
                  enqueue_error              = 7
                  OTHERS                     = 8.
    SMS: refer to this Weblog in SDN.
    <a href="/people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap Post for SMS prog</a>
    Hope This Helps
    Anirban

  • Psc 2175 printer error msg for SD memory card

    I inserted a micro SD card from my cell phone using an SD adapter in the SD slot of my 2175 all-in-one. The printer reads the card and comes back with an error msg. Computer runs XP.
    Latest printer driver was installed. Put a std. SD card in and it works fine. Brought the micro SD in the adapter to store and put it into a new printer. It worked fine.
    I heard HP 2175 has a problem reading certain cell phone microSD cards and developed a fix for this problem. Unable to find it.The Motorola Z6c cell phone supports JPEG as does the HP printer. HELP!

    Ok, I tried to reformat it, on my Mac but when I do I get a Input/Output error. So I tried to reformat in my PC, when I try to there is a pop up saying "Please enter a disk into Drive F." So after all of that I put it into my phone and reformatted it on that. Now when I plug it into my Mac i am getting this: http://img512.imageshack.us/img512/8094/picture5qh9.png
    I have no idea what to do now.

  • To have error msg for RG Part II posting

    Dear All gurus,
    presently in our system for invoice posting we have defined check for RG Part II posting as WARNING only. I want to hav it as ERROR msg. That is untill user has done Part II posting, system shud not save invoice. I checked system msgs in SPRO> MM>Log. Inv. Verification--> Def Attrbuted of System Msgs, but I cud not find that msg there. Can anyone guide me where can I change this msg to error msg.
    Warning Message is as follows
    RG23 Part II posting not yet done
    I checked in OBA5
         Message no. 8I478
    Thanks
    Edited by: sapsarang on Aug 7, 2009 2:02 PM

    HI,
    U can do it thru
    LG --> Tax on Goods Movement - India -- Tools -- Message Control .. here check 8I 478 is ava or not? if ava change the status into Error . if not ava, slect new entry and create for this msge nbr

  • "Unable to Access" error msg for BI Publisher Report

    Hello All,
    I am getting the following error when trying to access a BI Publisher report from the dashbaord. We can access the folders that come with BI Publisher examples, ie Executives, Financials, HR Manager but not the "GTR" that we have created.
    Privelleges are the same. The folders have the same rights too.
    This is for OBIEE 10.1.3.4 with BI Publisher of the same version, running on a solaris box.
    Any thoughts.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode:
    faultString: Unable to access/Report not found: /GTR/Testing/QTD/QTD.xdo
    faultActor:
    faultNode:
    faultDetail:
         {}oracle.apps.xdo.service.server.XMLPServiceException:null
         {http://xml.apache.org/axis/}exceptionName:oracle.apps.xdo.service.server.XMLPServiceException
         {http://xml.apache.org/axis/}hostname:jrc1vmsuapptst03
    Unable to access/Report not found: /Grand Total Reports/Combined PNL/QTD/QTD.xdo
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at com.oracle.xmlns.oxp.service.report.xmlp.XMLPServiceSoapBindingStub.getReportMetadata(XMLPServiceSoapBindingStub.java:633)
         at com.siebel.analytics.web.sawreporting.XmlPublisherRpcGetReportMetadata.processMessageInternal(XmlPublisherRpcGetReportMetadata.java:91)
         at com.siebel.analytics.javahost.AbstractRpcCall.processMessage(AbstractRpcCall.java:107)
         at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:175)
         at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
         at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
         at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
         at java.lang.Thread.run(Thread.java:595)

    more info...
    when i create a new folder in Publisher, I also get the same error msg.

  • Unable to open PDF portfolio (Error Msg: "For the best experience, open this PDF portfolio in...)

    I am having a problem opening an important PDF portfolio document using Adobe Reader (version 11.0.02) for Mac (Mountain Lion version 10.8.3).
    When I attempt to open the file, I come up with the error message: "For the best experience, open this PDF portfolio in Acrobat 9 or Adobe Reader 9, or later", and I am unable to view the document. This is becoming very frustrating, as I am attempting to open the document with the new version of Adobe Reader (which I have downloaded multiple times).
    If anyone has a solution for this problem that would be very helpful!
    Thanks in advance.

    Hi,
    Thanks for the reply. No I'm not using iPad, I have a MacBookPro. I just wasn't sure which forum was best to post this question in.
    I have flash but Adobe still won't open my documents.
    Anyway, thanks for your help.
    Lauren

  • "Unknown Error" msg. for Officejet J3640

    My printer, about 6 months old, has always been unreliable.  It refuses to print and it refuses to give me an error number or title.  I have searched all the posts here in the forum, I have run a test page (all okay), printed a document from Word 2007 (sometimes okay), but it won't print my online bank statement.  The printer has an LED but there is not a message there.  My OS is XP, 3rd SP, and my computer is a Dell Optiples GX270.  Help!

    more info...
    when i create a new folder in Publisher, I also get the same error msg.

  • Why all packets dropped with %SW_DAI-4-DHCP_SNOOPING_DENY: 1 Invalid ARPs error msg for arp inspected vlans for DMZ and Backup

    Hi,
    We have got cisco 3759 switch where the followign line was configrued only
    ip arp inspection vlan 6,100
    And on those vlans no arp inspection trust was configrued. DMZ and backup servers were connected on that switch. Switch got restarted wihtin 5 minutes for the power outage and when the swithc came online it was denying all the packets coming through the vlan 100 adn 6 althought it was allowing packets before the power outage.
    It took me 30 minutes to find out that arp inspection was enables which might cause the issue, but I am still unsue why it would block all packets for vlan 100 & 6.After taking out the command ' ip arp inspection vlan 6,100' all started working fine.
    What is the reason the switch had this issue? Is there any resolution for this? thanks
    FYI: The error messages-
    0:48:32: %SW_DAI-4-DHCP_SNOOPING_DENY: 1 Invalid ARPs (Req) on Gi1/0/1, vlan 6.([001e.0b5f.3a8c/220.233.31.177/0000.0000.0000/220.233.31.182/14:48:32 AEST Sun Feb 28 1993])
    00:48:33: %SW_DAI-4-DHCP_SNOOPING_DENY: 1 Invalid ARPs (Req) on Gi1/0/3, vlan 6.([000c.2915.1abe/220.233.31.184/0000.0000.0000/220.233.31.177/14:48:32 AEST Sun Feb 28 1993])
    00:48:33: %SW_DAI-4-DHCP_SNOOPING_DENY: 2 Invalid ARPs (Req) on Gi1/0/1, vlan 6.([001e.0b5f.3a8c/220.233.31.177/0000.0000.0000/220.233.31.178/14:48:33 AEST Sun Feb 28 1993])
    00:48:33: %SW_DAI-4-DHCP_SNOOPING_DENY: 1 Invalid ARPs (Req) on Gi1/0/1, vlan 6.([001e.0b5f.3a8c/220.233.31.177/0000.0000.0000/220.233.31.184/14:48:33 AEST Sun Feb 28 1993])
    Regards,
    Arman

    Code version:
    System image file is "flash:c3750-ipservicesk9-mz.122-50.SE3/c3750-ipservicesk9-mz.122-50.SE3.bin"
    I don’t have any etherchannel running from the switch. It is connected to vmware machines which are on DMZ.
    rgds,
    arman

  • Upgrade from RH8 to RH9 displays error msg for images/hyperlinks

    We imported a RH8 project into RH9 on another computer. For the most part, it went smoothly; however, for some images and hyperlinks, we get the message: The image file "___.jpg" used in "______.htm" is outside of the current project and will not be shown in Project Manager.
    Additionally, there are approximately 20 broken links displayed in the Broken Links tab.
    Your suggestions would be appreciated as we have multple huge projects we need to upgrade. Thanks

    Hi there
    For each of the messages about the image being outside the project, you will need to carefully note the image file name, the topic and the location it is reporting. Then you will need to edit the topic and click on the image icon and browse to the image to choose it. That action should correct the link and copy the image into your project.
    Broken links will have to be resolved on a "link by link" basis. I was assisting someone else in a different thread and it may be of use to you. Click the link below to view that thread.
    Click here to view
    Cheers... Rick

  • Error msg for Curve 8310 - please help

    I am getting this error message when trying to login to my GTalk and my Gmail via my BB:
    Uncaught exception: DSSMA: invalid state(5): 103
    What can I do to fix it?

    Hi and Welcome to the Forums!
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Best!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How do you fix error msg for Windows IE v8 SP3 invalid drive: J\ when installing Reader?

    I have tried to install the latest version (and two older ones shown on Adobes install free Reader webpage) onto Windows IE 8 sp3 get error message Invalid drive: J\, or Folder path "My Pictures" there is invalid character. I have been unable to correct these to allow  Reader to install without errors. Get to 96 % installation then these messages appear but not at the same time.  Any suggestions?

    See http://support.microsoft.com/kb/894510

  • Reason behind error msg for number range when hiring through PA40

    Hello Gurus,
    I am getting the following error message when hiring thru PA40.
    "No valid interval found(internal number assignment)"
    Internal number range is already defined and the system is picking up the number from the defind range. When we press "return" button, the system accepts the input asks the user to save the data. The whole action is runnig fine except the error message.
    Can you please explain why such error is comming?
    Thanks in advance.
    Best regards,
    Soumyajit

    Hi Soumyajit,
    Have you used NUMKR feature... if not assign to your PA and for your country. Try this and let us know.
    ward if it is helpfull.
    Regards,
    Raghu

Maybe you are looking for