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

JSF composite component Quick Fixes for new JSF composite component validator.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.M3
    • 3.3.0.M2
    • jsf
    • None

    Description

      After refactoring our JSF composite component validator (see JBIDE-9088) we lost our Quick Fixes for CC validation problems. We have to rafactor those quick fixed and switched them to the new validator.

      Steps to verify:

      EXECUTE: Create JSF 2 Kick Start project.
      EXECUTE: Open WebContent/pages/inputname.xhtml
      EXECUTE: Add tag <ez:input test=""/> to the page. Ctrl+S.
      ASSERT: Validation problem "Unknown attribute 'test' of composite component 'input'" appeared.
      EXECUTE: Put the mouse over the problem marker in the page. Select the only available quick fix: "Create attribute 'test'..."
      ASSERT: input.xhtml page is opened. <composite:attribute name="test"></composite:attribute> is added to the list of attributes.
      EXECUTE: Ctrl+S
      ASSERT: The validation problem "Unknown attribute 'test' of composite component 'input'" disappeared.

      EXECUTE: Add tag <ez:input2 test=""/> to WebContent/pages/inputname.xhtml. Ctrl+S.
      ASSERT: Validation problem "Unknown composite component 'input2'" appeared.
      EXECUTE: Put the mouse over the problem marker in the page. Select the only available quick fix: "Create JSF 2 composite component ..."
      ASSERT: The validation problem "Unknown composite component 'input2'" disappeared.

      EXECUTE: Add name space xmlns:ez2="http://java.sun.com/jsf/composite/demo2" to tag <html> in WebContent/pages/inputname.xhtml
      EXECUTE: Add tag <ez2:input test=""/> to WebContent/pages/inputname.xhtml. Ctrl+S.
      ASSERT: Validation problem "Unknown composite component 'input'" appeared.
      EXECUTE: Put the mouse over the problem marker in the page. Select the only available quick fix: "Create JSF 2 composite component ..."
      ASSERT: The validation problem "Unknown composite component 'input'" disappeared.

      Attachments

        Issue Links

          Activity

            People

              dazarov_jira Daniel Azarov (Inactive)
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: