You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jo...@smartonline.com on 2010/06/28 18:41:53 UTC

Struts time picker does not render ihn IE7/IE8

Hi All,

I am using struts version 2.1.8.1 and below is a test code to render DOJO time picker


<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Insert title here</title>
<sx:head cache="false" compressed="false" debug="true" parseContent="true"/>
</head>
<body>
<s:form id="eventForm" action="eventForm" method="POST"
    enctype="multipart/form-data"
    onsubmit="javascript: submitEventForm(); return true;" theme="simple">
    
    Time <sx:datetimepicker name="mycomp" type="time"
                 id="mycomp" />

</s:form>
</body>
</html>


However, the time picker is not rendered only on IE 7/8 and I can see the following in debug log. Please note that the date picker renders without any issues
DEBUG:  dojo.widget.Parse: error: [Error: Invalid argument.]

Please help.

Regards,
John[http://www.smartonline.com/] 

Note: The information contained in this email is privileged and confidential information intended for the use of the addressee. If the reader of this email is not the intended recipient, or the employee or agent thereof, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you received this email in error, please immediately notify the sender listed above and destroy this message

Re: Struts time picker does not render in IE7/IE8

Posted by Stephen Ince <st...@gmail.com>.
The struts2 dojo plugin is way behind the dojo release.
I use the dojo frame all the time with struts2.
The dojo frame work is at 1.4.and the struts2 dojo plugin is at .4.
Just use the dojo 1.4 framework directly.

<s:textfield name="time" dojoType="dijit.form.TimeTextBox" value="now" 
cssStyle="width:90px" />

<s:textfield name="date" dojoType="dijit.form.DateTextBox" value="now" 
cssStyle="width:90px" />



Steve

----- Original Message ----- 
From: "Struts Two" <st...@yahoo.ca>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, June 29, 2010 19:35
Subject: Re: Struts time picker does not render in IE7/IE8


> What is meant is do not use "struts dojo plugin". However, you can use 
> dojo
> framework (which is a great framework) with struts 2
>
>
>
> ----- Original Message ----
> From: Dale Newfield <da...@newfield.org>
> To: Struts Users Mailing List <us...@struts.apache.org>
> Cc: john.varghese@smartonline.com
> Sent: Tue, June 29, 2010 10:36:08 AM
> Subject: Re: Struts time picker does not render in IE7/IE8
>
> On 6/29/10 9:03 AM, john.varghese@smartonline.com wrote:
>> Hi friends....any suggesstions?
>
> My suggestion is "don't use dojo".
>
> -Dale
>
> ---------------------------------------------------------------------
> 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
> 


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


Re: Struts time picker does not render in IE7/IE8

Posted by Struts Two <st...@yahoo.ca>.
What is meant is do not use "struts dojo plugin". However, you can use dojo 
framework (which is a great framework) with struts 2



----- Original Message ----
From: Dale Newfield <da...@newfield.org>
To: Struts Users Mailing List <us...@struts.apache.org>
Cc: john.varghese@smartonline.com
Sent: Tue, June 29, 2010 10:36:08 AM
Subject: Re: Struts time picker does not render in IE7/IE8

On 6/29/10 9:03 AM, john.varghese@smartonline.com wrote:
> Hi friends....any suggesstions?

My suggestion is "don't use dojo".

-Dale

---------------------------------------------------------------------
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


Re: Struts time picker does not render in IE7/IE8

Posted by Dale Newfield <da...@newfield.org>.
On 6/29/10 9:03 AM, john.varghese@smartonline.com wrote:
> Hi friends....any suggesstions?

My suggestion is "don't use dojo".

-Dale

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


RE: Struts time picker does not render in IE7/IE8

Posted by jo...@smartonline.com.
Hi friends....any suggesstions?

Regards
John

-----Original Message-----
From: john.varghese@smartonline.com
Sent: Monday, June 28, 2010 12:41pm
To: user@struts.apache.org
Subject: Struts time picker does not render ihn IE7/IE8

Hi All,

I am using struts version 2.1.8.1 and below is a test code to render DOJO time picker


<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Insert title here</title>
<sx:head cache="false" compressed="false" debug="true" parseContent="true"/>
</head>
<body>
<s:form id="eventForm" action="eventForm" method="POST"
    enctype="multipart/form-data"
    onsubmit="javascript: submitEventForm(); return true;" theme="simple">
    
    Time <sx:datetimepicker name="mycomp" type="time"
                 id="mycomp" />

</s:form>
</body>
</html>


However, the time picker is not rendered only on IE 7/8 and I can see the following in debug log. Please note that the date picker renders without any issues
DEBUG:  dojo.widget.Parse: error: [Error: Invalid argument.]

Please help.

Regards,
John[http://www.smartonline.com/] 

Note: The information contained in this email is privileged and confidential information intended for the use of the addressee. If the reader of this email is not the intended recipient, or the employee or agent thereof, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you received this email in error, please immediately notify the sender listed above and destroy this message

Re: Struts time picker does not render ihn IE7/IE8

Posted by Johannes Geppert <jo...@web.de>.
Sorry I don't have a solution for your problem,
but I know that the Dojo Plugin is deprecated
and out of support.

Code Dojo by hand or use a other plugin like
Struts2 jQuery Plugin.

http://code.google.com/p/struts2-jquery

https://cwiki.apache.org/S2PLUGINS/jquery-plugin-easy-ajax-and-widget-integration.html


Best Regards

Johannes Geppert


john.varghese wrote:
> 
> Hi All,
> 
> I am using struts version 2.1.8.1 and below is a test code to render DOJO
> time picker
> 
> 
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
> <%@ page language="java" contentType="text/html; charset=UTF-8"
>     pageEncoding="UTF-8"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>Insert title here</title>
> <sx:head cache="false" compressed="false" debug="true"
> parseContent="true"/>
> </head>
> <body>
> <s:form id="eventForm" action="eventForm" method="POST"
>     enctype="multipart/form-data"
>     onsubmit="javascript: submitEventForm(); return true;" theme="simple">
> 
>     Time <sx:datetimepicker name="mycomp" type="time"
>                  id="mycomp" />
> 
> </s:form>
> </body>
> </html>
> 
> 
> However, the time picker is not rendered only on IE 7/8 and I can see the
> following in debug log. Please note that the date picker renders without
> any issues
> DEBUG:  dojo.widget.Parse: error: [Error: Invalid argument.]
> 
> Please help.
> 
> Regards,
> John[http://www.smartonline.com/]
> 
> Note: The information contained in this email is privileged and
> confidential information intended for the use of the addressee. If the
> reader of this email is not the intended recipient, or the employee or
> agent thereof, you are hereby notified that any dissemination,
> distribution, or copying of this communication is strictly prohibited. If
> you received this email in error, please immediately notify the sender
> listed above and destroy this message
> 


-----
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: http://old.nabble.com/Struts-time-picker-does-not-render-ihn-IE7-IE8-tp29015443p29024692.html
Sent from the Struts - User mailing list archive at Nabble.com.


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