List Info

Thread: Created: (WW-2094) Error DateTimePicker when erase input then click again the calendar




Created: (WW-2094) Error DateTimePicker when erase input then click again the calendar
country flaguser name
United States
2007-08-09 02:21:18
Error DateTimePicker when erase input then click again the
calendar
------------------------------------------------------------
-------

                 Key: WW-2094
                 URL: https
://issues.apache.org/struts/browse/WW-2094
             Project: Struts 2
          Issue Type: Bug
          Components: Plugins
    Affects Versions: 2.1.0
         Environment: Windows XP, TomCat 5.5, JDK 5
            Reporter: Leneveut Michaël


When setting a displayFormat in the
<sx:datetimepicker/> tag, there is a bug on opening
two times the calendar, if we erase the choosed date before
the second opening.

Use case :
The date field is empty.
We open the calendar and pick a date. The date is well
filled in.
We erase the date in the input field.
We open again the calendar => All dates are NaN (see
screenchot)

Look at the sample application attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (WW-2094) Error DateTimePicker when erase input then click again the calendar
country flaguser name
United States
2007-08-09 02:27:18
     [ https://issues.apache.org/struts/browse/WW-2094?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leneveut Michaël updated WW-2094:
---------------------------------

    Attachment: dateTimePicker_bug.jpg

v2.1.0 of 09 Aug 07
displayFormat = "dd/MM/yyyy"

pick a date => ok
erase the input
pick a date => all dates are NaN

> Error DateTimePicker when erase input then click again
the calendar
>
------------------------------------------------------------
-------
>
>                 Key: WW-2094
>                 URL: https
://issues.apache.org/struts/browse/WW-2094
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugins
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>         Attachments: dateTimePicker_bug.jpg
>
>
> When setting a displayFormat in the
<sx:datetimepicker/> tag, there is a bug on opening
two times the calendar, if we erase the choosed date before
the second opening.
> Use case :
> The date field is empty.
> We open the calendar and pick a date. The date is well
filled in.
> We erase the date in the input field.
> We open again the calendar => All dates are NaN (see
screenchot)
> Look at the sample application attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (WW-2094) Error DateTimePicker when erase input then click again the calendar
country flaguser name
United States
2007-08-09 02:31:18
     [ https://issues.apache.org/struts/browse/WW-2094?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leneveut Michaël updated WW-2094:
---------------------------------

    Attachment: Test.war

> Error DateTimePicker when erase input then click again
the calendar
>
------------------------------------------------------------
-------
>
>                 Key: WW-2094
>                 URL: https
://issues.apache.org/struts/browse/WW-2094
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugins
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>         Attachments: dateTimePicker_bug.jpg, Test.war
>
>
> When setting a displayFormat in the
<sx:datetimepicker/> tag, there is a bug on opening
two times the calendar, if we erase the choosed date before
the second opening.
> Use case :
> The date field is empty.
> We open the calendar and pick a date. The date is well
filled in.
> We erase the date in the input field.
> We open again the calendar => All dates are NaN (see
screenchot)
> Look at the sample application attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Updated: (WW-2094) Error DateTimePicker when erase input then click again the calendar
country flaguser name
United States
2007-08-15 08:36:34
     [ https://issues.apache.org/struts/browse/WW-2094?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Holmes updated WW-2094:
-----------------------------

      Component/s:     (was: Plugins)
                   Views
    Fix Version/s: 2.1.0

> Error DateTimePicker when erase input then click again
the calendar
>
------------------------------------------------------------
-------
>
>                 Key: WW-2094
>                 URL: https
://issues.apache.org/struts/browse/WW-2094
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>             Fix For: 2.1.0
>
>         Attachments: dateTimePicker_bug.jpg, Test.war
>
>
> When setting a displayFormat in the
<sx:datetimepicker/> tag, there is a bug on opening
two times the calendar, if we erase the choosed date before
the second opening.
> Use case :
> The date field is empty.
> We open the calendar and pick a date. The date is well
filled in.
> We erase the date in the input field.
> We open again the calendar => All dates are NaN (see
screenchot)
> Look at the sample application attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Assigned: (WW-2094) Error DateTimePicker when erase input then click again the calendar
country flaguser name
United States
2007-09-27 14:46:37
     [ https://issues.apache.org/struts/browse/WW-2094?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Musachy Barroso reassigned WW-2094:
-----------------------------------

    Assignee: Musachy Barroso

> Error DateTimePicker when erase input then click again
the calendar
>
------------------------------------------------------------
-------
>
>                 Key: WW-2094
>                 URL: https
://issues.apache.org/struts/browse/WW-2094
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>            Assignee: Musachy Barroso
>             Fix For: 2.1.0
>
>         Attachments: dateTimePicker_bug.jpg, Test.war
>
>
> When setting a displayFormat in the
<sx:datetimepicker/> tag, there is a bug on opening
two times the calendar, if we erase the choosed date before
the second opening.
> Use case :
> The date field is empty.
> We open the calendar and pick a date. The date is well
filled in.
> We erase the date in the input field.
> We open again the calendar => All dates are NaN (see
screenchot)
> Look at the sample application attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Commented: (WW-2094) Error DateTimePicker when erase input then click again the calendar
country flaguser name
United States
2007-10-19 14:26:39
    [ https://issues.apache.org/struts/browse/WW
-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:c
omment-tabpanel#action_42430 ] 

Benjamin McCann commented on WW-2094:
-------------------------------------

I noticed this exception in one of my log files today.  I'm
not sure if it's the same issue or not, but thought I'd
provide it in case it helps.

java.lang.NullPointerException
	at
org.apache.struts2.dojo.components.DateTimePicker.evaluatePa
rams(DateTimePicker.java:256)
	at
org.apache.struts2.components.UIBean.end(UIBean.java:493)
	at
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(Co
mponentTagSupport.java:41)
	at
jsp_servlet._web_45_inf._pages.__index._jsp__tag0(__index.ja
va:126)
	at
jsp_servlet._web_45_inf._pages.__index._jspService(__index.j
ava:97)
	at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
	at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceA
ction.run(StubSecurityHelper.java:225)
	at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(S
tubSecurityHelper.java:127)
	at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStu
bImpl.java:283)
	at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.jav
a:26)
	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha
inImpl.java:42)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage
(PageFilter.java:119)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
PageFilter.java:55)
	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha
inImpl.java:42)
	at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(Filt
erDispatcher.java:421)
	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha
