ADF声明组件未处理?

时间:2012-08-29 20:44:34

标签: components oracle-adf declarative

正如标题所说,我制作了一个声明性组件,但当我将其添加到网页时,它只显示标签,而不是内容

我的标签

> <?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
      xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
 <af:componentDef var="attrs" componentVar="component">
 <af:goImageLink id="cm" icon="/img/contextmenu.gif" destination=""
                rendered="#{attrs.showPopup}">
  <af:showPopupBehavior popupId="contextMenu" triggerType="click"
                        alignId="cm" align="endAfter"/>
</af:goImageLink>
<af:popup id="contextMenu" contentDelivery="immediate" launcherVar="source"
          eventContext="self" rendered="#{attrs.showPopup}">
  <af:menu binding="#{backingBeanScope.popupProcedimentos.menu}" id="m1"></af:menu>
</af:popup>
<af:popup rendered="#{attrs.showPopup}" id="p1" contentDelivery="immediate"
          binding="#{backingBeanScope.popupProcedimentos.popupProcedimento}"
          launcherVar="source" eventContext="self">
  <af:dialog binding="#{backingBeanScope.popupProcedimentos.dialog}"
             stretchChildren="first" id="d1" title="Nova janela"
             contentWidth="500" contentHeight="500">
    <af:inlineFrame sizing="preferred"
                    binding="#{backingBeanScope.popupProcedimentos.inlineFrame}"
                    shortDesc="Nova página" id="iframe"
                    source="#{backingBeanScope.listaProcessoAdministrativo.procedimentoUrl}#{attrs.DDocName}"></af:inlineFrame>
  </af:dialog>
</af:popup>
<af:xmlContent>
  <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>popupProcedimentos</display-name>
    <component-extension>
      <component-tag-namespace>component</component-tag-namespace>
      <component-taglib-uri>/popupproceds</component-taglib-uri>
      <attribute>
        <attribute-name>showPopup</attribute-name>
        <attribute-class>java.lang.Boolean</attribute-class>
        <default-value>false</default-value>
      </attribute>
      <attribute>
        <attribute-name>DDocName</attribute-name>
        <required>true</required>
        <attribute-class>java.lang.String</attribute-class>
      </attribute>
    </component-extension>
  </component>
</af:xmlContent>
</af:componentDef>
</jsp:root>

我只是在其他页面中将其称为

>     <popupproced:popupProcedimentos DDocName="sss" id="popup"  showPopup="true" >  </popupproced:popupProcedimentos>

但是渲染的html页面只显示标签,任何帮助?

2 个答案:

答案 0 :(得分:0)

声明性组件的第一行无效

“&gt;&lt;?xml version ='1.0'coding ='UTF-8'?&gt;”

答案 1 :(得分:0)

我忘了在我用来测试它的页面的项目中声明标记库。现在一切正常。