How to control package structure with seam-gen -
i've been adding existing application generating seam-gen , adjusting there. 1 problem keep having have spend great deal of time editing xhtml files reflect package structure.
for example, seam-gen thinks work
<s:decorate id="simplepidfield" template="layout/edit.xhtml">
and in every .xhtml, have change to
<s:decorate id="simplepidfield" template="/layout/edit.xhtml">
this , other inconsistencies arise because seam-gen builds flat directory of xhtml files in 1 place, while our app has these divided , sub-divided several directories.
is there way, in reveng.xml file define package structure?
thanks.
no not in reveng.xml file. have @ freemarker code in seam-gen source , adjust there.
look @
seam-src/seam-gen/view/editproperty.xhtml.ftl
file , locate
<s:decorate id="${componentproperty.name}field" template="layout/edit.xhtml">
'
and
<s:decorate id="${property.name}field" template="layout/edit.xhtml">
'
and change respectively.
otherwise have use search / replace functionality inside view folder. easier
Comments
Post a Comment