Adrian A. wrote: > > > Proposal: scaffold pages > I would need this kind of functionality too :).
Adrian A. wrote: > > There was a feature request issue exactly for this type of functionality > (but even better - the Django style way) > https://issues.apache.org/jira/browse/CLK-387 > (but if was closed) > > You could request it's reopening, and also vote for it. > I requested it, but I can't vote on it unless it's reopened again :(. Adrian A. wrote: > > If you still want/need the Rails style of scaffolding, and are using > Cayenne for persistence, than it's possible to make your own Cayenne > Modeler templates, that will e.g. generate for each Entity: the code you > desire. See in Cayenne Modeler -> Preferences -> Templates -> Add > Template (you can take a look at the actual velocity templates used by > Cayenne to generate the entity java code - and in the same manner to > generate your extra code). > I couldn't find any examples/docs on the Cayenne site about how to do my own templates :( : I doesn't seem to be explained anywhere how to do custom templates, what goes where, what files get generated and when, what are the allowed variables in the templates, how to access from one entity the fields of the other entities. Besides, there doesn't seem to be in CM any possible interaction with the user besides starting the generation process - or I couldn't find the API/config required for it :(. thanks, George. -- View this message in context: http://click.1134972.n2.nabble.com/Proposal-scaffold-pages-tp5069943p5075092.html Sent from the click-user mailing list archive at Nabble.com.
