Em Wed, 02 Sep 2009 16:30:44 -0300, Martin Torre Castro
<mad...@hotmail.com> escreveu:
Hello, I have some doubts I can't solve about passing values
between pages and don't understand as I wish.Maybe you could help me.
Hi!
1.-When I've got more than one onActivate() for a page with different
kinds of arguments, for example:
[...]
Use a single onActivate(EventContext context) method. It will be invoked
with any number of parameters. EventContext.getCount() will give you the
number of parameters and EventContext.get(Class typeToConvert, int index)
will return the parameter values.
2.-About catching the values from selects and texfields, I've seen some
code using attributes on Java with _attributeName linking these
variables to the values on the html components. This is a convention on
Tapestry that makes it to find automatically the so _named fields or I'm
missing something?
This _fieldName is a field naming convention that Howard, the framework
creator and main committer, used to follow. Tapestry doesn't treat
underscored-prefixed fields differently from non-undescored-prefixed ones.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org