How to display Error for a particular text box programaticaly

Hello All,
I have 5 text boxes in a form and I have a requirement where if user click on any of the text boxes then i need to pass the id to class A and show the error description related to that text box in faces message.
I have created class A in which i need to pass the id and get the error description but the problem is that the error description is in array list so i have created list of type class B which contains description.
Right now in class A I have :-
id ||||||||| description <>
it1-------1.Invalid number
-------2.Number not in use
-------3.Number is out of range
it2------1.error1
2.error2
3.error3
and so on.....
*public class ClassA {*
public String Id;
public List<ClassB> desc = new ArrayList();
*public ClassA() {*
super();
*public void setId(String Id) {*
this.Id = Id;
*public String getId() {*
return Id;
*public void setDesc(List<ClassB> desc) {*
this.desc = desc;
*public List<ClassB> getDesc() {*
return desc;
*public class ClassB {*
public String Description;
*public ClassB() {*
super();
*public void setDescription(String Description) {*
this.Description = Description;
*public String getDescription() {*
return Description;
How do I pass the id and get the description for eg:- If id is it1 then How would I show all the 3 errors in faces message on value change.
Please Suggest.
Thanks in advance.

your case is not clear.
but this link may help you
http://mjabr.wordpress.com/2011/08/31/how-to-show-multi-lines-afmessage/

Similar Messages

  • How to display multiple lines in a text box defined in  steploop.

    Hi,
    I have a requirement to display data ( which is dynamic in nature. I determine data type,length etc dynamically) in a table format. I am using step loop for the same. I am facing a problem. Some field can be as long as 256 char long. Is there  any way to display multiple lines in text box defined in a step loop so that I can display the complete string as one entity.
    I can't use custom control as custom control can't be defined in a step loop or table controlI would really appreciate your help on this.
    Regards,
    Sanjeev

    Hello Sanjeev
    Perhaps it is possible to use a <b>mixed strategy</b> consisting of a classical table control (or, even better, an ALV grid list) where you display the first 250 character of the data and next to the table control you place a simple textedit control. When the user selects one of the text fragments in the table control the entire text will be displayed in the textedit control.
    Regards
      Uwe

  • How To Display Current Page Name in Text Box Titles?

    <BR>I have a report which uses a page dimension. When I print out the report, it does display the page dimension member in plain text, near the beginning of the report. But I would like to incorporate the current page value in the formatted report title, a text box.<BR><BR>The "MemberAlias" command, for example, looks like this:<BR><BR>(( MemberAlias("GridName", Row/Col/Page, "DimName") ) )<BR><BR>(substituting the less-than, greater-than symbols for parentheisis just for this web forum)<BR><BR>If I put a number in as the second element in the function, that hard-codes the report to print the page 1 value on each page of the printout. Unfortunately, Reports doesn't allow the "current" value in a text box. Is there a way to do this?

    hi,
    is there any generic fix for this. if we want to display then we need to change the each page CO . is it a possible solution. or any generic solution. Please provide
    Thanks
    Smarak

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • How to provide hyperlink for a particular field in ALV

    Hi,
      How to provide hyperlink for a particular field in alv report.
    Regards,
    Ramu.

    Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.
    wa_field-hotspot = 'X'.
    REPORT  ztest_alv.
    TYPE-POOLS:slis.
    DATA:it_fieldcat  TYPE  slis_t_fieldcat_alv,
         wa_field LIKE LINE OF it_fieldcat.
    DATA: BEGIN OF it_likp OCCURS 0,
           vbeln TYPE likp-vbeln,
          END OF it_likp.
    DATA: layout TYPE slis_layout_alv.
    wa_field-fieldname = 'VBELN'.
    wa_field-tabname = 'IT_LIKP'.
    wa_field-hotspot = 'X'.
    wa_field-outputlen = 10.
    wa_field-no_zero = 'X'.
    wa_field-seltext_l = 'Sales'.
    APPEND wa_field TO it_fieldcat.
    SELECT vbeln FROM likp
    UP TO 10 ROWS
    INTO TABLE it_likp.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program      = sy-repid
        is_layout               = layout
        i_callback_user_command = 'USER_COMMAND'
        it_fieldcat             = it_fieldcat
      TABLES
        t_outtab                = it_likp
      EXCEPTIONS
        program_error           = 1.
    *&      Form  user_Command
    *       text
    *      -->UCOMM      text
    *      -->SELFIELD   text
    FORM user_command USING ucomm TYPE sy-ucomm
                        selfield TYPE slis_selfield.
      CASE ucomm.
        WHEN '&IC1'.
          SET PARAMETER ID 'VL'  FIELD selfield-value.
          CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
      ENDCASE.
    ENDFORM.                    "user_Command

  • How to display error message in Shopping Cart?

    How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.

    Hi Paul,
    In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
    Regards,
    Noel

  • How to enable DFF for a particular country on a Standard OA Framework page

    Hi All,
    I have a requirement for iExpense. Here I need to enable a DFF and that should be display only for a particular country say 'India'. I have done this for the core apps forms but for OA Framework pages I am not sure.
    In core apps we have used context senstive rather than Global.
    Could you please help me on this that how can I enable DFF for a particular country.
    Thanks,
    Sam

    hi
    i think u r talking about Domestic and Recoverability DFF,u need to find out the id of those LOV fields ,u can find them going in view source ,right click go to view source and search the fields against the prompt appearing against these LOV like (Recoverability) u will get the id of this field ,then extend your CO and hide this field in processRequest method of extendedCO according to your org id .
    thanx
    Pratap

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?

    How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?
    When I drag the item off of the trifold that I am creating, it just disappears but I still want to use it.  I just need to move it out of the way to modify other portions of the document.
    thanks,
    C

    Add another page below the current one to use as a storage area. You can't use the grey area around the page for storing items you want to use later.
    Go to the Pages Menu>Provide Pages Feedback if you would like to request this feature be added in future versions.

  • How to give comments for a particular table

    hi..
    how to give comments for a particular table ..
    select * from user_tab_comments;
    tx in advance..

    Try this.
    SQL> COMMENT ON TABLE EMP IS 'THIS IS SAMPLE EMPLOYEE TABLE' ;
    Comment created.
    SQL> select * from user_tab_comments where table_name = 'EMP'
      2  /
    TABLE_NAME                     TABLE_TYPE
    COMMENTS
    EMP                            TABLE
    THIS IS SAMPLE EMPLOYEE TABLE

  • How to disable cache for a particular Report in obiee 10g?

    HI
    My name is Rani .Learning obiee10g ifaced 1 interview in that they asked me like how u disable cache for a particular report?

    In the advanced tab of the report, under prefix you need to mention:
    SET VARIABLE DISABLE_CACHE_HIT=1;
    Refer below link
    http://tipsonobiee.blogspot.com/2009/06/step-by-step-to-bypass-all-caches.html
    Thanks

  • How to display errors in UIX

    How to display errors on an UIX page if the controller is Struts ?
    Following are the lines from my Action class:
    ActionError error = new ActionError("error.login", "Invalid User ID or Password");
    errors.add(ActionErrors.GLOBAL_ERROR, error);
    saveErrors(request, errors);
    return mapping.getInputForward();
    Following are the tags i've added in my UIX file to display errors:
    <messages>
    <messageBox automatic="true"/>
    </messages>
    But no error appears.
    NOTE: I am using JDeveloper 10g
    Thanx
    Aamir

    I am not a JDev 10g person. However you have to use the < struts:dataScope > instead of < dataScope > I think
    Check the heading "Showing Struts messages" in the link below
    http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/struts.html

  • How do I search for a particular song on iTunes ?

    How do I search for a particular song on itunes - it used to be easy to go to search but that function seems to have disappeared

    The search function is still very much there, upper right corner of the iTunes Window.

  • How to display another window by using Check box

    Hi Friends,
    I have one doubt in Webdynpro with java. How to display another window by using Check box?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in Second View. So in Second View I will taken Table that data will displayed in rows. each and every row first check box is available.
    Here Select Check Box of particular row then click Edit button. That row data will be displayed in one popup window.
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    Suppose I have to select check box in First Row Click on EDIT button That row data will be displayed in another popup window here customer will change details depending up requirement click on SAVE Button that update data will saved in ECC System.
    How to display another window by using Check box?
    Regards
    Vijay

    Hi Vijay
    Your question is not clear enough to give an answer. Do you have some difficulties with the code for opening a popup-window? There are many-many examples in the forum how to open/close a popup.
    Or you do not know how to bind the popup opening with clicking a check box? Just put the code in the onSelect event handler of the check box.
    BR, Siarhei
    Edited by: Siarhei Pisarenka on Mar 11, 2010 10:55 AM

  • How to get rid of the main text box in the back of the page AND move things

    I usually work in Adobe Illustrator, Photoshop, and InDesign, but am creating two newsletter templates in Pages for a colleague, since it will be easier for her. But, for the life of me, I can't figure out how to get rid of the main text box in the back of the page that is driving me crazy. I just want a nice blank page that I can do whatever I want with. AND, I can't figure out how to select things so that I can move them, like shapes and text boxes. Some things seem to move fine, then other things just sit there. I am at the end of my rope!!!

    Hi, Dylan. Welcome to Discussions.
    If you're referring to the area where you just start typing when you open a new blank document, you can't get rid of it. But you also don't have to use it. You can insert text boxes and size and position them as you desire. Just be sure they're defined as Fixed on Page. When one is full and you want to continue it to another page (or to the side), click in the blank blue box on the lower right side of the text box. That will create another box and your overflow text will flow into it. Then position it where needed.
    Also, you can create a text box the width of the page and then set it for 2 or more columns.
    When you want to send something to the back and you may want to access it again later, just use the send backward command. If you send it all the way to the back, it will be behind the main text layer (where it will be safe from acvcidental movement) but you will have to click outside the work area and then drag the pointer to the object to select it.
    Hope this helps to get you started.
    Walt

Maybe you are looking for

  • IPod Wi-Fi broken, will no longer connect, network details all blank

    Hello, My iPod has been working fine with Wi-Fi for ages. But today I got home and it's no longer working. At all. To any network. I clicked on the blue arrow next to my home network and IP Address, Subnet Mask, Router, DNS, Search Domains and Client

  • How do I  get mac book pro to boot from hard rive and not slave without holding option key

    How do I get my Macbook Pro to boot from Hardrive and not the slave drive with out pusing the "option Key. I set up a drive on lion and now my MacBook Pro will not boot to the hardrive with out holding the "Option Key" down. i have to disconnect the

  • Clarification on bash initilization file/paths

    I need some clarification on bash initilization file/paths for general solaris user. i created user by useradd -d /export/home/philip -m -s /usr/bin/bash -c "Philip Brown" philip so I get a bash shell when logged in. ok - good. I look in my home fold

  • Fill mis-behavior

    Win7 Pro, 64-bit. 16Gg RAM I am new to Illustrator. I have the CS4 version, and chose (maybe bad idea for someone new to the SW) to use it to make vector a scan I was placing in a Photoshop (CS6) document. When Placing I of course put it on its own l

  • Hiding and Unhiding applications glitch?

    Since Mountain Lion (or maybe even since Lion), the behavior of hiding an application (⌘H) has changed: Previously after hiding an application, its icon would go to the end of the list when you hit ⌘-tab to cycle through running apps. Now the "hidden