A simple solution with javascript. So if having the component: <t:datefield t:id="date"/>
you could make it readonly <script type="text/javascript"> $('date').readOnly=true; </script> ---- With tapx --- The standard datefield component don't seem to work when disabled, but the tapx one does (FF 3.5 & Opera 10). namespace (xmlns:x="tapestry-library:tapx") <x:datefield t:id="date"/> you could make it disabled <script type="text/javascript"> $('date').disabled=true; </script> Regards Magnus 2009/11/19 sandeepraj singh <sandeepraj.si...@atosorigin.com> > > Hi, > A weird requirement may be, > > I want to use Date Field Component and the ability to disable the text > field > associated with it only. The intention is to match the existing date > component in one of older technologies we worked on. While migrating to > Tapestry5 we want that by clicking the Calender icon a date is selected but > after that no one should be allowed to tinker with it and hence we want to > disable the text box associated with it. > > Do you think that for such a requirement, creating my own component is a > better bet? > > Thanks > Sandeep > -- > View this message in context: > http://old.nabble.com/Date-Field-Component---Disable-tp26421251p26421251.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >