Re: want to setup a ${xxxx} in my input element!!!
hi fanzhen, try following instead: 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 An: Tapestry users 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 wrote: > >> hey, friends want to code like this: >> >> aaa >> bbb >> ccc >> ddd >> >> actually, what is in my page class are: >> >> public String getAudit0(){ >> if() >> 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
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 wrote: hey, friends want to code like this: aaa bbb ccc ddd actually, what is in my page class are: public String getAudit0(){ if() 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
Re: want to setup a ${xxxx} in my input element!!!
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 wrote: > > hey, friends want to code like this: > > aaa > bbb > ccc > ddd > > actually, what is in my page class are: > >public String getAudit0(){ >if() >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 > > -- Best regards, Igor Drobiazko http://tapestry5.de