- This topic has 11 replies, 3 voices, and was last updated 14 years, 8 months ago by
paletisuresh.
-
AuthorPosts
-
paletisureshMemberHello,
I am using MyEclipse for spring to scaffold crud application flex as front end. The code that is generated is flex 3 code, is there any way that it generates the new spark components (flex 4) code instead of halo components code.
Any help greatly appreciated.
Thanks,
Suresh PaletiOctober 25, 2010 at 4:02 pm #312254
davemeurerMemberHello Suresh,
MyEclipse for Spring 8.6.1 now gives you the choice to generate Flex 4, and it does contain spark components. You should see the option to choose between Flex 4 and Flex 3.5 after choosing the Flex UI option in the scaffolding wizard. If you don’t see that option, pop over to the Software and Configuration Center > Software tab and apply the 8.6.1 update.
Kind regards,
DaveOctober 27, 2010 at 10:08 pm #312333
paletisureshMemberHello Dave,
Thank you so very much for the information.
Thanks,
Suresh PaletiOctober 27, 2010 at 11:10 pm #312334
paletisureshMemberIt is now generating the flex 4 code but getting an error when i am try to add the flex project type to the existing web project
first i got Cannot create HTML wrapper, i right clicked and created the wrapper but got another error
error: missing; before statment (resource: index.template.html, Type: Javascript problem)
i am frustrated by this error, it has been like almost 1 week and i am not able to do simple flex application
please help me out
October 28, 2010 at 8:47 am #312346
davemeurerMemberHi Suresh,
Sorry to hear about the frustration. There are a couple of ways to use the flash builder plug-ins with ME4S projects. I detail one of them in this thread: https://www.genuitec.com/forums/topic/are-you-using-flash-builder-with-myeclipse-for-spring/
The approach you are taking is definitely fine. I’ve seen the javascript problems you are seeing and it’s due to the javascript validator that you can turn on/off in the Preferences > Validation window. This index.template.html is a file used by the flash builder plug-ins to generate some of it’s files, but it’s not necessary in a MyEclipse for Spring scaffolded web project. So, I’ve been able to remove that file and continue with no issue.
What may be helpful is if I document the steps you should take in that approach. If you give me to the end of the week, I’ll add on to that forum thread with those details.
Kind regards,
DaveOctober 28, 2010 at 10:55 am #312348
paletisureshMemberThanks Dave!
October 29, 2010 at 3:42 pm #312377
davemeurerMemberI’ve added the steps to add the flex project nature to an existing web project in the following thread: https://www.genuitec.com/forums/topic/are-you-using-flash-builder-with-myeclipse-for-spring/
Let me know if that works for you.
DaveOctober 30, 2010 at 8:05 pm #312383
paletisureshMemberawesome !!! worked like a charm
Thank you so very much Dave!
October 30, 2010 at 11:09 pm #312384
paletisureshMemberHello Dave,
I encountered into another problem
this time I decided to add maven dependencies to the project so
1. created web project (checked add maven dependencies check box)
2. followed the same steps as you posted to the thread
3. perfect its working finehere is the problem, i decided to use local jboss server so used maven commands to generate the war
1. run as > maven clean
2. run as > maven install(before doing mvn clean – there were bunch of xml files in the class path, i though mvn install would generate them back but it did not)
so when i deploy the generated war to jboss, its complaining about the missing xml files.
Can you please let me know what would be the possible solution for this problem.
Thanks,
Suresh PaletiNovember 2, 2010 at 6:39 pm #312425
paletisureshMemberHello Dave,
Still having problem in deploying the war to jboss server, its working fine with tomcat. Can you please help me.
Thanks,
Suresh PaletiNovember 3, 2010 at 10:13 am #312436
neydeMember@paletisuresh wrote:
here is the problem, i decided to use local jboss server so used maven commands to generate the war
1. run as > maven clean
2. run as > maven install(before doing mvn clean – there were bunch of xml files in the class path, i though mvn install would generate them back but it did not)
so when i deploy the generated war to jboss, its complaining about the missing xml files.
Can you please let me know what would be the possible solution for this problem.
I’m not sure how you are deploying to Tomcat. If you deploying using Maven (i.e. mvn tomcat:run-war), then it would seem to me that you should have the same experience regarding resource files between JBoss and Tomcat. If you’re deploying to Tomcat through MyEclipse, then MyEclipse deployments are probably automatically handling your resources files for you.
In order to get resource files copied during Maven deployments, you need to add the following snippet within the <resources> section of your POM file.
<resource> <directory>${basedir}/src/main/resources</directory> <excludes> <exclude>**/*.java</exclude> </excludes> </resource>
November 4, 2010 at 12:34 am #312460
paletisureshMemberThanks Niel Eyde,
Now I am able to deploy the war to jboss.
Thanks,
Suresh Paleti -
AuthorPosts