Martin Dietze wrote:
Hi,

 I'd like to set some component paramameters ("disabled" for
inputs) from within my page classes. As far as I've seen so far
the usual way to do this would be to put a "name=${prop:value}"
attribute into my template. Can this also be done by using a
simple setter in my Java code? This would improv the templates'
readability a lot!
I'm not sure I have correctly understood your concern, so excuse me if I answer to something else ;) When you have a component with parameter, you have two way to specify it the actual parameter value :
- in the template, with "paramname=bindingtype:value" ;
- in the java code, thanks to "@Component(parameters =..." tag.

You can find documentation here :
http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html
http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html

Francois

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to