프로젝트에서 다른 구성 요소 안에 복합 구성 요소를 사용합니다. 다 보스 7.1.0에 잘 작동하지만, JBoss에서의 7.1.1 우리는이 같은 오류를 얻을 : 우리는 솔루션 this JBoss community thread에 제안했지만, 그것은 우리의 문제 (이음매에 아무것도 변경되지 JBoss 7.1.1에서 중첩 된 복합 구성 요소가 깨졌습니다.
No handlers found for exception javax.faces.view.facelets.TagException:
/resources/components/my/bigComponent.xhtml @21,47 <my:nestedComponent>
Tag Library supports namespace: http://java.sun.com/jsf/composite/components/my,
but no tag was defined for name: nestedComponent
우리는
the only one in this case이 아니며 템플릿 파일의
ui:define
태그에 있기 때문에 솔루션이 작동하지 않을 수도 있습니다. 여기
우리의 두 가지 구성 요소 :
중첩 :
<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:cc="http://java.sun.com/jsf/composite"
xmlns:my="http://java.sun.com/jsf/composite/components/my" >
<cc:interface componentType="...">
<h:panelGroup>
<cc:attribute name="someAttribute" />
</h:panelGroup>
</cc:interface>
<cc:implementation>
<my:nestedComponent content="a text" />
</cc:implementation>
</html>
중첩 :
<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:cc="http://java.sun.com/jsf/composite">
<cc:interface>
<cc:attribute name="content" />
</cc:interface>
<cc:implementation>
<h:outputText value="#{cc.attrs.content}" />
</cc:implementation>
</html>
가 회귀인가? 우리가 뭔가 잘못하고있는거야? 1 링크에서, 제안 된 솔루션은 다음과 같이 중첩 구성 요소 뭔가 의미 :이 composite:facet
은 대한 composite:renderFacet
없이 무엇
<composite:interface>
<composite:facet name="greet1"/>
<composite:facet name="greet2"/>
</composite:interface>
<composite:implementation>
<lib:greet1 name="Stan" />
<lib:greet2 name="Silvert" />
</composite:implementation>
입니까?
사용중인 JSF 구현? MyFaces 2.1.6/2.0.12 복합 구성 요소에는 슬래시가있는 라이브러리 이름을 포함 할 수 없기 때문에주의하십시오. 라이브러리 이름이 'components/my'이며 올바르지 않습니다. 자세한 내용은 [MYFACES-3454] (https://issues.apache.org/jira/browse/MYFACES-3454)를 참조하십시오. – lu4242
우리는 JBoss 7.1.1에서 제공하는 Primefaces 3.2와 Mojarra 버전을 사용하고 있습니다. 우리는 항상 마지막 JBoss 버전까지는 이런 종류의 라이브러리 이름을 아무 문제없이 사용했습니다. –