Results 1 to 2 of 2

Thread: Overriding framework messages

  1. #1
    Sencha Premium Member
    Join Date
    Jan 2016
    Posts
    32

    Default Overriding framework messages

    Hi,

    The Ext JS6 framework returns a 'Communication failure' message if a response for the service call is not received within the timeout period set. I would like to override this message and give a custom message like say 'Communication timeout. Try again'.

    (I do not wish to hardcode the standard message in a condition to override the framework message).

    regards
    Nitesh

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,450
    Answers
    3997

    Default

    That text is really there just for a default message and is hardcoded without overriding a private method. Instead, you can check the timedout property of the request in your failure handler and use your own message.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Similar Threads

  1. Replies: 4
    Last Post: 15 May 2014, 2:58 PM
  2. "Overriding existing alias" messages
    By vvatikiotis in forum Sencha Touch 2.x: Q&A
    Replies: 6
    Last Post: 9 Oct 2013, 1:10 AM
  3. How to log messages?
    By bteixeira in forum Ext: Q&A
    Replies: 3
    Last Post: 28 Feb 2012, 6:56 AM
  4. [FNR] messages - pt-br
    By fother in forum Ext GWT: Bugs (1.x)
    Replies: 4
    Last Post: 2 Jul 2009, 2:15 PM
  5. Too Many Messages
    By mpirzada in forum Community Discussion
    Replies: 3
    Last Post: 6 Feb 2008, 6:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •