hi, as the documentation mentioned. " If true, then the field will render out with a disabled attribute (to turn off client-side behavior). Further, a disabled field ignores any value in the request when the form is submitted." this is not i want. i need to dynamically set the field read-only or not read-only due to some situation where user will click modify, then i not really want user to able to change on the key field value.
Thank you. Regards, Tan On Wed, Jul 30, 2008 at 1:31 AM, Josh Canfield <[EMAIL PROTECTED]> wrote: >> >> <t:textfield value="value" disabled="${disabled}" /> >> > > Disabled is a parameter to the textfield component. It's default binding is > prop so you don't want the ${} around disabled. > > <t:textfield value="value" disabled="disabled" /> > > http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/TextField.html > > Josh > On Tue, Jul 29, 2008 at 5:45 AM, Lance Java <[EMAIL PROTECTED]>wrote: > >> java: >> class MyPage { >> @Property >> private String value; >> >> @Property >> private boolean disabled; >> } >> >> tml: >> <t:textfield value="value" disabled="${disabled}" /> >> >> On 29/07/2008, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> > >> > hi all, >> > >> > i'm newbie in tapestry. May i know is there any dynamically way to >> > code it in java to control over tml <input type=text become read-only >> > = false or true base >> > on my coding? >> > Thank you. >> > >> > Regards, >> > Tan >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > > > > -- > -- > TheDailyTube.com. Sign up and get the best new videos on the internet > delivered fresh to your inbox. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]