2012-08-29 71 views
-1

所以正如標題所說,我做了一個聲明組件,但是當我把它添加到一個網頁,它只是顯示的標籤,而不是內容ADF聲明組件未被處理?

我的標籤

> <?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頁面只顯示這樣的標籤,任何幫助其他頁面?

回答

0

聲明性成分的第一行是無效

「> <?XML版本= '1.0' 編碼= 'UTF-8'?>」

弗蘭克

+0

這實際上是一個複製和粘貼錯誤,但我發現問題是什麼,我忘了在我用來測試它的頁面的項目中聲明標籤庫。現在一切正常。 –

0

我忘了在我用來測試它的頁面的項目中聲明標籤庫。現在一切正常。