Results 1 to 5 of 5

Thread: Extjs custom component which extend Ext.Component conflicts method name in both.

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Location
    Pasadena, CA
    Posts
    28
    Answers
    1

    Default Extjs custom component which extend Ext.Component conflicts method name in both.

    I have a Ext.ux.ManagedIframe.Component class which extends Ext.Component.I am trying to build this with Sencha CMD 5.1.0.26. I have added this ManagedIframe class in app.json. But, seems like method name conflicts happening for getContentTarget() method. As, I don't want to changes the name of method in ManagedIframe.js file as It's used at several places.
    Here is the log, while running sencha app build from project root folder.

    == Unhandled Error ==
    Ext.ux.ManagedIframe.Component: Public method "getContentTarget" conflicts with private framework method declared by Ext.Component
    file:///C:/Softwares/tomcat/webapps/ROOT/Teamworks/Teamworks/ManagedIframe.js:342
    file:///C:/Softwares/tomcat/webapps/ROOT/Teamworks/Teamworks/ManagedIframe.js:1547
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 2


  2. #2
    Sencha User
    Join Date
    Dec 2010
    Location
    Pasadena, CA
    Posts
    28
    Answers
    1

    Default getContentTarget" conflicts with private framework method declared by Ext.Component

    I have a Ext.ux.ManagedIframe.Component class. I am using sencha cmd 5.1.0.26 to build my application. getting below error message. I don't want to change the getContentTarget() name in this class, Any suggestion is welcome. below is log.

    == Unhandled Error ==
    Ext.ux.ManagedIframe.Component: Public method "getContentTarget" conflicts with private framework method declared by Ext.Component

  3. #3
    Sencha - Support Team
    Join Date
    Mar 2015
    Location
    Chicago
    Posts
    239
    Answers
    40

    Default

    Hi,

    This method is used by the container layout and you will not be able to write over it.
    You will have to rename your method to make this work.

    Thanks,
    Guilherme Lopes
    Sencha Support

  4. #4
    Sencha User
    Join Date
    Dec 2010
    Location
    Pasadena, CA
    Posts
    28
    Answers
    1

    Default

    Sorry, for late response on that.

    In Extjs 5.1.26, there is a class Ext.ux.IFrame for ManagedIFrame.js
    I used Ext.ux.IFrame for the ManagedIFrame. But, I have having troble while trying to set the url in the IFrame, so URL should get loaded in IFrame.
    As, In ManagedIFrame there is method setSrc(), which does the trick to set url. any help appreciated.

    Thanks
    Ranjay

  5. #5
    Sencha User
    Join Date
    Dec 2010
    Location
    Pasadena, CA
    Posts
    28
    Answers
    1

    Default

    Added to my previous thread, in Ext. ux. IFrame setData() is their. But, it does not load the url, it just display the url. I want the url to be loaded in the Extjs IFrame? please let me know, if any body have any idea.

Similar Threads

  1. Replies: 2
    Last Post: 1 Dec 2013, 5:13 PM
  2. Replies: 2
    Last Post: 18 Jan 2013, 8:46 AM
  3. Importing a Custom Component does not replace instances of the component in project
    By jeff_lee in forum Sencha Architect 2.x: Help & Discussions
    Replies: 1
    Last Post: 28 Aug 2012, 12:49 PM
  4. [CLOSED] Renaming a custom component sometimes gives an error and deletes the component
    By Sottilde in forum Sencha Architect 2.x: Bugs
    Replies: 3
    Last Post: 7 Mar 2012, 1:44 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
  •