【问题标题】:ADF Declarative component not being processed?未处理 ADF 声明性组件?
【发布时间】:2012-08-24 13:14:54
【问题描述】:

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

我的标签

> <?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 页面只是这样显示标签,有什么帮助吗?

【问题讨论】:

    标签: components oracle-adf declarative


    【解决方案1】:

    声明性组件的第一行无效

    "> "

    弗兰克

    【讨论】:

    • 实际上是复制粘贴错误,但我发现问题出在哪里,我忘记在我用来测试它的页面的项目中声明标签库。现在一切正常。
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 1970-01-01
      • 2020-09-30
      • 1970-01-01
      相关资源
      最近更新 更多