AddFacesErrorMessage(with component Id ) in an ValueChangeEvent Method

Hi.
When I place a AddFacesErrorMessage inside of a ValueChangeEvent method using a component id as a parameter, ADF does not render the actual message itself, unless I actually tab back into the component ( i.e. input text box ); the framework does create a red frame around the component. The only time that the message itself gets renderedin this case, is when I use a button ( action or actionListener) that itself calls the AdfFacesErrorMessage that uses the component id; the message will then appear next to the component and component will turn red.
Note that in a ValueChangeEvent, if I didn't use the actual component id ( made it null ), the message will get displayed in a dialog box, but this is not what I want to do.
Is there a solution to my question.
Thanks.
Channeld

Hi.
I tried your changes, but things still do not work the way I need them.
... inside of value change event ...
FacesContext ctx = FacesContext.getCurrentInstance();
FacesMessage message1 = null;
message1 = new FacesMessage(FacesMessage.SEVERITY_ERROR,"UserName 1 Field","My Error Message");
RichInputText tmp1 = (RichInputText)vce.getSource();
text_1.setId(tmp1.getId());
//ctx.addMessage(text_1.getClientId(ctx),message1);
ctx.addMessage(tmp1.getId(),message1);
AdfFacesContext.getCurrentInstance().addPartialTarget(text_1);
Also, I noted that if there is only one component on the page, i.e. one inputText box, then the message will be displayed next to the component; this problem/issue seems to only be relevant where there is another component after the one in question.
Can you try this as well. ( currently using 1.1.1.2.0 with WC upgrade )
Thanks.

