ContextPageReset demo

Description
This page displays the @ContextPageReset annotation in a class.

It demonstrates an example with a real context that must be passed to the page activation. No conflict occurs as "reset" is removed before page activation.


In Action
Set a persistant value : Value to submit :

Value persisted :
Context sent : 0



Refresh page, sending context value 2

Refresh page, sending context value 2, and reseting


TML Source code

		<!-- form -->
		<t:form>
			<fieldset>
				<legend>Set a persistant value :</legend>
				Value to submit : <t:textfield value="value"/>
		        <t:submit/><br/><br/>
				Value persisted : ${value }<br/>
				Context sent : ${context }
	        </fieldset>
		</t:form>
		<br/><hr/><br/>
		<t:pagelink page="components/contextpagereset/example2" context="literal:2">
			Refresh page, sending context value 2
		</t:pagelink><br/><br/>
		
		<t:pagelink page="components/contextpagereset/example2" context="['reset', 2]">
			Refresh page, sending context value 2, and reseting
		</t:pagelink>