inImpl.java:42)
	at
com.sherwin.sd.rsa.filter.RSAClearTrustAuthFilter.doFilter(R
SAClearTrustAuthFilter.java:270)
	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha
inImpl.java:42)
	at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServle
t(RequestDispatcherImpl.java:497)
	at
weblogic.servlet.internal.RequestDispatcherImpl.forward(Requ
estDispatcherImpl.java:245)
	at
org.apache.struts2.dispatcher.ServletDispatcherResult.doExec
ute(ServletDispatcherResult.java:139)
	at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(St
rutsResultSupport.java:185)
	at
com.opensymphony.xwork2.DefaultActionInvocation.executeResul
t(DefaultActionInvocation.java:354)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
ltActionInvocation.java:258)
	at
com.opensymphony.xwork2.interceptor.DefaultWorkflowIntercept
or.doIntercept(DefaultWorkflowInterceptor.java:142)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.
intercept(MethodFilterInterceptor.java:86)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:229)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:228)
	at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profil
e(UtilTimerStack.java:455)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
ltActionInvocation.java:226)
	at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIn
tercept(ValidationInterceptor.java:251)
	at
org.apache.struts2.interceptor.validation.AnnotationValidati
onInterceptor.doIntercept(AnnotationValidationInterceptor.ja
va:48)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.
intercept(MethodFilterInterceptor.java:86)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:229)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:228)
	at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profil
e(UtilTimerStack.java:455)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
ltActionInvocation.java:226)
	at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.do
Intercept(ParametersInterceptor.java:169)
	at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.
intercept(MethodFilterInterceptor.java:86)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:229)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:228)
	at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profil
e(UtilTimerStack.java:455)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
ltActionInvocation.java:226)
	at
org.apache.struts2.interceptor.FileUploadInterceptor.interce
pt(FileUploadInterceptor.java:207)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:229)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:228)
	at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profil
e(UtilTimerStack.java:455)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
ltActionInvocation.java:226)
	at
org.apache.struts2.interceptor.ServletConfigInterceptor.inte
rcept(ServletConfigInterceptor.java:163)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:229)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:228)
	at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profil
e(UtilTimerStack.java:455)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
ltActionInvocation.java:226)
	at
