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:
> 
> 
> 
>     <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#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]

Reply via email to