You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Fanzhen <fa...@hotmail.com> on 2010/09/13 08:14:39 UTC
want to setup a ${xxxx} in my input element!!!
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: want to setup a ${xxxx} in my input element!!!
Posted by Kristian Marinkovic <kr...@porsche.co.at>.
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 <fa...@hotmail.com>
An: Tapestry users <us...@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<fa...@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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: want to setup a ${xxxx} in my input element!!!
Posted by Fanzhen <fa...@hotmail.com>.
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<fa...@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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: want to setup a ${xxxx} in my input element!!!
Posted by Igor Drobiazko <ig...@gmail.com>.
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 <fa...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Best regards,
Igor Drobiazko
http://tapestry5.de