Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problems with creating derived component

    Problems with creating component.

    Hi there,


    I am using SmartGWT2.4, with Chrome.

    My problem is with dealing with the new component inside load_skin.js.
    My new component is described as the following :
    Code:
    public class XTabSet extends TabSet{
        public XTabSet(){
            scClassName ="XTabSet";
        }
    	//some extra logic
    }
    But I am unable to skin this component because it is still treated as a TabSet component inside load_skin.js.
    I tried to do the following to make sure :

    Code:
    //load_skin.js
    if(isc.XTabSet){
        alert("An XTabSet is here.");
    }
    but it isc.XTabSet is undefined.

    Deriving an available component -like I did- should create the new component with its new name in the client code.
    Or do I have to declare that somewhere ?

    #2
    I've read almost all the provided documents, even the SmartClient docs, but I couldn't figure it out :(

    Comment

    Working...
    X