tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kent Tong <k...@cpttm.org.mo>
Subject Re: Setting RadioGroup selected attribute
Date Thu, 01 Sep 2005 10:50:03 GMT
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?


  <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

View raw message