You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Amol Ghotankar <gh...@gmail.com> on 2011/05/30 07:56:57 UTC

Struts2 Date time picker problem in Firefox

I have a simple form that has

s:datetimepicker name="studentAdmission.admissionDate" id="requiredString"
cssClass="must" value="%{'today'}"/

When I submit this form from Firebox the object at backend does not get the
date value.

But when I submit this form from IE8, the object at backend gets the date
value as entered.

Any Idea what additional settings required for Firefox?


Regards,

Amol Ghotankar

Cursive Technologies

Re: Struts2 Date time picker problem in Firefox

Posted by Maurizio Cucchiara <ma...@gmail.com>.
Could you post your jsp file (preferably through a pastebin service) ?

On 30 May 2011 10:16, Amol Ghotankar <gh...@gmail.com> wrote:

> @Maurizio:
>
> I have not changed anything, and the application is very simple do not use
> any dojo manipulation too.
>
> Yes the output is from the client browser retrieved via firebug & similar
> browser plug-ins where I can see that in FF the value is blank.
>
> Any quick fix for this.
>
> Regards,
>
> Amol
>



-- 
Maurizio Cucchiara

Re: Struts2 Date time picker problem in Firefox

Posted by Amol Ghotankar <gh...@gmail.com>.
@Maurizio:

I have not changed anything, and the application is very simple do not use
any dojo manipulation too.

Yes the output is from the client browser retrieved via firebug & similar
browser plug-ins where I can see that in FF the value is blank.

Any quick fix for this.

Regards,

Amol

Re: Struts2 Date time picker problem in Firefox

Posted by Maurizio Cucchiara <ma...@gmail.com>.
How did you check the output? are you sure this is not the output of some
plugin like firebug, etc? AFAICR there is no difference between the FF and
IE output, I'm inclined to think that what really happens has to do with
dojo manipulation.

On 30 May 2011 08:21, Amol Ghotankar <gh...@gmail.com> wrote:

> I checked the output on browsers and this was what i found
>
> IE
> <INPUT value=2011-05-30 type=hidden
> name=dojo.studentAdmission.admissionDate
> dojoAttachPoint="valueNode">
>
> <INPUT style="WIDTH: 7em; VERTICAL-ALIGN: middle" value=05/30/2011
> type=text
> name=studentAdmission.admissionDate __doClobber__="true"
> dojoAttachPoint="inputNode" autocomplete="off">
>
> FF
> <input type="hidden" dojoattachpoint="valueNode" value="2011-05-30"
> name="dojo.studentAdmission.admissionDate">
>
> <input type="text" autocomplete="off" dojoattachpoint="inputNode"
> style="vertical-align: middle; width: 7em;" *value="" *
> name="studentAdmission.admissionDate">
>
>
> Help is need to fix this part.
>



-- 
Maurizio Cucchiara

Re: Struts2 Date time picker problem in Firefox

Posted by Amol Ghotankar <gh...@gmail.com>.
I checked the output on browsers and this was what i found

IE
<INPUT value=2011-05-30 type=hidden name=dojo.studentAdmission.admissionDate
dojoAttachPoint="valueNode">

<INPUT style="WIDTH: 7em; VERTICAL-ALIGN: middle" value=05/30/2011 type=text
name=studentAdmission.admissionDate __doClobber__="true"
dojoAttachPoint="inputNode" autocomplete="off">

FF
<input type="hidden" dojoattachpoint="valueNode" value="2011-05-30"
name="dojo.studentAdmission.admissionDate">

<input type="text" autocomplete="off" dojoattachpoint="inputNode"
style="vertical-align: middle; width: 7em;" *value="" *
name="studentAdmission.admissionDate">


Help is need to fix this part.

Re: Struts2 Date time picker problem in Firefox

Posted by fr...@meruvian.org.
We use jquery ui

Work well


Sent from my BlackBerry®
powered by Sinyal Kuat INDOSAT

-----Original Message-----
From: Amol Ghotankar <gh...@gmail.com>
Date: Mon, 30 May 2011 11:26:57 
To: Struts Users Mailing List<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: Struts2 Date time picker problem in Firefox

I have a simple form that has

s:datetimepicker name="studentAdmission.admissionDate" id="requiredString"
cssClass="must" value="%{'today'}"/

When I submit this form from Firebox the object at backend does not get the
date value.

But when I submit this form from IE8, the object at backend gets the date
value as entered.

Any Idea what additional settings required for Firefox?


Regards,

Amol Ghotankar

Cursive Technologies