com.opensymphony.xwork2.interceptor.ExceptionMappingIntercep
tor.intercept(ExceptionMappingInterceptor.java:176)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:229)
	at
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfilin
g(DefaultActionInvocation.java:228)
	at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profil
e(UtilTimerStack.java:455)
	at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
ltActionInvocation.java:226)
	at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActi
onProxy.java:51)
	at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispa
tcher.java:496)
	at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(Filt
erDispatcher.java:427)
	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha
inImpl.java:42)
	at
com.sherwin.sos.auth.UserLoginFilter.doFilter(UserLoginFilte
r.java:55)
	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha
inImpl.java:42)
	at
com.sherwin.sd.rsa.filter.RSAClearTrustAuthFilter.doFilter(R
SAClearTrustAuthFilter.java:270)
	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha
inImpl.java:42)
	at
weblogic.servlet.internal.WebAppServletContext$ServletInvoca
tionAction.run(WebAppServletContext.java:3212)
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Aut
henticatedSubject.java:321)
	at
weblogic.security.service.SecurityManager.runAs(SecurityMana
ger.java:121)
	at
weblogic.servlet.internal.WebAppServletContext.securedExecut
e(WebAppServletContext.java:1983)
	at
weblogic.servlet.internal.WebAppServletContext.execute(WebAp
pServletContext.java:1890)
	at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequ
estImpl.java:1344)
	at
weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

> Error DateTimePicker when erase input then click again
the calendar
>
------------------------------------------------------------
-------
>
>                 Key: WW-2094
>                 URL: https
://issues.apache.org/struts/browse/WW-2094
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>            Assignee: Musachy Barroso
>             Fix For: 2.1.0
>
>         Attachments: dateTimePicker_bug.jpg, Test.war
>
>
> When setting a displayFormat in the
<sx:datetimepicker/> tag, there is a bug on opening
two times the calendar, if we erase the choosed date before
the second opening.
> Use case :
> The date field is empty.
> We open the calendar and pick a date. The date is well
filled in.
> We erase the date in the input field.
> We open again the calendar => All dates are NaN (see
screenchot)
> Look at the sample application attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


Commented: (WW-2094) Error DateTimePicker when erase input then click again the calendar
country flaguser name
United States
2007-11-05 08:52:35
    [ https://issues.apache.org/struts/browse/WW
-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:c
omment-tabpanel#action_42576 ] 

Benjamin McCann commented on WW-2094:
-------------------------------------

I do not think this patch was committed to Subversion. 
Here's the relevant code from the change log
http://svn.apache.org/viewvc/s
truts/struts2/trunk/plugins/dojo/src/main/resources/org/apac
he/struts2/static/dojo/struts_dojo.js.uncompressed.js?p2=%2F
struts%2Fstruts2%2Ftrunk%2Fplugins%2Fdojo%2Fsrc%2Fmain%2Fres
ources%2Forg%2Fapache%2Fstruts2%2Fstatic%2Fdojo%2Fstruts_doj
o.js.uncompressed.js&p1=%2Fstruts%2Fstruts2%2Ftrunk%2Fpl
ugins%2Fdojo%2Fsrc%2Fmain%2Fresources%2Forg%2Fapache%2Fstrut
s2%2Fstatic%2Fdojo%2Fstruts_dojo.js.uncompressed.js&r1=5
90970&r2=590969&view=diff&pathrev=590970

-			}else{
-				//only call this if setDate was called by means other
than clicking a date
-				this._preInitUI(this.value,false,true);
-			}


The patch has an else-if in place of the else:
+			}else if(this.value){



> Error DateTimePicker when erase input then click again
the calendar
>
------------------------------------------------------------
-------
>
>                 Key: WW-2094
>                 URL: https
://issues.apache.org/struts/browse/WW-2094
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>            Assignee: Ted Husted
>             Fix For: 2.1.1
>
>         Attachments: datetimepicker.patch,
dateTimePicker_bug.jpg, Test.war
>
>
> When setting a displayFormat in the
<sx:datetimepicker/> tag, there is a bug on opening
two times the calendar, if we erase the choosed date before
the second opening.
> Use case :
> The date field is empty.
> We open the calendar and pick a date. The date is well
filled in.
> We erase the date in the input field.
> We open again the calendar => All dates are NaN (see
screenchot)
> Look at the sample application attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )