myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luis Sánchez (JIRA) <...@myfaces.apache.org>
Subject [jira] Commented: (TOMAHAWK-1147) IllegalStateException while using the Arabic locale
Date Thu, 17 Apr 2008 09:07:21 GMT

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589877#action_12589877
] 

José Luis Sánchez commented on TOMAHAWK-1147:
---------------------------------------------

Hi, another issue:
If you draw a popup calendar inside a html component with dir="rtl" (used in arabic), days
are drawn rtl as well.
If you always use a html component with dir="ltf" this problem is solved but then the mont
and year combo boxes don't get well drawn. I don't know why.

Anayway, in both cases, when locale=ar and I change the month I want to see, the days rows
and columns don't update.
Try with february, march, april,... 2007, the first day of the month is always friday.

Hope it can be fixed.
Thanks.

> IllegalStateException while using the Arabic locale 
> ----------------------------------------------------
>
>                 Key: TOMAHAWK-1147
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1147
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Calendar
>    Affects Versions: 1.1.6
>         Environment: Windows XP, JBoss application server 4.0.2
>            Reporter: Ahmed Hashim
>            Assignee: Cagatay Civici
>             Fix For: 1.1.7-SNAPSHOT
>
>         Attachments: ArabicDateDefectSolve.patch
>
>
> If the locale of the application is "ar_EG" Arabic-Egypt, the HTMLCalendarRendrer throw
IllegalStateException with message "Week may only start with sunday or monday."
> here is the stack trace
>   Week may only start with sunday or monday.
> java.lang.IllegalStateException: Week may only start with sunday or monday.
> 	at org.apache.myfaces.custom.calendar.HtmlCalendarRenderer.getLocalizedLanguageScript(HtmlCalendarRenderer.java:345)
> 	at org.apache.myfaces.custom.date.HtmlDateRenderer.encodePopupCalendarButton(HtmlDateRenderer.java:287)
> 	at org.apache.myfaces.custom.date.HtmlDateRenderer.encodeEnd(HtmlDateRenderer.java:101)
> 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> 	at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:495)
> 	at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:363)
> 	at org.apache.jsp.nag.getHistory_jsp._jspx_meth_t_inputDate_0(getHistory_jsp.java:1147)
> 	at org.apache.jsp.nag.getHistory_jsp._jspx_meth_h_form_0(getHistory_jsp.java:833)
> 	at org.apache.jsp.nag.getHistory_jsp._jspService(getHistory_jsp.java:476)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
> 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
> 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> 	at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
> 	at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

> 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> 	at java.lang.Thread.run(Thread.java:595)
> I went throw the code and found
>   if(realFirstDayOfWeek==0)
>         {
>             weekDays = mapShortWeekdaysStartingWithSunday(symbols);
>         }
>         else if(realFirstDayOfWeek==1)
>         {
>             weekDays = mapShortWeekdays(symbols);
>         }
>         else
>             throw new IllegalStateException("Week may only start with sunday or monday.");
> I think arabic locale will never work!  

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


Mime
View raw message