facebook

Auto generated code is Flex 3

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #312189 Reply

    paletisuresh
    Member

    Hello,

    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 Paleti

    #312254 Reply

    davemeurer
    Member

    Hello 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,
    Dave

    #312333 Reply

    paletisuresh
    Member

    Hello Dave,

    Thank you so very much for the information.

    Thanks,
    Suresh Paleti

    #312334 Reply

    paletisuresh
    Member

    It 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

    #312346 Reply

    davemeurer
    Member

    Hi 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,
    Dave

    #312348 Reply

    paletisuresh
    Member

    Thanks Dave!

    #312377 Reply

    davemeurer
    Member

    I’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.
    Dave

    #312383 Reply

    paletisuresh
    Member

    awesome !!! worked like a charm

    Thank you so very much Dave!

    #312384 Reply

    paletisuresh
    Member

    Hello 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 fine

    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.

    Thanks,
    Suresh Paleti

    #312425 Reply

    paletisuresh
    Member

    Hello Dave,

    Still having problem in deploying the war to jboss server, its working fine with tomcat. Can you please help me.

    Thanks,
    Suresh Paleti

    #312436 Reply

    neyde
    Member

    @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>
    
    #312460 Reply

    paletisuresh
    Member

    Thanks Niel Eyde,

    Now I am able to deploy the war to jboss.

    Thanks,
    Suresh Paleti

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Auto generated code is Flex 3

You must be logged in to post in the forum log in