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

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Tue Jul 31 18:04:06 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-12304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709028#comment-12709028 ] 

Viacheslav Kabanovich commented on JBIDE-12304:
-----------------------------------------------

If uri is already declared on the page, but with another prefix, there is no quick fixes.
I think there may be 2 quick fixes:
1) suggest adding one more namespace for the uri, with new prefix. - That can be done within this issue by just removing the check.
2) suggest changing prefix at current node to that declared for the uri. - New issue may be created for that.

                
> 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: Viacheslav Kabanovich
>             Fix For: 3.4.0.M1
>
>         Attachments: AddTaglibDefinition.png, 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 6 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