Re: T3: Disable TextField

2007-08-19 Thread Nick Westgate

The error says exactly what is wrong with your template.
Each component must have a unique name (or be anonymous.)

Cheers,
Nick.

Nazmul Bhuiyan wrote:

Template for component UserEdit contains multiple references to embedded
component inputUserLogin.

...
  jwcid="inputUserLogin" 

...
jwcid="inputUserLogin" 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T3: Disable TextField

2007-08-19 Thread Nazmul Bhuiyan

Thanks a lot.

Allen Guo wrote:
> 
> there are one more inputUserLogin  in .html file. It's not be allowed
> For this case, you have to define two components with different name in
> .page file.
> 
> 2007/8/20, Nazmul Bhuiyan < [EMAIL PROTECTED]>:
>>
>>
>> Hi,
>> I'm trying to disable one field according to the condition (new or
>> update).
>> But I'm getting the following error.
>> Can any one please check and tell me what I'm doing wrong?
>> I've been following the component reference in
>> http://tapestry.apache.org/tapestry3/doc/ComponentReference/TextField.html
>> and using disabled="ognl:true".
>>
>> Thanks
>>
>> Naz
>>
>> Error:
>> Template for component UserEdit contains multiple references to embedded
>> component inputUserLogin.
>>
>>
>> html:
>>
>>
>>
>> 
>> 
>>
>>  User Login:
>>
>> 
>> 
>> >   jwcid="inputUserLogin"
>>   size="20"
>>   maxlength="20"/>
>>  
>> 
>>
>>
>> 
>> 
>>
>> User Login:
>>
>>  
>>  
>>  >jwcid="inputUserLogin"
>>disabled="ognl:true"
>>size="20"
>>maxlength="20"/>
>>   
>> 
>>
>>
>>
>> .pgae
>> 
>> 
>> 
>> 
>> 
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T3%3A-Disable-TextField-tf4296203.html#a12228918
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T3%3A-Disable-TextField-tf4296203.html#a12229309
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T3: Disable TextField

2007-08-19 Thread 蝈蝈龙
there are one more inputUserLogin  in .html file. It's not be allowed
For this case, you have to define two components with different name in
.page file.

2007/8/20, Nazmul Bhuiyan < [EMAIL PROTECTED]>:
>
>
> Hi,
> I'm trying to disable one field according to the condition (new or
> update).
> But I'm getting the following error.
> Can any one please check and tell me what I'm doing wrong?
> I've been following the component reference in
> http://tapestry.apache.org/tapestry3/doc/ComponentReference/TextField.html
> and using disabled="ognl:true".
>
> Thanks
>
> Naz
>
> Error:
> Template for component UserEdit contains multiple references to embedded
> component inputUserLogin.
>
>
> html:
>
>
>
> 
> 
>
>  User Login:
>
> 
> 
>jwcid="inputUserLogin"
>   size="20"
>   maxlength="20"/>
>  
> 
>
>
> 
> 
>
> User Login:
>
>  
>  
>  jwcid="inputUserLogin"
>disabled="ognl:true"
>size="20"
>maxlength="20"/>
>   
> 
>
>
>
> .pgae
> 
> 
> 
> 
> 
>
> --
> View this message in context:
> http://www.nabble.com/T3%3A-Disable-TextField-tf4296203.html#a12228918
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: T3: Disable TextField

2007-08-19 Thread Nazmul Bhuiyan

Disable works but it is failing when I put the condition.

span jwcid="@Conditional" condition="ognl:newUser">
disabled="ognl:false"

span jwcid="@Conditional" condition="ognl:newUser">
disabled="ognl:true"




Nazmul Bhuiyan wrote:
> 
> Hi,
> I’m trying to disable one field according to the condition (new or
> update). But I’m getting the following error.
> Can any one please check and tell me what I’m doing wrong?
> I’ve been following the component reference in
> http://tapestry.apache.org/tapestry3/doc/ComponentReference/TextField.html
> and using disabled="ognl:true".
> 
> Thanks
> 
> Naz
> 
> Error:
> Template for component UserEdit contains multiple references to embedded
> component inputUserLogin.
> 
> 
> html:
> 
> 
> 
> 
> 
> 
>  User Login: 
> 
> 
>   
>jwcid="inputUserLogin" 
>   size="20" 
>   maxlength="20"/>
>  
>  
> 
>   
> 
>   
>   
>   User Login: 
> 
>  
>
>  jwcid="inputUserLogin" 
>disabled="ognl:true" 
>size="20" 
>maxlength="20"/>
>   
>   
> 
> 
> 
> .pgae
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T3%3A-Disable-TextField-tf4296203.html#a12229106
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T3: Disable TextField

2007-08-19 Thread Nazmul Bhuiyan

Hi,
I’m trying to disable one field according to the condition (new or update).
But I’m getting the following error.
Can any one please check and tell me what I’m doing wrong?
I’ve been following the component reference in
http://tapestry.apache.org/tapestry3/doc/ComponentReference/TextField.html
and using disabled="ognl:true".

Thanks

Naz

Error:
Template for component UserEdit contains multiple references to embedded
component inputUserLogin.


html:






 User Login: 




 
 





User Login: 

 
 
 
  




.pgae






-- 
View this message in context: 
http://www.nabble.com/T3%3A-Disable-TextField-tf4296203.html#a12228918
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]