Attachment 't5_eclipse_code_templates_before_E3.4.M2.xml'

Download

   1 <?xml version="1.0" encoding="UTF-8" standalone="no"?><templates>
   2 <template name="t5form1" description="event #1 PrepareForRender. Begining of form rendering. Manage form context here" enabled="true" autoinsert="true" context="java" deleted="false">
   3 /**Tapestry form render event method. Begining of form rendering. Manage form context here.*/
   4 public void onPrepareForRender(){
   5 	${cursor}
   6 }</template>
   7 
   8 <template name="t5form2" description="event #2 PrepareForSubmit. Begining of submit request." enabled="true" autoinsert="true" context="java" deleted="false">
   9 /**Tapestry form submit event method. Begining of submit request.*/
  10 public void onPrepareForSubmit(){
  11 	${cursor}
  12 }</template>
  13 
  14 <template name="t5form3" description="event #3 Prepare. Called both at begining of form rendering and form submit requests" enabled="true" autoinsert="true" context="java" deleted="false">
  15 /**Tapestry form submit/render event method. Called both at begining of form rendering 
  16  * and form submit requests.*/
  17 public void onPrepare(){
  18 	${cursor}
  19 }</template>
  20 
  21 <template name="t5form4" description="event #4 Selected. This is actualy an envet from Submit component." enabled="true" autoinsert="true" context="java" deleted="false">
  22 /**Tapestry Submit button event method. Called during form submission for button pressed.
  23  * Use it with button id: onSelectedFromSaveButton, where button-id is saveButton.*/
  24 public void onSelected(){
  25 	${cursor}
  26 }</template>
  27 
  28 <template name="t5form5" description="event #5 ValidateForm. Validation logic goes here." enabled="true" autoinsert="true" context="java" deleted="false">
  29 /**Tapestry form submit event method. Do extra validation here.*/
  30 public void onValideteForm(){
  31 	${cursor}
  32 }</template>
  33 
  34 <template name="t5form6" description="event #6 Success. Called if validation is successful." enabled="true" autoinsert="true" context="java" deleted="false">
  35 /**Tapestry form submit event method. Called if validation is successful.*/
  36 public void onSuccess(){
  37 	${cursor}
  38 }</template>
  39 
  40 <template name="t5form7" description="event #7 Failure. Called if validation fails." enabled="true" autoinsert="true" context="java" deleted="false">
  41 /**Tapestry form submit event method. Called if validation fails.*/
  42 public void onFailure(){
  43 	${cursor}
  44 }</template>
  45 
  46 <template name="t5form8" description="event #8 Submit. Called after submit regardles of validation." enabled="true" autoinsert="true" context="java" deleted="false">
  47 /**Tapestry form submit event method. Called always regardless of validation.*/
  48 public void onSubmit(){
  49 	${cursor}
  50 }</template>
  51 
  52 <template name="t5inject1" description="Inject #1 ComponentResources. For blocks, messages, crete actionlink, trigger event" enabled="true" autoinsert="true" context="java" deleted="false">
  53 @Inject private ComponentResources _resources;
  54 </template>
  55 
  56 <template name="t5inject2" description="Inject #2 TypeCoercer to convert between types" autoinsert="true" context="java" deleted="false" enabled="true">@Inject private TypeCoercer _typeCoercer;
  57 </template>
  58 
  59 <template name="t5inject3" description="Inject #3 Hibernate Session" autoinsert="true" context="java" deleted="false" enabled="true">@Inject private Session _session;
  60 </template>
  61 
  62 <template name="t5inject4" description="Inject #4 Hibernate Session Manager to commit or rollback" autoinsert="true" context="java" deleted="false" enabled="true">@Inject private HibernateSessionManager _sessionManager;
  63 </template>
  64 
  65 <template name="t5inject5" description="Inject #5 Request object for information on current request" autoinsert="true" context="java" deleted="false" enabled="true">@Inject private Request _request;
  66 </template>
  67 
  68 <template name="t5inject6" description="Inject #6 Environment to supply Enviromental variables for your sub-components" autoinsert="true" context="java" deleted="false" enabled="true">@Inject private Environment _environment;
  69 </template>
  70 
  71 <template name="t5inject7" description="Inject #7 PageRenderSupport to get unique client side id" autoinsert="true" context="java" deleted="false" enabled="true">@Inject private PageRenderSupport _renderSupport;
  72 </template>
  73 
  74 <template name="t5inject8" description="Inject #8 BeanModelSource to modify bean model. (Grid columns for example)" autoinsert="true" context="java" deleted="false" enabled="true">@Inject private BeanModelSource _beanModelSource;
  75 </template>
  76 
  77 <template name="t5page1" description="Page lifecycle method #1 : PageLoaded. Called when page is instantiated." enabled="true" autoinsert="true" context="java" deleted="false">/**Tapestry page lifecycle method. Called when the page is instantiated and added to the page pool.
  78  * Initialize components, and resources that are not request specific.*/
  79 @PageLoaded public void pageLoaded(){
  80 	${cursor}
  81 }
  82 </template>
  83 
  84 <template name="t5page2" autoinsert="true" context="java" deleted="false" description="Page lifecycle method #2 : PageAttached. Called when page is attached to a request." enabled="true">/** Tapestry page lifecycle method. Called when page is attached to a request */
  85 @PageAttached
  86 public void pageAttached(){
  87 	${cursor}
  88 }
  89 </template>
  90 
  91 <template name="t5page3" autoinsert="true" context="java" deleted="false" description="Page lifecycle method #1 : PageDetached. Called when page is detached from a request. (cleanup here)" enabled="true">/** Tapestry page lifecycle method. Called when page is detached from a request. */
  92 @PageDetached
  93 public void pageDetached(){
  94 	${cursor}
  95 }
  96 </template>
  97 
  98 <template name="t5render1" autoinsert="true" context="java" deleted="false" description="Render phase method #1 : SetupRender.  initialize temporary instance variabless here" enabled="true">/** Tapestry render phase method. Initialize temporary instance variables here. */
  99 @SetupRender
 100 public void setupRender(){
 101 	${cursor}
 102 }
 103 </template>
 104 
 105 <template name="t5render2" autoinsert="true" context="java" deleted="false" description="Render phase method #2 : BeginRender. Start a tag here." enabled="true">/** Tapestry render phase method. Start a tag here, end it in afterRender*/
 106 @BeginRender
 107 public void beginRender(){
 108 	${cursor}
 109 }
 110 </template>
 111 
 112 <template name="t5render3" autoinsert="true" context="java" deleted="false" description="Render phase method #4 : BeforeRenderTemplate. Called before component template is rendered." enabled="true">/** Tapestry render phase method. Called before component template is rendered.*/
 113 @BeforeRenderTemplate
 114 public void beforeRenderTemplate(){
 115 	${cursor}
 116 }
 117 </template>
 118 
 119 <template name="t5render4" autoinsert="true" context="java" deleted="false" description="Render phase method #3 : BeforeRenderBody. Called before component body is rendered." enabled="true">/** Tapestry render phase method. Called before component body is rendered.*/
 120 @BeforeRenderBody
 121 public void beforeRenderBody(){
 122 	${cursor}
 123 }
 124 </template>
 125 
 126 <template name="t5render5" autoinsert="true" context="java" deleted="false" description="Render phase method #3 : AfterRenderBody. Called after component body is rendered." enabled="true">/** Tapestry render phase method. Called after component body is rendered.
 127  * return false to render body again.*/
 128 @AfterRenderBody
 129 public void afterRenderBody(){
 130 	${cursor}
 131 }
 132 </template>
 133 
 134 <template name="t5render6" autoinsert="true" context="java" deleted="false" description="Render phase method #4 : AfterRenderTemplate. Called after component template is rendered." enabled="true">/** Tapestry render phase method. Called after component template is rendered.*/
 135 @AfterRenderTemplate
 136 public void afterRenderTemplate(){
 137 	${cursor}
 138 }
 139 </template>
 140 
 141 <template name="t5render7" autoinsert="true" context="java" deleted="false" description="Render phase method #7 : AfterRender. End a tag here." enabled="true">/** Tapestry render phase method. End a tag here.*/
 142 @AfterRender
 143 public void afterRender(){
 144 	${cursor}
 145 }
 146 </template>
 147 
 148 <template name="t5render8" autoinsert="true" context="java" deleted="false" description="Render phase method #8 : CleanupRender.  cleanup temporary variabless here. " enabled="true">/** Tapestry render phase method. Cleanup temporary variables here. 
 149  * Notice: private instance fields will be cleaned up by tapestry automaticaly*/
 150 @CleanupRender
 151 public void cleanupRender(){
 152 	${cursor}
 153 }
 154 </template>
 155 </templates>

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-05 18:39:49, 114.9 KB) [[attachment:t5_code_tpl_screen_all.jpg]]
  • [get | view] (2008-03-03 09:50:37, 46.2 KB) [[attachment:t5_code_tpl_screen_form.jpg]]
  • [get | view] (2008-03-05 18:40:06, 39.7 KB) [[attachment:t5_code_tpl_screen_inject.jpg]]
  • [get | view] (2008-03-01 19:00:08, 31.3 KB) [[attachment:t5_code_tpl_screen_page.jpg]]
  • [get | view] (2008-03-01 19:00:20, 49.7 KB) [[attachment:t5_code_tpl_screen_render.jpg]]
  • [get | view] (2008-03-03 11:07:36, 9.2 KB) [[attachment:t5_eclipse_code_templates2.xml]]
  • [get | view] (2008-03-05 18:30:49, 9.5 KB) [[attachment:t5_eclipse_code_templates3.xml]]
  • [get | view] (2008-04-02 08:05:37, 8.2 KB) [[attachment:t5_eclipse_code_templates_before_E3.4.M2.xml]]
 All files | Selected Files: delete move to page

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