You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kent Tong <ke...@cpttm.org.mo> on 2005/09/01 12:50:03 UTC
Re: Setting RadioGroup selected attribute
Stevens, Jeffrey L (Dev Resource Central <jeff.stevens <at> hp.com> writes:
> My problem is that I would like to bing the selected attribute of a
> RadioGroup to specific values from this Test.Questions HashMap, but
> since it doesn't have the typical getter/setter methods how would I bind
> the value of the RadioGroup's selected attribute?
try:
<binding name="selected" expression="question['question1']">
This will call getQuestion("question1") to get the value and
setQuestion("question1", <selected-value>) to set the value.
--
Author of e-book for learning Tapestry (www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org