You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by karthi <ra...@snovabits.net> on 2012/08/23 12:44:22 UTC

How to make datefield input box readonly

Hi,


I am using date field in my UI where I don't want the users to type anything
in the box provided, I surely need that input box coming with the date field
and I want it to be filled only by picking up the date using the date
component not by directly keying in.

Please help me to achieve this?

Thanks in advance,
Karthi.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-datefield-input-box-readonly-tp5715744.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: How to make datefield input box readonly

Posted by karthi <ra...@snovabits.net>.
Thank you both, your solutions works perfectly...

Thanks again!!



--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-datefield-input-box-readonly-tp5715744p5715747.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: How to make datefield input box readonly

Posted by Bryan Lewis <jb...@gmail.com>.
Try setting the 'readonly' attribute on the datefield.  Works for me.


On Thu, Aug 23, 2012 at 6:44 AM, karthi <ra...@snovabits.net>wrote:

> Hi,
>
>
> I am using date field in my UI where I don't want the users to type
> anything
> in the box provided, I surely need that input box coming with the date
> field
> and I want it to be filled only by picking up the date using the date
> component not by directly keying in.
>
> Please help me to achieve this?
>
> Thanks in advance,
> Karthi.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/How-to-make-datefield-input-box-readonly-tp5715744.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How to make datefield input box readonly

Posted by Shing Hing Man <ma...@yahoo.com>.
How about adding 
       onfocus="blur();" 


in  your DateField component as an informal parameter ? 


Shing 





Home page : http://www.lombok.demon.co.uk/



________________________________
From: karthi <ra...@snovabits.net>
To: users@tapestry.apache.org 
Sent: Thursday, August 23, 2012 11:44 AM
Subject: How to make datefield input box readonly

Hi,


I am using date field in my UI where I don't want the users to type anything
in the box provided, I surely need that input box coming with the date field
and I want it to be filled only by picking up the date using the date
component not by directly keying in.

Please help me to achieve this?

Thanks in advance,
Karthi.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-datefield-input-box-readonly-tp5715744.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

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