Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-525

Myfaces does not handle correctly the from-view-id's with wildcards

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9m9
    • 1.1.0
    • JSR-127
    • None

    Description

      From the spec (section 7.4.2, p5-10/11), when talking about the NavigationHandler:

      << Rule instances are
      considered in the following order:

      • An exact match of the view identifier against a <from-view-id> pattern that
        does not end with an asterisk ("*") character.
      • For <from-view-id> patterns that end with an asterisk, an exact match on
        characters preceding the asterisk against the prefix of the view id. If the
        patterns for multiple navigation rules match, pick the longest matching prefix
        first.
      • If there is a <navigation-rule> with a <from-view-id> pattern of only an
        asterisk, it matches any view identifier.>>

      In myfaces something happens with the from-view-id's with asterisk. Lets illustrate a case:

      1. <from-view-id>test3</from-view-id>
      2. <from-view-id>test*</from-view-id>
      3. <from-view-id>*</from-view-id>

      I think that hibernate does not understand correctly the <from-view-id>'s with asterisk. For instance, if I am in the a view with id 'tes' (sic), the from-view-id used is the #2 when it should be the number #3.

      Attachments

        Activity

          People

            bruno_dev Bruno Aranda
            bruno_dev Bruno Aranda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: