Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-975

t:schedule HeaderDateFormat locale problems

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.5
    • 1.1.7
    • None
    • None
    • tomcat 5,5 + linux with english locale --> Server
      windows mozilla firefox , spanish locale --> navigator client

    Description

      Hi, i'm using t:schedule from tomahawk and i've a problem:

      property headerDateFormat takes the Locale from the Server (for example, English) and, if i want to use the context viewroot to format the date it's imposible.

      For example: if my navigator's language is in spanish, t:schedule shows me the headerDateFormat in english beacause is the Locale from the Server where is my application.

      I saw code from tomahawk t:schedule --> AbstractScheduleRenderer when i use the headerDateFormat property :

      if ((pattern != null) && (pattern.length() > 0))
      {
      format = new SimpleDateFormat(pattern); --> it would be ok if --> new SimpleDateFormat(pattern, context.getViewRoot.getLocale());
      }

      Is there any possiblity without modifying AbstractScheduleRenderer code to localize the headerDateFormat property ?

      Thanks

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cagatay_civici Cagatay Civici
            clr2k Carlos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment