[jbosstools-issues] [JBoss JIRA] (JBIDE-12304) Make Quick Fix "Add tag library definition" work with KB Model instead of using plain tag library list

Daniel Azarov (JIRA) jira-events at lists.jboss.org
Mon Jul 30 20:34:07 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-12304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Azarov updated JBIDE-12304:
----------------------------------

    Description: 
WTP Validator marks unknown tags with problem markers: "Unknown tag (<prefix name>:<tag name>)"
We should take all tag libraries in the project which contain the same tag name and offer quick fix "Add tag library definition" for all of them.
Tag libraries with default prefix the same as "prefix name" from problem marker should go first.

Test case:

EXECUTE:
1. Create JSF Kick Start project
2. Open hello.jsp file in Visual Page Editor
3. Add tag <x:if></x:if>
ASSERT: New tag is marked with problem annotation "Unknown tag (x:if)"
EXECUTE:
4. Point mouse to tag <x:if>
ASSERT: Should be two quick fixes in Text Hoover:
!AddTaglibDefinition.png!

  was:
Test case:

EXECUTE:
1. Create JSF Kick Start project
2. Open hello.jsp file in Visual Page Editor
3. Add tag <x:if></x:if>
ASSERT: New tag is marked with problem annotation "Unknown tag (x:aaa)"
EXECUTE:
4. Point mouse to tag <x:aaa>
ASSERT: Should be two quick fixes in Text Hoover:
!AddTaglibDefinition.png!


    
> Make Quick Fix "Add tag library definition" work with KB Model instead of using plain tag library list
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-12304
>                 URL: https://issues.jboss.org/browse/JBIDE-12304
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: jsp/jsf/xml source editing
>            Reporter: Daniel Azarov
>            Assignee: Daniel Azarov
>             Fix For: 3.4.0.M1
>
>         Attachments: AddTaglibDefinition.png, AddTaglibDefinition.png
>
>
> WTP Validator marks unknown tags with problem markers: "Unknown tag (<prefix name>:<tag name>)"
> We should take all tag libraries in the project which contain the same tag name and offer quick fix "Add tag library definition" for all of them.
> Tag libraries with default prefix the same as "prefix name" from problem marker should go first.
> Test case:
> EXECUTE:
> 1. Create JSF Kick Start project
> 2. Open hello.jsp file in Visual Page Editor
> 3. Add tag <x:if></x:if>
> ASSERT: New tag is marked with problem annotation "Unknown tag (x:if)"
> EXECUTE:
> 4. Point mouse to tag <x:if>
> ASSERT: Should be two quick fixes in Text Hoover:
> !AddTaglibDefinition.png!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list