6 Replies Latest reply on May 6, 2008 12:46 PM by janson12

    <rich:calendar apply button lable

    alexguru

      I read richfaces reference but i coudn't find if i can change label for ApplyButton.
      Is it possible?

      Thank you.

        • 1. Re: <rich:calendar apply button lable
          ilya_shaikovsky

          you should use our internacionalization method to redefine and localize the labels.

          you may use application resource bundle and define:
          RICH_CALENDAR_APPLY_LABEL
          RICH_CALENDAR_TODAY_LABEL
          RICH_CALENDAR_CLOSE_LABEL
          RICH_CALENDAR_OK_LABEL
          RICH_CALENDAR_CLEAN_LABEL
          RICH_CALENDAR_CANCEL_LABEL

          there.

          Or you may pack org.richfaces.renderkit.calendar resource bundle with your jars defining the same properties.

          • 2. Re: <rich:calendar apply button lable
            alexguru

            Thanks very match.

            • 3. Re: <rich:calendar apply button lable
              alexguru

              I defined RICH_CALENDAR_APPLY_LABEL in my application resource bundle, but i have troubles with it.

              When i defined on russion language i have unreadeble text, something like that "?????" (i have such text in all jsf components )

              So before i deploy my resource bundle i use native2ascii.exe and on exit i have
              RICH_CALENDAR_TODAY_LABEL=\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456
              Standart jsf components show this like in my resourse bundle, but <rich:calendar shows '&#1057;&#1100;&#1086;&#1075;&#1086;&#1076;&#1085;&#1110;'.
              Can i do something to make <rich:calendar do not convert "\u0421..." to " '&#1057;...... ' "?

              • 4. Re: <rich:calendar apply button lable
                alexguru

                My early post displayed not as i write it.

                I defined RICH_CALENDAR_APPLY_LABEL in my application resource bundle, but i have troubles with it.

                When i defined on russion language i have unreadeble text, something like that "?????" (i have such text in all jsf components )

                So before i deploy my resource bundle i use native2ascii.exe and on exit i have
                RICH_CALENDAR_TODAY_LABEL=\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456
                Standart jsf components show this like in my resourse bundle, but <rich:calendar shows & # 1057 ; & # 1100 ; & # 1086 ; & # 1075 ; & # 1086 ; & # 1076 ; & # 1085 ; & # 1110;.
                Can i do something to make <rich:calendar do not convert \u0421... to & # 1057 ?

                • 5. Re: <rich:calendar apply button lable
                  alexguru

                  some more ...
                  If i change

                  <%@ page contentType="text/html;charset=windows-1251" language="java" %>

                  to
                  <%@ page contentType="text/html;charset=utf-8" language="java" %>

                  then my RICH_CALENDAR_APPLY_LABEL shows what i need, but all my others label are unreadable.
                  Can i do somethig to make <rich:calendar not to convert my defined lable to UTF-8?

                  • 6. Re: <rich:calendar apply button lable

                    How does one refer to the resource bundle at all in the case of the calendar? I did smth similar with the fileupload:

                    uploadControlLabel="#{tariff_msg.RICH_FILE_UPLOAD_UPLOAD_LABEL}"

                    it works just great, however there is no such attribute like
                    calendarApplyLabel
                    which could be redefined...or did i miss smth??