Want to change length validator message and change field format.

I want to override Length Validator Message as I want to tell the user that phone number
must contain 10 numbers
I've added this validator on the phone field
af:validateLength minimum="10" maximum="10"
                               hintMinimum="11" hintMaximum="22"
                               hintNotInRange="33" messageDetailMinimum="44"
                               messageDetailMaximum="55"
                               messageDetailNotInRange="66" id="lengthval"/>and this when I enter less than 10 numbers the error message tell that you must enter 10 characters
I want to override this message to be "you must enter 10 numbers"
And I want to make this number format like
XXXX,XXX,XX
How can I make this.

Strictly speaking a number in this format is no number. It's a phone number and you should use a regular expression validator for this.
Check http://docs.oracle.com/cd/E15051_01/apirefs.1111/e12419/tagdoc/af_validateRegExp.html for more info.
Timo

Similar Messages

  • I've been texting my friend with iMessage with wifi on and all of a sudden it changed to text message and won't let me send messages. My wifi is still on and working but it won't switch back to iMessage. Please help

    I've been texting my friend with iMessage with wifi on and all of a sudden it changed to text message and won't let me send messages. My wifi is still on and working but it won't switch back to iMessage. Please help

    What I recommend you try doing first is to turn iMessage off then back on.  If that doesn't work, make sure that your Apple ID and password are correct.  If everything seems correct and you still can't send out messages using iMessage instead of text message, I think you should either try calling AppleCare at 1-800-MY-IPHONE (1-800-694-7466) and/or scheduling an appointment at the Genius Bar at an Apple Store (that is, if there's one close to you).
    Hope this helps!

  • HT1918 i want to change my credit card details on my account but they say i have to spend the 0.26 pounds on my account. There's nothing i can buy for that money. How can i change my billing details and change to a different country?

    i want to change my credit card details on my account but they say i have to spend the 0.26 pounds on my account. There's nothing i can buy for that money. How can i change my billing details and change to a different country?

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • I have changed my email address and changed my Apple ID. However iCloud on my ipad and an ipad mini still shows my old email address. How can I change my iCloud email address?

    I have changed my email address and changed my Apple ID. However iCloud on my ipad and an ipad mini still shows my old email address. How can I change my iCloud email address?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • TS4040 iTunes payment information won't let me change my credit card and change it without giving me a problem

    iTunes payment information won't let me change my credit card and change it without giving me a problem

    What happens when you try to make the change?

  • Changing length of SLUGS and TITLES

    I want my title and slug to appear over the whole video. How to do this? Right now i am copy and pasting but i am sure there's a better way.....

    Why would you want to put a slug over the whole video? It's a piece of black that fills the screen.
    Make your title and type in the duration box the duration of the title you want before you edit it into the timeline. If you've already made the the title, move it to the browser and change the duration there before editing it into the timeline.

  • Got a pop-up from some company that wants me to up-date firefox and change to their browser? Tylerdowner says firefox is old but the update says not

    like I said b4, a pop-up says to update firefox and change my browser to theirs, this pop-up did not ID itself in any manner
    Tylerdowner says my version is old but I just wiped the old one and got the latest one less than a month ago. Just to be sure I went to the up date page to check and I'm running the latest version
    ''Please stay in your original thread - https://support.mozilla.org/en-US/questions/972362''
    ''locking this thread as a duplicate''

    Hello,
    The latest version is 33.0.3. It is always safer '''not''' to trust a dialog that pops up without your interaction.
    Assuming your computer isn't infected with malware, a safe way to update is to go to:
    * Help (or [[Image: New Fx Menu]] > [[Image: Help-29]]) > About Firefox
    Or download a new copy at:
    * (stub installer) https://www.mozilla.org/en-US/firefox/new/
    * (for different localizations/full installer) https://www.mozilla.org/en-US/firefox/all/
    Never give your computer's control to anyone remotely, and don't contact any number unless its from the official website's Contact Us page. If you are worried that your computer has been infected with malware, any one of these forums specializing in malware removal can help you:
    * Bleeping Computer - http://www.bleepingcomputer.com/forums
    * Spyware Warrior Forums - http://www.spywarewarrior.com/index.php
    * SWI Forums - http://www.spywareinfoforum.com/
    The people who will answer your questions there will ask you to submit reports from virus/malware scans so that they can determine whether your computer is in fact infected, and the steps you need to take in order to remove the infection.

  • Change the validity date in change number

    hi team,
    I want to change the validity date of a change number from 01.01.09 to 01.03.09. I am getting an error "A BOM has already been changed using a change number with the same valid-from date as the selected date 03.01.2009".  I can change the date to before 01.01.09 but cannot after 01.01.09.
    Can you please help me.
    thank you,
    Satish

    Dear Mamiditi Satish Kumar,
    Is it a change number with release key or without release key?
    Do you want to assign a different validity date for the changes made using that change number?
    Try using alternative date field in CC02.and you have to select the object to assign the alternative date.
    Say if you want to assign an alternative date for a processed BOM,you have to select that object and
    enter the alternative date.
    Regards
    Mangalraj.S

  • HELP someone changed my skype password and change ...

    hi skype. first i say sorry to my bad english... please help me. i had skype id:sweet-maryjane  my skype mail was: [e-mail removed for privacy and security]  and  2days agoo someone hacked my skype password and changed password and skype mail... now my skype:sweet-maryjane's mail is: [e-mail removed for privacy and security]   he/she hacked my skype... please help me and give me back my skype if you can...  

    ... and also please see the instruction under "Hacked Account" in this FAQ article:
    https://support.skype.com/en/faq/FA10946/what-shou​ld-i-do-if-my-account-is-suspended-hacked-or-compr​...
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Validation messages and displaying

    I am using JDeveloper 3.0 and not having an easy time with getting my validation error messages to show up. My Oracle contact is not a programmer and tends to give me an answer she doesn't understand herself.
    Anyway, I have tried creating a validator and per the oracle person, a domain. Either method does validate the field entry and prevent the data from being stored; however, both methods do not display the useful error message I threw back. I throw a jboexception that I want displayed and instead I get messages about how the validation failed or how it was unable to create, depending on whether the exception occurs in a validator or a domain.
    I am not familiar with the code and was hoping the documentation would give me a step by step of how to override whatever it is that I need to override or do whatever it is that I need to do. I want to use the functionality of the wizards by being able to set the validation or set the type of attribute to a domain. I think I could code this in the entity object java file, but I really want to make this sort of thing easy for another developer to choose my validation routine or domain while running the wizard.
    The example in Oracle's samples walks you through a simple edit on salary (salary > 1200). The validation catches all salaries below 1200 and throws back some ugly message about how the validation failed. What does one need to do to show their personal error message like "Salary must be greater than 1200"? Why is this simple concept so HARD?
    Please help me as I am ready to throw out JDeveloper and go with another product.
    Lisa

    In the setter method for an attribute on which you've installed a validator, (say for "Salary" attribute, in setSalary method), you could trap JboException and if the exception's error-code is 27011 (the one thrown from the compare validator as per your example), you could throw another JboException. Here's a sample code-snippet:
    public void setSalary (Number n)
    try
    setAttributeInternal(COMM, value);
    catch (JboException e)
    if (e.getErrorCode().equals("27011"))
    throw new oracle.jbo.JboException ("MY ERROR MESSAGE");
    // add logic for other exceptions
    throw e;
    Also, in the JDeveloper docs you could find more on how to customize exceptions. I've pasted some snippet from one of the docs.
    Programming with Exceptions
    Use exceptions to indicate serious or unexpected error conditions, conditions from which the program cannot easily recover. This topic presents the following
    information:
    About Java exceptions
    About exception classes
    Creating custom exception classes
    Localizing exception messages
    Marshaling exceptions
    About Java Exceptions
    Java exceptions fall into two categories: either they extend java.lang.RuntimeException (these are called implicit exceptions) or they do not (these are called
    explicit exceptions). When a method uses an explicit exception to indicate an error, a Java program requires:
    A throws clause in the method signature that declares the type of exception the method will throw when an error occurs.
    A throw statement in the method body that creates and throws an exception of the type specified in the signature.
    The following code shows a method getCustName that declares and throws a ValidationException.
    public String getCustName(Customer cust) throws ValidationException {
    String name = cust.mName;
    if (name == null) {
    throw new ValidationException();
    return name;
    When you write code that calls a method that throws an exception, enclose the call in a try...catch block. For example, the following code calls getCustName, a
    method defined to throw a ValidationException. The try keyword indicates that you are about to call one or more methods that throw exceptions. The catch
    keyword marks the beginning of a code block that executes only when an exception is thrown.
    public printName(Customer cust) {
    try {
    // Call the method(s) here.
    getCustName(cust);
    catch (ValidationException dae) {
    // Handle the error here.
    System.out.println(dae.getMessage());
    Java programs are more lenient about implicit exceptions: they do not have to be declared or caught. You can write a method that throws a RuntimeException (or a
    subclass of RuntimeException) without declaring it in the method signature (although you can do so, if you prefer).
    About Exception Classes
    The Business Components framework provides many exception classes (for example, ValidationException and NameClashException). These classes extend
    oracle.jbo.JboException, which extends java.lang.RuntimeException. Therefore, a Business Component method can throw a Business Component
    exception without a throws clause in the signature.
    Business Component exceptions have an attribute that stores an error message, and they support NLS translation and message formatting. JboException uses
    java.util.ListResourceBundle to format its messages. A resource bundle class defines constants and strings to use as error messages. The default format is
    {productCode}-{errorCode}: {messageBody}
    For example,
    ORA-10234: You cannot do that.
    Business Component exception messages are derived from the following generalized set of parameters:
    Parameter
    Example
    Product code
    "OBCJ"
    Error code
    "03101"
    ResourceBundle
    "oracle.jbo.CSMessageBundle"
    an optional set of parameters
    "Vendor", "Oracle"
    details
    Any exception thrown in low-level code that is transformed
    into a Business Component exception
    Messages may need to include information known only when the exception is thrown, so error message strings can include placeholders that refer to values in an array
    of Objects passed to the exception when it's thrown. When the message is formatted for display, these parameters are placed into slots in the message (the first slot is 0)
    using the standard formatting capabilities provided by java.text.MessageFormat. Following is a an entry from CSMessageBundle.java.
    public static final String EXC_VAL_ATTR_SET_FAILED = "03101";
    // Description: Generic Attribute validation failure.
    // set<Attribute> method failed to set the value.
    // Parameter 0: Ignored.
    // Parameter 1: Entity Object/View Object name.
    // Parameter 2: Attribute name.
    // Parameter 3: New value
    {EXC_VAL_ATTR_SET_FAILED, "Attribute set with value {3} for {2} in {1} failed."},
    The JboException class provides the following methods for working with exceptions.
    Method
    Description
    JboException(String message,
    String errorCode,
    Object[] params)
    Create a Formattable Exception Object.
    JboException(Class resBundleClass,
    String errorCode,
    Object[] params)
    Create a Translatable Exception Object.
    String getProductCode()
    Return the Product code for the Message.
    String getErrorCode()
    Return the Error code.
    String getLocalizedMessage(Locale loc)
    Return the Message in the specific Locale.
    Object[] getDetails()
    Details are usually used to accommodate
    lower-level exceptions. For example, if a
    SQLException is thrown in some low-level code, the Business Component
    framework can catch it and represent it as
    one of the Business Component exceptions.
    The original SQLException becomes
    the first entry in the detail.
    String getResourceName()
    Return the name of the ResourceBundle used to
    resolve messages.
    Object[] getErrorParameters()
    Return the Parameters to the Error.
    Creating Custom Exception Classes
    You can use Business Component exception classes in your own code to indicate errors, and you can create custom exception classes. For example, you can extend
    JboException and override the getProductCode method, making it return values appropriate for your exception.
    You can throw a JboException by using a statement like this:
    throw new JboException("Don't do that.", "101", null );
    The drawback to this approach is that the hard-coded error message is not easy to localize.
    Localizing Exception Messages
    To make an exception localizable into different national languages, use the NLS framework. First, create a resource bundle for your error messages. The following code
    example defines a bundle named MyMsgBundle that stores three error messages.
    import oracle.jbo.common.util.CheckedListResourceBundle;
    public class MyMsgBundle extends CheckedListResourceBundle
    // String Constants
    public static final String BAD_EMPNO = "101";
    public static final String DEPT_NOT_FOUND = "102";
    public static final String NOT_IN_DEPT = "103";
    * Private 2-D array of key-value pairs
    private static final Object[][] sMessageStrings = {
    { BAD_EMPNO, "Invalid employee number." },
    { DEPT_NOT_FOUND, "Department {0} does not exist." }
    { NOT_IN_DEPT, "Employee {0} not found in Department {1}." }
    Then you can use the resource bundle class to define a value to pass to the constructor for your exception class or JboException.
    throw new JboException(MyMsgBundle.class /* Class of Bundle */,
    MyMsgBundle.DEPT_NOT_FOUND /* String Constant */,
    new Object[1] { localVar1 } /* Arguments to message */
    JboException provides a getLocalizedMessage method which returns the message formatted for the specified locale.
    The framework translates the message text when the client calls getLocalizedMessage rather than at creation time because the client may need to present the
    message in a number of different languages. This mechanism provides a single point for localizing and formatting messages.
    Using JboExceptionHandler
    JboExceptionHandler is user-installable exception handler for three-tier applications. When exceptions are br ought over through the piggyback mechanism, the
    normal Java language throw does not quite work, because (among other things) the piggyback may have carried back more than one exceptions. Thus, instead of
    throwing the exception, a method on the JboExceptionHandler interface is invoked with each exception unloaded from the piggyback.
    JboExceptionHandler defines:
    void handleException(Exception ex, boolean lastEntryInPiggyback);
    Where ex is the exception unloaded from the piggyback and lastEntryInPiggyback is a flag indicating whether the exception was the last entry on the piggyback.
    (Note that for two-tier execution there is no piggyback.)
    If you do not install your own handler, the default handler is used. The default handler is implemented by the Application Module. (At the interface level,
    ApplicationModule implements JboExceptionHandler.) For jbo.client.remote, this implementation ignores the exception if lastEntryInPiggyback is
    false. If lastEntryInPiggyback is true, the exception is thrown.
    To install your own handler, call the following method on the Application Module interface:
    void setExceptionHandler(JboExceptionHandler hndlr);
    and pass in your own implementation of the JboExceptionHandler interface.
    Marshaling Exceptions
    JboException can marshal itself across a network. It handles NLS issues for the middle tier, enabling one instance of a middle-tier component to serve (for example)
    French users and English users at the same time.
    If your exception contains member data that need to be marshalled, extend JboException and override readObject and writeObject. The Java serialization
    mechanism uses these methods to serialize/deserialize an object. For example, suppose you have the class MyException (shown below), and you want to carry
    memberA and memberB across tiers.
    public class MyException extends JboException
    int memberA;
    String memberB;
    Write code like the following in MyException:
    private void writeObject(ObjectOutputStream out) throws IOException {
    out.writeInt(memberA);
    out.writeUTF(mEntityRowHandle);
    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    memberA = in.readInt();
    memberB = in.readUTF();
    null

  • Vtok on iphone4: i changed my gmail password and changed the same on my phone, but vtok wont respond and wont open at all! tell me what to do?

    i changed my password in gmail. then i changed the same in my iphone too. but vtok is not responding. i mea, its just not opening, giving a small flash n off! what am i supposed to do! do i have to delete n reinstall vtok everytime i change password!! or is it some bug in this app?

    If the old ID is your ID, and if your new ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Support message and change requests only for production system

    Hi guys,
    I would like to connect the solman helpesk with CHARM ( CHARM is still running ).
    In CHARM I have to create a CR only for production system. ( don't know why - but works as designed).
    In SAP helpdesk I can create support messages for every kind of system type but if I want to connect both (HD and CR) , the source system (ibase component) of the issue will copied to the CR and runs in error because of the rule (only p-system) of CHARM.
    Of course I can change the ibase to production system manually in SDCR but it seems a very error-prone method.
    Now my question: is it possible to change the ibase component due to the creation of CR by copy rule or something like this?
    Kind regards
    Rayko

    Hi Rayko,
    We do not have this option.
    Once in ChaRM, we assume that the changes will always correct an issue in the PROD system.
    I would recommend to open the tickets directly with the PROD system IBase, once the issue is also happening there.
    Best Regards,
    Fernando

  • Change Color in Messages and General Customization (Pixi Plus Verizon)

    Hi everyone, I just got the Palm Pixi Plus and I'm still figuring everything out, so I hope this isn't a silly question. Is there a way to change the background color of each contact in Messaging? My outgoing messages are always green and incoming messages are always displayed in blue - is there a way to assign a color to a contact or message thread?
    It also seems that in general, the display of the phone does not seem very customizable - is this true or have I just not figured it out? For instance, changing colors/font sizes in menu, adding a larger clock to the Launcher screen, etc, options that are pretty standard on all cell phones. Is changing the wallpaper really the only way to customize the display?
    Thanks a lot!

    Hello kbend and welcome to the forums;
    By default, wallpaper and sound customizations are the extent of changes you can make. However, as was noted in the official Palm blog http://blog.palm.com/palm/2010/03/makeover-madness.html the homebrew community has the ability to "theme" your device, changing nearly every aspect of the user interface.
    Please be aware however, adding homebrew applications or patches is not supported by Palm, and we would be unable to troubleshoot anything related to these features.
    Hope this helps,
    TreoAide

  • Selecting many messages and changing outgoing mail...

    Two questions:
    1. In Nokia Messaging, is it possible to select many many messages at a  time to delete or mark as read?
    2. Can I in any way change the outgoing mail server in Nokia Messaging?
    -M

    Hello Massi,
    Yes and Yes.
    1.  Steps:
    - Go into a mailbox on your device.
    - Highlight an email.
    - Select Options
    - Select More
    - Select Mark All
    - Select Options
    - Select Mark Unread, Mark Read or Delete
    2. Steps:
    - Log into your Nokia Messaging account on: http://email.nokia.com. 
    - Select Edit settings next to the email account that needs to be changed.
    - Select Change server settings.
    - Type in the Outgoing mail server.
    - Type in the Outgoing server port.
    - SSL required?
    - Select Save changes.

  • HT1689 I have an account configured in my iPad and want to create a new one and change it, how can I do that? Tks...

    I have a new iPad and wan to change the current account, create a new one and use that one for the new iPad, how can I so that? Tks...

    I have a new iPad and wan to change the current account, create a new one and use that one for the new iPad, how can I so that? Tks...

Maybe you are looking for

  • DebbieRobinson

    I get these messages when I try to print a PDF  The document could not be printed There were no pages selected Why is this happening?

  • How to setup Registry editor both oracle report 2.5&6.0

    Hi all, I have two versions of developer2000 one in C: drive another in E:drive. I want to access either one without changing registry each time. What I have to do? How to set up registry editor? thanks suresh null

  • Download Developer 6.0 with problem to unzip

    I downloaded the Developer 6.0 from Oracle technet site several times, and every time when I tried to unzip the software, I recieved the same error message "Cannot open file:It does not appear to be a valid archive." Does any body know why? and how c

  • How do I go around the Photoshop CS activation?

    I had to reinstall Photoshop CS on my laptop, but the activation servers for it are now moot and won't let me use the program anymore. I can't afford the new stuff so I called customer service. I've already gotten the free CS2 download off the Adobe

  • Let me know please, dare to answer OS authentication

    No body sent me the method about OS Authentication using Oracle 8 on Winnt 4.0. I'm waiting Thanks in Advance