MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
anderprf
Post subject: Problems to customize flex forms  PostPosted: Jan 23, 2012 - 08:46 PM
Registered Member
Registered Member


Joined: Mar 02, 2011
Posts: 6

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
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Jan 25, 2012 - 02:02 AM



Joined: Apr 04, 2011
Posts: 196

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.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
anderprf
Post subject:   PostPosted: Jan 25, 2012 - 02:03 PM
Registered Member
Registered Member


Joined: Mar 02, 2011
Posts: 6

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?
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits