JSF1.2 and validation

Hi,
I am a newbie to JSF, but I noticed (based on the book I am going though) that validation and validation messages are much better handled in 1.2, in comparison to 1.1. For example, you now get:
     Amount: Validation Error: Value is required.
Instead of simply just an error. Assuming, of course, you set up a label. However, when I attach my own validation function, this does not happen. This leads me to the conclusion that either my validation classes need to do something before I can access this functionality or the common validation functions/convertors are poorly designed and are concatenating the label/field name. So my question is how do I get the message to print the label for my validation function?
Thanks.

Not too sure I want to override every possible error message that can come from the standard validators. What I want is a little explanation. What decides that the message is going to stick a label into the validation message. If it is the validator/convertor then, in my opinion, this is bad design. This is something that the message or messages component should do, not the convertor/validator.
In fact, that is what I want to do. By what you are suggesting, it seems the only way is to override that message so it does not put the field name in is to override the messages.

Similar Messages

  • How to know the balance and validity of internet data in iPad

    How to know the balance and validity of internet data in iPad?

    Sir I m using internet in ipad4 with airtel network
    They provide me 2gb data with the amount of 255 rupees
    And now I inserted the sim in my ipad4
    And start the surfing on safari n all
    And now I wanted to know how much data is balance.

  • Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset pref

    Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.

    What are the performance Preferences?

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • Difference between "Binding Period" and "Validity Start/End" in Bid

    SRM Experts,
    1. We see 2 different things, "Binding Period" and "Validity Start/End" while preparing the bid. What is the differece between these?
    2. These fileds are non-editable for the bidder, while preparing the bid response. How bidder can give validity period for his quote (at header level)?
    3. We see that, the bidder can specify validity start/end date at condition level. Is it not possible to specifiy a validity of the quote at header level?
    GH

    case1: After expiration of  - binding period in RFx header:
    case2: After expiration of  - validity end period in RFx header:
    case3: After expiration of  - validity end period of RFx Response:
    I created seprate documents for each cases.
    I tried accepting the RFx response in all above 3 cases system did not give any error.
    I tried creating the PO against the RFx response in all above 3 cases system did not give any error.
    Is it correct behavior or is there any problem?
    GH

  • Help with Conditional Display and Validation

    Version 4.1.1.00.23
    Hello,
    I'm having a difficult time with a conditional display and validation I'm hoping someone can help with.
    Requirements:
    When the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox)
    If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL)
    What I've tried
    Create a Dynamic Action on the Start Date
    Event: Change
    Selection Type:Item(s)
    Items(s): P51_START_DATE
    Condition: none
    True Action Section:
    Action: Show
    Fire on Page Load: Checked
    Show all page items on the same line: No
    Affected Items Section:
    Selection Type:Item(s)
    Item(s): P51_CHANGE_REASON,P51_CHANGE_DESC
    I've also created a Dynamic Action with similar settings for the P51_END_DATE.
    I created a Validation for the P51_CHANGE_REASON as Function Returning Error Text:
    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    The Issue
    I tried to create another Dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields on page load, but when either of the date fields are changed and the validation is fired the P51_CHANGE_REASON and P51_CHANGE_DESC are hidden again.
    There are two buttons to submit the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will submit the page and branch to the previous page (which is a report with EDIT buttons to edit the record).
    I can't get the page load Dynamic Action to NOT fire when the validation is fired.
    I hope this is clear and if not what information can I provide?
    Thanks,
    Joe

    Phil,
    Thank you for looking at this.
    Yes if the Change Reason is NULL when the edit page is displayed then the Change Reason and Change Description fields are hidden. If the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox). If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL).
    The problem I'm having is that if no Change Reason is entered and the page is saved thereby firing the validation the Change Reason and Change Description fields are hidden again (because of the On-Load Dynamic Action to hide them). So now the user can't put in a Change Reason...unless they change one of the date fields again which isn't going to be accepted.
    Is there a way to determine if a validation error was fired and be able to use that on the On-Load Dynamic Action to hide the two fields? Something like...If the validation fired then don't run?
    Please let me know if I'm still confusing you.
    Thanks,
    Joe

  • Name of the table where can get the two fields Valid-From and Valid-to for

    Hi gurus
    I want name of the table where I can get the two fields Valid-From and Valid-To and their relation ship with the header table in BOM
    Regards
    Kaisar

    You can only get the Valid from date from the table STKO.
    To get the valid to date, you have to take one day less than the valid-from date of the next record for the same BOM.
    Alternatively use the Function module:
    CSAP_MAT_BOM_READ
    It will give both valid from and valid to dates in the tables parameter: T_STKO
    Regards,
    Ravi
    Edited by: Ravi Kanth Talagana on Jul 2, 2008 4:37 PM

  • File Browse Item and validation

    Hello
    I have a page with multiple items and validations.
    One of the items is "File Browse..."
    When I select a file on my computer and submit the page, a new record is created in "APEX_APPLICATION_FILES".
    In the page I have a process that saves the blob from "APEX_APPLICATION_FILES" into one of my DB table and then I delete that record.
    That is correct.
    But, if one of my validations is triggered, the record is still created in "APEX_APPLICATION_FILES" and since the validation blocks the execution of my process, the record is not deleted.
    Normally, it should be deleted to prevent the table from taking too much space.
    Is there any DB Job that "cleans" the table?
    Thank you
    Max

    Hi
    I just tough I could do the following validation as the very last one.
    Validation type:
    "Function returning error text"
    Validation Expression:
    begin
       delete from APEX_APPLICATION_FILES
       where name = :P1_MY_BROWSE_ITEM;
       return null;
    end;Condition :
    "Inline validation errors displayed"
    Is there a "cleaner" or better solution I should use ?
    Thanks
    Max

  • Valid from and Valid to are not getting copied to follow up document.

    Hi Experts,
    I am creating job quote as a follow up document from master quote.All are getting copied from the master quote to job quote,but valid from and valid to dates are not getting copied from master quote,instead it is calculating the date from date profile rules.
    But I need to transport the dates from Master Quote to Job Quote.
    Please advice.
    Thanks,
    Adi.

    Hi,
    You need to implement CRM_COPY_BADY for that. Please refer to:
    Re: create a new follow up complaint to the earlier completed complaint
    Regards,
    Nicolas.

  • Valid from and valid to properties under history preservation transform

    I have created_dt and last_updated both date columns in source table and also in target table.
    Now under history preservation transform for Date columns:
    For "Valid from" and "valid to" properties: which column should i pick?
    how can i use created_dt and last_updated columns under history preservation?
    What is current flag property, should i leave this blank if i don't have any flag "bit type" column like indicator in source or target table.
    My Dataflow has:
    Source_table -> Qry_Transform -> Table_comparison > history_preservation - > Key_gen - > Target_table.

    Valid from and Valid to in History Preservation transform deals with SCD (slowly changing dimensions).
    In most of the scenarios, Valid From comes from the source (as Effective From date) for which the dimension has a particular value.
    Eg:
    SALES REP, Region, Effective From
    A, California, 01.01.2011
    Valid To column in History Preservation is the default value that you provide inside. In case of preserving history of an update, Valid To column of the old record can have the Valid From value of the new record, or one day before that. You have option to set the same in History Preservation.

  • How are valid-from and valid-to dates set in TRPROD table in APO during CIF

    First question:
    How are the valid-from and valid-to dates set in the APO TRPROD table?
    For example, if I activate a transportaion lane model on March 1, 2008, will the valid-from and valid-to in TRPROD be 20080301 and 99991231?
    Or are these dates defined in the model itself? Or in APO config somewhere?
    Next question:
    Suppose I rerun the model on May 1 2008 to add some records that didn't get added in the March 1 run.  But suppose I want to back-date the valid-from of these records to March 1, rather than use May 1 as the valid-from.
    Can this be done?
    Or is the valid-from always the date of the CIF that creates the TRPROD records?
    Please advise. 
    Thanks

    Hi Srinivas -
    Thanks very much for replying so quickly, but your response didn't answer the questions.
    Let me try again.
    1)
    If I run a CIF on March 1 2008 based on a model that will generate APO TLane data, will the TRPROD valid-from and valid-to get automatically set to 20080301 and 99991231?
    2) 
    If the answer to this question is yes, then is it also true that if I run a new set of records in on May 1, 2008 (no duplications with the original set), then the valid-from and valid-to dates will be 20080501 and 99991231.
    3)
    But if (1) and (2) are both true (if you answer them both "yes", then suppose I want the May 1 record set to have valid-from dates of March 1 (for example, if the May 1 record set includes records that didn't get included in the March 1 set due to an error in selection criteria).  How do I get the valid-from to be March 1 when I run the CIF on May 1?
    On the other hand, if (1) and (2) are NOT true, then how DO the two dates get set during a CIF ????
    Thanks
    djh

  • Date entered between valid from and valid to it should throw error

    HI  i have a doubt in the dates see
    i have a column for the valid  from and valid to date
    EXAMPLE
    customer  cform NO                 SUBMITTED               VALID FROM            VALID TO         uSER
    17     OUIIUYUIY     02.04.2008     03.04.2008     03.12.2008    SAB_BEGUM
    WHEN I GIVE  the dates in between the period it has to give throw the error
    example if i give like as shown below it should pass the error
    17      FHGFF2                   02.04.2008                     03.04.2008              03.06.2008         SAB_BEGUM
    now how can i pass and check the the dates, it has to accept ones the date is after 04.12.2008 , in between the period it should throw the error. please help me out

    have a look at this:
    http://help.sap.com/saphelp_nw70/helpdata/EN/a7/5139ef407a11d1893b0000e8323c4f/frameset.htm
    and search for the pre defined events in table maintenance dialog.
    generate table maintenance->create a maintenance dialog->Maintaining and changing an existing maintenance dialog ->Extended Table Maintenance Events.

  • How to pass Valid from and Valid to Dates in CS_BOM_EXPLOSION

    Hii Experts,
    My requirement is to explode BOM using CMC LDB and generating files for all the remaining months by varying Valid from and Valid to dates. For this I am using CS_BOM_EXPLOSION but it has provision for a single date field.
    Can you please guide me how to pass both Valid from and Valid to dates in CS_BOM_EXPLOSION ? And if you can suggest any other alternative, its most welcome...
    Regards,
    Vikas

    Hi Vikas,
    There is a tables parameter STBP which is of type CSXGEN.
    This structure CSXGEN contains two fields valid from date(DATUV) and valid to date(DATUB).
    Is this what something you are looking for?
    Regards,
    Swarna Munukoti

  • Which table has Role Type and Validity

    I do have role name - agr_name, which table will hold the role type - Single or Composite and Valid till date?

    Welcome to SDN.
    Check following tables -
    AGR_AGRS                       Roles in Composite Roles
    AGR_AGRS2                      Role definition
    AGR_ATTS                       Role attributes
    AGR_CUSTOM                     Role Customizing objects
    AGR_DATEU                      Personal settings for roles
    AGR_DEFINE                     Role definition
    AGR_FAVOS                      Personal settings for PFCG
    AGR_FLAGS                      Role attributes
    AGR_FLAGSB                     Role attributes
    AGR_USERS                      Assignment of roles to users
    AGR_USERT                      Assignment of roles to users
    Regards,
    Amit

Maybe you are looking for

  • Printing problem with Epson photo 2200

    I have a Powerbook G4 running the most recent version of OSX. I can no longer print to my Epson Photo 2200. When I try and print the Printer window pops up, and the job automatically stops without printing. I have tried uninstalling and reinstalling

  • Mainframe Integration using File Adapter (FTP Mode):: ftp commands

    Hi, We are trying to integrate with Mainframe system using File Adapter. (FTP mode). We are able to write the file to Mainframe system but not able to format it properly. We had to provide FTP parameter,  <b>ftp.quote site recfm=fb lrecl=150</b> As p

  • Static ip in workplace and dynamic otherwise need help

    Hi! I Have static ip address in my workplace and all other areas i use laptop is having dynamic ip address. I have tried configuring my static ip address in alternative configurations  option still doesnt help i have windows 7  please guide regards A

  • Has anyone else lost their use of iPlayer on iPad1 this week?

    After years of watching programmes in bed, nothing from the iPlayer app is loading this week.  If I try to access via Safari, not App, I get 'This programme doesn't appear to be working.  Try again later.' Has anyone else shared the experience? iPad

  • What's the best way to share iTunes with my old phone?

    Hi all, Recently upgraded to a 6 and would like to keep my old 5 as bike / running GPS + iPod. Is it possible to sync both with the same iTunes account without having the same apps on each? Music seems straight forward, setting up separate playlists