[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9208) KB model doesn't recognize composite components if you brake xmlns:composite="http://java.sun.com/jsf/composite" name space and then fix it back.
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Mon Jun 20 20:02:23 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov updated JBIDE-9208:
----------------------------------
Summary: KB model doesn't recognize composite components if you brake xmlns:composite="http://java.sun.com/jsf/composite" name space and then fix it back. (was: KB model doesn't recognize composite components if the component doesn't use "composite" as a prefix for xmlns:XYZ="http://java.sun.com/jsf/composite" name space.)
Fix Version/s: 3.3.0.M3
Description:
EXECUTE: Create JSF2 Kick Start project.
EXECUTE: Replace input.xhtml component by this code:
{code}
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/c">
<composite:interface>
<composite:attribute name="label"/>
<composite:attribute name="value" required="true"/>
<composite:attribute name="action" required="true" method-signature="java.lang.String f()"/>
<composite:attribute name="submitlabel"/>
</composite:interface>
<composite:implementation>
<h:form>
<h:outputText value="#{cc.attrs.label}" />
<h:inputText value="#{cc.attrs.value}" />
<h:commandButton action="#{cc.attrs.action}" value="#{cc.attrs.submitlabel}" />
</h:form>
</composite:implementation>
</html>
{code}
EXECUTE: Ctrl+S
EXECUTE: Open Web Projects View.
ASSERT: input.xhtml is not recognized as a composite component (you can see it the fact that you can't expand this node in the view). It's ok since xmlns:composite="http://java.sun.com/jsf/c" is not a correct name space.
EXECUTE: Then replace input.xhtml component by this code:
{code}
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsf/composite">
<c:interface>
<c:attribute name="label"/>
<c:attribute name="value" required="true"/>
<c:attribute name="action" required="true" method-signature="java.lang.String f()"/>
<c:attribute name="submitlabel"/>
</c:interface>
<c:implementation>
<h:form>
<h:outputText value="#{cc.attrs.label}" />
<h:inputText value="#{cc.attrs.value}" />
<h:commandButton action="#{cc.attrs.action}" value="#{cc.attrs.submitlabel}" />
</h:form>
</c:implementation>
</html>
{code}
EXECUTE: Ctrl+S
EXECUTE: Open Web Projects View.
FAILURE: input.xhtml is not recognized as a composite component (you can see it the fact that you can't expand this node in the view). It's NOT ok since xmlns:c="http://java.sun.com/jsf/composite" is correct.
Affects Version/s: 3.3.0.M2
> KB model doesn't recognize composite components if you brake xmlns:composite="http://java.sun.com/jsf/composite" name space and then fix it back.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-9208
> URL: https://issues.jboss.org/browse/JBIDE-9208
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JSF
> Affects Versions: 3.3.0.M2
> Reporter: Alexey Kazakov
> Assignee: Viacheslav Kabanovich
> Fix For: 3.3.0.M3
>
>
> EXECUTE: Create JSF2 Kick Start project.
> EXECUTE: Replace input.xhtml component by this code:
> {code}
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:composite="http://java.sun.com/jsf/c">
> <composite:interface>
> <composite:attribute name="label"/>
> <composite:attribute name="value" required="true"/>
> <composite:attribute name="action" required="true" method-signature="java.lang.String f()"/>
> <composite:attribute name="submitlabel"/>
> </composite:interface>
> <composite:implementation>
> <h:form>
> <h:outputText value="#{cc.attrs.label}" />
> <h:inputText value="#{cc.attrs.value}" />
> <h:commandButton action="#{cc.attrs.action}" value="#{cc.attrs.submitlabel}" />
> </h:form>
> </composite:implementation>
> </html>
> {code}
> EXECUTE: Ctrl+S
> EXECUTE: Open Web Projects View.
> ASSERT: input.xhtml is not recognized as a composite component (you can see it the fact that you can't expand this node in the view). It's ok since xmlns:composite="http://java.sun.com/jsf/c" is not a correct name space.
> EXECUTE: Then replace input.xhtml component by this code:
> {code}
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:c="http://java.sun.com/jsf/composite">
> <c:interface>
> <c:attribute name="label"/>
> <c:attribute name="value" required="true"/>
> <c:attribute name="action" required="true" method-signature="java.lang.String f()"/>
> <c:attribute name="submitlabel"/>
> </c:interface>
> <c:implementation>
> <h:form>
> <h:outputText value="#{cc.attrs.label}" />
> <h:inputText value="#{cc.attrs.value}" />
> <h:commandButton action="#{cc.attrs.action}" value="#{cc.attrs.submitlabel}" />
> </h:form>
> </c:implementation>
> </html>
> {code}
> EXECUTE: Ctrl+S
> EXECUTE: Open Web Projects View.
> FAILURE: input.xhtml is not recognized as a composite component (you can see it the fact that you can't expand this node in the view). It's NOT ok since xmlns:c="http://java.sun.com/jsf/composite" is correct.
--
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