Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10210

EL refactoring for @Named beans doesn't work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.M4
    • cdi, jsf
    • None
    • Hide

      1. Create Bean with @Named Annotation
      2. In JSF page create JSF component with EL reference to bean created in step 1
      3. Refactor @Named Annotation - to "bean1". Press next.
      4. Dialog correctly includes JSF page. Press finish.
      5. Save changes in JSF page. Switch to Bean class editor.
      6. Refactor @Named Annotation again - to "bean". Pres next.
      AssertTrue: JSF page is included
      AssertFalse: JSF page is not included

      Show
      1. Create Bean with @Named Annotation 2. In JSF page create JSF component with EL reference to bean created in step 1 3. Refactor @Named Annotation - to "bean1". Press next. 4. Dialog correctly includes JSF page. Press finish. 5. Save changes in JSF page. Switch to Bean class editor. 6. Refactor @Named Annotation again - to "bean". Pres next. AssertTrue: JSF page is included AssertFalse: JSF page is not included
    • Hide

      Edit Bean (for example insert one space somewhere) to have some changes in it. After saving the changes in Bean, refactoring @Named annotation include JSF page as well.

      Show
      Edit Bean (for example insert one space somewhere) to have some changes in it. After saving the changes in Bean, refactoring @Named annotation include JSF page as well.

      Sometimes, refactoring @Named annotation doesn't include EL as it should be. Also, another issue, I have found with the steps to reproduce, is disappearing CDI Refactor option in context menu. Workaround exists, it is the same workaround for both issues.

        1. 01.correctRefactor.png
          53 kB
          Jaroslav Jankovič
        2. 02.wrongRefactor.png
          50 kB
          Jaroslav Jankovič

            dazarov_jira Daniel Azarov (Inactive)
            jjankovi Jaroslav Jankovič (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: