Announcement

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

    How to disable ISC Simple Names mode?

    Hell all, I am developing a web application and there are always some warning appears on the developer console (ID collision) and could anyone tell me how to avoid it?
    Thanks a lot!

    SmartGwtVersion: SmartGwt 2.5
    Browser: IE 8

    Developer Console:

    20:01:37.791:INFO:Log:initialized
    20:01:37.831:WARN:Log:New Class ID: 'Window' collides with ID of existing object with value '[object Window]'. Existing object will be replaced.
    This conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information.
    20:01:37.881:WARN:Log:New Class ID: 'Selection' collides with ID of existing object with value '[object Selection]'. Existing object will be replaced.
    This conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information.
    20:01:38.061:INFO:Log:isc.Page is loaded

    Below is the main view of the page:
    Code:
            container = new VLayout();
    	container.setShowEdges(true);
    	VLayout header = initHeader("Posting Event", "You can post your new event here.");
    	header.setStyleName("company-postevent-Header");
    		
    	VLayout body = new VLayout();
    	body.setBorder("1px solid black");
    	body.setStyleName("company-postevent-Body");
    		
    	mainForm = new DynamicForm();
    	mainForm.setBorder("1px solid black");
            mainForm.setNumCols(4);
    		
            TextItem titleTextItem = new TextItem("title");
            titleTextItem.setRequired(true);
            titleTextItem.setTitle("Title");
            
            TextItem websiteTextItem = new TextItem("website");
            websiteTextItem.setTitle("Website");
            
            TextItem startDate = new TextItem("startDate");
            startDate.setTitle("Start Date");
            startDate.setRequired(true);
            startDate.setHint("<nobr>yyyy-mm-dd</nobr>");
            
            TextItem endDate = new TextItem("endDate");
            endDate.setTitle("End Date");
            endDate.setRequired(true);;
            endDate.setHint("<nobr>yyyy-mm-dd</nobr>");
            
            RegExpValidator dateValidator = new RegExpValidator();
            dateValidator.setErrorMessage("Invalid Date");
            dateValidator.setExpression("\\d{4}-\\d{2}-\\d{2}");
            
            startDate.setValidators(dateValidator);
            endDate.setValidators(dateValidator);
    
            TextItem startTime = new TextItem("startTime");
            startTime.setRequired(true);
            startTime.setTitle("Start Time");
            startTime.setHint("<nobr>HH:MM</nobr>");
            
            TextItem endTime = new TextItem("endTime");
            endTime.setRequired(true);
            endTime.setTitle("End Time");
            endTime.setHint("<nobr>HH:MM</nobr>");
            
            RegExpValidator timeValidator = new RegExpValidator();
            timeValidator.setErrorMessage("Invalid Date");
            timeValidator.setExpression("\\d{2}:\\d{2}");
            
            startTime.setValidators(timeValidator);
            endTime.setValidators(timeValidator);
            
            categoryItem = new SelectItem("category");
            categoryItem.setRequired(true);
            categoryItem.setTitle("Category");
            categoryItem.setMultiple(true);
            categoryItem.setMultipleAppearance(MultipleAppearance.GRID);
            categoryItem.setHeight(60);
            
            onlySendToStudentLikeCompany = new CheckboxItem("sendToInterestedStudent");
            onlySendToStudentLikeCompany.setTitle("Only send to Student who is <b>intersted</b> in the company?");
            
            mainForm.setItems(titleTextItem, websiteTextItem, 
            		startDate, endDate, startTime, endTime, 
            		categoryItem, onlySendToStudentLikeCompany);
    
            richTextEditor = new RichTextEditor();
            richTextEditor.setOverflow(Overflow.HIDDEN);
            richTextEditor.setBorder("1px solid black");
            richTextEditor.setControlGroups("formatControls", "styleControls", "colorControls");
    
            
    	body.addMember(mainForm);
    	body.addMember(richTextEditor);
    		
    	submitButton = new IButton("Submit");
    	VLayout footer = initFooter(submitButton);
    		
    	container.addMember(header);
    	container.addMember(body);
    	container.addMember(footer);
    Last edited by dzz828; 8 Dec 2011, 07:14.

    #2
    I would like to know this, too. Could not find anything in documentation..

    08:48:06.876:WARN:Log:New Class ID: 'Window' collides with ID of existing object with value '[object Window]'. Existing object will be replaced.
    This conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information.

    Comment


      #3
      Add this to your host.html file anywhere before the .nocache.js file is included (and before you load the SmartClient runtime files such as ISC_Core.js, if you are doing this manually):

      Code:
      <script>
      window.isc_useSimpleNames = false
      </script>

      Comment


        #4
        Thank you very much.

        Comment

        Working...
        X