You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Neil Aggarwal <ne...@JAMMConsulting.com> on 2009/01/02 05:55:36 UTC

Size attribute not valid for datetimepicker?

Hello:

I am using a datetimepicker to show a date and time:
<s:datetimepicker label="Notice Date" name="parcel.noticeDate" 
displayFormat="M/d/yyyy HH:mm:ss" adjustWeeks="true"/>

When I view the page in my browser, the input field cuts
off the time part of the display.

I tried putting a size attribute on the tag, but that
is not allowed.

How can I increase the size of the input field?

Also, when I change the date using the picker, it
zeros out the time part of the field.  Any idea
how to make it keep the time the user entered?

Thanks
	Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details. 


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


Re: Size attribute not valid for datetimepicker?

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Haven't used the datetimepicker myself, but have you tried using the
cssClass or cssStyle attributes and set the width with css?

Nils-H

On Fri, Jan 2, 2009 at 5:55 AM, Neil Aggarwal <ne...@jammconsulting.com> wrote:
> Hello:
>
> I am using a datetimepicker to show a date and time:
> <s:datetimepicker label="Notice Date" name="parcel.noticeDate"
> displayFormat="M/d/yyyy HH:mm:ss" adjustWeeks="true"/>
>
> When I view the page in my browser, the input field cuts
> off the time part of the display.
>
> I tried putting a size attribute on the tag, but that
> is not allowed.
>
> How can I increase the size of the input field?
>
> Also, when I change the date using the picker, it
> zeros out the time part of the field.  Any idea
> how to make it keep the time the user entered?
>
> Thanks
>        Neil
>
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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