Jump to: navigation, search

JET FAQ How do I create user specific code regions?

Revision as of 08:35, 25 June 2007 by Aleks dworak.fr.ibm.com (Talk | contribs) (Answer)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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


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