Tag Library for Declarative Component

Hi
Using JDev 11gR1. I'm new to tag libraries and have the following question...
How do I deploy a JAR file with a declaritive component as a JSP tag Library? I have created a new project, created a new tag library in the project (.tld file) and created a reusable toolbar in the project. How do I include the tags and attributes of the declarative component in the .tld file? Do I just edit the file or have I missed some steps which would have done this.
When creating the new declarative component I did us the "Add Tag Library..." button to specify the tag library in the project.
All declaritive component examples / tutorials / blogs / ADF dev guide, I find just tell you to deploy the jar file as a tag library and include it in the project to use it, but I can't find anything telling you how to deploy it as a tag library. Any help or references to examples will be great.
Thanks
Mario

Shay, thanks for the reply.
I started off following Grant's article which you referred me to, but ran into the problem I'm having now. Just tried it again and still no luck.
I created a declarative component in a new project, setup the deployment profile to deploy to an ADF Library JAR and deployed it. Then I add the directory for the JAR to my Resource palette and add the JAR to the project which will be using it.
But that's as far as I get, still nothing shows in my Component Palette.
That's when I started on the wild goose chase of the TLD file. I looked at Andrejus' blog posting, [http://andrejusb.blogspot.com/2009/10/custom-declarative-components-in-adf.html| [http://andrejusb.blogspot.com/2009/10/custom-declarative-components-in-adf.html|http://andrejusb.blogspot.com/2009/10/custom-declarative-components-in-adf.html]] and the source and realised he has a tld file inside his generated JAR. Which lead to my question as to when this get's generated / defined?
Any ideas what I could try to get my Components to display in the Component Palette?
Thanks,
Mario
Edited by: Mario Ribeiro on Oct 28, 2009 10:10 AM

Similar Messages

  • Tag library for cf8

    Can someone tell me where / how I can update dreamweaver
    cs3's tag library for coldfusion 8 tags? TIA!

    Darn it, I can't get it to install. I left message a while
    back about this but got no reply. The extension manager begins the
    install, puts files into a temp directory, but then halts with the
    message:
    "C:\Documents and Settings\myname\Local
    Settings\Temp\CF8_DW9_Ext_Final_mxi\TagLibraries\cfml\cfqueryparam.vtm"
    is missing'. The extension will not be installed."
    On checking the file IS there.
    Can anyone help me get this to install?
    Thanks in advance!
    Richard

  • ADF Library Jar: Bundle-Classes-Information for Declarative Component

    Hi,
    when we deploying some adf-taskflows as a adf library jar we can add some content with technical namings and user friendly strings.
    see the good adf code corner example: [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/52-taskflow-in-lib-169195.pdf]Advanced Tip: Customizing the ADF Task Flow name in the ADF libray (Page 16)
    Is this also possible for declarative components?
    Technology: ADF 11g / JDeveloper 11.1.1.4 / Fusion Stack (ADF BC / ADF Model / ADF Faces)
    best regards
    Martin

    Hi,
    no, unfortunately not
    Frank

  • .tld not generated for declarative component

    i have a declarative component. for quite some time i was racking my brain trying to figure out why my tag alternated between working fine and giving me the error: "Error: Encountered deferred syntax #{ ... ". i finally found out that when i generate my ADF lib JAR from the IDE (project > deploy), there is a .tld file generated and inserted into the resulting JAR, and all works fine.
    however, when the ADF library is built indirectly as a dependency of a WAR (profile depdency), there is no .tld generated, it is not present in the ADF lib JAR and i get the error "Error: Encountered deferred syntax #{ ..." when i run my app.
    what would cause the .tld NOT to be generated as i described above? any help is appreciated.

    Hi,
    the recommendation for declarative components is to build them in a separate project and deploy them to consuming apps using the Resource catalog. A WAR deployment does built on dependent librares, but I don't thin k it knows hoa to build the librarries properly. So you create the ADF library and reference it in the WAR file, this then is supposed to work
    Frank

  • Bbcode / phpbb tag library for dreamweaver?

    Is there a way to make dreamweaver recognize bbcode or phpbb
    style markup? For example, I want to edit a message IN dreamweaver,
    and it contains bbcode markup such as [img] tags, which dreamweaver
    does not recognize. If dreamweaver could see that the [img] tag and
    interpret it as a html style img tag, that would be a great help!

    Darn it, I can't get it to install. I left message a while
    back about this but got no reply. The extension manager begins the
    install, puts files into a temp directory, but then halts with the
    message:
    "C:\Documents and Settings\myname\Local
    Settings\Temp\CF8_DW9_Ext_Final_mxi\TagLibraries\cfml\cfqueryparam.vtm"
    is missing'. The extension will not be installed."
    On checking the file IS there.
    Can anyone help me get this to install?
    Thanks in advance!
    Richard

  • Tag Library for Web Photo Album  2.2.6

    I am attempting to use the Web Photo Album extension 2.2.6
    and am wondering how to get the file name to show up underneath the
    thumbnails. I see that you can use fireworks to enter a caption but
    I just want to use the file name. In the standard Web Photo Album
    creator there is a check box to include the file name. Can anyone
    tell me how to do this when creating a custom template.
    Thanks
    John

    You didn't ask for this but after you use it you will never
    want to use
    Photo Album again and its free -
    http://jalbum.net/
    "SteamChip" <[email protected]> wrote in message
    news:efjc9m$t1g$[email protected]..
    > I'm trying to find the Web Photo Album 2.0 extension for
    DreamWeaver 4(not
    > MX
    > or later versions).
    > Sure its old, but it works.
    > I cannot seem to find it in the extensions area
    > Can someone direct me to a download location or email it
    to me?
    > Mac or PC is fine
    > thanks
    >

  • How use the pager tag library for multi pagin

    hi,
    in fact i be new in the Jsp World so i want to use the multi pagin in my jsp can you help me.
    best regards

    So, what do you mean by "multi pagin"? Could you please explain
    it a little clearly?
    Regards
    greenidiot

  • BUG: Unable to add tag library to component palette on linux (Ubuntu)

    As already discussed in the thread problem with adding Sun JSF RI v1.2 as a new library in JDeveloper 10.1.3.1 i have problems adding the Apache Trinidad (faces) tag library to the component palette. Actually the adding is not the problem and initially after adding it, it works. But when closing JDeveloper and restarting the components have disappeared while they are still selected in the Edit Tag Libraries menu. This problem only occurs on Linux and not under windows.
    Kind Regards,
    Andre Jochems

    Hi,
    Thanks for reporting this issue
    Frank

  • Dynamic Declarative Component managed bean returned null

    Hi,
    In a project from an application a DDC component is defined. This component uses a managed/backing bean with view scope.
    Using this component inside this project is working fine. This component should be used in other view controller projects, and here where the problems are.
    This project(let's call it Common) is deployed as ADF Library jar, and used in the other V-C projects.
    The big problem is that the managed bean defined for the logic of this component is not 'reacheable'.
    (Another problem is that the attribute value is not seen as its EL expression but as string, for this i found a workaround.)
    In project Common the adfc-config.xml file:
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__4">
        <managed-bean-name id="__2">ExtendedShuttle</managed-bean-name>
        <managed-bean-class id="__1">com.xyz.portal.taskflow.common.extendedshuttle.ExtendedShuttle</managed-bean-class>
        <managed-bean-scope id="__3">view</managed-bean-scope>
      </managed-bean>
    </adfc-config>A part from component declaration:
          <af:table var="row" rowBandingInterval="0" id="ta"
                                  rowSelection="multiple" columnStretching="last"
                                  disableColumnReordering="true" fetchSize="-1"
                                  binding="#{viewScope.ExtendedShuttle.allItemsTable}"
                                  value="#{viewScope.ExtendedShuttle.allModel}"
                                  partialTriggers="::dc_cb5 ::dc_cb3"
                                  filterVisible="true"/>The root exception is :
    javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
    This exception is throw on com.sun.faces.application.ApplicationImpl.createComponent when *#{viewScope.ExtendedShuttle.allItemsTable}* is evaluated.
    Caused By: javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:70)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    Caused By: javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:70)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    Caused by: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
    Can you help figure it out, why is not working or why the managed bean is not visible in other projects but only in the one where the component is defined?
    Thank you for your time,
    Bogdan
    ps: how can i format the source code, on this fourm?

    Hi Frank,
    Thank you for the answer.
    I must say i'm quite new with ADF technology and maybe my questions are silly.
    Here is a Quote from "Oracle Fusion Developer Guide - Building Rich Internet Application with Oracle ADF" by Frank Nimphius and Lynn Munsinger Chapter 15 page 498:
    "You build dynamic declarative components *instead* of tag library based declarative components, if component resuse is required *only within the application* that has the component defined."
    Maybe i misunderstand the meaning of application from this sentence, but i need this component in several ViewController projects from only one application (ADF application).
    Tag lib declarative component I would not like to have, since the (automtically) build process is not my responsability and it will take some time till is pinpointed, but still is a last resort.
    Anyway two things are strange:
    1. Why the component is still available in other projects(and the beans not)?
    2. Why when a binding variable (for example: of type FaceCtrlHierBinding) has the correct type in the declarative project and in the order projects is of type String and its value is the variable name?
    Example:
    <af:declarativeComponent ...
    AllItems="#{bindings.Action}"
    In project where the component is declared its value is an instance of FacesCtrlHierBinding and in the rest of the projects is of type String with value "Action".
    Once again thank you a lot,
    Bogdan

  • Error while saving changes of declarative component to MDS

    Hi,
    Using ADF Faces 11gR1PS1.
    I am trying to create a declarative component where user can close a panel box (not just minimize) by setting rendered property to false. It works fine.
    Next I tried to save the attribute change to MDS so that user settings are preserved across sessions. However I got the following error:
    <FilteredPersistenceChangeManager><_getQualifiedTagName> WebAppDesignContext is not available at application scope. Please ensure that your application is built as a 'Fusion Web Application (ADF)', and that taglib.jar and facesconfigmodel.jar are in class path.
    <FilteredPersistenceChangeManager><_isChangeAllowedThroughPersistentChangeManager> Could not obtain tag name for the component being changed. Component ref: RichPanelBox[UIXFacesBeanImpl, id=dc_pb2]
    <FilteredPersistenceChangeManager><_addDocumentChangeImpl> The DocumentChange is not configured to be allowed for the component: RichPanelBox[UIXFacesBeanImpl, id=dc_pb2]Following is the page code:
              <af:panelBox text="#{attrs.p2Header}" id="dc_pb2"
                           rendered="#{attrs.p2Header ne null and dashboardXBean.portletRendered.dc_pb2}"
                           showDisclosure="false">
                <af:componentDragSource discriminant="portlet"/>
                <f:facet name="toolbar">
                  <af:commandImageLink id="p_cil2"
                                       icon="/images/removeselected_dwn.png"
                                       hoverIcon="/images/removeselected_ovr.png"
                                       depressedIcon="/images/removeselected_ena.png"
                                       actionListener="#{dashboardXBean.handleHideEvent}"
                                       rendered="#{attrs.sideNavRendered}">
                    <f:attribute name="portletId" value="dc_pb2"/>
                  </af:commandImageLink>
                </f:facet>
                <af:facetRef facetName="p2"/>
              </af:panelBox>Following is the code in the managed bean to persist changes:
        private void saveShowHideChange(String portletId, boolean isRendered) {
            FacesContext fc = FacesContext.getCurrentInstance();
            ChangeManager cm = RequestContext.getCurrentInstance().getChangeManager();
            //ChangeManager pcm = AdfFacesContext.getCurrentInstance().getPersistentChangeManager();
            UIComponent puc = boundedDashboard.findComponent(portletId);
            ComponentChange pcc = new AttributeComponentChange("rendered", Boolean.toString(isRendered));
            cm.addComponentChange(fc, puc, pcc);
        }I am not really sure if the above code needs to be in the component managed bean or in the bean of the page that uses this declarative component.
    Any pointers are appreciated.
    Thanks,
    Husain

    Thanks for the reply Frank.
    For declarative components do we have separate renderer?
    The [Developers Guide|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/ad_persist.htm#BABBGCJA] didnt seem very helpful on this topic.
    Can you point me to some reference material if available.
    Thanks,
    Husain

  • Dynamic declarative component won't work properly within table row

    Hi guys,
    I built a dynamic declarative component which basically consists of an af:inputText surrounded by a af:panelLabelAndMessage tag.
    The component works fine until I put it inside a table column, then none of the attribute values get set.
    The problem seems to be related to the table row binding #{row.binding.Name.inputValue} , if I use a regular binding #{binding.Name.inputValue} it works ok.
    The declarative components attribute is defined as
    <attribute>
        <attribute-name>kbez</attribute-name>
        <attribute-class>java.lang.Object</attribute-class>
    </attribute>and is used as the inputText's value attribute
    <af:componentDef var="attrs" componentVar="component">
        <af:panelLabelAndMessage label="#{attrs.label}" id="dc_plam1"
                                 for="dc_it1" labelStyle="white-space:nowrap;"
                                 showRequired="#{attrs.showRequired}"
                                 rendered="#{attrs.rendered}">
            <af:inputText id="dc_it1" value="#{attrs.kbez}"
                          autoSubmit="true" immediate="false" ...>The component inside a table column is set like this
    <af:declarativeComponent viewId="/WEB-INF/ikb.adf.kreda.basis/mitarbeitersuche/ddc/mitarbeiterLOV.jsff"
                             id="ddc1" label="Mitarbeiter"
                             kbez="#{row.bindings.Kbez.inputValue}"/>My JDeveloper version is 11.1.1.5.
    Am I doing it wrong or is this a bug?
    Any help is appreciated.
    Thank you,
    Achim
    Edited by: Achim Rosenfeld on Mar 8, 2013 8:41 AM

    Hi,
    +#{row.binding.Name.inputValue} , if I use a regular binding #{binding.Name.inputValue} it works ok.+
    Don't think that #{binding.Name.inputValue} works okay in a table because it doesn't stamp the component per row. Actually I don't know if we support dynamic declarative components in a stamped environment (table). I know though that we don't for taglib declarative components in this context.
    Reason why it doesn't work: Tables are stamped at runtime, which means that for better performance, only the generated HTML is reused for each row with different data - not the component. Your component requires itself to be re-created for each row so it can re-read the attribute again. This is not the case in a stameped environment
    Solution: For your particular use case I don't think that a dynamic declarative component is needed as you can add the construct (af:inputText surrounded by a af:panelLabelAndMessage) directly into an af:column tag. The declarative component makes more sense for reuse of layout areas (e.g. custom tabs) that are iterated within an af:forEach (in which case instances of the decalarative components would be created).
    Bottom line: tables stamp their components and as such the attribute property exposed on a DDC doesn't seem to be called for each row, which is by design. This can be considered a bug if there is a use case demanding for a DDC in a table. If this is a requirement for you (and you can't directly add the components to the af:column tag) feel free to file this as a service request with customer support (required a support contract) so development can have a look if the requirement is feasible to implement.
    Frank

  • Include a tag library

    I have a tag library for custom actions. The path is D:\Oracle\jdeveloper\lib\orataglib_1_0_3.jar.
    How can I include this lib in my jsp? I tryed it with the following tag
    <%@ taglib uri="D:/Oracle/jdeveloper/lib/orataglib_1_0_3.jar" prefix=" ora" %>
    But I get the error message "unable to load taghandler class: D:/Oracle/jdeveloper/lib...
    Whats wrong here?
    Every help is welcome.
    Kind regards
    Jan Rvtzer

    I believe the taglib file has to be somewhere within the document root of your web app (i.e., accessible through the web container as opposed to the file system). Also, the taglib uri points to the tld file, not the jar'ed java classes. The handler classed just have to be within the classpath of the web container.
    HTH
    John H.

  • Simultaneous Client and Server Form Validation using Custom Tag Library

    I am developing a custom tag library for validator tags
    which are capable of doing client side validation (Javascript)
    and server side (Java). My problem is with the development
    of a regular expression based validator. Because of differences
    in the way Javascript and Java handle regular expressions
    i can not use the same regular expression for both types of
    validation. Is there any way to convert a valid regular
    expression from the java.util.regex format into the Javascript
    format or vice versa? My major problems are with the (or, ||)
    statements and the user of backslashes.

    If you are speaking of RE syntax flavours, they are basically the same(namely perl5 flavour). Any expression that works in JS should work in j.u.regex too.
    Though, their usage is quite different.
    So, there is no need for convertion of expressions.
    But porting the code may be not so trivial.

  • Tag Library Error

    I am using Jdeveloper and BEA Weblogic 8.1 application server environment.
    I have custom tag and tld file for the tag. When I try to compile it , I am getting this error which just points to the begininng of the jsp file which uses the tag.
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I've tried searching online and found that it may be caused by the the wrong jar reference in classpath. I've tried adding whole bunch of different versions of servlet.jar to my classpath in the project properties but I am still getting the same error.
    Please advice
    Mikhail

    I've tried putting weblogic.jar into the web-inf/lib folder and also added library reference in the project properties but that did not fixed it.
    I still receive this error in all jsp files where I have a tag:
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    Here's the content of my simple tld file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <!-- a tag library descriptor -->
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.1</jsp-version>
    <short-name>Bima Tags</short-name>
    <description>Application tag library for the BIMA Application</description>
    <tag>
    <name>navbar</name>
    <tag-class>com.arrownacp.bima.tags.NavBarTag</tag-class>
    <body-content>empty</body-content>
    <description>Display the Navigation Bar</description>
    <attribute>
    <name>pageName</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String</type>
    </attribute>
    </tag>
    </taglib>
    This is how I refer to it in my jsp file:
    <%@ taglib uri="WEB-INF/BimaTags.tld" prefix="es" %>
    and in the page body:
    <es:navbar pageName="addUser" />
    Need an urgent help, thanks
    Mikhail

  • Struts Layout-Tag Library

    Can anyone suggest a book or site for Struts Layout-Tag Library.......
    i got only www.struts.application-servers.com/
    Thanks.

    I know for Struts, there is Struts Layout tag library
    that provides treeview, calendar, table, etc. Is
    there any such tag library for JSF? Thanks.Sure. The most popular is MyFaces Tomahawk (http://myfaces.apache.org/tomahawk/index.html). JSF Central has a comprehensive list as well: http://www.jsfcentral.com/products/components.
    Kito D. Mann - Author, JavaServer Faces in Action
    http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
    * Sign up for the JSF Central newsletter! http://oi.vresp.com/?fid=ac048d0e17 *

Maybe you are looking for