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:
>>
>>
>>
>>     <tr>
>>         <td width="1%" nowrap>
>>
>>                      User Login:
>>
>>         </td>
>>         <td width="99%">
>>             <input type="text"
>>                       jwcid="inputUserLogin"
>>                       size="20"
>>                       maxlength="20"/>
>>          </td>
>>     </tr>
>>
>>
>>     <tr>
>>         <td width="1%" nowrap>
>>
>>                     User Login:
>>
>>          </td>
>>          <td width="99%">
>>              <input type="text"
>>                        jwcid="inputUserLogin"
>>                        disabled="ognl:true"
>>                        size="20"
>>                        maxlength="20"/>
>>           </td>
>>         </tr>
>>
>>
>>
>> .pgae
>> <component id="inputUserLogin" type="ValidField">
>>     <static-binding name="displayName" value="User Login" />
>>     <binding name="validator" expression="beans.required"/>
>>     <binding name="value" expression="user.usrLogin"/>
>> </component>
>>
>> --
>> 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]

Reply via email to