[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9138) JSF composite component Quick Fixes for new JSF composite component validator.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Jun 20 19:45:23 EDT 2011


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

Alexey Kazakov commented on JBIDE-9138:
---------------------------------------

BTW don't hardcode <composite: prefix for such tags in composite component files if you do so. This prefix should be taken from xmlns:XYZ="http://java.sun.com/jsf/composite" name space.

> JSF composite component Quick Fixes for new JSF composite component validator.
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-9138
>                 URL: https://issues.jboss.org/browse/JBIDE-9138
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 3.3.0.M2
>            Reporter: Alexey Kazakov
>            Assignee: Daniel Azarov
>             Fix For: 3.3.0.M3
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list