Custom attributes in dsp tag

Hi,
I need to have HTML5 attribute in dsp:a tag.
ex. <a class="" href="" data-type=""/>
The data-type and other HTML5 attributes are not supported by dsp taglib. How can i achieve it.
Prakhar

Look at DafEAR\base\j2ee-components\atg-bootstrap.war#WEB-INF\taglibs\dspjspTaglib1_0.tld this maps dsp:a to class atg.taglib.dspjsp.ATag.
I think you will need to write your own ATag class extending this one, compile this, put inside atg-bootstrap.war and change the mapping of dsp:a

Similar Messages

  • Instructions for writing a custom dsp:tag?

    I am planning to write a custom dsp tag for my project, is there any example or documentations about this?

    Yes, actually I don't wanna do this also, but I found the <dsp:include/> tag is not failsafe. We are doing some kinds of variable include, the page attributes corresponding to some variable path, however if the variable is null, instead of include nothing, <dsp:include/> tag recursively include currently context.
    I wanna know how the collect those params within a atg custom tag, I don't think it can be done without access with ATG api.
    Thanks!
    Edited by: Sawyer on Aug 1, 2011 3:06 PM

  • How do I access the name of the file stored in a custom attribute?

    I have created a custom attribute based on a file type and am using it in a custom page type. However, the value stored in wwsbr_folder_attributes is a sequential number rather than the name of the jpg file entered into the attribute. How do I access the true filename, as this seems to be what I need in order to reference it in an <IMG SRC=> tag?

    Hi Francis -
    You should be able to use this relatively use this sequential number in an image tag in the following way:
    <img border="0" src="docs/1/211800.GIF" width="470" height="108">
    Hope this helps,
    Candace

  • Custom component with additional tags

    Hi. I need to write complicated custom JSF component.
    I know how to write simple custom components, and receive String variables from tag attributes e.g.
    https://github.com/devalentino/temp/blob/master/src/main/java/net/monopolyclub/components/component/UserData.java
    But now I need to write custom component with additional tags (for example like dataTable and column tags).
    How can I write such component? How can I receive collections in my component? How can I work with additional tags in my component.
    for example I need something like:
    <m:chat>
         <m:tab value="#{UserList}" />
         <m:message value="#{MesageMap}" />
    </m:chat>
    where UserList - Collection with current users and MessageMap is Map with User as key and message as value.

    Iam using pt:ptdata.joincurrcommunitydata
    here is some code
    <pt:ptdata.joincurrcommunitydata pt:id="menutabsjoin" />
    <pt:logic.foreach pt:var="temp2" pt:data="menutabsjoin">
    <span class="CommunityPage">
    <pt:core.html href="$temp2.url" pt:tag="a">
    <pt:core.html pt:tag="img" src="$temp2.img" alt="$temp2.title" border="0" align="absmiddle" height="$temp2.imgheight"      width="$temp2.imgwidth" />
                        <pt:logic.value pt:value="$temp2.title" />
                             </pt:core.html>
                             </span>
                             </pt:logic.foreach>
    But the URL that is generated is not having the CommunityID, hence it errors out saying object not found.
    Any help would be appreciated?
    Thanks
    kartik

  • ADDING CUSTOM ATTRIBUTES TO PORTAL USER

    Hi,
    We are using ldap server as the EP 6.0 user database.
    We have to add few custom attributes like comanycode etc to the user.
    As I understand, the first activity will be to add these custom attributes in the ldap followed by mapping of portal logical attributes and the custom attributes in dataSourceConfiguration_xxx.xml file.
    Now what about showing these attributes in the all relevant user management screens (like Create User, Modify User etc).
    Can anyone please tell the configuration for the same.
    Any input is highly appreciated.
    regards,
    Chandra

    Hi
    Additional custom attributes can be added by editing the dataSourceConfig....xml.In this case logical to physical mapping has to be performed for each attribute.The attributes created without any mapping may be using the default namespace.
    The getArttibute() method can be used for getting the attribute values of the specified logical attribute.
    IUser user;
    String attrs[]=
    user.getAttribute("<nameSpace>","<logicalname>");
    <b>Editing the dataSourceConfig....xml for Logical to Physical mapping</b>
    Inside the nameSpace add the attribute inside the attributes tag as below.
    <nameSpace name =.........>
    <attributes>
    <attribute name = "<logicalnameyouwant>">
    </attribute>
    </attributes>
    Inside the attributeMapping specify the attribute name given above and the physicalAttribute as below
    <attributeMapping>
    <nameSpace name =.........>
    <attributes>
    <attribute name ="<logicalnameyouwant>"
    <physicalAttribute name= "<physicalnameyouwant>"/>
    </attribute>
    </attributes>
    </attributeMapping>
    Regards
    Geogi

  • Define custom attributes

    Dear all,
    I want/need to work with openSSO and therefor want to define some custom attributes which I want to use in my applications. These attributes are already existing within my LDAP server that I use as data store for openSSO.
    Here's what I did until now:
    - web config path:
    -> "access control"
    -> "Top Realm"
    -> "DataStore"
    -> "Sun DS with AM schema"
    Attribute Name Mapping:
    added:
    myOpenSSOAttribute1=myLDAPAttribute1
    myOpenSSOAttribute2=myLDAPAttribute2
    myOpenSSOAttribute3=myLDAPAttribute3
    LDAP User Object Class:
    added:
    myLDAPObjectClass
    LDAP User Attributes
    added:
    myLDAPAttribute1
    myLDAPAttribute2
    myLDAPAttribute3
    But when I got to http://mySSOHost:8080/opensso/identity/attributes I do not get these
    attributes listed.
    Did I miss anything ?
    I could not find any docs regarding extending openSSO attributes, so I played and tried with
    openSSO.
    Many thanks in advance
    Kind regards
    Joerg

    There are three approaches I can see
    1 - the manual runtime approach. Check the attributes in the doStartTag() method, and throw an exception if it is being used incorrectly.
    2 - Implement a TagExtraInfo class, and override the isValid(TagData) method. You can then check the attributes provided to a tag at compile time.
    3 - Implement a TagLibraryValidator class, which validates the JSP page as a whole, with regards to a tag library. (compile time)
    I think option 2 is the closest to what you want. Option 3 is just overkill, in this case.
    Cheers,
    evnafets

  • My Inbox Custom Attributes are toggling

    Hello,
    Please provide me help.
    I am working on Documentum technology, I have customize my Webtop Inbox component.
    Using Java,Jsp, XMl .
    I have added three custom attributes in our Inbox.
    It is working fine, but the issue is my custom attributes are toggling,means that sometime my custom attributes are displaying and sometime not.This happened when I am clicking on refresh button or clicking on inbox link.
    please provide me help
    Thanks
    Shahnawaz

    I look deep into my crystal ball, and ... let's see... the haze is starting to thin... now the image is forming.... it says:
    "Post some code where you think the problem exists and ask specific questions about what you think may be the problem. Also post any error messages that occur and use code tags when you post any code."

  • AutoCapitalized in dsp tag lib

    Hi,
    I have a requirement, to make a text field auto capitalization to be disabled using the dsp tag lib, in normal html input type we have autocapitalize attribute. How to do this using dsp tag lib.
    Thanks,

    I think you may check with allcaps="true|false" or autocaps="true|false" in the dsp input tag. Both of these are supported attributes for dsp input and textarea tags. You can find the list of all supported attributes of any dsp tag in dspjspTaglib1_0.tld
    Hope it helps. Thanks.

  • Issue with Sorting by Custom Attributes

    In our custom SES query application, I am trying to implement sorting at the custom attribute level. I am having difficulty in understanding exactly how to set the options on doOracleOrganizedSearch() to achieve the desired result.
    We have a table based content source and allow a user to search via custom search attribute. We are also going to allow them to sort by custom attribute.
    For example, say we have a Project content source and one of the attributes is "Client Name". Users are going to be able to sort by client name (A-Z and Z-A). I have a prototype working but it only seems to work if I set topN to a very high number.
    I want to bring back the first 10 documents sorted by Client Name A - Z and allowing paging to the next set of sorted results. My prototype works if I set topN to 1000 (more than the # of results) but does not work if I set it to 10 (# of results I want to display per page).
    Below if my code. Note I am not setting the group attribute or the cluster list. Perhaps this is the issue?
    Many thanks in advance!
    OracleResultContainer results = service.doOracleOrganizedSearch
    (this.m_query, // query
    this.m_docsRequested, // topN
    this.m_startIndex, // startIndex
    new Integer(10), // docsRequested
    this.m_dupRemoved, // dupRemoved
    this.m_dupMarked, // dupMarked
    this.m_searchDataGroup, // groups
    this.m_queryLang, // queryLang
    this.m_docLang, // docLang
    this.m_returnCount, // returnCount
    this.m_filterConnector, // filterConnector
    filters, // filters
    this.m_fetchAttributeNames, // fetchAttributeNames
    null, // searchControls
    null, // groupAttr
    this.m_sortAttributes, // sortAttrList
    null); // clusterList

    Hi Nikola,
    in 9.0.1 even if you rewrite the web interface you can't sort files by custom attributes setting a SortSpecification to a Folder. You can only sort by base attributes with getItems(). To get item sorted on custom attributes you must perform a search (a lot more codelines).
    Regards, Alessandro

  • Limitation on number of custom attributes visible

    Hi,
    I am using OIM 11g.
    All the custom attributes are visible on the create user form. I am able to see only 8 custom attributes on the modify user form.
    The visible property of all the attributes is set to true. I cannot modify the attribute once its created at the user creation.
    Can someone please help me out?
    Thanks...

    I got it resolved.
    Permissions in the access policies were not enabled for the remaining attributes.

  • Encrypt custom attribute

    Tar: 7340338.994
    OID Version: 10.1.2.0.2
    We are trying to encrypt the custom attribute ( ssn, answer ). How do we encrypt the custom attribute ? This is security requirement.
    I find nothing in the admin guide and I am not even sure we can do this. Does anyone know how to encrypt a custom attribute?
    I am thinking at best this is an Enhancement Request.

    Several ways:
    1. Write a plugin: http://download.oracle.com/docs/cd/B14099_19/idmanage.1012/b14082/plugin_intr.htm#i120282
    2. Put OVD in front of OID, point the application to OVD and write a plugin for OVD: http://download.oracle.com/docs/html/E12283_01/java_plug_ins.htm#CIHBDHHE
    3. If you can find the attribute in ODS schema, try encryption at the database level with TDE or VPD. Actually I am not sure it will carry over to LDAP interface..probably not but it's worth a try
    4. Have the application do it?

  • Problem with setting custom attribute and it being searchable

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

  • Custom Attributes in Target Group Email Campaign Not Refreshed

    We have a campaign sending emails to a target group of BPs.  To fill our custom attributes with values  we have implemented our code in badi CRM_IM_ADD_DATA_BADI method CRM_IM_BPSELE.  We tested our code using the Test Send feature from the email form and all worked fine.
    But when we ran the campaign in the background for a Target Group with multiple BPs it would not work correctly, our attribute values were incorrect. 
    We discovered while debugging the job, that the badi gets run once for each BP, but the attribute values from the previous BP do NOT get refreshed.  In fact there are 2 entire sets of attribute records in the CT_ATT_VALUES table parameter.  Each time through it multiplies by another set of our attributes.
    I have put code in the badi as a workaround that deletes the previously filled attributes for the previous BP, but I'd like to figure out what is causing this problem.
    Any help would be appreciated.
    thanks,
    Lee

    Hi Lee,
    Is this issue resolved for you now??
    I am facing the similar problem.
    Though the BADi is not used for these two mails (it is used in some other mail forms), it is actually called in 'CRM_ERMS_MAIL_COMPOSE' Function Module and the process is same as u said. There are 2 sets of values.
    I am using a Mail Alert functionality where in a 'Mail Alert ON' is sent to field engineers (FE) and then upon FE accepting the work we will send a 'Mail Alert OFF' to FEs.
    Problem is, we get one or two fields data incorrectly sometimes. I am not able to find out the root cause yet.
    Please let me know if you have had any resolution to this!
    Thanks in advance.
    Chaitanya

  • How to Add custom Attribute in XML

    How to add Custom attribute recusrivly. With sequence order.
    //Before xml:-
    var myxml:XML=
    <root>
    <leval0 >
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    <leval1 >
    <leval2></leval2>
    <leval2></leval2>
    </leval1>
    </leval0>
    </root>
    ////After xml:
    var myxml:XML=
    <root>
    <leval0 levalid="0" >
    <leval1 levalid="0_0" >
    <leval2 levalid="0_0_0"></leval2>
    <leval2 levalid="0_0_1"></leval2>
    </leval1>
    <leval1 levalid="0_1" >
    <leval2 levalid="0_1_0"></leval2>
    <leval2 levalid="0_1_1"></leval2>
    </leval1>
    </leval0>
    </root>

    //call this method
                trace(addAttribute(myxml));
    //method
                private function addAttribute(node:XML, depth:String = ""):XML
                    if (node.hasComplexContent())
                        var count:int = 0;
                        var prefix:String = 0 < depth.length ? depth + "_" : "";
                        var currentAtt:String;
                        for each (var nodeItem:XML in node.children())
                            currentAtt = prefix + count;
                            nodeItem.@levalid = currentAtt;
                            addAttribute(nodeItem,currentAtt);
                            count++;
                    return node;

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

Maybe you are looking for

  • Spotlight Search for 0KB Images?

    I'm having a big problem with my iPhoto Library. Is there a way for me to search for 0KB images in an iPhoto Library (say after I do a Show Package Contents)? If so, I'd love to get specific instructions on how to do this. Also, if there is a Spotlig

  • How to use destination function for javascript

    Hi, I used javascript:var a = window.open('OA.jsp?page=/oracle/apps/cdar/admin/brandupload/webui/SupportPG&retainAM=Y&OARF=printable', 'a','height=500,width=900,menubar=yes,toolbar=yes,location=yes'); a.focus(); in destination URL property, it can wo

  • Lm3s1968 don't work

    Hello I have a problem with my lm3s1968 Evaluation Board. I can build and download applications to the device without problems. But the device shows no reaction! Also with labview examples. I use the EK-lm3s8962-USB target, is this the right way for

  • 404 error when trying to download Bridge for Mac

    When I click the link to try to download Bridge for Mac, I get the following error message: 404 Not Found Code: NoSuchKey Message: The specified key does not exist. Key: Software Downloads/Bridge for Mac/SonyBridgeForMac_web.dmg/index.html RequestId:

  • Master Data - Flexible update

    We have C1 master data, Different attributes under this.       the source for this char is coming from different info pkgs.       also Transactional data.   We r loading master data from r/3 into char1 using flexible update mode.   When looked at the