RE: disable form component

2006-08-04 Thread Mark Stang
ents and modify them, if they support "disableing" them programatically. However, this seems easier. HTH, Mark -Original Message- From: zqzuk [mailto:[EMAIL PROTECTED] Sent: Fri 8/4/2006 3:56 PM To: users@tapestry.apache.org Subject: RE: disable form component hi, thnx. but i

RE: disable form component

2006-08-04 Thread zqzuk
hi, thnx. but i dont know how to do this... i suppose, i need to get the component, for exmaple IFormComponent comp = (FormComponent)getComponent("myCheckBox")); if(condition satisfied){ comp.setDisabled(true); } however i searched tapestry API, there isnt such a setDisabled() method or some

RE: disable form component

2006-08-04 Thread Mark Stang
Mark -Original Message- From: zqzuk [mailto:[EMAIL PROTECTED] Sent: Fri 8/4/2006 8:33 AM To: users@tapestry.apache.org Subject: Re: disable form component hi, thnx for that. but does that mean it is not possible to do so using tapestry? the problem is, im using tapestry and java to ren

Re: disable form component

2006-08-04 Thread zqzuk
hi, thnx for that. but does that mean it is not possible to do so using tapestry? the problem is, im using tapestry and java to render the page and form elements, collect input from these components and do database transactions. -- View this message in context: http://www.nabble.com/disable-fo

Re: disable form component

2006-08-04 Thread Karthik N
i would suggest you use javascript to be able to do this on the client side only. iterate through the dom and set the disabled property for your form controls based on the button click On 8/4/06, zqzuk <[EMAIL PROTECTED]> wrote: mmm i meant to disable the component not to use the disabled com

Re: disable form component

2006-08-04 Thread zqzuk
mmm i meant to disable the component not to use the disabled component in the first place. for example, if user selects "ENABLE" then other form components are enabled; otherwise if user selects "DISABLE" then all form components are disabled and do not allow input. -- View this message in conte

Re: disable form component

2006-08-04 Thread Karthik N
I'm not sure about the form itself, but you can disable Form controls using the disabled HTML attribute. On 8/4/06, zqzuk <[EMAIL PROTECTED]> wrote: Hi, just wonder is there any way to disable a form component in code? i searched tapestry api, but seems theres only a method isDisabled() which