- This topic has 2 replies, 2 voices, and was last updated 13 years, 1 month ago by
Anderson.
-
AuthorPosts
-
AndersonMemberHi,
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.0Any 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.0Any 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.0Any 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.0Any 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
cconwayMemberHi 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.
AndersonMemberHi,
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? -
AuthorPosts