javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-32

html tags in examples must have lang attribute

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.4
    • Fix Version/s: 7.0.2
    • Component/s: examples
    • Labels:
      None

      Description

      All HTML tags in our examples must have the LANG attribute set.

      It appears that for the simple case where the example is English-only, hardcoding the LANG attribute in the HTML tag may be the way to go:

      <html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
      ...

      However, it appears that for the case studies, where the locale can change dynamically, we need to do some coding so that the current locale can be retrieved. I don't know how well something like this would actually work, but maybe one of you can try it out:

      http://stackoverflow.com/questions/4830588/jsf-locale-is-set-per-request-not-for-session

      Our apps are different in that they get the locale from the browser setting instead of having the user set it in the app; that might simplify things.

      I can check in fixes for the simple cases and then un-assign myself so the case study authors can work on those.

        Issue Links

          Activity

            People

            • Assignee:
              William Markito
              Reporter:
              Kim Haase
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d