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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -