hi fanzhen, try following instead: <input type="checkbox" name="audit" value="0" checked="${audit0}" />aaa
this will work; and if your adit0 returns null the attribute wont get rendered. i'd recommend to use the T5 checkbox component nevertheless. g, kris Von: Fanzhen <fanzhen.m...@hotmail.com> An: Tapestry users <users@tapestry.apache.org> Datum: 13.09.2010 08:30 Betreff: Re: want to setup a ${xxxx} in my input element!!! yes, I really have read it carefully. On 2010-9-13 14:17, Igor Drobiazko wrote: > You should have a look at Tapestry's form components. There is a Checkbox > component. > > On Mon, Sep 13, 2010 at 8:14 AM, Fanzhen<fanzhen.m...@hotmail.com> wrote: > >> hey, friends want to code like this: >> >> <input type="checkbox" name="audit" value="0" ${audit0} />aaa >> <input type="checkbox" name="audit" value="1" ${audit1} />bbb >> <input type="checkbox" name="audit" value="2" ${audit2} />ccc >> <input type="checkbox" name="audit" value="3" ${audit3} />ddd >> >> actually, what is in my page class are: >> >> public String getAudit0(){ >> if(xxxx) >> return "checked=\"checked\""; >> else >> return ""; >> } >> .......................... >> >> but the problem is T5 told me "Unexpected character '$' (code 36) (expected >> a name start character) >> at [row,col {unknown-source}]: [27,56]" >> >> could anyone told me how to do with my checkbox or maybe and radio elements >> ? >> I just want to remember what the user input when they do some searching. >> thank you in advance !! >> >> Fanzhen. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org