facebook

Problems to customize flex forms

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

    Anderson
    Member

    Hi,

    I created a “MyEclipse For Spring Customization Project” and i made some customizations in
    \flex4\templates\mxml\crudForm.jet and \flex4\templates\mxml\manageForm.jet codes.
    After, in MyEclipse->Customizations, I set the customized template project that I created.
    When I scaffolding any crud whith Flex4, the “Manage” accept the customizations and “Form” keep the original.

    See the code sample:

    Project: TestCustomize
    File: \flex4\templates\mxml\crudForm.jet

    <%@ jet
    package=”com.skyway.integration.service.flex.jet.mxml”
    class=”CrudFormTemplate”
    %>
    <%@taglib id=”org.eclipse.jet.javaTags” prefix=”java”%>
    <%@taglib prefix=”ws” id=”org.eclipse.jet.workspaceTags”%>
    <%@taglib prefix=”c” id=”org.eclipse.jet.controlTags”%>
    <%@taglib prefix=”sw” id=”org.skyway.integration.java.skywayCodeGenTags”%>
    <%@taglib prefix=”swspr” id=”org.skyway.integration.java.spring.skywaySpringCodeGenTags”%>
    <%@taglib prefix=”gen” id=”com.skyway.scaffolding.crud.common.generationTags”%>
    <?xml version=”1.0″ encoding=”utf-8″?>
    <!–
    <c:get select=”$dataType/@name” />Form.mxml is the flex form component supporting
    the <c:get select=”$dataType/@name” /> create and update operations.

    Hi Customizer =========================================

    Generated by MyEclipse for Spring Scaffolding
    Adobe Flex 4.0

    Any changes to this file need to be recompiled into the swf file
    by running the <c:get select=”$dataType/@name” />build.xml ant task. (If flex/flash builder
    isn’t part of the IDE)
    –>

    Project: TestCustomize
    File: \flex4\templates\mxml\crudManage.jet

    <%@ jet
    package=”com.skyway.integration.service.flex.jet.mxml”
    class=”CrudManageTemplate”
    %>
    <%@taglib id=”org.eclipse.jet.javaTags” prefix=”java”%>
    <%@taglib prefix=”ws” id=”org.eclipse.jet.workspaceTags”%>
    <%@taglib prefix=”c” id=”org.eclipse.jet.controlTags”%>
    <%@taglib prefix=”sw” id=”org.skyway.integration.java.skywayCodeGenTags”%>
    <%@taglib prefix=”swspr” id=”org.skyway.integration.java.spring.skywaySpringCodeGenTags”%>
    <%@taglib prefix=”gen” id=”com.skyway.scaffolding.crud.common.generationTags”%>
    <?xml version=”1.0″ encoding=”utf-8″?>
    <!–
    Manage<c:get select=”$dataType/@name” />.mxml is the main flex page containing the grid and
    containers for the <c:get select=”$dataType/@name” /> CRUD operations and relationships (if any)

    Hi Customizer ==================================================

    Generated by MyEclipse for Spring Scaffolding
    Adobe Flex 4.0

    Any changes to this file need to be recompiled into the swf file
    by running the <c:get select=”$dataType/@name” />build.xml ant task. (If flex/flash builder
    isn’t part of the IDE)
    –>

    Project: Test
    File: EncorForm.mxml (generated)
    <?xml version=”1.0″ encoding=”utf-8″?>
    <!–
    EncorForm.mxml is the flex form component supporting
    the Encor create and update operations.

    Generated by MyEclipse for Spring Scaffolding
    Adobe Flex 4.0

    Any changes to this file need to be recompiled into the swf file
    by running the Encorbuild.xml ant task. (If flex/flash builder
    isn’t part of the IDE)
    –>

    Project: Test
    File: ManageEncor.mxml (generated)
    <?xml version=”1.0″ encoding=”utf-8″?>
    <!–
    ManageEncor.mxml is the main flex page containing the grid and
    containers for the Encor CRUD operations and relationships (if any)

    Hi Customizer ==================================================

    Generated by MyEclipse for Spring Scaffolding
    Adobe Flex 4.0

    Any changes to this file need to be recompiled into the swf file
    by running the Encorbuild.xml ant task. (If flex/flash builder
    isn’t part of the IDE)
    –>

    Thanks for any help.
    Anderson

    #322644 Reply

    cconway
    Member

    Hi Anderson,

    I’m afraid you’ve found a bug. It looks like the customization templates under the Flex directory aren’t being used. Unfortunately all I can do is log a bug for the development team to investigate.

    #322674 Reply

    Anderson
    Member

    Hi,

    Ok. Thanks!! To workaround the problem temporarily I compiled the customized form and put the crudformtemplate.class in com.skyway.integration.flex.v4_1.0.1.201104011036.jar and it worked. Sorry!

    I dont know if i could make another question in this post.
    How i can create another method in the service like to methosd save, delete and etc… that are in separated files: saveCrudControllerImplementation.jet….. and where do I find their interfaces?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Problems to customize flex forms

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