Hi Yuri,

good idea. I changed the order of definition. %args first and the scoped 
varialbes. There is a new snapshot:
http://www.tntnet.org/download/tntnet-1.6.1.3.20080405-1.tar.gz.

The difference between request scope variables and purely local variables is, 
that request scope variables keep there value between calls in the same 
request. You may create a component, which creates a button. The button needs 
a unique id insize a page. The component may use a request scope variable, 
which is incremented for each button, you draw on your page like this:

<%request>
int id(0);
</%request>
<input type="button" id="<$++id$>">

 That way you can just use

<& mybutton >
<& mybutton >
<& mybutton >

to draw 3 buttons each with a unique id. The generated html looks like this:
<input type="button" id="1">
<input type="button" id="2">
<input type="button" id="3">


Tommi

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to