Similar Messages

  • Web dympro with component

    hi,
    I have two web dymprO, WEB_start and WEB_flow .
    Web_flow is a component of WEB_START.
    In web_start we have a node "ITEM_SELEZIONATO" in the context of componetcontroller: It has one view, V_100.
    The action button on this view , call a "SET_ITEM" method  (in componentcontroller of web_start) that value the attribute "ITEM" of node "ITEM_SELEZIONATO' , with a value 'FLOW1'.
    Than this action call component WEB_FLOW.
    In  modify method of web_flow  I call a method "get_flow" that is in componetcontroller of web_star.
    This methos get value of attribute "ITEM", but it is empty instead "FLOW1'.
    I SHOW THE CODE OF MY WEB DYMPRO  :
      SET ITEM METHOD :
    o_node = wd_context->get_child_node( 'ITEM_SELEZIONATO' ).
    Setta l'Item selezionato nell'albero
    W_ITEM = "FLOW1"
      CALL METHOD o_node->set_attribute
        EXPORTING
          name  = 'ITEM'
          value = w_item.
    wd_this->fire_op_to_w_flow_plg( ).  "CALL  COMPONENT Web_flow.
    METHOD wddomodifyview .COMPONENT WEB_FLOW
      o_cmp_usage =   wd_this->wd_cpuse_WEB_FLOW( ).
      IF o_cmp_usage->has_active_component( ) IS INITIAL.
        o_cmp_usage->create_component( ).
      ENDIF.
      o_interfacecontroller =   wd_this->wd_cpifc_main( ).
    CALL METHOD IN WEB_START.
        o_interfacecontroller->get_item(
            IMPORTING
              w_flusso = v_flusso
    !!!!!error  V_FLUSSO IS EMPTY !!!!!!!!!!!
    METHOD get_item .
    Dichiarazione oggetto
      DATA: o_node TYPE REF TO if_wd_context_node.
      o_node = wd_context->get_child_node( 'ITEM_SELEZIONATO' ).
      o_node->get_attribute(
        EXPORTING
          name  = 'ITEM'
        IMPORTING
          value = V_flusso ).
    wHERE IS THE ERROR?
    thanks .

    Hi,
    You want to pass the data from Web Start to Web Flo rght?
    You can  pass the data while firing the plugs.
    See the code which I added.
    I SHOW THE CODE OF MY WEB DYMPRO :
    SET ITEM METHOD :
    o_node = wd_context->get_child_node( 'ITEM_SELEZIONATO' ).
    Setta l'Item selezionato nell'albero
    W_ITEM = "FLOW1"
    CALL METHOD o_node->set_attribute
    EXPORTING
    name = 'ITEM'
    value = w_item.
    wd_this->fire_op_to_w_flow_plg( g_item = w_item ). "CALL COMPONENT Web_flow."here while firing the plug pass the pararmeter.
                                                                           For this  to be done in the outbound plugs add the paramater say g_item of type w_item*******************************
    METHOD wddomodifyview .COMPONENT WEB_FLOW
    o_cmp_usage = wd_this->wd_cpuse_WEB_FLOW( ).
    IF o_cmp_usage->has_active_component( ) IS INITIAL.
    o_cmp_usage->create_component( ).
    ENDIF.
    o_interfacecontroller = wd_this->wd_cpifc_main( ).
    CALL METHOD IN WEB_START.
    In the event handler of the inbound plug you can  get the paramter g_item with value "FLOW1"
    Pass the variable g_item where ever you want.
    o_interfacecontroller->get_item(
    IMPORTING
    w_flusso = v_flusso
    !!!!!error V_FLUSSO IS EMPTY !!!!!!!!!!!
    METHOD get_item .
    Dichiarazione oggetto
    DATA: o_node TYPE REF TO if_wd_context_node.
    o_node = wd_context->get_child_node( 'ITEM_SELEZIONATO' ).
    o_node->get_attribute(
    EXPORTING
    name = 'ITEM'
    IMPORTING
    value = V_flusso ).
    wHERE IS THE ERROR?
    Please let me know if this is the one you wanted.
    Regards,
    Priya

  • No audio or video from iPod to TV with Component AV cable

    I have a gen 5 80gb iPod and a Samsung tv and I can't get my iPod to play on the tv with the apple component av cables. I have run through all the different ways to set up my iPod in the video settings page. Any help on this would be great. Thanks.

    after further reading I found that you can't hook up a gen 5 iPod with component av cables.

  • TV tuner Card for Mac with Component input

    Hey everyone, I was hoping someone could help me find a good TV Tuner card for my MacBook. I found a few potentials, however I've yet to find one with Component input that would allow me to play my XBox 360 at a resolution of 1050p. This is the resolution of my stand-alone monitor, and with S-Video the resolution would drop into the 400's. Does anyone have any suggestions?
    Thanks,
    Sean

    Does this work with a Mac? Looks like from the screenshots this is only compatible with Vista
    I'm also looking for something that also has a coaxle input along with the component input, so that I can watch TV!

  • No image with component cable through receiver?

    I have just purchased an Apple TV device, since my HDMI Input in my projector is not working everything is not plugged in my receiver with component cable. here is a list of what my audio/video setup is :
    - Sony PS3 (Plugged in Receiver in Component (Video) Optical (Audio)
    - HD-DVD Toshiba (Plugged in Receiver in Component (Video) Optical (Audio)
    - Bell ExpressVu HD/PVR Receiver (Plugged in Receiver in Component (Video) Optical (Audio)
    - Denon AVR-5805 (Out to Projector in Component)
    - Hitachi HD-PJ52
    the problem is that i'm not getting any signal from my apple tv when I selected it with my receiver, not much of a mac guy, so not sure where to start....is there an on/off switch on this thing...
    thank you

    sorry everything is NOW plugged in my receiver with component cable

  • Sales order BOM with component price

    Dear All,
    In PP module is there any report sales order BOM with component price?
    please help
    regards,
    Anwar Shaikh
    SAP PP / QM

    Hi Anwar,
    Please see if the below link is helpful to your cause.
    [Recalculate the price of the sales order;
    Regards,
    Abhay Kapase

  • Service Manager "Error communicating with component" after moving SQL servers

    We just moved our SCCM database to a new SQL server and ever since, I've been getting stumped as to why I'm getting the following error each time I try to query the status of anything under the SQL server:
    Error communicating with component
    Admittedly, I'm a total novice when it comes to SCCM and I was doing this under the loose supervision of my predecessor (this is his last week).  I appreciate anyone offering any advice as to where I should start, and I apologize I'm not knowledgeable
    enough yet to know exactly what info to provide you with initially!
    Thanks!

    Thanks for the quick replies!
    @Peter: Currently using SCCM 2012 R2 running on a 2008 server,  with the database having moved from SQL 2010 to 2012.  We have a single primary site with 5 additional distribution points supporting around 260 users.
    We did only change our SQL server and the guide you posted is the exact one we used.  Everything seemed to look exactly like the guide.  Afterwards, when checking the Configuration Manager Server Manager, under Servers, it had my SCCM server and
    new SQL server both listed.  The components listed under my SQL server were as follows:
    SMS_COMPONENT_MONITOR
    SMS_EXECUTIVE
    SMS_MP_FILE_DISPATCH_MANAGER
    SMS_OUTBOX_MONITOR
    SMS_SITE_SQL_BACKUP_SCCM01
    SMS-SRS_REPORTING_POINT
    However, when we query those components, we get "Error communicating with component" on all of them except SMS_SITE_SQL_BACKUP_SCCM01.  I'm slightly suspicious of our certificates but I'm not well-versed enough with them to troubleshoot effectively
    on my own.

  • Serializing text with component

    (Serializing text with component)
    The text is just ascii text, but it could be a considerable size (like 64k). The purpose would be to serialize, and then de-serialze all of this custom information I need for that component (and some other stuff). An example would be to save a list of names with my 'Name' component.
    I don't see any evidence that it is possible...
    Thanks,
    JR

    Well, imagine if we had to do serialization in this
    manner (i.e. manually). Not a pretty picture in my
    opnion...sure, that's why the API exists... don't take it the other way round and apply serialization to every single piece of data
    why do you think that serialization is easier btw ? here's the non-serialized version :
    Writer writer = new FileWriter(filename);
    writer.write(value); // I assume your text is available in a String named 'value'
    writer.close();and here it is with serialization :
    JButton container = new JButton(value);
    FileOutputStream fos = new FileOutputStream(filename);
    ObjectOutputStream outputStream = new ObjectOutputStream(fos);
    outputStream.writeObject(container);
    outputStream.close();Serialization helps you serialize complex objects (like graphical components) easily. It's a relatively heavy mechanism (compared to regular file writing) and shouldn't be used as a standard way of writing text to a file.

  • My 4s worked fine displaying on tv with component cables, but after a while the tv displayed a black screen that said signal is playing on tv. Any input for a solution?

    My 4s cannot display on tv with component cable

    What TV (brand and model #)?
    Have you the Apple TV on another port? Used a different HDMI cable?
    Are you able to cycle through the resolutions via Apple TV settings?

  • How can i use apple tv and iTunes movies with component video cables for an older receiver and projector?

    i have an older yamaha receiver and projector both without hdmi inputs but component video instead. I would like to get apple tv and start renting movies through iTunes but apple tv only supports hdmi and ive read that iTunes has codes to prevent the use ot analog cables with movies. Is there a way to adapt hdmi to component video for both apple tv and iTunes easily?

    Yes, HDMI is the only supported method. Also, with converters you will run into issues with HDCP (which will prevent you from streaming DRM content from iTunes etc) as well as resolution.

  • h:dataTable with component binding not rendering

    Hello,
    I am developing an application with several ad-hoc queries that need to be displayed in data table elements. The number and label values of the columns are not known until runtime. I am attempting to use a component binding mechanism to intercept the UIData and add columns to it at runtime, depending on the data currently held in a backing bean instance (such as an ad-hoc query result).
    I'm not sure where I can actually intercept the table and add the columns. I've got the following code example to compile and run without error, but nothing gets rendered properly - I get an opening <table> tag in the HTML source and nothing else follows.
    I have compared the structure of the table created with the following binding method to a table created with simple <h:dataTable> tags, and I see only one difference. The datatable created with tags has a single attribute in its attribute map called "javax.faces.webapp.COMPONENT_IDS" that maps to an ArrayList of the component IDs of the h:column elements I specify on the JSF page. The datatable I attempt to create in the binding method does not have this attribute in its map, and I can't seem to manually add it in without creating further havoc. (the child count, types of children, etc all seem to be equivalent).
    From the JSF perspective this is how I've defined the h:dataTable tag instance...
    <h:dataTable id="categoryTable" rendered="true"
            binding="#{backingBeanInstance.table}"
                value="#{backingBeanInstance.rows}"
                    var="row"  border="2" />This is basically the code in the backingBeanInstance....
        private UIData table;
        public void setTable(UIData table){
            this.table = table;
           //initTable();   //tried this but seems not to work either?
        public UIData getTable(){
            if(table!=null){
                initTable(); //build the columns and add to the table
            return table
        private void initTable(int categoryIndex){
                //This block is just a way to calculate the number of columns
                int colCount = <depends on data held in bean>
                //Resolve the var string for the data table
                String item = table.getVar();
                System.out.println("item: " + item);  //this is always null the 1st time through?? why?
                UIColumn col;
                UIOutput out;
                FacesContext context = FacesContext.getCurrentInstance();
                Application app = context.getApplication();
                //For each column in the data, create a UIColumn as child of the
                //data table.  Create a UIOutput as child of the UIColumn and bind
                //the value of the UIOutput to the data with an EL expression
                for (int j = 0; j < colCount; j++) {
                    //create an instance of UIOutput to display the value for this cell
                    out = new UIOutput();
                    out.setRendererType("Text");
                    //create an instance of UIColumn
                    col = new UIColumn();
                    //construct the value binding string as an EL expression
                    String valueBindingString = "#{" + item + "[" + j + "]}";
                    //create the value binding
                    ValueBinding vb = app.createValueBinding(valueBindingString);
                    //set the value binding on the UIOutput object
                    out.setValueBinding("value", vb);
                    //add the UIOutput component to the UIColumn as a child
                    col.getChildren().add(out);
                    //add the UIColumn to the data table as a child
                    table.getChildren().add(col);
        }

    <bump>

  • Issue with Component Binding

    Hi,
    I'm using JDeveloper version - 11.1.1.6
    I have following usecase in my product:
    1. In summary page, I have table to display list of Activities.
    2. When user Clicks an Activity, display the Activity summary (Region) below the table. The Activity summary page has Panel Tabbed component with 2 ShowDetailItem components.
    I defined a binding in pageFlowScope for PanelTabbed component in the Managed Bean.
    When I select the first activity, In the Activity summary bean, the task-flow initializer method executes first and PanelTabbed component setter method gets executed later.
    But when I select any other activity the execution is in reverse order - The setter method of PanelTabbed component executes first and task-flow initializer method executes later.
    Is this expected behavior? How can I ensure that task-flow initializer method executes first every time before executing the component bindings setter method?
    Any inputs would be helpful.
    Thanks
    Ravi

    Hi,
    component bindings must be in request scope not pageFlowScope. Please use backingBeanScope in your case
    Frank

  • How can I build a Web App with Component Combination

    I learned OpenUI 5 for a while, since it's open source version release. It's really a great web front-end framework!
    Now I'm working on a little web app. I design it start from a root module. And I wanna make any other view modules as a stand-alone package. (e.g. Something like Widgets can be make as a Component, and I can instance it anywhere I want). From learning of OpenUI, I think Component should be a good choice for my web app module.
    But there is some trouble. When I make two Component with a parent-child relationship.Once the child Compont's router execute navTo method, the hash will be replace but not append. And the parent Component will be changed too.
    The question is : how to design the route pattern can make the parent-child Components works both fine? Andreas Kunz

    Hi Siqi,
    currently there is no Child/parent relationship build in the framework, but you could do it.
    All your child component need is the first part of the pattern from the parent component, you have to pass this one to the child component, and then create the routes dynamically:
    parentPattern + "/myChildComponent"
    Then the parent and the child will both react correctly on a hashchange.
    Best Regards,
    Tobias

  • Why business component does not support generics method parameter

    Hi Folks,
    I have created a business component and in this business component I have added a public method which takes a parameter - List of map (Like List<Map<String, String>> inputListOfMap). Now when I try to run the artifacts for this business component it gives an error
    ERROR
    com.splwg.shared.common.LoggedException: No method declaration for createListElements found matching argument types [List, Element, String, String] with pattern public\s+(final\s+)?(<[^>]*>\s+)?([\w\.]+)\s*(<[\w<>,\s\.]+>)?\s+createListElements\s*\(\s*((\w*\.)+)?(List)(\<[^\>]*\>)?\s+\w+,\s*((\w*\.)+)?(Element)(\<[^\>]*\>)?\s+\w+,\s*((\w*\.)+)?(String)(\<[^\>]*\>)?\s+\w+,\s*((\w*\.)+)?(String)(\<[^\>]*\>)?\s+\w+\s*\)\s*(throws [^\{]+\s*)?[;\{]
    After checking the spl-tool2.2.0 jar class JavaSourceFile.java i am guessing that such method parameters are not supported. It compiles well if its a simple Map or List. Also works fine if I make the method as private. But in this case I cannot use this method from any other class... which I don't want.
    it would be great help if anyone can suggest what needs to be done to overcome this issue
    Following is the method of Business Component
    public void createListElements(List<Map<String, String>> inputListOfMap, Element sourceElement, String groupName, String listElementName) {
              logger.info("createListElements ");
              Element groupElement = null;
              Element listElement = null;
              if(!isBlankOrNull(groupName)){
                   groupElement = sourceElement.addElement(groupName);
              if(notNull(inputListOfMap) && inputListOfMap.size()>0){
                   for (Map<String, String> inputMap : inputListOfMap) {
                        //If group name is provided then put the list element will be within the group element else within the bill element
                        if(notNull(groupElement))
                             listElement = groupElement.addElement(listElementName);
                        else
                             listElement = sourceElement.addElement(listElementName);     
                        for (Map.Entry<String, String> mapEntry : inputMap.entrySet()) {
                             String elementName = mapEntry.getKey();
                             String elementValue = mapEntry.getValue();
                             if(notBlank(elementName) && notBlank(elementValue)){
                                  listElement.addElement(elementName).addText(elementValue);
         }

    Hi Victor,
    the issue is that the archive pool in your NWDS is not set up properly. Could you check the configuration of the development configuration? I guess you are developing in Local Development, right? Please check in the "Component Browser" that the two Software Components "NWMCLIENT" and "XOCA" are present and contain some DCs inside them. If this is not true, than something went wrong with your setup of the IDE. The modifications of the default.confdef are most likely not right.
    Please come back to me if you don´t know how to proceed.
    Regards,
    Stefan

  • IPod Touch (2nd gen) - Does not work with Component AV Cable

    I have a 2nd generation iPod Touch. Today I bought the component AV cable at the Apple store (along with a universal dock). Connected it correctly to the TV and:
    1. No picture (screen is blue, as though nothing connected); no sound (whether video or music)
    2. Whatever video is playing on the actual iPod gets stuck - as though it is on "pause", with the difference that you can push "play" and "pause" and the only thing that does is change the "play" or "pause" icon from one to the other or vice-versa--video will not actually play
    3. Setting Widescreen to "on" or "off" has no effect
    4. Tried connecting it to an old iPod Nano (2nd gen I think) - also no sound.
    Please advise!

    Alex_K
    Try changeing your TV out setting, found in the (Settings) of your ipod. Following Paragraph found in the iPod User manual (Page 98): http://support.apple.com/manuals/#ipodtouch
    "Use these settings to set up how iPod touch plays videos on your TV. For more
    information about using iPod touch to play videos on your TV, see “Watching Videos
    on a TV” on page 39.
    Turn widescreen on or off: Choose Video and turn Widescreen on or off.
    Set TV signal to NTSC or PAL: Choose Video > TV Signal and select NTSC or PAL.
    NTSC and PAL are TV broadcast standards. iPod touch displays NTSC 480p/PAL 576p
    when attached to a TV using a component cable, or NTSC 480i/PAL 576i using a
    composite cable. Your TV might use either of these, depending on where you bought
    it. If you’re not sure which to use, check the documentation that came with your TV. "
    Hope that helps,
    Weston

Maybe you are looking for