Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-222

XMLMenuModel does not correctly parse Resource Bundle EL expressions for menu item labels.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      A typical entry for a menu item might be:

      <itemNode id="_medical_itemNode_" label="#

      {bundle.MEDICAL_NAVBAR}

      "
      action="_medical_menu_action_" focusViewId="/medical"/>

      Note the "dot" notation for the label's EL expression. This is parsed correctly. However another legal entry might be:

      <itemNode id="_medical_itemNode_" label='#

      {bundle["MEDICAL_NAVBAR"]}

      '
      action="_medical_menu_action_" focusViewId="/medical"/>

      Note the "bracket" notation for the label's EL expression. The XMLMenuModel does not parse this correctly and returns null instead of the correct value.

      Attachments

        1. trunk.patch
          2 kB
          Gary Kind
        2. trunk.patch
          2 kB
          Gary Kind

        Activity

          People

            Unassigned Unassigned
            garykind Gary Kind
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: