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
DevAlternatives
Post subject: Customize spring mvc scaffold , add JET Templates  PostPosted: Mar 13, 2012 - 04:02 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 33

We want to add new files to the scaffold option for spring mvc and we are working on new JET Templates for accomplish these task, my question is, it is possible to add new JET templates to the scaffolding strategy? if it is in what folder should I place those templates.

Thanks,
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Mar 14, 2012 - 02:05 AM



Joined: Apr 04, 2011
Posts: 196

You can't add new templates by dropping them into a directory. The only truly supported functionality is to customize the ones that are there (not add new ones).


Hypothetically, in order to add a completely new template, you would need to contribute it via the ModelType and coreArtifactDefinition extension points, which are not publicly available or documented. If you were to dig through the installed plugin jars, you can find examples in the org.skyway.integration.java.spring plugin.xml

But, as stated, this is not supported functionality.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
DevAlternatives
Post subject: Another approach for using existing JET Templates  PostPosted: Mar 14, 2012 - 04:41 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 33

I will try to review that plugin but I have 2 questions:

1-Can we request directly to skyway this support in order to find a documented solution ?

2-The workaround, is there any empty or unused templates that is currently available on the spring mvc scaffolding that we can modify in order to create there the desired functionality ? maybe one that is used only for documentation , with this approach we can create the new file
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Mar 15, 2012 - 12:04 AM



Joined: Apr 04, 2011
Posts: 196

I can submit a feature request to enable the ability to add templates but it's not something that would be done in time for your project. It's not that we don't WANT to support it, it's a matter of the technical difficulty in enabling such a feature.

Sorry but there are no unused templates that you could piggyback your new functionality onto.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
DevAlternatives
Post subject: JET Template documentation  PostPosted: Mar 15, 2012 - 04:05 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 33

Ok understood. Please submit these feature because it will be more flexible for future releases.

I have 2 requests:

1. Can you provide us the list of JET templates (in order of execution) that are executed in the spring mvc scaffolding , we are changing some them for our generation.

2. If we want to debug the spring mvc scaffolding and start to do a trace -(what template is running and methods that are executed) how can we do this ?

Thanks,
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
DevAlternatives
Post subject: Waiting for support  PostPosted: Mar 20, 2012 - 05:48 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 33

Hi myeclipse support,

Any feedback for this request ?

Thanks,
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
DevAlternatives
Post subject: Waiting for support  PostPosted: Mar 20, 2012 - 05:48 PM
Registered Member
Registered Member


Joined: Mar 08, 2012
Posts: 33

Hi myeclipse support,

Any feedback for this request ?

Thanks,
 
 View user's profile Send private message Visit poster's website  
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