Jump to: navigation, search

Difference between revisions of "JET FAQ How do I create user specific code regions?"

(New page: == Question == Jet2 provides control tags for specifying regions that contain user specific code. How should I use them ? == Answer == A user specific code region has to be declared thi...)
 
(Answer)
 
Line 7: Line 7:
 
   <c:userRegion>//BEGIN user code marker<c:initialCode>
 
   <c:userRegion>//BEGIN user code marker<c:initialCode>
 
   //todo insert your code here
 
   //todo insert your code here
   </c:userRegion>//END user code marker</c:initialCode>
+
   </c:initialCode>//END user code marker</c:userRegion>
 
</pre>
 
</pre>
  

Latest revision as of 09:35, 25 June 2007

Question

Jet2 provides control tags for specifying regions that contain user specific code. How should I use them ?

Answer

A user specific code region has to be declared this way :

  <c:userRegion>//BEGIN user code marker<c:initialCode>
  //todo insert your code here
  </c:initialCode>//END user code marker</c:userRegion>

The BEGIN and END markers are used for keeping the user code when a code regeneration happens. The whole string between userRegion and initialCode becomes the marker. It is important to declare them on one line between the two delimiter tags, without extra spaces, especially if you do use code formatter.

Back to the M2T-JET-FAQ