Attachment 'tapestry5_3.xml'

Download

   1 <?xml version="1.0" encoding="UTF-8"?>
   2 <templateSet group="tapestry5">
   3   <template name="t5form1" value="/**&#10; * Tapestry form render event method. &#10; * Begining of form rendering. Manage form context here.&#10; */&#10;public void onPrepareForRender()&#10;{&#10;&#9;$END$&#10;}&#10;" description="PrepareForRender. Begining of form rendering. Manage form context here" toReformat="false" toShortenFQNames="true">
   4     <context>
   5       <option name="JAVA_CODE" value="true" />
   6       <option name="JAVA_COMMENT" value="false" />
   7       <option name="JAVA_STRING" value="false" />
   8       <option name="XML" value="false" />
   9       <option name="HTML" value="false" />
  10       <option name="JSP" value="false" />
  11       <option name="COMPLETION" value="false" />
  12       <option name="OTHER" value="false" />
  13     </context>
  14   </template>
  15   <template name="t5form2" value="/**&#10; * Tapestry form submit event method. &#10; * Begining of submit request.&#10; */&#10;public void onPrepareForSubmit()&#10;{&#10;&#9;$END$&#10;}&#10;" description="PrepareForSubmit. Begining of submit request." toReformat="false" toShortenFQNames="true">
  16     <context>
  17       <option name="JAVA_CODE" value="true" />
  18       <option name="JAVA_COMMENT" value="false" />
  19       <option name="JAVA_STRING" value="false" />
  20       <option name="XML" value="false" />
  21       <option name="HTML" value="false" />
  22       <option name="JSP" value="false" />
  23       <option name="COMPLETION" value="false" />
  24       <option name="OTHER" value="false" />
  25     </context>
  26   </template>
  27   <template name="t5form3" value="/**&#10; * Tapestry form submit/render event method. &#10; * Called both at begining of form rendering and form submit requests.&#10; */&#10;public void onPrepare()&#10;{&#10;&#9;$END$&#10;}&#10;" description="Prepare. Called both at begining of form rendering and form submit requests." toReformat="false" toShortenFQNames="true">
  28     <context>
  29       <option name="JAVA_CODE" value="true" />
  30       <option name="JAVA_COMMENT" value="false" />
  31       <option name="JAVA_STRING" value="false" />
  32       <option name="XML" value="false" />
  33       <option name="HTML" value="false" />
  34       <option name="JSP" value="false" />
  35       <option name="COMPLETION" value="false" />
  36       <option name="OTHER" value="false" />
  37     </context>
  38   </template>
  39   <template name="t5form4" value="/**&#10; * Tapestry Submit button event method. Called during form submission for button pressed.&#10; * Use it with button id: onSelectedFromSaveButton, where button-id is saveButton.&#10; */&#10;public void onSelected()&#10;{&#10;&#9;$END$&#10;}&#10;" description="Selected. This is actualy an envet from Submit component." toReformat="false" toShortenFQNames="true">
  40     <context>
  41       <option name="JAVA_CODE" value="true" />
  42       <option name="JAVA_COMMENT" value="false" />
  43       <option name="JAVA_STRING" value="false" />
  44       <option name="XML" value="false" />
  45       <option name="HTML" value="false" />
  46       <option name="JSP" value="false" />
  47       <option name="COMPLETION" value="false" />
  48       <option name="OTHER" value="false" />
  49     </context>
  50   </template>
  51   <template name="t5form5" value="/**&#10; * Tapestry form submit event method. &#10; * Do extra validation here.&#10; */&#10;public void onValideteForm()&#10;{&#10;&#9;$END$&#10;}&#10;" description="ValidateForm. Validation logic goes here." toReformat="false" toShortenFQNames="true">
  52     <context>
  53       <option name="JAVA_CODE" value="true" />
  54       <option name="JAVA_COMMENT" value="false" />
  55       <option name="JAVA_STRING" value="false" />
  56       <option name="XML" value="false" />
  57       <option name="HTML" value="false" />
  58       <option name="JSP" value="false" />
  59       <option name="COMPLETION" value="false" />
  60       <option name="OTHER" value="false" />
  61     </context>
  62   </template>
  63   <template name="t5form6" value="/**&#10; * Tapestry form submit event method. &#10; * Called if validation is successful.&#10; */&#10;public void onSuccess()&#10;{&#10;&#9;$END$&#10;}&#10;" description="Success. Called if validation is successful." toReformat="false" toShortenFQNames="true">
  64     <context>
  65       <option name="JAVA_CODE" value="true" />
  66       <option name="JAVA_COMMENT" value="false" />
  67       <option name="JAVA_STRING" value="false" />
  68       <option name="XML" value="false" />
  69       <option name="HTML" value="false" />
  70       <option name="JSP" value="false" />
  71       <option name="COMPLETION" value="false" />
  72       <option name="OTHER" value="false" />
  73     </context>
  74   </template>
  75   <template name="t5form7" value="/**&#10; * Tapestry form submit event method. &#10; * Called if validation fails.&#10; */&#10;public void onFailure()&#10;{&#10;&#9;$END$&#10;}&#10;" description="Failure. Called if validation fails." toReformat="false" toShortenFQNames="true">
  76     <context>
  77       <option name="JAVA_CODE" value="true" />
  78       <option name="JAVA_COMMENT" value="false" />
  79       <option name="JAVA_STRING" value="false" />
  80       <option name="XML" value="false" />
  81       <option name="HTML" value="false" />
  82       <option name="JSP" value="false" />
  83       <option name="COMPLETION" value="false" />
  84       <option name="OTHER" value="false" />
  85     </context>
  86   </template>
  87   <template name="t5form8" value="/**&#10; * Tapestry form submit event method. &#10; * Called always regardless of validation.&#10; */&#10;public void onSubmit()&#10;{&#10;&#9;$END$&#10;}&#10;" description="Submit. Called after submit regardles of validation." toReformat="false" toShortenFQNames="true">
  88     <context>
  89       <option name="JAVA_CODE" value="true" />
  90       <option name="JAVA_COMMENT" value="false" />
  91       <option name="JAVA_STRING" value="false" />
  92       <option name="XML" value="false" />
  93       <option name="HTML" value="false" />
  94       <option name="JSP" value="false" />
  95       <option name="COMPLETION" value="false" />
  96       <option name="OTHER" value="false" />
  97     </context>
  98   </template>
  99   <template name="t5inject1" value="@Inject &#10;private TypeCoercer _typeCoercer;&#10;&#10;" description="TypeCoercer to convert between types" toReformat="false" toShortenFQNames="true">
 100     <context>
 101       <option name="JAVA_CODE" value="true" />
 102       <option name="JAVA_COMMENT" value="false" />
 103       <option name="JAVA_STRING" value="false" />
 104       <option name="XML" value="false" />
 105       <option name="HTML" value="false" />
 106       <option name="JSP" value="false" />
 107       <option name="COMPLETION" value="false" />
 108       <option name="OTHER" value="false" />
 109     </context>
 110   </template>
 111   <template name="t5inject2" value="@Inject &#10;private HibernateSessionManager _sessionManager;&#10;" description="Hibernate Session Manager to commit or rollback" toReformat="false" toShortenFQNames="true">
 112     <context>
 113       <option name="JAVA_CODE" value="true" />
 114       <option name="JAVA_COMMENT" value="false" />
 115       <option name="JAVA_STRING" value="false" />
 116       <option name="XML" value="false" />
 117       <option name="HTML" value="false" />
 118       <option name="JSP" value="false" />
 119       <option name="COMPLETION" value="false" />
 120       <option name="OTHER" value="false" />
 121     </context>
 122   </template>
 123   <template name="t5inject3" value="@Inject &#10;private ComponentResources _resources;&#10;" description="ComponentResources. For blocks, messages, crete actionlink, trigger event" toReformat="false" toShortenFQNames="true">
 124     <context>
 125       <option name="JAVA_CODE" value="true" />
 126       <option name="JAVA_COMMENT" value="false" />
 127       <option name="JAVA_STRING" value="false" />
 128       <option name="XML" value="false" />
 129       <option name="HTML" value="false" />
 130       <option name="JSP" value="false" />
 131       <option name="COMPLETION" value="false" />
 132       <option name="OTHER" value="false" />
 133     </context>
 134   </template>
 135   <template name="t5inject4" value="@Inject &#10;private Environment _environment;&#10;" description="Environment to supply Enviromental variables for your sub-components" toReformat="false" toShortenFQNames="true">
 136     <context>
 137       <option name="JAVA_CODE" value="true" />
 138       <option name="JAVA_COMMENT" value="false" />
 139       <option name="JAVA_STRING" value="false" />
 140       <option name="XML" value="false" />
 141       <option name="HTML" value="false" />
 142       <option name="JSP" value="false" />
 143       <option name="COMPLETION" value="false" />
 144       <option name="OTHER" value="false" />
 145     </context>
 146   </template>
 147   <template name="t5inject5" value="@Inject &#10;private Session _session;&#10;" description="Hibernate Session" toReformat="false" toShortenFQNames="true">
 148     <context>
 149       <option name="JAVA_CODE" value="true" />
 150       <option name="JAVA_COMMENT" value="false" />
 151       <option name="JAVA_STRING" value="false" />
 152       <option name="XML" value="false" />
 153       <option name="HTML" value="false" />
 154       <option name="JSP" value="false" />
 155       <option name="COMPLETION" value="false" />
 156       <option name="OTHER" value="false" />
 157     </context>
 158   </template>
 159   <template name="t5inject6" value="@Inject &#10;private PageRenderSupport _renderSupport;&#10;" description="PageRenderSupport to get unique client side id" toReformat="false" toShortenFQNames="true">
 160     <context>
 161       <option name="JAVA_CODE" value="true" />
 162       <option name="JAVA_COMMENT" value="false" />
 163       <option name="JAVA_STRING" value="false" />
 164       <option name="XML" value="false" />
 165       <option name="HTML" value="false" />
 166       <option name="JSP" value="false" />
 167       <option name="COMPLETION" value="false" />
 168       <option name="OTHER" value="false" />
 169     </context>
 170   </template>
 171   <template name="t5inject7" value="@Inject &#10;private Request _request;&#10;" description="Request object for information on current request" toReformat="false" toShortenFQNames="true">
 172     <context>
 173       <option name="JAVA_CODE" value="true" />
 174       <option name="JAVA_COMMENT" value="false" />
 175       <option name="JAVA_STRING" value="false" />
 176       <option name="XML" value="false" />
 177       <option name="HTML" value="false" />
 178       <option name="JSP" value="false" />
 179       <option name="COMPLETION" value="false" />
 180       <option name="OTHER" value="false" />
 181     </context>
 182   </template>
 183   <template name="t5inject8" value="@Inject &#10;private BeanModelSource _beanModelSource;" description="BeanModelSource to modify bean model." toReformat="false" toShortenFQNames="true">
 184     <context>
 185       <option name="JAVA_CODE" value="true" />
 186       <option name="JAVA_COMMENT" value="false" />
 187       <option name="JAVA_STRING" value="false" />
 188       <option name="XML" value="false" />
 189       <option name="HTML" value="false" />
 190       <option name="JSP" value="false" />
 191       <option name="COMPLETION" value="false" />
 192       <option name="OTHER" value="false" />
 193     </context>
 194   </template>
 195   <template name="t5life1" value="/**&#10; * Tapestry page lifecycle method. &#10; * Called when the page is instantiated and added to the page pool.&#10; * Initialize components, and resources that are not request specific.&#10; */&#10;@PageLoaded &#10;public void pageLoaded()&#10;{&#10;    $END$&#10;}" description="PageLoaded. Called when page is instantiated." toReformat="false" toShortenFQNames="true">
 196     <context>
 197       <option name="JAVA_CODE" value="true" />
 198       <option name="JAVA_COMMENT" value="false" />
 199       <option name="JAVA_STRING" value="false" />
 200       <option name="XML" value="false" />
 201       <option name="HTML" value="false" />
 202       <option name="JSP" value="false" />
 203       <option name="COMPLETION" value="false" />
 204       <option name="OTHER" value="false" />
 205     </context>
 206   </template>
 207   <template name="t5life2" value="/** &#10; * Tapestry page lifecycle method. Called when page is attached to a request &#10; */&#10;@PageAttached&#10;public void pageAttached()&#10;{&#10;&#9;$END$&#10;}" description="PageAttached. Called when page is attached to a request." toReformat="false" toShortenFQNames="true">
 208     <context>
 209       <option name="JAVA_CODE" value="true" />
 210       <option name="JAVA_COMMENT" value="false" />
 211       <option name="JAVA_STRING" value="false" />
 212       <option name="XML" value="false" />
 213       <option name="HTML" value="false" />
 214       <option name="JSP" value="false" />
 215       <option name="COMPLETION" value="false" />
 216       <option name="OTHER" value="false" />
 217     </context>
 218   </template>
 219   <template name="t5life3" value="/** &#10; * Tapestry page lifecycle method. &#10; * Called when page is detached from a request. &#10; */&#10;@PageDetached&#10;public void pageDetached()&#10;{&#10;&#9;$END$&#10;}&#10;" description="PageDetached. Called when page is detached from a request. (cleanup here)" toReformat="false" toShortenFQNames="true">
 220     <context>
 221       <option name="JAVA_CODE" value="true" />
 222       <option name="JAVA_COMMENT" value="false" />
 223       <option name="JAVA_STRING" value="false" />
 224       <option name="XML" value="false" />
 225       <option name="HTML" value="false" />
 226       <option name="JSP" value="false" />
 227       <option name="COMPLETION" value="false" />
 228       <option name="OTHER" value="false" />
 229     </context>
 230   </template>
 231   <template name="t5render1" value="/** &#10; * Tapestry render phase method. &#10; * Initialize temporary instance variables here. &#10; */&#10;@SetupRender&#10;public void setupRender()&#10;{&#10;&#9;$END$&#10;}&#10;" description="SetupRender.  Initialize temporary instance variabless here" toReformat="false" toShortenFQNames="true">
 232     <context>
 233       <option name="JAVA_CODE" value="true" />
 234       <option name="JAVA_COMMENT" value="false" />
 235       <option name="JAVA_STRING" value="false" />
 236       <option name="XML" value="false" />
 237       <option name="HTML" value="false" />
 238       <option name="JSP" value="false" />
 239       <option name="COMPLETION" value="false" />
 240       <option name="OTHER" value="false" />
 241     </context>
 242   </template>
 243   <template name="t5render2" value="/** &#10; * Tapestry render phase method. &#10; * Start a tag here, end it in afterRender&#10; */&#10;@BeginRender&#10;public void beginRender()&#10;{&#10;&#9;$END$&#10;}&#10;" description="BeginRender. Start a tag here." toReformat="false" toShortenFQNames="true">
 244     <context>
 245       <option name="JAVA_CODE" value="true" />
 246       <option name="JAVA_COMMENT" value="false" />
 247       <option name="JAVA_STRING" value="false" />
 248       <option name="XML" value="false" />
 249       <option name="HTML" value="false" />
 250       <option name="JSP" value="false" />
 251       <option name="COMPLETION" value="false" />
 252       <option name="OTHER" value="false" />
 253     </context>
 254   </template>
 255   <template name="t5render3" value="/** &#10; * Tapestry render phase method. &#10; * Called before component template is rendered.&#10; */&#10;@BeforeRenderTemplate&#10;public void beforeRenderTemplate()&#10;{&#10;&#9;$END$&#10;}&#10;" description="BeforeRenderTemplate. Called before component template is rendered." toReformat="false" toShortenFQNames="true">
 256     <context>
 257       <option name="JAVA_CODE" value="true" />
 258       <option name="JAVA_COMMENT" value="false" />
 259       <option name="JAVA_STRING" value="false" />
 260       <option name="XML" value="false" />
 261       <option name="HTML" value="false" />
 262       <option name="JSP" value="false" />
 263       <option name="COMPLETION" value="false" />
 264       <option name="OTHER" value="false" />
 265     </context>
 266   </template>
 267   <template name="t5render4" value="/** &#10; * Tapestry render phase method. &#10; * Called before component body is rendered.&#10; */&#10;@BeforeRenderBody&#10;public void beforeRenderBody()&#10;{&#10;&#9;$END$&#10;}&#10;" description="BeforeRenderBody. Called before component body is rendered." toReformat="false" toShortenFQNames="true">
 268     <context>
 269       <option name="JAVA_CODE" value="true" />
 270       <option name="JAVA_COMMENT" value="false" />
 271       <option name="JAVA_STRING" value="false" />
 272       <option name="XML" value="false" />
 273       <option name="HTML" value="false" />
 274       <option name="JSP" value="false" />
 275       <option name="COMPLETION" value="false" />
 276       <option name="OTHER" value="false" />
 277     </context>
 278   </template>
 279   <template name="t5render5" value="/** &#10; * Tapestry render phase method. &#10; * Called after component body is rendered.&#10; * return false to render body again.&#10; */&#10;@AfterRenderBody&#10;public void afterRenderBody()&#10;{&#10;&#9;$END$&#10;}&#10;" description="AfterRenderBody. Called after component body is rendered." toReformat="false" toShortenFQNames="true">
 280     <context>
 281       <option name="JAVA_CODE" value="true" />
 282       <option name="JAVA_COMMENT" value="false" />
 283       <option name="JAVA_STRING" value="false" />
 284       <option name="XML" value="false" />
 285       <option name="HTML" value="false" />
 286       <option name="JSP" value="false" />
 287       <option name="COMPLETION" value="false" />
 288       <option name="OTHER" value="false" />
 289     </context>
 290   </template>
 291   <template name="t5render6" value="/** &#10; * Tapestry render phase method. &#10; * Called after component template is rendered.&#10; */&#10;@AfterRenderTemplate&#10;public void afterRenderTemplate()&#10;{&#10;&#9;$END$&#10;}&#10;" description="AfterRenderTemplate. Called after component template is rendered." toReformat="false" toShortenFQNames="true">
 292     <context>
 293       <option name="JAVA_CODE" value="true" />
 294       <option name="JAVA_COMMENT" value="false" />
 295       <option name="JAVA_STRING" value="false" />
 296       <option name="XML" value="false" />
 297       <option name="HTML" value="false" />
 298       <option name="JSP" value="false" />
 299       <option name="COMPLETION" value="false" />
 300       <option name="OTHER" value="false" />
 301     </context>
 302   </template>
 303   <template name="t5render7" value="/** &#10; * Tapestry render phase method. End a tag here.&#10; */&#10;@AfterRender&#10;public void afterRender(){&#10;&#9;$END$&#10;}&#10;" description="AfterRender. End a tag here." toReformat="false" toShortenFQNames="true">
 304     <context>
 305       <option name="JAVA_CODE" value="true" />
 306       <option name="JAVA_COMMENT" value="false" />
 307       <option name="JAVA_STRING" value="false" />
 308       <option name="XML" value="false" />
 309       <option name="HTML" value="false" />
 310       <option name="JSP" value="false" />
 311       <option name="COMPLETION" value="false" />
 312       <option name="OTHER" value="false" />
 313     </context>
 314   </template>
 315   <template name="t5render8" value="/** &#10; * Tapestry render phase method. Cleanup temporary variables here. &#10; * Notice: private instance fields will be cleaned up by tapestry automaticaly&#10; */&#10;@CleanupRender&#10;public void cleanupRender()&#10;{&#10;&#9;$END$&#10;}" description="CleanupRender.  cleanup temporary variabless here." toReformat="false" toShortenFQNames="true">
 316     <context>
 317       <option name="JAVA_CODE" value="true" />
 318       <option name="JAVA_COMMENT" value="false" />
 319       <option name="JAVA_STRING" value="false" />
 320       <option name="XML" value="false" />
 321       <option name="HTML" value="false" />
 322       <option name="JSP" value="false" />
 323       <option name="COMPLETION" value="false" />
 324       <option name="OTHER" value="false" />
 325     </context>
 326   </template>
 327 </templateSet>

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-03-03 11:40:25, 134.7 KB) [[attachment:live_templates_2.jpg]]
  • [get | view] (2008-03-03 11:52:33, 323.8 KB) [[attachment:live_templates_3.jpg]]
  • [get | view] (2008-03-05 21:32:18, 18.7 KB) [[attachment:tapestry5_3.xml]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.