Adding styleclass attribute by jQuery at jspx

Hi all;
I m trying to adding styleClass attribute to my af:form tag through jQuery but it seems something is off ;
Here is my jQuery code
$(document).ready((function(){
    $('#f1').data("styleClass","form"); //$('form').addClass('form'); didnt worked
})());Here is my css
.form{
    background-color:gray;
}And Here is my partial jspx structure
<f:view>
        <link type="text/css" rel="stylesheet" href="resources/css/Xxx.css"/>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="resources/js/Xxx.js"></script>
        <af:document title="Xxx.jspx" id="d1" binding="#{backingBeanScope.backing_Xxx.d1}">
            <af:form id="f1" binding="#{backingBeanScope.backing_Xxx.f1}"></af:form>
        </af:document>
    </f:view>Can you please help me on this matter
jDev 11.1.2.1.0

Hi,
FYI, I figured out the solution here my self!
You need to add the attribute as "nsRoleDN", and not "nsRole" as I had.
LDAPAttribute role = new LDAPAttribute("nsRoleDN","cn=administration,dc=ie,dc=permanenttsb");
When querying/searching the Directory you can use "nsRole" or "nsRoleDN"
Thanks!
CK

Similar Messages

  • Why is StyleClass attribute not working for me

    I have an af:input field I am trying to use a custom style with, but using the StyleClass attribute for the component doesn't do what I'm expecting it to, here is my af:input tag I've created:
    <af:inputText label="Password:" id="it12" secret="true" styleClass="jq_pswd"></af:inputText>
    But this is what the tag is rendering as in my browser:
    <table class="jq_pswd x1u" id="pt1:pt_r4:0:it12" cellpadding="0" cellspacing="0" border="0" summary=""><tbody><tr><td class="xu"><label for="pt1:pt_r4:0:it12::content">Password:</label></td><td valign="top" nowrap class="xpn"><input id="pt1:pt_r4:0:it12::content" name="pt1:pt_r4:0:it12" class="x25" size="0" type="password" autocomplete="off"></td></tr></tbody></table>
    In other examples of uses of the StyleClass attribute on the web I thought that class="jq_pswd"
    would show up in my password input component, but as you see above I get class="x25" instead, and a class="jq_pswd x1u" in a auto generated surrounding table instead.
    Where is "x25" and "jq_pswd x1u" coming from and how can I get class="jq_pswd" in my input tag?
    I have a jquery script relying on the class="jq_pswd" to be in the input tag in order for my script functionality to work.

    Here is a sample based on your use-case:
    Sample.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document title="Sample.jspx" id="d1">
    <af:resource type="css">
    .jq_pswd {
    color: Red;
    background-color: Red;
    </af:resource>
    <af:form id="f1">
    <af:inputText label="Password:" id="it12" secret="true" styleClass="jq_pswd"></af:inputText>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Once you disable the compression as mentioned above by setting the context param in the web.xml - you could see the following content delivered to the browser.
    *<table id="it12" class="jq_pswd af_inputText" cellspacing="0" cellpadding="0" border="0" summary="">*
    <tbody>
    <tr>
    <td class="af_inputText_label">
    <label for="it12::content">Password:</label>
    </td>
    <td class="AFContentCell" valign="top" nowrap="">
    <input id="it12::content" class="af_inputText_content" type="password" autocomplete="off" name="it12">
    </td>
    </tr>
    </tbody>
    </table>
    Thanks,
    Navaneeth

  • Adding navigational attributes to a cube

    We have upgraded to BW 7.3. Previously when we added navigational attributes to a cube we need to activate the update rules from the ods but now it appears that we don't need to do that anymore. Is this the expected behavaior?  We are using the 3.5 update rules.
    thanks

    HI,
    If you are using 3.5, after selecting nav attr in the cube, the cube structure gets deactivated. The dependent update rules also gets deactivated. You will be forced to activate all again.
    In BW 7.3, SAP would have given privilege to add without activation. It is good for us. So nothing to worry.
    Regards,
    Suman

  • Encounter error after adding an attribute to a new dimension in AWM.

    After I added an attribute to a new dimension, I encountered the error as below.
    I also cannot read the metadata from Jdeveloper after I create a cube using AWM.
    Please kindly help!!
    BI Beans Diagnostics(v1.0.2.0) 2005/9/15
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = C:\jdev1012_base
    JAVA_HOME ................................. = c:\j2sdk1.4.2_02
    JDeveloper version ........................ = 10.1.2.0.0.1811
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.52.0
    BI Beans internal version ................. = 3.2.1.0.13
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 10.1.0.3.0
    JDBC JAR file location .................... = C:\jdev1012_base\jdbc\lib
    Database version .......................... = 10.2.0.1.0
    OLAP Catalog version ...................... = 10.2.0.1.0
    OLAP AW Engine version .................... = 10.2.0.1.0
    OLAP API Server version ................... = 10.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in BI_TEST
    OLAP API JAR file version ................. = "10.1.0.2.0"
    OLAP API JAR file location ................ = C:\jdev1012_base\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    java.lang.NullPointerException
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.setDimAttributes(MDMMetadataDriverImpl_92.java:1733)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.getChildren(MDMMetadataDriverImpl_92.java:197)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.addChildren(MDMMetadataDriverImpl_92.java:2687)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.fillOlapObjectModel(MDMMetadataDriverImpl_92.java:2571)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92$LoadOlapObjectModel.run(MDMMetadataDriverImpl_92.java:3013)

    I would post this on the OLAP forum as they should be able to help you diagnose this problem. The OLAP forum can be found at the following link:
    OLAP
    There is not much detail in your log, but I suspect that your OLAP mappings are incomplete or the maintenance of your dimension to load the new attribute data somehow failed. I would check the OLAP AWM build logs for more information.
    Thanks
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Error when adding an attribute to a redifined entity

    Dear Gateway experts,
    I have the following problem:
    In the service builder I have successfully created and activated an OData Service with several entities. Now I have created a second service and have redefined one of the entities of the first service. Finally I have added one attribute to this entity in the second service. Also this service could be generated succesfully. But when calling the service I get the error message "Property [NEW ATTRIBUT] of data object [ENTITY] has no Internal type assigned."
    In the MPC class of the second service I see, that the structure belonging to the entity has been updated with this new attribute.
    But the exporting parameter ET_ENTITYSET of the DPC class refer to the structure definition of the MPC class of the first service (because the inherite from them) without the new attribute.
    So my problem is now, hoc can I add an attribute to a redfined entity without getting this error and be able to fill the export table?
    Thanks a lot in advance!
    Regards,
    Juergen

    Hi Ron,
    thanks for your quick reply!
    The entity of the original service is structure based. But the new attribute in the redefined service is not part of this structure. However I have added it manually and also filled the corresponding ABAP type in the column "ABAP Field Names".
    The method DEFINE_<ENTITY> is only available in the MPC class of the original service. And this method is private so I can't call it from the subclasses.
    In the MPC class of the redefined service there is a private method CREATE_NEW_ARTIFACTS, which is called in the method DEFINE. In this method the new attribute is already added to the entity, in the same way the other attributes were added in the DEFINE_<ENTITY> method:
    lo_entity_type = model->get_entity_type(
         iv_entity_name = '<entity>' ).
    lo_property = lo_entity_type->create_property(
         iv_property_name  ='<attribute>'
         iv_abap_fieldname = '<ATTRIBUTE in ABAP>' ).
    lo_property->set_type_edm_string( ).
    So I am not sure, what else to add in these methods.
    Regards,
    Juergen

  • "Error determining attribute" after adding navigational attribute to query

    Hello all,
    We are getting a "Error Error determining attribute, Abort System error in program SAPLRRK0 and form RSRDR;SRRK0f30-01-" error message when running a query after adding a navigational attribute. We tried adding the attribute of the characteristic directly in the query and this works ok. But when we try using the navigational attribute we get the error. We would like to use the navigational attribute so we can filter based on this attribute.
    We've searched for notes regarding this problem and haven't found any. Any suggestions?
    Thanks, Ron

    hi,
    Please check if  number of the fields after adding the Navigationl attribute the should not cross 50.
    Check the RSRV test for the master data whose navigational attribute u r trying to add.
    Thanks
    Mukesh

  • Error occured  whenever adding an attribute to a dimension

    After I added an attribute to a new dimension, I encountered the error as below.
    I also cannot read the metadata from Jdeveloper after I create a cube using AWM.
    Please kindly help!!
    BI Beans Diagnostics(v1.0.2.0) 2005/9/15
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = C:\jdev1012_base
    JAVA_HOME ................................. = c:\j2sdk1.4.2_02
    JDeveloper version ........................ = 10.1.2.0.0.1811
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.52.0
    BI Beans internal version ................. = 3.2.1.0.13
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 10.1.0.3.0
    JDBC JAR file location .................... = C:\jdev1012_base\jdbc\lib
    Database version .......................... = 10.2.0.1.0
    OLAP Catalog version ...................... = 10.2.0.1.0
    OLAP AW Engine version .................... = 10.2.0.1.0
    OLAP API Server version ................... = 10.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in BI_TEST
    OLAP API JAR file version ................. = "10.1.0.2.0"
    OLAP API JAR file location ................ = C:\jdev1012_base\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    java.lang.NullPointerException
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.setDimAttributes(MDMMetadataDriverImpl_92.java:1733)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.getChildren(MDMMetadataDriverImpl_92.java:197)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.addChildren(MDMMetadataDriverImpl_92.java:2687)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.fillOlapObjectModel(MDMMetadataDriverImpl_92.java:2571)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92$LoadOlapObjectModel.run(MDMMetadataDriverImpl_92.java:3013)

    I've got it resolved.
    I have to add levels and hierarchies before adding any attribute.
    That's strong!

  • Adding an Attribute to a VO changes the custom properties of the existing

    Adding an Attribute to a VO changes the custom properties of the existing attributes of the VO.
    We had a requirement to add an extra column in the VO.
    We modified the underlying EO to include the new column from the table, and modified the VO as well.
    Jdeveloper was changing the custom properties of the existing attributes in the VO. Our fix was not working as expected.
    Could anyone please inform us:
    1. On what logic does Jdeveloper determine to modify the existing custom properties of other VO attributes.
    2. Can this behavior of Jdeveloper be controlled through any mechanism.
    Thanks in advance,
    Rahul.

    Hi,
    which version of JDeveloper and how to reproduce ?
    Frank

  • Adding custom attributes in iPlanet User resource

    I have a custom attribute in LDAP called "CustomAttr1" created. I would like to add this attributes into iPlanet User RO so that I can update that attribute via OIM. What is the process of adding that attribute to the iPlanet User process and forms?

    Have you checked the Connector Document and specifically the section where it says "Extending the Connector"?
    This: http://docs.oracle.com/cd/E11223_01/doc.904/e10446/custom.htm#CDEGCCEB
    -Bikash

  • Error when adding an attribute

    While adding an attribute(new) to 0WORKCENTER I am getting a message that " All values for this navigation attribute must now be available in the master data tables and the attributes SID tables of the characteristic."
    This is a new attribute and the data will be populated after wards or I am changing the extractor to do that.
    Do I ignore the yellow flag ?

    you can ignore, but wait for other expert opinions..
    Regards,
    BWer
    Assign points if helpful.

  • Dynamically adding more attributes to cube dimension in SSAS 2008 R2

    I need to dynamically add more attributes to cube dimension in SSAS 2008 R2 because the dimension table the cube is based on is updated using dynamic pivoting and there is need to update the cube dimension attributes as more columns are added to the dimension
    table without making the changes through BIDS. Is there a way to dynamically adding more attributes to cube dimension in SSAS 2008 R2?
    Thanks
    BI Developer

    Definitely. You can use AMO to add dimension attributes on the server. I have definitely done this a few times for different clients of mine. Here is a generic AMO sample:
    http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_AMOAdventureWorks&referringTitle=Home
    Notice the parts which add attributes to a dimension.
    http://artisconsulting.com/Blogs/GregGalloway

  • Other TAB adding & Popultaing "Attributes"

    I have two (2) attributes *mobile & *Pin that I would like to add to the user object in the other
    Tab. But I need to do this over 10,000 users, I have JRB tools 1.7 but have not used the tools.
    And after adding the attributes I have to of course populate the two attributes.
    Wayne

    Using 3rd party tools or LDIF or other magic is fine, but have you
    considered using iManager?
    It would take 5 Minutes with the Plugin Studio to create a custom user
    modify book page.
    You could use that page for maintaining or bulk-setting your attributes
    including aux class extensions in one go.
    Wolfgang
    On 01.11.2011 22:06, wwarbine wrote:
    >
    > I have two (2) attributes *mobile& *Pin that I would like to add to the
    > user object in the other
    > Tab. But I need to do this over 10,000 users, I have JRB tools 1.7 but
    > have not used the tools.
    > And after adding the attributes I have to of course populate the two
    > attributes.
    >
    > Wayne
    >
    >

  • Adding another attribute in jspx page

    hi how can i add another attributes in jspx page.In the empdetails Data Controls Palette i expand the application module to locate the lastname column and i h Drag the lastname column into the Structure window before the FirstName. When prompted for a drop target i choose text>adf input text W/LABEL.
    when i run the apllication the other column does not display,it only display the top two column above lastname but in design it show all column

    Hi.
    Sorry, I don't quite understand you.
    Try this, perhaps will be useful to you
    select the table in Structure panel and then in the section columns press a plus green icon and select in value Binding the new attribute.

  • How to check length of string attribute(from viewobject) on jspx ?

    Hi,
    JDEV : 11.1.1.4
    I am using carousel component inside that i am using Descrip attribute to show the content on carousel item,
    Now i want to display a more link , whenever the length of Descrip is greater than 150 characters.
    Currently from backing bean i am setting the chklength property based on length to true or false but the problem is i need to set a partial target
    and because of that my carousel component i getting refreshed every time.. is there any way to check the length in jspx page itself inside the vissible property
    this is my code
    <af:outputText value="#{item.bindings.Descrip.inputValue}"
                                                             id="ot49"/>
                                               <af:commandImageLink text="more.." id="moreid" shortDesc="click to see more.."
                                                                     visible="#{pageFlowScope.chklength}">
                                                <af:showPopupBehavior popupId="::p1"/>
                                                </af:commandImageLink>              thanks
    Gopinath

    i have added taglib like this,
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    but its showing error on below expression
    visible="${fn:length(item.bindings.Descrip.inputValue) > 150}"
    error : BooleanSimnpleTypeConvertor:"${fn:length(item.bindings.Descrip.inputValue) > 150}" cannot be converted to this type

  • Error while adding a attribute to the the Custom view through a wizard

    Hi ,
    I have created a new custom view with value node through wizard  succesfully.
    Now I want to add a new attribute to that node.I am trying to do that by a wizard.
    But i am getting the follwing error " Error during analysis of Source Code" although i have
    commented or removed my all custom code from that view.
    I tried adding the new aattributes in the metthods "IF_BSP_MODEL~INIT " and
    "GET_TABLE_LINE_SAMPLE " manually but that also does not worked.
    Plz help me with this asap.
    Regards,
    Sharad

    Hi Sharad,
                          I hope all your classes are active. In case you want to add a new attribute there are two steps.
    1.Right click on context node and create attribute, it opens a wizard and continue. This will add the field in the context node and generate the getter-setter methods.
    2. In the above two method whcih you mentioned add the new field in the structure of value node. And then create your own getter-setter methods. and activate it. After this you will be able to see the attribute added in the context node.
    By using any of the two approaches you will be able to see teh new field in the configuration.
    Hope this helps.
    Regards,
    Ruby.

Maybe you are looking for

  • My ipod 5th gerneration froze while syncing what do i do

    My Ipod was charging because it was dead i bought it at a thrift store where they check what they are selling to make sure that NOTHING is broken about 3 weeks ago.  when it was syncing i unplugged it by accident and the screen froze with the syncing

  • Corrupt crosslinks when exported from InDesign to PDF

    Two of my colleagues are using Indesign on win7 64 bit computers. CS 4, one computer has indesign version 6.0.4, the other computer has version 6.0.5 - and that is the computer where our problem is. When we open a file in indesign and chose the alter

  • Log specific http header

    Hi, We have a "RedLine Networks T | X 2600 Real Time Accelerator", between the Clients and our frontends. As expected the IP that gets logged in the frontends is the "T|X 2600" IP, and not the client ip. In the request from the "T|X 2600" we have an

  • Transfer of albums from old version of photoshop to a newer

    I have used version 4.0 of Photoshop elements previously. I have saved a copy of my old hard disk, including the installation of Photoshop 4.0, on an external hard disk drive. I would like to transfer my albums, tags etc from my old version of Photos

  • Sort YouTube videos by date?

    When I look at videos from an account that I subscribe to, is there any way to change the sort order?  They seem to be sorted in descending order by number of views.  I would like to sort them in decending order by upload date so that I can easily fi