- This topic has 6 replies, 4 voices, and was last updated 12 years ago by Pontus Amberg.
-
AuthorPosts
-
davoutParticipantHas anybody got any experience of building JS apps using extJS4 and are the MyEclipse javascript editing facilities suitable for this product?
Brian FernandesModeratordavout,
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
davoutParticipantI’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 TomcatHowever, 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
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?
support-tonyKeymasterdavout,
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?
davoutParticipantI’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
support-tonyKeymasterdavout,
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?
Pontus AmbergParticipantStumbled 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
Attachments:
You must be logged in to view attached files. -
AuthorPosts