You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by am...@yahoo.com on 2005/12/21 20:47:13 UTC

disabling form elements using ognl

Hi, 

I thought that you can disable a form element using 'disabled="ognl:followup.status == false"' (I thought I saw an example somewhere). Event though the value is false it still disables the form element. Any ideas? Here is a snipet:

<tr jwcid="@For" keyExpression="id" source="ognl:followups" value="ognl:followup" element="tr">
        <td nowrap><span jwcid="@Insert" value="ognl:followup.status" /></td>
        <td nowrap><input type="checkbox" jwcid="@Checkbox" value="ognl:followup.status" disabled="ognl:followup.status == false"/></td>
 </tr>

Thanks in advance,
Amir


Re: disabling form elements using ognl

Posted by am...@yahoo.com.
Got it to work, thanks!

----- Original Message ----
From: Gunna Satria <gu...@yahoo.com>
To: Tapestry users <ta...@jakarta.apache.org>
Sent: Wednesday, December 21, 2005 09:14:45 PM
Subject: Re: disabling form elements using ognl

  Hi Amir,
  how about doing it like this,
  <td nowrap><input type="checkbox" jwcid="@Checkbox" 
value="ognl:followup.status" disabled="ognl:!followup.status"/></td>

regards,
   
  Gunna
Vincent <vi...@gmail.com> wrote: 
  Hi Amir,

What about the html parsed result?

Regards,
Vincent
On 12/22/05, amirsguard-tapestry@yahoo.com
wrote:
> Hi,
>
> I thought that you can disable a form element using 'disabled="ognl:followup.status == false"' (I thought I saw an example somewhere). Event though the value is false it still disables the form element. Any ideas? Here is a snipet:
>
> 
> 
>  [input] 
> 
>
> Thanks in advance,
> Amir
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

  



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: disabling form elements using ognl

Posted by Gunna Satria <gu...@yahoo.com>.
  Hi Amir,
  how about doing it like this,
  <td nowrap><input type="checkbox" jwcid="@Checkbox" 
value="ognl:followup.status" disabled="ognl:!followup.status"/></td>

regards,
   
  Gunna
Vincent <vi...@gmail.com> wrote: 
  Hi Amir,

What about the html parsed result?

Regards,
Vincent
On 12/22/05, amirsguard-tapestry@yahoo.com
wrote:
> Hi,
>
> I thought that you can disable a form element using 'disabled="ognl:followup.status == false"' (I thought I saw an example somewhere). Event though the value is false it still disables the form element. Any ideas? Here is a snipet:
>
> 
> 
>  [input] 
> 
>
> Thanks in advance,
> Amir
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

  



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: disabling form elements using ognl

Posted by Vincent <vi...@gmail.com>.
Hi Amir,

What about the html parsed result?

Regards,
Vincent
On 12/22/05, amirsguard-tapestry@yahoo.com
<am...@yahoo.com> wrote:
> Hi,
>
> I thought that you can disable a form element using 'disabled="ognl:followup.status == false"' (I thought I saw an example somewhere). Event though the value is false it still disables the form element. Any ideas? Here is a snipet:
>
> <tr jwcid="@For" keyExpression="id" source="ognl:followups" value="ognl:followup" element="tr">
>         <td nowrap><span jwcid="@Insert" value="ognl:followup.status" /></td>
>         <td nowrap><input type="checkbox" jwcid="@Checkbox" value="ognl:followup.status" disabled="ognl:followup.status == false"/></td>
>  </tr>
>
> Thanks in advance,
> Amir
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org