MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
davout
Post subject: Javascript GUi development with extJS4?  PostPosted: Oct 13, 2011 - 11:05 PM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

Has anybody got any experience of building JS apps using extJS4 and are the MyEclipse javascript editing facilities suitable for this product?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Oct 14, 2011 - 08:33 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2583

davout,

You shouldn't have issues with extJS development in MyEclipse. You could place the libraries directly on your build path or use a JavaScript user library.

If you are using MyEclipse 9.1, you may want to change the JS mode from Passive to Active to get better JS support, only if you aren't satisfied with the support you get with the existing mode:
This setting is at: Window > Preferences > MyEclipse > Files and Editors > JavaScript

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
davout
Post subject:   PostPosted: Oct 20, 2011 - 07:14 AM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

I've managed to get extjst4 working as follows:
* Create a new dynamic web project
* Copy the extjs4 js libraries and the extjs4 resource folder into a new 'extjs' folder under the 'WebContent' folder
* Deploy/run to Tomcat

However, whenever I make changes to any of my own javascript files and run the web app via MyEclipse Tomcat the changes are NOT reflected in the running app. Why?

For example: this is a simple Hello World type app with extjs4

Code:

Ext.application({
    name: 'HelloExt',
    launch: function() {
        Ext.create('Ext.container.Viewport', {
            layout: 'fit',
            items: [
                {
                    title: 'Hello Ext',
                    html : 'Hello world!'
                }
            ]
        });
    }
});


If run this I get the desired outcome. Now if I change the 'Hello world' text to 'Hello Mike' and deploy/run again it still shows 'hello world' The only way I can get 'Hello Mike' to appear is if I close down the MyEclipse IDE and restart.

Any ideas?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Nov 16, 2011 - 07:02 AM



Joined: Mar 09, 2011
Posts: 916

davout,

I haven't been able to get Extjs 4 working smoothly in MyEclipse. Is this still a problem for you?

If you have any tips on using Extjs 4 in MyEclipse, I'm sure other developers would appreciate that information.

Are you using the commercial version or the version for open source projects?

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
davout
Post subject:   PostPosted: Nov 16, 2011 - 07:46 AM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

I've done nothing more with this since I reported this issue.

I had one of your colleagues confirm this as a bug, and that they would get back to me with some answers. That was a couple of weeks back, and I've heard nothing.

I was using the commercial evaluation version of ext JS4
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Nov 16, 2011 - 11:12 AM



Joined: Mar 09, 2011
Posts: 916

davout,

Thanks for that.

I don't think the error you reported is a MyEclipse bug. I couldn't replicate it.

Using MyEclipse 9.1 and Tomcat 7.0.21, I created a web project, then I went to the Project Properties (right click on the project and select Properties), selected the Builders page and disabled the JavaScript Validator. This last step was to get the project to build in a reasonable time. I then created the getting started application in the Extjs guide. I deployed it to Tomcat and got what was expected. Then I changed the same thing you did and refreshed the page on the browser - the change showed up.

Can you check if the change got deployed on the server?

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
PorkLip
Post subject:   PostPosted: May 12, 2012 - 08:16 AM
Registered Member
Registered Member


Joined: Jun 13, 2005
Posts: 8

Stumbled across this old thread when searching for something else. A better way to fix the javascript validation problem than to disable the complete builder is to only exclude the folders containing third party javascripts from validation. It is normally done in Project Properties->JavaScript->Include Path. In the "Source" tab you should see the src folders where the project is currently expecting to find JavaScript. You should be able to add exclusion rules here by
1. Expand a src folder (there's a small triangle at the left of the src entry, click that)
2. Select the "Excluded:" entry that should be visible after expading the src entry
3. Click the "Edit..." button
4. In the dialog that now shall appear you should be able to add the folders/files you want to exclude from validation by adding them in the "Exclusion patterns:" part of the dialog.

I've attached a screenshot of the dialogs.

/PorkLip
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits